Browse Source

Update generated files

Neal Wilson 9 years ago
parent
commit
c257dc4f97
19 changed files with 34831 additions and 34475 deletions
  1. 5
    5
      src/abouttypica.cpp
  2. 2
    2
      src/abouttypica.h
  3. 19
    19
      src/daterangeselector.cpp
  4. 4
    4
      src/daterangeselector.h
  5. 2
    2
      src/draglabel.cpp
  6. 2
    2
      src/draglabel.h
  7. 10
    24
      src/helpmenu.cpp
  8. 2
    3
      src/helpmenu.h
  9. 3
    6
      src/moc_helpmenu.cpp
  10. 32162
    32150
      src/qrc_resources.cpp
  11. 6
    6
      src/scale.cpp
  12. 2
    2
      src/scale.h
  13. 2584
    2222
      src/typica.cpp
  14. 6
    6
      src/units.cpp
  15. 2
    2
      src/units.h
  16. 5
    5
      src/webelement.cpp
  17. 2
    2
      src/webelement.h
  18. 11
    11
      src/webview.cpp
  19. 2
    2
      src/webview.h

+ 5
- 5
src/abouttypica.cpp View File

@@ -1,9 +1,9 @@
1
-/*249:*/
1
+/*260:*/
2 2
 #line 33 "./abouttypica.w"
3 3
 
4 4
 #include "abouttypica.h"
5 5
 
6
-/*250:*/
6
+/*261:*/
7 7
 #line 42 "./abouttypica.w"
8 8
 
9 9
 AboutTypica::AboutTypica():QMainWindow(NULL)
@@ -17,10 +17,10 @@ aboutFile.close();
17 17
 setCentralWidget(banner);
18 18
 }
19 19
 
20
-#line 5992 "./typica.w"
20
+#line 6340 "./typica.w"
21 21
 
22
-/*:250*/
22
+/*:261*/
23 23
 #line 36 "./abouttypica.w"
24 24
 
25 25
 
26
-/*:249*/
26
+/*:260*/

+ 2
- 2
src/abouttypica.h View File

@@ -1,4 +1,4 @@
1
-/*248:*/
1
+/*259:*/
2 2
 #line 14 "./abouttypica.w"
3 3
 
4 4
 #include <QMainWindow> 
@@ -17,4 +17,4 @@ AboutTypica();
17 17
 
18 18
 #endif
19 19
 
20
-/*:248*/
20
+/*:259*/

+ 19
- 19
src/daterangeselector.cpp View File

@@ -1,4 +1,4 @@
1
-/*639:*/
1
+/*650:*/
2 2
 #line 68 "./daterangeselector.w"
3 3
 
4 4
 #include <QCalendarWidget> 
@@ -11,7 +11,7 @@
11 11
 
12 12
 #include "daterangeselector.h"
13 13
 
14
-/*641:*/
14
+/*652:*/
15 15
 #line 111 "./daterangeselector.w"
16 16
 
17 17
 CustomDateRangePopup::CustomDateRangePopup(QWidget*parent):
@@ -55,7 +55,7 @@ outerLayout->addLayout(buttonLayout);
55 55
 setLayout(outerLayout);
56 56
 }
57 57
 
58
-/*:641*//*642:*/
58
+/*:652*//*653:*/
59 59
 #line 159 "./daterangeselector.w"
60 60
 
61 61
 void CustomDateRangePopup::hideEvent(QHideEvent*)
@@ -63,7 +63,7 @@ void CustomDateRangePopup::hideEvent(QHideEvent*)
63 63
 emit hidingPopup();
64 64
 }
65 65
 
66
-/*:642*//*643:*/
66
+/*:653*//*654:*/
67 67
 #line 168 "./daterangeselector.w"
68 68
 
69 69
 void CustomDateRangePopup::applyRange()
@@ -78,7 +78,7 @@ endDateSelector->selectedDate().toString(Qt::ISODate)));
78 78
 hide();
79 79
 }
80 80
 
81
-/*:643*//*644:*/
81
+/*:654*//*655:*/
82 82
 #line 185 "./daterangeselector.w"
83 83
 
84 84
 void CustomDateRangePopup::validateRange()
@@ -93,10 +93,10 @@ applyButton->setEnabled(true);
93 93
 }
