Browse Source

Update generated files

Neal Wilson 6 years ago
parent
commit
8097c9102d
Signed by: neal <neal@typica.us> GPG Key ID: D6F25C90DD5819DF

+ 5
- 5
src/abouttypica.cpp View File

1
-/*288:*/
1
+/*295:*/
2
 #line 33 "./abouttypica.w"
2
 #line 33 "./abouttypica.w"
3
 
3
 
4
 #include "abouttypica.h"
4
 #include "abouttypica.h"
5
 
5
 
6
-/*289:*/
6
+/*296:*/
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 6874 "./typica.w"
20
+#line 6947 "./typica.w"
21
 
21
 
22
-/*:289*/
22
+/*:296*/
23
 #line 36 "./abouttypica.w"
23
 #line 36 "./abouttypica.w"
24
 
24
 
25
 
25
 
26
-/*:288*/
26
+/*:295*/

+ 2
- 2
src/abouttypica.h View File

1
-/*287:*/
1
+/*294:*/
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
-/*:287*/
20
+/*:294*/

+ 19
- 19
src/daterangeselector.cpp View File

1
-/*702:*/
1
+/*711:*/
2
 #line 70 "./daterangeselector.w"
2
 #line 70 "./daterangeselector.w"
3
 
3
 
4
 #include <QCalendarWidget> 
4
 #include <QCalendarWidget> 
11
 
11
 
12
 #include "daterangeselector.h"
12
 #include "daterangeselector.h"
13
 
13
 
14
-/*704:*/
14
+/*713:*/
15
 #line 115 "./daterangeselector.w"
15
 #line 115 "./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
-/*:704*//*705:*/
58
+/*:713*//*714:*/
59
 #line 163 "./daterangeselector.w"
59
 #line 163 "./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
-/*:705*//*706:*/
66
+/*:714*//*715:*/
67
 #line 172 "./daterangeselector.w"
67
 #line 172 "./daterangeselector.w"
68
 
68
 
69
 void CustomDateRangePopup::applyRange()
69
 void CustomDateRangePopup::applyRange()
78
 hide();
78
 hide();
79
 }
79
 }
80
 
80
 
81
-/*:706*//*707:*/
81
+/*:715*//*716:*/
82
 #line 189 "./daterangeselector.w"
82
 #line 189 "./daterangeselector.w"
83
 
83
 
84
 void CustomDateRangePopup::validateRange()
84
 void CustomDateRangePopup::validateRange()
93
 }
93
 }
94
 }
94
 }
95
 
95
 
96
-/*:707*/
96
+/*:716*/
97
 #line 81 "./daterangeselector.w"
97
 #line 81 "./daterangeselector.w"
98
 
98
 
99
-/*708:*/
99
+/*717:*/
100
 #line 207 "./daterangeselector.w"
100
 #line 207 "./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
-/*709:*/
111
+/*718:*/
112
 #line 236 "./daterangeselector.w"
112
 #line 236 "./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
-/*:709*/
191
+/*:718*/
192
 #line 217 "./daterangeselector.w"
192
 #line 217 "./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
-/*:708*//*710:*/
204
+/*:717*//*719:*/
205
 #line 319 "./daterangeselector.w"
205
 #line 319 "./daterangeselector.w"
206
 
206
 
207
 void DateRangeSelector::updateRange(int index)
207
 void DateRangeSelector::updateRange(int index)
217
 }
217
 }
218
 }
218
 }
219
 
219
 
220
-/*:710*//*711:*/
220
+/*:719*//*720:*/
221
 #line 336 "./daterangeselector.w"
221
 #line 336 "./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
-/*:711*//*712:*/
230
+/*:720*//*721:*/
231
 #line 347 "./daterangeselector.w"
231
 #line 347 "./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
-/*:712*//*713:*/
241
+/*:721*//*722:*/
242
 #line 362 "./daterangeselector.w"
242
 #line 362 "./daterangeselector.w"
243
 
243
 
244
 void DateRangeSelector::toggleCustom()
244
 void DateRangeSelector::toggleCustom()
279
 }
279
 }
280
 }
280
 }
281
 
281
 
282
-/*:713*//*714:*/
282
+/*:722*//*723:*/
283
 #line 404 "./daterangeselector.w"
283
 #line 404 "./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
-/*:714*//*715:*/
290
+/*:723*//*724:*/
291
 #line 412 "./daterangeselector.w"
291
 #line 412 "./daterangeselector.w"
