Browse Source

Update generated files

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

+ 2
- 2
src/abouttypica.h View File

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

+ 19
- 19
src/daterangeselector.cpp View File

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

+ 4
- 4
src/daterangeselector.h View File

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

+ 2
- 2
src/draglabel.cpp View File

1
-/*958:*/
1
+/*972:*/
2
 #line 33 "./scales.w"
2
 #line 33 "./scales.w"
3
 
3
 
4
 #include "draglabel.h"
4
 #include "draglabel.h"
26
 }
26
 }
27
 }
27
 }
28
 
28
 
29
-/*:958*/
29
+/*:972*/

+ 2
- 2
src/draglabel.h View File

1
-/*957:*/
1
+/*971:*/
2
 #line 13 "./scales.w"
2
 #line 13 "./scales.w"
3
 
3
 
4
 #ifndef TypicaDragLabelInclude
4
 #ifndef TypicaDragLabelInclude
17
 
17
 
18
 #endif
18
 #endif
19
 
19
 
20
-/*:957*/
20
+/*:971*/

+ 10
- 24
src/helpmenu.cpp View File

1
-/*182:*/
2
-#line 36 "./helpmenu.w"
1
+/*194:*/
2
+#line 35 "./helpmenu.w"
3
 
3
 
4
 #include "helpmenu.h"
4
 #include "helpmenu.h"
5
 #include "abouttypica.h"
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
 HelpMenu::HelpMenu():QMenu()
10
 HelpMenu::HelpMenu():QMenu()
12
 {
11
 {
16
 aboutTypicaAction->setObjectName("aboutTypicaAction");
15
 aboutTypicaAction->setObjectName("aboutTypicaAction");
17
 addAction(aboutTypicaAction);
16
 addAction(aboutTypicaAction);
18
 connect(aboutTypicaAction,SIGNAL(triggered()),this,SLOT(displayAboutTypica()));
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
 void HelpMenu::displayAboutTypica()
23
 void HelpMenu::displayAboutTypica()
29
 {
24
 {
31
 aboutBox->show();
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
 #line 1 "./feedback.w"
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
-/*181:*/
1
+/*193:*/
2
 #line 16 "./helpmenu.w"
2
 #line 16 "./helpmenu.w"
3
 
3
 
4
 #include <QMenu> 
4
 #include <QMenu> 
13
 HelpMenu();
13
 HelpMenu();
14
 public slots:
14
 public slots:
15
 void displayAboutTypica();
15
 void displayAboutTypica();
16
-void displayFeedbackWizard();
17
 };
16
 };
18
 
17
 
19
 #endif
18
 #endif
20
 
19
 
21
-/*:181*/
20
+/*:193*/

+ 3
- 6
src/moc_helpmenu.cpp View File

22
        6,       // revision
22
        6,       // revision
23
        0,       // classname
23
        0,       // classname
24
        0,    0, // classinfo
24
        0,    0, // classinfo
25
-       2,   14, // methods
25
+       1,   14, // methods
26
        0,    0, // properties
26
        0,    0, // properties
27
        0,    0, // enums/sets
27
        0,    0, // enums/sets
28
        0,    0, // constructors
28
        0,    0, // constructors
31
 
31
 
32
  // slots: signature, parameters, type, tag, flags
32
  // slots: signature, parameters, type, tag, flags
33
       10,    9,    9,    9, 0x0a,
33
       10,    9,    9,    9, 0x0a,
34
-      31,    9,    9,    9, 0x0a,
35
 
34
 
36
        0        // eod
35
        0        // eod
37
 };
36
 };
38
 
37
 
39
 static const char qt_meta_stringdata_HelpMenu[] = {
38
 static const char qt_meta_stringdata_HelpMenu[] = {
40
     "HelpMenu\0\0displayAboutTypica()\0"
39
     "HelpMenu\0\0displayAboutTypica()\0"
41
-    "displayFeedbackWizard()\0"
42
 };
40
 };
43
 
41
 
44
 void HelpMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