94 94
 }
95 95
 
96
-/*:644*/
96
+/*:655*/
97 97
 #line 79 "./daterangeselector.w"
98 98
 
99
-/*645:*/
99
+/*656:*/
100 100
 #line 203 "./daterangeselector.w"
101 101
 
102 102
 DateRangeSelector::DateRangeSelector(QWidget*parent):
@@ -108,7 +108,7 @@ connect(quickSelector,SIGNAL(currentIndexChanged(int)),this,SLOT(updateRange(int
108 108
 QDate currentDate= QDate::currentDate();
109 109
 
110 110
 QHBoxLayout*layout= new QHBoxLayout;
111
-/*646:*/
111
+/*657:*/
112 112
 #line 232 "./daterangeselector.w"
113 113
 
114 114
 quickSelector->addItem("Yesterday",QVariant(QStringList()<<
@@ -188,7 +188,7 @@ quickSelector->insertSeparator(quickSelector->count());
188 188
 quickSelector->addItem("Lifetime");
189 189
 quickSelector->addItem("Custom");
190 190
 
191
-/*:646*/
191
+/*:657*/
192 192
 #line 213 "./daterangeselector.w"
193 193
 
194 194
 QToolButton*customButton= new QToolButton;
@@ -201,7 +201,7 @@ setLayout(layout);
201 201
 connect(customButton,SIGNAL(clicked()),this,SLOT(toggleCustom()));
202 202
 }
203 203
 
204
-/*:645*//*647:*/
204
+/*:656*//*658:*/
205 205
 #line 315 "./daterangeselector.w"
206 206
 
207 207
 void DateRangeSelector::updateRange(int index)
@@ -217,7 +217,7 @@ emit rangeUpdated(quickSelector->itemData(quickSelector->currentIndex()));
217 217
 }
218 218
 }
219 219
 
220
-/*:647*//*648:*/
220
+/*:658*//*659:*/
221 221
 #line 332 "./daterangeselector.w"
222 222
 
223 223
 void DateRangeSelector::popupHidden()
@@ -227,7 +227,7 @@ customRangeSelector= NULL;
227 227
 quickSelector->setCurrentIndex(lastIndex);
228 228
 }
229 229
 
230
-/*:648*//*649:*/
230
+/*:659*//*660:*/
231 231
 #line 343 "./daterangeselector.w"
232 232
 
233 233
 void DateRangeSelector::setCustomRange(QVariant range)
@@ -238,7 +238,7 @@ lastIndex= quickSelector->count()-1;
238 238
 quickSelector->setCurrentIndex(lastIndex);
239 239
 }
240 240
 
241
-/*:649*//*650:*/
241
+/*:660*//*661:*/
242 242
 #line 358 "./daterangeselector.w"
243 243
 
244 244
 void DateRangeSelector::toggleCustom()
@@ -279,7 +279,7 @@ customRangeSelector= NULL;
279 279
 }
280 280
 }
281 281
 
282
-/*:650*//*651:*/
282
+/*:661*//*662:*/
283 283
 #line 400 "./daterangeselector.w"
284 284
 
285 285
 QVariant DateRangeSelector::currentRange()
@@ -287,7 +287,7 @@ QVariant DateRangeSelector::currentRange()
287 287
 return quickSelector->itemData(lastIndex);
288 288
 }
289 289
 
290
-/*:651*//*652:*/
290
+/*:662*//*663:*/
291 291
 #line 408 "./daterangeselector.w"
292 292
 
293 293
 void DateRangeSelector::setCurrentIndex(int index)
@@ -295,7 +295,7 @@ void DateRangeSelector::setCurrentIndex(int index)
295 295
 quickSelector->setCurrentIndex(index);
296 296
 }
297 297
 
298
-/*:652*//*653:*/
298
+/*:663*//*664:*/
299 299
 #line 423 "./daterangeselector.w"
300 300
 
301 301
 void DateRangeSelector::setLifetimeRange(QString startDate,QString endDate)
@@ -304,7 +304,7 @@ quickSelector->setItemData(quickSelector->count()-2,
304 304
 QVariant(QStringList()<<startDate<<endDate));
305 305
 }
306 306
 