292
 
292
 
293
 void DateRangeSelector::setCurrentIndex(int index)
293
 void DateRangeSelector::setCurrentIndex(int index)
300
 return quickSelector->currentIndex();
300
 return quickSelector->currentIndex();
301
 }
301
 }
302
 
302
 
303
-/*:715*//*716:*/
303
+/*:724*//*725:*/
304
 #line 432 "./daterangeselector.w"
304
 #line 432 "./daterangeselector.w"
305
 
305
 
306
 void DateRangeSelector::setLifetimeRange(QString startDate,QString endDate)
306
 void DateRangeSelector::setLifetimeRange(QString startDate,QString endDate)
309
 QVariant(QStringList()<<startDate<<endDate));
309
 QVariant(QStringList()<<startDate<<endDate));
310
 }
310
 }
311
 
311
 
312
-/*:716*//*717:*/
312
+/*:725*//*726:*/
313
 #line 442 "./daterangeselector.w"
313
 #line 442 "./daterangeselector.w"
314
 
314
 
315
 void DateRangeSelector::removeIndex(int index)
315
 void DateRangeSelector::removeIndex(int index)
317
 quickSelector->removeItem(index);
317
 quickSelector->removeItem(index);
318
 }
318
 }
319
 
319
 
320
-/*:717*/
320
+/*:726*/
321
 #line 82 "./daterangeselector.w"
321
 #line 82 "./daterangeselector.w"
322
 
322
 
323
 
323
 
325
 #include "moc_daterangeselector.cpp"
325
 #include "moc_daterangeselector.cpp"
326
 #endif
326
 #endif
327
 
327
 
328
-/*:702*/
328
+/*:711*/

+ 4
- 4
src/daterangeselector.h View File

1
-/*701:*/
1
+/*710:*/
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
-/*703:*/
12
+/*712:*/
13
 #line 91 "./daterangeselector.w"
13
 #line 91 "./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
-/*:703*/
34
+/*:712*/
35
 #line 39 "./daterangeselector.w"
35
 #line 39 "./daterangeselector.w"
36
 
36
 
37
 
37
 
62
 
62
 
63
 #endif
63
 #endif
64
 
64
 
65
-/*:701*/
65
+/*:710*/

+ 2
- 2
src/draglabel.cpp View File

1
-/*1097:*/
1
+/*1106:*/
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
-/*:1097*/
29
+/*:1106*/

+ 2
- 2
src/draglabel.h View File

1
-/*1096:*/
1
+/*1105:*/
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
-/*:1096*/
20
+/*:1105*/

+ 7
- 7
src/helpmenu.cpp View File

1
-/*208:*/
1
+/*214:*/
2
 #line 36 "./helpmenu.w"
2
 #line 36 "./helpmenu.w"
3
 
3
 
4
 #include "helpmenu.h"
4
 #include "helpmenu.h"
5
 #include "abouttypica.h"
5
 #include "abouttypica.h"
6
 #include "licensewindow.h"
6
 #include "licensewindow.h"
7
 
7
 
8
-/*209:*/
8
+/*215:*/
9
 #line 46 "./helpmenu.w"
9
 #line 46 "./helpmenu.w"
10
 
10
 
11
 HelpMenu::HelpMenu():QMenu()
11
 HelpMenu::HelpMenu():QMenu()
24
 
24
 
25
 }
25
 }
26
 
26
 
27
-/*:209*//*210:*/
27
+/*:215*//*216:*/
28
 #line 66 "./helpmenu.w"
28
 #line 66 "./helpmenu.w"
29
 
29
 
30
 void HelpMenu::displayAboutTypica()
30
 void HelpMenu::displayAboutTypica()
33
 aboutBox->show();
33
 aboutBox->show();
34
 }
34
 }
35
 
35
 
36
-/*:210*//*211:*/
36
+/*:216*//*217:*/
37
 #line 76 "./helpmenu.w"
37
 #line 76 "./helpmenu.w"
38
 
38
 
39
 void HelpMenu::displayLicenseWindow()
39
 void HelpMenu::displayLicenseWindow()
42
 window->show();
42
 window->show();
43
 }
43
 }
44
 
44
 
45
-#line 4914 "./typica.w"
45
+#line 4962 "./typica.w"
46
 
46
 
47
 #line 1 "./licensewindow.w"
47
 #line 1 "./licensewindow.w"
48
-/*:211*/
48
+/*:217*/
49
 #line 41 "./helpmenu.w"