42
 void HelpMenu::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
48
         HelpMenu *_t = static_cast<HelpMenu *>(_o);
46
         HelpMenu *_t = static_cast<HelpMenu *>(_o);
49
         switch (_id) {
47
         switch (_id) {
50
         case 0: _t->displayAboutTypica(); break;
48
         case 0: _t->displayAboutTypica(); break;
51
-        case 1: _t->displayFeedbackWizard(); break;
52
         default: ;
49
         default: ;
53
         }
50
         }
54
     }
51
     }
87
     if (_id < 0)
84
     if (_id < 0)
88
         return _id;
85
         return _id;
89
     if (_c == QMetaObject::InvokeMetaMethod) {
86
     if (_c == QMetaObject::InvokeMetaMethod) {
90
-        if (_id < 2)
87
+        if (_id < 1)
91
             qt_static_metacall(this, _c, _id, _a);
88
             qt_static_metacall(this, _c, _id, _a);
92
-        _id -= 2;
89
+        _id -= 1;
93
     }
90
     }
94
     return _id;
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
-/*964:*/
1
+/*978:*/
2
 #line 131 "./scales.w"
2
 #line 131 "./scales.w"
3
 
3
 
4
 #include "scale.h"
4
 #include "scale.h"
10
 connect(this,SIGNAL(readyRead()),this,SLOT(dataAvailable()));
10
 connect(this,SIGNAL(readyRead()),this,SLOT(dataAvailable()));
11
 }
11
 }
12
 
12
 
13
-/*:964*//*965:*/
13
+/*:978*//*979:*/
14
 #line 149 "./scales.w"
14
 #line 149 "./scales.w"
15
 
15
 
16
 void SerialScale::dataAvailable()
16
 void SerialScale::dataAvailable()
24
 }
24
 }
25
 else
25
 else
26
 {
26
 {
27
-/*966:*/
27
+/*980:*/
28
 #line 189 "./scales.w"
28
 #line 189 "./scales.w"
29
 
29
 
30
 QStringList responseParts= QString(responseBuffer.simplified()).split(' ');
30
 QStringList responseParts= QString(responseBuffer.simplified()).split(' ');
53
 }
53
 }
54
 emit newMeasurement(weight,unit);
54
 emit newMeasurement(weight,unit);
55
 
55
 
56
-/*:966*/
56
+/*:980*/
57
 #line 161 "./scales.w"
57
 #line 161 "./scales.w"
58
 
58
 
59
 responseBuffer.clear();
59
 responseBuffer.clear();
61
 }
61
 }
62
 }
62
 }
63
 
63
 
64
-/*:965*//*967:*/
64
+/*:979*//*981:*/
65
 #line 220 "./scales.w"
65
 #line 220 "./scales.w"
66
 
66
 
67
 void SerialScale::tare()
67
 void SerialScale::tare()
74
 write("!KP\x0D");
74
 write("!KP\x0D");
75
 }
75
 }
76
 
76
 
77
-/*:967*/
77
+/*:981*/

+ 2
- 2
src/scale.h View File

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

+ 2
- 2
src/units.h View File

1
-/*252:*/
1
+/*263:*/
2
 #line 8 "./units.w"
2
 #line 8 "./units.w"
3
 
3
 
4
 #include <QObject> 
4
 #include <QObject> 
32
 
32
 
33
 #endif
33
 #endif
34
 
34
 
35
-/*:252*/
35
+/*:263*/

+ 5
- 5
src/webelement.cpp View File

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

+ 2
- 2
src/webelement.h View File

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

+ 11
- 11
src/webview.cpp View File

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

+ 2
- 2
src/webview.h View File

1
-/*523:*/
1
+/*534:*/
2
 #line 14 "./webview.w"
2
 #line 14 "./webview.w"
3
 
3
 
4
 #include <QWebView> 
4
 #include <QWebView> 
34
 
34
 
35
 #endif
35
 #endif
36
 
36
 
37
-/*:523*/
37
+/*:534*/

Loading…
Cancel
Save