307
-/*:653*//*654:*/
307
+/*:664*//*665:*/
308 308
 #line 433 "./daterangeselector.w"
309 309
 
310 310
 void DateRangeSelector::removeIndex(int index)
@@ -312,10 +312,10 @@ void DateRangeSelector::removeIndex(int index)
312 312
 quickSelector->removeItem(index);
313 313
 }
314 314
 
315
-/*:654*/
315
+/*:665*/
316 316
 #line 80 "./daterangeselector.w"
317 317
 
318 318
 
319 319
 #include "moc_daterangeselector.cpp"
320 320
 
321
-/*:639*/
321
+/*:650*/

+ 4
- 4
src/daterangeselector.h View File

@@ -1,4 +1,4 @@
1
-/*638:*/
1
+/*649:*/
2 2
 #line 30 "./daterangeselector.w"
3 3
 
4 4
 
@@ -9,7 +9,7 @@
9 9
 #ifndef TypicaDateRangeSelectorHeader
10 10
 #define TypicaDateRangeSelectorHeader
11 11
 
12
-/*640:*/
12
+/*651:*/
13 13
 #line 87 "./daterangeselector.w"
14 14
 
15 15
 class CustomDateRangePopup:public QWidget
@@ -31,7 +31,7 @@ QCalendarWidget*endDateSelector;
31 31
 QPushButton*applyButton;
32 32
 };
33 33
 
34
-/*:640*/
34
+/*:651*/
35 35
 #line 39 "./daterangeselector.w"
36 36
 
37 37
 
@@ -60,4 +60,4 @@ int lastIndex;
60 60
 
61 61
 #endif
62 62
 
63
-/*:638*/
63
+/*:649*/

+ 2
- 2
src/draglabel.cpp View File

@@ -1,4 +1,4 @@
1
-/*958:*/
1
+/*972:*/
2 2
 #line 33 "./scales.w"
3 3
 
4 4
 #include "draglabel.h"
@@ -26,4 +26,4 @@ drag->exec();
26 26
 }
27 27
 }
28 28
 
29
-/*:958*/
29
+/*:972*/

+ 2
- 2
src/draglabel.h View File

@@ -1,4 +1,4 @@
1
-/*957:*/
1
+/*971:*/
2 2
 #line 13 "./scales.w"
3 3
 
4 4
 #ifndef TypicaDragLabelInclude
@@ -17,4 +17,4 @@ void mousePressEvent(QMouseEvent*event);
17 17
 
18 18
 #endif
19 19
 
20
-/*:957*/
20
+/*:971*/

+ 10
- 24
src/helpmenu.cpp View File

@@ -1,12 +1,11 @@
1
-/*182:*/
2
-#line 36 "./helpmenu.w"
1
+/*194:*/
2
+#line 35 "./helpmenu.w"
3 3
 
4 4
 #include "helpmenu.h"
5 5
 #include "abouttypica.h"
6
-#include "feedback.h"
7 6
 
8
-/*183:*/
9
-#line 49 "./helpmenu.w"
7
+/*195:*/
8
+#line 47 "./helpmenu.w"
10 9
 
11 10
 HelpMenu::HelpMenu():QMenu()
12 11
 {
@@ -16,14 +15,10 @@ QAction*aboutTypicaAction= new QAction(tr("About Typica"),this);
16 15
 aboutTypicaAction->setObjectName("aboutTypicaAction");
17 16
 addAction(aboutTypicaAction);
18 17
 connect(aboutTypicaAction,SIGNAL(triggered()),this,SLOT(displayAboutTypica()));
19
-QAction*sendFeedbackAction= new QAction(tr("Send Feedback"),this);
20
-sendFeedbackAction->setObjectName("sendFeedback");
21
-addAction(sendFeedbackAction);
22
-connect(sendFeedbackAction,SIGNAL(triggered()),this,SLOT(displayFeedbackWizard()));
23 18
 }
24 19
 
25
-/*:183*//*184:*/
26
-#line 67 "./helpmenu.w"
20
+/*:195*//*196:*/
21
+#line 61 "./helpmenu.w"
27 22
 
28 23
 void HelpMenu::displayAboutTypica()
29 24
 {
@@ -31,20 +26,11 @@ AboutTypica*aboutBox= new AboutTypica;
31 26
 aboutBox->show();
32 27
 }