49
 #line 41 "./helpmenu.w"
50
 
50
 
51
 
51
 
52
-/*:208*/
52
+/*:214*/

+ 2
- 2
src/helpmenu.h View File

1
-/*207:*/
1
+/*213:*/
2
 #line 16 "./helpmenu.w"
2
 #line 16 "./helpmenu.w"
3
 
3
 
4
 #include <QMenu> 
4
 #include <QMenu> 
18
 
18
 
19
 #endif
19
 #endif
20
 
20
 
21
-/*:207*/
21
+/*:213*/

+ 11
- 13
src/licensewindow.cpp View File

1
-/*213:*/
1
+/*219:*/
2
 #line 36 "./licensewindow.w"
2
 #line 36 "./licensewindow.w"
3
 
3
 
4
-/*217:*/
5
-#line 99 "./licensewindow.w"
4
+/*223:*/
5
+#line 97 "./licensewindow.w"
6
 
6
 
7
 #include "licensewindow.h"
7
 #include "licensewindow.h"
8
 
8
 
11
 #include <QVariant> 
11
 #include <QVariant> 
12
 #include <QUrl> 
12
 #include <QUrl> 
13
 
13
 
14
-#line 4916 "./typica.w"
14
+#line 4964 "./typica.w"
15
 
15
 
16
-/*:217*/
16
+/*:223*/
17
 #line 37 "./licensewindow.w"
17
 #line 37 "./licensewindow.w"
18
 
18
 
19
-/*214:*/
19
+/*220:*/
20
 #line 43 "./licensewindow.w"
20
 #line 43 "./licensewindow.w"
21
 
21
 
22
 LicenseWindow::LicenseWindow()
22
 LicenseWindow::LicenseWindow()
25
 QSplitter*split= new QSplitter;
25
 QSplitter*split= new QSplitter;
26
 QListWidget*projects= new QListWidget;
26
 QListWidget*projects= new QListWidget;
27
 
27
 
28
-/*216:*/
28
+/*222:*/
29
 #line 79 "./licensewindow.w"
29
 #line 79 "./licensewindow.w"
30
 
30
 
31
 QListWidgetItem*item= new QListWidgetItem("Typica",projects);
31
 QListWidgetItem*item= new QListWidgetItem("Typica",projects);
34
 setWebView(item,NULL);
34
 setWebView(item,NULL);
35
 item= new QListWidgetItem("d3.js",projects);
35
 item= new QListWidgetItem("d3.js",projects);
36
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/d3.html")));
36
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/d3.html")));
37
-item= new QListWidgetItem("Entypo",projects);
38
-item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/entypo.html")));
39
 item= new QListWidgetItem("Tango Desktop Project",projects);
37
 item= new QListWidgetItem("Tango Desktop Project",projects);
40
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/tango.html")));
38
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/tango.html")));
41
 item= new QListWidgetItem("QextSerialPort",projects);
39
 item= new QListWidgetItem("QextSerialPort",projects);
45
 item= new QListWidgetItem("Qt",projects);
43
 item= new QListWidgetItem("Qt",projects);
46
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/qt.html")));
44
 item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/qt.html")));
47
 
45
 
48
-/*:216*/
46
+/*:222*/
49
 #line 50 "./licensewindow.w"
47
 #line 50 "./licensewindow.w"
50
 
48
 
51
 connect(projects,SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
49
 connect(projects,SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
56
 setCentralWidget(split);
54
 setCentralWidget(split);
57
 }
55
 }
58
 
56
 
59
-/*:214*//*215:*/
57
+/*:220*//*221:*/
60
 #line 64 "./licensewindow.w"
58
 #line 64 "./licensewindow.w"
61
 
59
 
62
 void LicenseWindow::setWebView(QListWidgetItem*current,QListWidgetItem*)
60
 void LicenseWindow::setWebView(QListWidgetItem*current,QListWidgetItem*)
64
 view->load(current->data(Qt::UserRole).toUrl());
62
 view->load(current->data(Qt::UserRole).toUrl());
65
 }
63
 }
66
 
64
 
67
-/*:215*/
65
+/*:221*/
68
 #line 38 "./licensewindow.w"
66
 #line 38 "./licensewindow.w"
69
 
67
 
70
 
68
 
71
-/*:213*/
69
+/*:219*/

+ 2
- 2
src/licensewindow.h View File

1
-/*212:*/
1
+/*218:*/
2
 #line 13 "./licensewindow.w"
2
 #line 13 "./licensewindow.w"
3
 
3
 
4
 #include <QMainWindow> 
4
 #include <QMainWindow> 
21
 
21
 
22
 #endif
22
 #endif
23
 
23
 
24
-/*:212*/
24
+/*:218*/

+ 4
- 4
src/printerselector.cpp View File

1
-/*591:*/
1
+/*600:*/
2
 #line 45 "./printerselector.w"
2
 #line 45 "./printerselector.w"
3
 
3
 
4
 #include "printerselector.h"
4
 #include "printerselector.h"
5
 
5
 
6
-/*592:*/
6
+/*601:*/
7
 #line 53 "./printerselector.w"
7
 #line 53 "./printerselector.w"
8
 
8
 
9
 PrinterSelector::PrinterSelector():QComboBox(NULL)
9
 PrinterSelector::PrinterSelector():QComboBox(NULL)
15
 }
15
 }
16
 }
16
 }
17
 
17
 
18
-/*:592*/
18
+/*:601*/
19
 #line 48 "./printerselector.w"
19
 #line 48 "./printerselector.w"
20
 
20
 
21
 
21
 
22
-/*:591*/
22
+/*:600*/

+ 2
- 2
src/printerselector.h View File

1
-/*589:*/
1
+/*598:*/
2
 #line 22 "./printerselector.w"
2
 #line 22 "./printerselector.w"
3
 
3
 
4
 #include <QPrinterInfo> 
4
 #include <QPrinterInfo> 
16
 
16
 
17
 #endif
17
 #endif
18
 
18
 
19
-/*:589*/
19
+/*:598*/

+ 6
- 6
src/scale.cpp View File

1
-/*1103:*/
1
+/*1112:*/
2
 #line 135 "./scales.w"
2
 #line 135 "./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
-/*:1103*//*1104:*/
13
+/*:1112*//*1113:*/
14
 #line 153 "./scales.w"
14
 #line 153 "./scales.w"
15
 
15
 
16
 void SerialScale::dataAvailable()
16
 void SerialScale::dataAvailable()
24
 }
24
 }
25
 else
25
 else
26
 {
26
 {
27
-/*1105:*/
27
+/*1114:*/
28
 #line 193 "./scales.w"
28
 #line 193 "./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
-/*:1105*/
56
+/*:1114*/
57
 #line 165 "./scales.w"
57
 #line 165 "./scales.w"
58
 
58
 
59
 responseBuffer.clear();
59
 responseBuffer.clear();
61
 }
61
 }
62
 }
62
 }
63
 
63
 
64
-/*:1104*//*1106:*/
64
+/*:1113*//*1115:*/
65
 #line 224 "./scales.w"
65
 #line 224 "./scales.w"
66
 
66
 
67
 void SerialScale::tare()
67
 void SerialScale::tare()
96
 }
96
 }
97
 }
97
 }
98
 
98
 
99
-/*:1106*/
99
+/*:1115*/

+ 2
- 2
src/scale.h View File

1
-/*1102:*/
1
+/*1111:*/
2
 #line 103 "./scales.w"
2
 #line 103 "./scales.w"
3
 
3
 
4
 #ifndef TypicaScaleInclude
4
 #ifndef TypicaScaleInclude
29
 
29
 
30
 #endif
30
 #endif
31
 
31
 
32
-/*:1102*/
32
+/*:1111*/

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


+ 6
- 6
src/units.cpp View File

1
-/*292:*/
1
+/*299:*/
2
 #line 42 "./units.w"
2
 #line 42 "./units.w"
3
 
3
 
4
 #include "units.h"
4
 #include "units.h"
5
 #include <QtDebug> 
5
 #include <QtDebug> 
6
 
6
 
7
-/*:292*//*293:*/
7
+/*:299*//*300:*/
8
 #line 53 "./units.w"
8
 #line 53 "./units.w"
9
 
9
 
10
 bool Units::isTemperatureUnit(Unit unit)
10
 bool Units::isTemperatureUnit(Unit unit)
15
 unit==Rankine);
15
 unit==Rankine);
16
 }
16
 }
17
 
17
 
18
-/*:293*//*294:*/
18
+/*:300*//*301:*/
19
 #line 71 "./units.w"
19
 #line 71 "./units.w"
20
 
20
 
21
 double Units::convertTemperature(double value,Unit fromUnit,Unit toUnit)