33 28
 
34
-/*:184*//*185:*/
35
-#line 76 "./helpmenu.w"
36
-
37
-void HelpMenu::displayFeedbackWizard()
38
-{
39
-FeedbackWizard*window= new FeedbackWizard;
40
-window->show();
41
-}
42
-
43
-#line 4266 "./typica.w"
29
+#line 4614 "./typica.w"
44 30
 
45 31
 #line 1 "./feedback.w"
46
-/*:185*/
47
-#line 41 "./helpmenu.w"
32
+/*:196*/
33
+#line 39 "./helpmenu.w"
48 34
 
49 35
 
50
-/*:182*/
36
+/*:194*/

+ 2
- 3
src/helpmenu.h View File

@@ -1,4 +1,4 @@
1
-/*181:*/
1
+/*193:*/
2 2
 #line 16 "./helpmenu.w"
3 3
 
4 4
 #include <QMenu> 
@@ -13,9 +13,8 @@ public:
13 13
 HelpMenu();
14 14
 public slots:
15 15
 void displayAboutTypica();
16
-void displayFeedbackWizard();
17 16
 };
18 17
 
19 18
 #endif
20 19
 
21
-/*:181*/
20
+/*:193*/

+ 3
- 6
src/moc_helpmenu.cpp View File

@@ -22,7 +22,7 @@ static const uint qt_meta_data_HelpMenu[] = {
22 22
        6,       // revision
23 23
        0,       // classname
24 24
        0,    0, // classinfo
25
-       2,   14, // methods
25
+       1,   14, // methods
26 26
        0,    0, // properties
27 27
        0,    0, // enums/sets
28 28
        0,    0, // constructors
@@ -31,14 +31,12 @@ static const uint qt_meta_data_HelpMenu[] = {
31 31
 
32 32
  // slots: signature, parameters, type, tag, flags
33 33
       10,    9,    9,    9, 0x0a,
34
-      31,    9,    9,    9, 0x0a,
35 34
 
36 35
        0        // eod
37 36
 };
38 37
 
39 38
 static const char qt_meta_stringdata_HelpMenu[] = {
40 39
     "HelpMenu\0\0displayAboutTypica()\0"
41
-    "displayFeedbackWizard()\0"
42 40
 };
43 41
 
44 42
 void HelpMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
@@ -48,7 +46,6 @@ void HelpMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, vo
48 46
         HelpMenu *_t = static_cast<HelpMenu *>(_o);
49 47
         switch (_id) {
50 48
         case 0: _t->displayAboutTypica(); break;
51
-        case 1: _t->displayFeedbackWizard(); break;
52 49
         default: ;
53 50
         }
54 51
     }
@@ -87,9 +84,9 @@ int HelpMenu::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
87 84
     if (_id < 0)
88 85
         return _id;
89 86
     if (_c == QMetaObject::InvokeMetaMethod) {
90
-        if (_id < 2)
87
+        if (_id < 1)
91 88
             qt_static_metacall(this, _c, _id, _a);
92
-        _id -= 2;
89
+        _id -= 1;
93 90
     }
94 91
     return _id;
95 92
 }

+ 32162
- 32150
src/qrc_resources.cpp
File diff suppressed because it is too large
View File


+ 6
- 6
src/scale.cpp View File

@@ -1,4 +1,4 @@
1
-/*964:*/
1
+/*978:*/
2 2
 #line 131 "./scales.w"
3 3
 
4 4
 #include "scale.h"
@@ -10,7 +10,7 @@ QextSerialPort(port,QextSerialPort::EventDriven)
10 10
 connect(this,SIGNAL(readyRead()),this,SLOT(dataAvailable()));
11 11
 }
12 12
 
13
-/*:964*//*965:*/
13
+/*:978*//*979:*/
14 14
 #line 149 "./scales.w"
15 15
 
16 16
 void SerialScale::dataAvailable()
@@ -24,7 +24,7 @@ responseBuffer.clear();
24 24
 }
25 25
 else
26 26
 {
27
-/*966:*/
27
+/*980:*/
28 28
 #line 189 "./scales.w"
29 29
 
30 30
 QStringList responseParts= QString(responseBuffer.simplified()).split(' ');
@@ -53,7 +53,7 @@ unit= Units::Ounce;
53 53
 }