21
 double Units::convertTemperature(double value,Unit fromUnit,Unit toUnit)
113
 return 0;
113
 return 0;
114
 }
114
 }
115
 
115
 
116
-/*:294*//*295:*/
116
+/*:301*//*302:*/
117
 #line 169 "./units.w"
117
 #line 169 "./units.w"
118
 
118
 
119
 double Units::convertRelativeTemperature(double value,Unit fromUnit,Unit toUnit)
119
 double Units::convertRelativeTemperature(double value,Unit fromUnit,Unit toUnit)
211
 return 0;
211
 return 0;
212
 }
212
 }
213
 
213
 
214
-/*:295*//*296:*/
214
+/*:302*//*303:*/
215
 #line 267 "./units.w"
215
 #line 267 "./units.w"
216
 
216
 
217
 double Units::convertWeight(double value,Unit fromUnit,Unit toUnit)
217
 double Units::convertWeight(double value,Unit fromUnit,Unit toUnit)
316
 unit==Gram);
316
 unit==Gram);
317
 }
317
 }
318
 
318
 
319
-/*:296*/
319
+/*:303*/

+ 2
- 2
src/units.h View File

1
-/*291:*/
1
+/*298:*/
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
-/*:291*/
35
+/*:298*/

+ 5
- 5
src/webelement.cpp View File

1
-/*587:*/
1
+/*596:*/
2
 #line 388 "./webview.w"
2
 #line 388 "./webview.w"
3
 
3
 
4
 #include "webelement.h"
4
 #include "webelement.h"
5
 
5
 
6
-/*585:*/
6
+/*594:*/
7
 #line 331 "./webview.w"
7
 #line 331 "./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
-/*:585*//*586:*/
14
+/*:594*//*595:*/
15
 #line 340 "./webview.w"
15
 #line 340 "./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
-/*:586*/
62
+/*:595*/
63
 #line 391 "./webview.w"
63
 #line 391 "./webview.w"
64
 
64
 
65
 
65
 
66
-/*:587*/
66
+/*:596*/

+ 2
- 2
src/webelement.h View File

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

+ 12
- 12
src/webview.cpp View File

1
-/*564:*/
1
+/*573:*/
2
 #line 50 "./webview.w"
2
 #line 50 "./webview.w"
3
 
3
 
4
 #include "webview.h"
4
 #include "webview.h"
5
 
5
 
6
-/*565:*/
6
+/*574:*/
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
-/*:565*//*566:*/
15
+/*:574*//*575:*/
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
-/*567:*/
23
+/*576:*/
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
-/*:567*/
32
+/*:576*/
33
 #line 79 "./webview.w"
33
 #line 79 "./webview.w"
34
 
34
 
35
-/*568:*/
35
+/*577:*/
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
-/*:568*/
44
+/*:577*/
45
 #line 80 "./webview.w"
45
 #line 80 "./webview.w"
46
 
46
 
47
 }
47
 }
51
 }
51
 }
52
 }
52
 }
53
 
53
 
54
-/*:566*//*569:*/
54
+/*:575*//*578:*/
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)
78
 return page()->currentFrame()->documentElement().toOuterXml();
78
 return page()->currentFrame()->documentElement().toOuterXml();
79
 }
79
 }
80
 
80
 
81
-/*:569*//*570:*/
81
+/*:578*//*579:*/
82
 #line 144 "./webview.w"
82
 #line 144 "./webview.w"
83
 
83
 
84
 void TypicaWebView::print(const QString&printerName)
84
 void TypicaWebView::print(const QString&printerName)
98
 }
98
 }
99
 }
99
 }
100
 
100
 
101
-/*:570*//*576:*/
101
+/*:579*//*585:*/
102
 #line 225 "./webview.w"
102
 #line 225 "./webview.w"
103
 
103
 
104
 QWebElement TypicaWebView::documentElement()
104
 QWebElement TypicaWebView::documentElement()
111
 return page()->mainFrame()->findFirstElement(selector);
111
 return page()->mainFrame()->findFirstElement(selector);
112
 }
112
 }
113
 
113
 
114
-/*:576*/
114
+/*:585*/
115
 #line 53 "./webview.w"
115
 #line 53 "./webview.w"
116
 
116
 
117
 
117
 
118
-/*:564*/
118
+/*:573*/

+ 2
- 2
src/webview.h View File

1
-/*563:*/
1
+/*572:*/
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
-/*:563*/
37
+/*:572*/

Loading…
Cancel
Save