54 54
 emit newMeasurement(weight,unit);
55 55
 
56
-/*:966*/
56
+/*:980*/
57 57
 #line 161 "./scales.w"
58 58
 
59 59
 responseBuffer.clear();
@@ -61,7 +61,7 @@ responseBuffer.clear();
61 61
 }
62 62
 }
63 63
 
64
-/*:965*//*967:*/
64
+/*:979*//*981:*/
65 65
 #line 220 "./scales.w"
66 66
 
67 67
 void SerialScale::tare()
@@ -74,4 +74,4 @@ void SerialScale::weigh()
74 74
 write("!KP\x0D");
75 75
 }
76 76
 
77
-/*:967*/
77
+/*:981*/

+ 2
- 2
src/scale.h View File

@@ -1,4 +1,4 @@
1
-/*963:*/
1
+/*977:*/
2 2
 #line 103 "./scales.w"
3 3
 
4 4
 #ifndef TypicaScaleInclude
@@ -25,4 +25,4 @@ QByteArray responseBuffer;
25 25
 
26 26
 #endif
27 27
 
28
-/*:963*/
28
+/*:977*/

+ 2584
- 2222
src/typica.cpp
File diff suppressed because it is too large
View File


+ 6
- 6
src/units.cpp View File

@@ -1,9 +1,9 @@
1
-/*253:*/
1
+/*264:*/
2 2
 #line 42 "./units.w"
3 3
 
4 4
 #include "units.h"
5 5
 
6
-/*:253*//*254:*/
6
+/*:264*//*265:*/
7 7
 #line 52 "./units.w"
8 8
 
9 9
 bool Units::isTemperatureUnit(Unit unit)
@@ -14,7 +14,7 @@ unit==Kelvin||
14 14
 unit==Rankine);
15 15
 }
16 16
 
17
-/*:254*//*255:*/
17
+/*:265*//*266:*/
18 18
 #line 70 "./units.w"
19 19
 
20 20
 double Units::convertTemperature(double value,Unit fromUnit,Unit toUnit)
@@ -100,7 +100,7 @@ break;
100 100
 return 0;
101 101
 }
102 102
 
103
-/*:255*//*256:*/
103
+/*:266*//*267:*/
104 104
 #line 156 "./units.w"
105 105
 
106 106
 double Units::convertRelativeTemperature(double value,Unit fromUnit,Unit toUnit)
@@ -198,7 +198,7 @@ break;
198 198
 return 0;
199 199
 }
200 200
 
201
-/*:256*//*257:*/
201
+/*:267*//*268:*/
202 202
 #line 254 "./units.w"
203 203
 
204 204
 double Units::convertWeight(double value,Unit fromUnit,Unit toUnit)
@@ -303,4 +303,4 @@ unit==Ounce||
303 303
 unit==Gram);
304 304
 }
305 305
 
306
-/*:257*/
306
+/*:268*/

+ 2
- 2
src/units.h View File

@@ -1,4 +1,4 @@
1
-/*252:*/
1
+/*263:*/
2 2
 #line 8 "./units.w"
3 3
 
4 4
 #include <QObject> 
@@ -32,4 +32,4 @@ static bool isWeightUnit(Unit unit);
32 32
 
33 33
 #endif
34 34
 
35
-/*:252*/
35
+/*:263*/

+ 5
- 5
src/webelement.cpp View File

@@ -1,9 +1,9 @@
1
-/*546:*/
1
+/*557:*/
2 2
 #line 368 "./webview.w"
3 3
 
4 4
 #include "webelement.h"
5 5
 
6
-/*544:*/
6
+/*555:*/
7 7
 #line 311 "./webview.w"
8 8
 
9 9
 TypicaWebElement::TypicaWebElement(QWebElement element):e(element)
@@ -11,7 +11,7 @@ TypicaWebElement::TypicaWebElement(QWebElement element):e(element)
11 11
 
12 12
 }
13 13
 
14
-/*:544*//*545:*/
14
+/*:555*//*556:*/
15 15
 #line 320 "./webview.w"
16 16
 
17 17
 void TypicaWebElement::appendInside(const QString&markup)
@@ -59,8 +59,8 @@ void TypicaWebElement::setPlainText(const QString&text)
59 59
 e.setPlainText(text);
60 60
 }
61 61
 
62
-/*:545*/
62
+/*:556*/
63 63
 #line 371 "./webview.w"
64 64
 
65 65
 
66
-/*:546*/
66
+/*:557*/

+ 2
- 2
src/webelement.h View File

@@ -1,4 +1,4 @@
1
-/*539:*/
1
+/*550:*/
2 2
 #line 248 "./webview.w"
3 3
 
4 4
 #include <QWebElement> 
@@ -27,4 +27,4 @@ QWebElement e;
27 27
 
28 28
 #endif
29 29
 
30
-/*:539*/
30
+/*:550*/

+ 11
- 11
src/webview.cpp View File

@@ -1,9 +1,9 @@
1
-/*524:*/
1
+/*535:*/
2 2
 #line 50 "./webview.w"
3 3
 
4 4
 #include "webview.h"
5 5
 
6
-/*525:*/
6
+/*536:*/
7 7
 #line 57 "./webview.w"
8 8
 
9 9
 TypicaWebView::TypicaWebView():QWebView()
@@ -12,7 +12,7 @@ page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
12 12
 connect(page(),SIGNAL(linkClicked(QUrl)),this,SLOT(linkDelegate(QUrl)));
13 13
 }
14 14
 
15
-/*:525*//*526:*/
15
+/*:536*//*537:*/
16 16
 #line 73 "./webview.w"
17 17
 
18 18
 void TypicaWebView::linkDelegate(const QUrl&url)
@@ -20,7 +20,7 @@ void TypicaWebView::linkDelegate(const QUrl&url)
20 20
 if(url.scheme()=="typica")
21 21
 {
22 22
 QString address(url.toEncoded());
23
-/*527:*/
23
+/*538:*/
24 24
 #line 91 "./webview.w"
25 25
 
26 26
 if(address=="typica://aboutqt")
@@ -29,10 +29,10 @@ QMessageBox::aboutQt(this);
29 29
 return;
30 30
 }
31 31
 
32
-/*:527*/
32
+/*:538*/
33 33
 #line 79 "./webview.w"
34 34
 
35
-/*528:*/
35
+/*539:*/
36 36
 #line 100 "./webview.w"
37 37
 
38 38
 if(address.startsWith("typica://script/"))
@@ -41,7 +41,7 @@ emit scriptLinkClicked(address.remove(0,16));
41 41
 return;
42 42
 }
43 43
 
44
-/*:528*/
44
+/*:539*/
45 45
 #line 80 "./webview.w"
46 46
 
47 47
 }
@@ -51,7 +51,7 @@ QDesktopServices::openUrl(url);
51 51
 }
52 52
 }
53 53
 
54
-/*:526*//*529:*/
54
+/*:537*//*540:*/
55 55
 #line 112 "./webview.w"
56 56
 
57 57
 void TypicaWebView::load(const QString&url)
@@ -88,7 +88,7 @@ QString TypicaWebView::saveXml()
88 88
 return page()->currentFrame()->documentElement().toOuterXml();
89 89
 }
90 90
 
91
-/*:529*//*535:*/
91
+/*:540*//*546:*/
92 92
 #line 205 "./webview.w"
93 93
 
94 94
 QWebElement TypicaWebView::documentElement()
@@ -101,8 +101,8 @@ QWebElement TypicaWebView::findFirstElement(const QString&selector)
101 101
 return page()->mainFrame()->findFirstElement(selector);
102 102
 }
103 103
 
104
-/*:535*/
104
+/*:546*/
105 105
 #line 53 "./webview.w"
106 106
 
107 107
 
108
-/*:524*/
108
+/*:535*/

+ 2
- 2
src/webview.h View File

@@ -1,4 +1,4 @@
1
-/*523:*/
1
+/*534:*/
2 2
 #line 14 "./webview.w"
3 3
 
4 4
 #include <QWebView> 
@@ -34,4 +34,4 @@ void linkDelegate(const QUrl&url);
34 34
 
35 35
 #endif
36 36
 
37
-/*:523*/
37
+/*:534*/

Loading…
Cancel
Save