Merge lp:~daniel-stehn/forssim/touchscreen_numericpad_merge into lp:forssim
- touchscreen_numericpad_merge
- Merge into development
Proposed by
Daniel Stehn
Status: | Needs review |
---|---|
Proposed branch: | lp:~daniel-stehn/forssim/touchscreen_numericpad_merge |
Merge into: | lp:forssim |
Diff against target: |
864 lines (+538/-230) 3 files modified
FsWisdom/RegisterUserWindow.cpp (+126/-0) FsWisdom/RegisterUserWindow.h (+20/-1) FsWisdom/RegisterUserWindow.ui (+392/-229) |
To merge this branch: | bzr merge lp:~daniel-stehn/forssim/touchscreen_numericpad_merge |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Flodin | Needs Information | ||
Review via email: mp+16008@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Martin Flodin (mflodin) wrote : | # |
Has anything changed in FsWisdom/
review:
Needs Information
Revision history for this message
Daniel Stehn (daniel-stehn) wrote : | # |
I simply took the RegisterUserWin
Revision history for this message
Martin Flodin (mflodin) wrote : | # |
I figured as much, but thought I'd check. It's sad that the diff can't show exactly where the change is, but instead shows the entire row (or even section) as changed.
Just a thought - perhaps we should change the "Del" to "Clear" or "Clr" since that's what it actually does.
Otherwise everything looks good, and works a lot better than the old implementation.
Unmerged revisions
- 357. By Daniel Stehn
-
merged with touchscreenUI numericpad
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'FsWisdom/RegisterUserWindow.cpp' | |||
2 | --- FsWisdom/RegisterUserWindow.cpp 2009-11-05 09:43:32 +0000 | |||
3 | +++ FsWisdom/RegisterUserWindow.cpp 2009-12-11 10:13:12 +0000 | |||
4 | @@ -8,15 +8,33 @@ | |||
5 | 8 | { | 8 | { |
6 | 9 | this->applicationNode = applicationNode; | 9 | this->applicationNode = applicationNode; |
7 | 10 | ui.setupUi(this); | 10 | ui.setupUi(this); |
8 | 11 | m_bUserNameIsActive = true; | ||
9 | 11 | 12 | ||
10 | 12 | 13 | ||
11 | 13 | QObject::connect(ui.buttonBox, SIGNAL(rejected ()), applicationNode, SLOT(Quit())); | 14 | QObject::connect(ui.buttonBox, SIGNAL(rejected ()), applicationNode, SLOT(Quit())); |
12 | 14 | QObject::connect(ui.buttonBox, SIGNAL(accepted ()), applicationNode, SLOT(OnAcceptUserData())); | 15 | QObject::connect(ui.buttonBox, SIGNAL(accepted ()), applicationNode, SLOT(OnAcceptUserData())); |
13 | 15 | QObject::connect(ui.usernameLineEdit, SIGNAL(returnPressed ()), applicationNode, SLOT(OnAcceptUserData())); | 16 | QObject::connect(ui.usernameLineEdit, SIGNAL(returnPressed ()), applicationNode, SLOT(OnAcceptUserData())); |
14 | 16 | QObject::connect(ui.passwordLineEdit, SIGNAL(returnPressed ()), applicationNode, SLOT(OnAcceptUserData())); | 17 | QObject::connect(ui.passwordLineEdit, SIGNAL(returnPressed ()), applicationNode, SLOT(OnAcceptUserData())); |
15 | 18 | QObject::connect(ui.pushButton_1, SIGNAL(clicked ()), this, SLOT(ConsumeButton1())); | ||
16 | 19 | QObject::connect(ui.pushButton_2, SIGNAL(clicked ()), this, SLOT(ConsumeButton2())); | ||
17 | 20 | QObject::connect(ui.pushButton_3, SIGNAL(clicked ()), this, SLOT(ConsumeButton3())); | ||
18 | 21 | QObject::connect(ui.pushButton_4, SIGNAL(clicked ()), this, SLOT(ConsumeButton4())); | ||
19 | 22 | QObject::connect(ui.pushButton_5, SIGNAL(clicked ()), this, SLOT(ConsumeButton5())); | ||
20 | 23 | QObject::connect(ui.pushButton_6, SIGNAL(clicked ()), this, SLOT(ConsumeButton6())); | ||
21 | 24 | QObject::connect(ui.pushButton_7, SIGNAL(clicked ()), this, SLOT(ConsumeButton7())); | ||
22 | 25 | QObject::connect(ui.pushButton_8, SIGNAL(clicked ()), this, SLOT(ConsumeButton8())); | ||
23 | 26 | QObject::connect(ui.pushButton_9, SIGNAL(clicked ()), this, SLOT(ConsumeButton9())); | ||
24 | 27 | QObject::connect(ui.pushButton_0, SIGNAL(clicked ()), this, SLOT(ConsumeButton0())); | ||
25 | 28 | QObject::connect(ui.pushButton_Del, SIGNAL(clicked ()), this, SLOT(ConsumeButtonDel())); | ||
26 | 29 | QObject::connect(ui.pushButton_U, SIGNAL(clicked ()), this, SLOT(ConsumeButtonU())); | ||
27 | 30 | QObject::connect(static_cast<QApplication *>(QCoreApplication::instance()), | ||
28 | 31 | SIGNAL(focusChanged (QWidget *, QWidget *)), this, SLOT(OnFocusChanged(QWidget *, QWidget *))); | ||
29 | 32 | |||
30 | 17 | string temp = "v"; | 33 | string temp = "v"; |
31 | 18 | temp = temp + PRODUCTVER; | 34 | temp = temp + PRODUCTVER; |
32 | 19 | ui.versionNo->setText(QString(temp.c_str())); | 35 | ui.versionNo->setText(QString(temp.c_str())); |
33 | 36 | ui.usernameLineEdit->setFocus(); | ||
34 | 37 | |||
35 | 20 | } | 38 | } |
36 | 21 | 39 | ||
37 | 22 | RegisterUserWindow::~RegisterUserWindow() | 40 | RegisterUserWindow::~RegisterUserWindow() |
38 | @@ -25,6 +43,21 @@ | |||
39 | 25 | QObject::disconnect(ui.buttonBox, SIGNAL(accepted ())); | 43 | QObject::disconnect(ui.buttonBox, SIGNAL(accepted ())); |
40 | 26 | QObject::disconnect(ui.usernameLineEdit, SIGNAL(returnPressed ())); | 44 | QObject::disconnect(ui.usernameLineEdit, SIGNAL(returnPressed ())); |
41 | 27 | 45 | ||
42 | 46 | QObject::disconnect(ui.pushButton_1, SIGNAL(clicked ())); | ||
43 | 47 | QObject::disconnect(ui.pushButton_2, SIGNAL(clicked ())); | ||
44 | 48 | QObject::disconnect(ui.pushButton_3, SIGNAL(clicked ())); | ||
45 | 49 | QObject::disconnect(ui.pushButton_4, SIGNAL(clicked ())); | ||
46 | 50 | QObject::disconnect(ui.pushButton_5, SIGNAL(clicked ())); | ||
47 | 51 | QObject::disconnect(ui.pushButton_6, SIGNAL(clicked ())); | ||
48 | 52 | QObject::disconnect(ui.pushButton_7, SIGNAL(clicked ())); | ||
49 | 53 | QObject::disconnect(ui.pushButton_8, SIGNAL(clicked ())); | ||
50 | 54 | QObject::disconnect(ui.pushButton_9, SIGNAL(clicked ())); | ||
51 | 55 | QObject::disconnect(ui.pushButton_0, SIGNAL(clicked ())); | ||
52 | 56 | QObject::disconnect(ui.pushButton_Del, SIGNAL(clicked ())); | ||
53 | 57 | QObject::disconnect(ui.pushButton_U, SIGNAL(clicked ())); | ||
54 | 58 | QObject::disconnect(static_cast<QApplication *>(QCoreApplication::instance()), | ||
55 | 59 | SIGNAL(focusChanged (QWidget *, QWidget *))); | ||
56 | 60 | |||
57 | 28 | cout << "Destroying RegisterUserWindow"<<endl; | 61 | cout << "Destroying RegisterUserWindow"<<endl; |
58 | 29 | } | 62 | } |
59 | 30 | 63 | ||
60 | @@ -84,4 +117,97 @@ | |||
61 | 84 | rPassword = ui.passwordLineEdit->text(); | 117 | rPassword = ui.passwordLineEdit->text(); |
62 | 85 | } | 118 | } |
63 | 86 | 119 | ||
64 | 120 | void RegisterUserWindow::ConsumeButton1() | ||
65 | 121 | { | ||
66 | 122 | AddChar("1"); | ||
67 | 123 | } | ||
68 | 124 | |||
69 | 125 | void RegisterUserWindow::ConsumeButton2() | ||
70 | 126 | { | ||
71 | 127 | AddChar("2"); | ||
72 | 128 | } | ||
73 | 129 | |||
74 | 130 | void RegisterUserWindow::ConsumeButton3() | ||
75 | 131 | { | ||
76 | 132 | AddChar("3"); | ||
77 | 133 | } | ||
78 | 134 | |||
79 | 135 | void RegisterUserWindow::ConsumeButton4() | ||
80 | 136 | { | ||
81 | 137 | AddChar("4"); | ||
82 | 138 | } | ||
83 | 139 | |||
84 | 140 | void RegisterUserWindow::ConsumeButton5() | ||
85 | 141 | { | ||
86 | 142 | AddChar("5"); | ||
87 | 143 | } | ||
88 | 144 | |||
89 | 145 | void RegisterUserWindow::ConsumeButton6() | ||
90 | 146 | { | ||
91 | 147 | AddChar("6"); | ||
92 | 148 | } | ||
93 | 149 | |||
94 | 150 | void RegisterUserWindow::ConsumeButton7() | ||
95 | 151 | { | ||
96 | 152 | AddChar("7"); | ||
97 | 153 | } | ||
98 | 154 | |||
99 | 155 | void RegisterUserWindow::ConsumeButton8() | ||
100 | 156 | { | ||
101 | 157 | AddChar("8"); | ||
102 | 158 | } | ||
103 | 159 | |||
104 | 160 | void RegisterUserWindow::ConsumeButton9() | ||
105 | 161 | { | ||
106 | 162 | AddChar("9"); | ||
107 | 163 | } | ||
108 | 164 | |||
109 | 165 | void RegisterUserWindow::ConsumeButton0() | ||
110 | 166 | { | ||
111 | 167 | AddChar("0"); | ||
112 | 168 | } | ||
113 | 169 | |||
114 | 170 | void RegisterUserWindow::ConsumeButtonU() | ||
115 | 171 | { | ||
116 | 172 | AddChar("u"); | ||
117 | 173 | } | ||
118 | 174 | |||
119 | 175 | |||
120 | 176 | void RegisterUserWindow::ConsumeButtonDel() | ||
121 | 177 | { | ||
122 | 178 | if( m_bUserNameIsActive == true ) | ||
123 | 179 | { | ||
124 | 180 | ui.usernameLineEdit->setText(""); | ||
125 | 181 | } | ||
126 | 182 | else | ||
127 | 183 | { | ||
128 | 184 | ui.passwordLineEdit->setText(""); | ||
129 | 185 | } | ||
130 | 186 | } | ||
131 | 187 | |||
132 | 188 | |||
133 | 189 | void RegisterUserWindow::OnFocusChanged( QWidget * pOld, QWidget * pNow ) | ||
134 | 190 | { | ||
135 | 191 | if( pNow == ui.usernameLineEdit ) | ||
136 | 192 | { | ||
137 | 193 | m_bUserNameIsActive = true; | ||
138 | 194 | } | ||
139 | 195 | else if( pNow == ui.passwordLineEdit ) | ||
140 | 196 | { | ||
141 | 197 | m_bUserNameIsActive = false; | ||
142 | 198 | } | ||
143 | 199 | } | ||
144 | 200 | |||
145 | 201 | void RegisterUserWindow::AddChar(QString c) | ||
146 | 202 | { | ||
147 | 203 | if( m_bUserNameIsActive == true ) | ||
148 | 204 | { | ||
149 | 205 | ui.usernameLineEdit->setText(ui.usernameLineEdit->text() + c); | ||
150 | 206 | } | ||
151 | 207 | else | ||
152 | 208 | { | ||
153 | 209 | ui.passwordLineEdit->setText(ui.passwordLineEdit->text() + c); | ||
154 | 210 | } | ||
155 | 211 | } | ||
156 | 212 | |||
157 | 87 | 213 | ||
158 | 88 | 214 | ||
159 | === modified file 'FsWisdom/RegisterUserWindow.h' | |||
160 | --- FsWisdom/RegisterUserWindow.h 2009-11-05 09:43:32 +0000 | |||
161 | +++ FsWisdom/RegisterUserWindow.h 2009-12-11 10:13:12 +0000 | |||
162 | @@ -18,6 +18,9 @@ | |||
163 | 18 | public: | 18 | public: |
164 | 19 | RegisterUserWindow(ApplicationNode *applicationNode, QWidget* parent = 0); | 19 | RegisterUserWindow(ApplicationNode *applicationNode, QWidget* parent = 0); |
165 | 20 | ~RegisterUserWindow(); | 20 | ~RegisterUserWindow(); |
166 | 21 | |||
167 | 22 | void AddChar(QString c); | ||
168 | 23 | |||
169 | 21 | void showFullScreenAndClear(); | 24 | void showFullScreenAndClear(); |
170 | 22 | void GetLoginCredentials( QString& rUsername, QString& rPassword ); | 25 | void GetLoginCredentials( QString& rUsername, QString& rPassword ); |
171 | 23 | void AskForCredentials(); | 26 | void AskForCredentials(); |
172 | @@ -31,12 +34,28 @@ | |||
173 | 31 | * Checks that the user has entered their name correctly and if so returns control to | 34 | * Checks that the user has entered their name correctly and if so returns control to |
174 | 32 | * the application node via a call to its RegisterUser function | 35 | * the application node via a call to its RegisterUser function |
175 | 33 | */ | 36 | */ |
177 | 34 | //void AcceptUserData(); | 37 | void ConsumeButton1(); |
178 | 38 | void ConsumeButton2(); | ||
179 | 39 | void ConsumeButton3(); | ||
180 | 40 | void ConsumeButton4(); | ||
181 | 41 | void ConsumeButton5(); | ||
182 | 42 | void ConsumeButton6(); | ||
183 | 43 | void ConsumeButton7(); | ||
184 | 44 | void ConsumeButton8(); | ||
185 | 45 | void ConsumeButton9(); | ||
186 | 46 | void ConsumeButton0(); | ||
187 | 47 | void ConsumeButtonU(); | ||
188 | 48 | void ConsumeButtonDel(); | ||
189 | 49 | |||
190 | 50 | void OnFocusChanged( QWidget*,QWidget* ); | ||
191 | 51 | |||
192 | 35 | 52 | ||
193 | 36 | private: | 53 | private: |
194 | 37 | void enableButtons(bool bEnable); | 54 | void enableButtons(bool bEnable); |
195 | 38 | Ui::RegisterUserWindowClass ui; | 55 | Ui::RegisterUserWindowClass ui; |
196 | 39 | ApplicationNode* applicationNode; | 56 | ApplicationNode* applicationNode; |
197 | 57 | bool m_bUserNameIsActive; | ||
198 | 58 | |||
199 | 40 | }; | 59 | }; |
200 | 41 | 60 | ||
201 | 42 | } | 61 | } |
202 | 43 | 62 | ||
203 | === modified file 'FsWisdom/RegisterUserWindow.ui' | |||
204 | --- FsWisdom/RegisterUserWindow.ui 2009-08-14 10:57:29 +0000 | |||
205 | +++ FsWisdom/RegisterUserWindow.ui 2009-12-11 10:13:12 +0000 | |||
206 | @@ -1,7 +1,8 @@ | |||
208 | 1 | <ui version="4.0" > | 1 | <?xml version="1.0" encoding="UTF-8"?> |
209 | 2 | <ui version="4.0"> | ||
210 | 2 | <class>RegisterUserWindowClass</class> | 3 | <class>RegisterUserWindowClass</class> |
213 | 3 | <widget class="QMainWindow" name="RegisterUserWindowClass" > | 4 | <widget class="QMainWindow" name="RegisterUserWindowClass"> |
214 | 4 | <property name="geometry" > | 5 | <property name="geometry"> |
215 | 5 | <rect> | 6 | <rect> |
216 | 6 | <x>0</x> | 7 | <x>0</x> |
217 | 7 | <y>0</y> | 8 | <y>0</y> |
218 | @@ -9,19 +10,19 @@ | |||
219 | 9 | <height>600</height> | 10 | <height>600</height> |
220 | 10 | </rect> | 11 | </rect> |
221 | 11 | </property> | 12 | </property> |
223 | 12 | <property name="windowTitle" > | 13 | <property name="windowTitle"> |
224 | 13 | <string>MainWindow</string> | 14 | <string>MainWindow</string> |
225 | 14 | </property> | 15 | </property> |
228 | 15 | <widget class="QWidget" name="centralwidget" > | 16 | <widget class="QWidget" name="centralwidget"> |
229 | 16 | <layout class="QHBoxLayout" name="horizontalLayout_2" > | 17 | <layout class="QHBoxLayout" name="horizontalLayout_2"> |
230 | 17 | <item> | 18 | <item> |
232 | 18 | <layout class="QVBoxLayout" name="verticalLayout" > | 19 | <layout class="QVBoxLayout" name="verticalLayout"> |
233 | 19 | <item> | 20 | <item> |
236 | 20 | <spacer name="verticalSpacer_3" > | 21 | <spacer name="verticalSpacer_3"> |
237 | 21 | <property name="orientation" > | 22 | <property name="orientation"> |
238 | 22 | <enum>Qt::Vertical</enum> | 23 | <enum>Qt::Vertical</enum> |
239 | 23 | </property> | 24 | </property> |
241 | 24 | <property name="sizeHint" stdset="0" > | 25 | <property name="sizeHint" stdset="0"> |
242 | 25 | <size> | 26 | <size> |
243 | 26 | <width>20</width> | 27 | <width>20</width> |
244 | 27 | <height>40</height> | 28 | <height>40</height> |
245 | @@ -30,229 +31,374 @@ | |||
246 | 30 | </spacer> | 31 | </spacer> |
247 | 31 | </item> | 32 | </item> |
248 | 32 | <item> | 33 | <item> |
253 | 33 | <widget class="QLabel" name="label" > | 34 | <widget class="QLabel" name="label"> |
254 | 34 | <property name="text" > | 35 | <property name="text"> |
255 | 35 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | 36 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
256 | 36 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | 37 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
257 | 37 | p, li { white-space: pre-wrap; } | 38 | p, li { white-space: pre-wrap; } |
261 | 38 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> | 39 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> |
262 | 39 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:28pt;">Welcome to</span></p> | 40 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:28pt;">Welcome to</span></p> |
263 | 40 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:48pt;"><span style=" font-style:italic;">FS</span> Wisdom</p></body></html></string> | 41 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:48pt;"><span style=" font-style:italic;">FS</span> Wisdom</p></body></html></string> |
264 | 41 | </property> | 42 | </property> |
265 | 42 | </widget> | 43 | </widget> |
266 | 43 | </item> | 44 | </item> |
267 | 44 | <item> | 45 | <item> |
479 | 45 | <spacer name="verticalSpacer_4" > | 46 | <spacer name="verticalSpacer"> |
480 | 46 | <property name="orientation" > | 47 | <property name="orientation"> |
481 | 47 | <enum>Qt::Vertical</enum> | 48 | <enum>Qt::Vertical</enum> |
482 | 48 | </property> | 49 | </property> |
483 | 49 | <property name="sizeHint" stdset="0" > | 50 | <property name="sizeHint" stdset="0"> |
484 | 50 | <size> | 51 | <size> |
485 | 51 | <width>20</width> | 52 | <width>20</width> |
486 | 52 | <height>40</height> | 53 | <height>40</height> |
487 | 53 | </size> | 54 | </size> |
488 | 54 | </property> | 55 | </property> |
489 | 55 | </spacer> | 56 | </spacer> |
490 | 56 | </item> | 57 | </item> |
491 | 57 | <item> | 58 | <item> |
492 | 58 | <layout class="QHBoxLayout" name="horizontalLayout" > | 59 | <layout class="QGridLayout" name="gridLayout_3"> |
493 | 59 | <item> | 60 | <item row="6" column="2"> |
494 | 60 | <spacer name="horizontalSpacer_4" > | 61 | <widget class="QPushButton" name="pushButton_0"> |
495 | 61 | <property name="orientation" > | 62 | <property name="text"> |
496 | 62 | <enum>Qt::Horizontal</enum> | 63 | <string>0</string> |
497 | 63 | </property> | 64 | </property> |
498 | 64 | <property name="sizeHint" stdset="0" > | 65 | </widget> |
499 | 65 | <size> | 66 | </item> |
500 | 66 | <width>40</width> | 67 | <item row="0" column="3"> |
501 | 67 | <height>20</height> | 68 | <widget class="QPushButton" name="pushButton_3"> |
502 | 68 | </size> | 69 | <property name="text"> |
503 | 69 | </property> | 70 | <string>3</string> |
504 | 70 | </spacer> | 71 | </property> |
505 | 71 | </item> | 72 | </widget> |
506 | 72 | <item> | 73 | </item> |
507 | 73 | <layout class="QVBoxLayout" name="verticalLayout_4" > | 74 | <item row="0" column="2"> |
508 | 74 | <item> | 75 | <widget class="QPushButton" name="pushButton_2"> |
509 | 75 | <spacer name="verticalSpacer" > | 76 | <property name="text"> |
510 | 76 | <property name="orientation" > | 77 | <string>2</string> |
511 | 77 | <enum>Qt::Vertical</enum> | 78 | </property> |
512 | 78 | </property> | 79 | </widget> |
513 | 79 | <property name="sizeHint" stdset="0" > | 80 | </item> |
514 | 80 | <size> | 81 | <item row="3" column="1"> |
515 | 81 | <width>20</width> | 82 | <widget class="QPushButton" name="pushButton_4"> |
516 | 82 | <height>40</height> | 83 | <property name="text"> |
517 | 83 | </size> | 84 | <string>4</string> |
518 | 84 | </property> | 85 | </property> |
519 | 85 | </spacer> | 86 | </widget> |
520 | 86 | </item> | 87 | </item> |
521 | 87 | <item> | 88 | <item row="3" column="2"> |
522 | 88 | <layout class="QGridLayout" name="gridLayout" > | 89 | <widget class="QPushButton" name="pushButton_5"> |
523 | 89 | <property name="rightMargin" > | 90 | <property name="text"> |
524 | 90 | <number>100</number> | 91 | <string>5</string> |
525 | 91 | </property> | 92 | </property> |
526 | 92 | </layout> | 93 | </widget> |
527 | 93 | </item> | 94 | </item> |
528 | 94 | <item> | 95 | <item row="3" column="3"> |
529 | 95 | <layout class="QHBoxLayout" name="horizontalLayout_3" > | 96 | <widget class="QPushButton" name="pushButton_6"> |
530 | 96 | <item> | 97 | <property name="text"> |
531 | 97 | <widget class="QLabel" name="label_4" > | 98 | <string>6</string> |
532 | 98 | <property name="sizePolicy" > | 99 | </property> |
533 | 99 | <sizepolicy vsizetype="Preferred" hsizetype="Preferred" > | 100 | </widget> |
534 | 100 | <horstretch>0</horstretch> | 101 | </item> |
535 | 101 | <verstretch>0</verstretch> | 102 | <item row="5" column="1"> |
536 | 102 | </sizepolicy> | 103 | <widget class="QPushButton" name="pushButton_7"> |
537 | 103 | </property> | 104 | <property name="text"> |
538 | 104 | <property name="text" > | 105 | <string>7</string> |
539 | 105 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | 106 | </property> |
540 | 106 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | 107 | </widget> |
541 | 107 | p, li { white-space: pre-wrap; } | 108 | </item> |
542 | 108 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> | 109 | <item row="5" column="2"> |
543 | 109 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">User name: </span></p></body></html></string> | 110 | <widget class="QPushButton" name="pushButton_8"> |
544 | 110 | </property> | 111 | <property name="text"> |
545 | 111 | </widget> | 112 | <string>8</string> |
546 | 112 | </item> | 113 | </property> |
547 | 113 | <item> | 114 | </widget> |
548 | 114 | <widget class="QLineEdit" name="usernameLineEdit" /> | 115 | </item> |
549 | 115 | </item> | 116 | <item row="5" column="3"> |
550 | 116 | </layout> | 117 | <widget class="QPushButton" name="pushButton_9"> |
551 | 117 | </item> | 118 | <property name="text"> |
552 | 118 | <item> | 119 | <string>9</string> |
553 | 119 | <layout class="QHBoxLayout" name="horizontalLayout_6" > | 120 | </property> |
554 | 120 | <property name="spacing" > | 121 | </widget> |
555 | 121 | <number>17</number> | 122 | </item> |
556 | 122 | </property> | 123 | <item row="6" column="3"> |
557 | 123 | <property name="rightMargin" > | 124 | <widget class="QPushButton" name="pushButton_U"> |
558 | 124 | <number>0</number> | 125 | <property name="maximumSize"> |
559 | 125 | </property> | 126 | <size> |
560 | 126 | <property name="bottomMargin" > | 127 | <width>1024</width> |
561 | 127 | <number>0</number> | 128 | <height>768</height> |
562 | 128 | </property> | 129 | </size> |
563 | 129 | <item> | 130 | </property> |
564 | 130 | <widget class="QLabel" name="label_2" > | 131 | <property name="text"> |
565 | 131 | <property name="text" > | 132 | <string>u</string> |
566 | 132 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | 133 | </property> |
567 | 133 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | 134 | </widget> |
568 | 134 | p, li { white-space: pre-wrap; } | 135 | </item> |
569 | 135 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> | 136 | <item row="6" column="1"> |
570 | 136 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Password:</span></p></body></html></string> | 137 | <widget class="QPushButton" name="pushButton_Del"> |
571 | 137 | </property> | 138 | <property name="text"> |
572 | 138 | </widget> | 139 | <string>Del</string> |
573 | 139 | </item> | 140 | </property> |
574 | 140 | <item> | 141 | </widget> |
575 | 141 | <widget class="QLineEdit" name="passwordLineEdit" > | 142 | </item> |
576 | 142 | <property name="echoMode" > | 143 | <item row="0" column="1"> |
577 | 143 | <enum>QLineEdit::Password</enum> | 144 | <widget class="QPushButton" name="pushButton_1"> |
578 | 144 | </property> | 145 | <property name="text"> |
579 | 145 | </widget> | 146 | <string>1</string> |
580 | 146 | </item> | 147 | </property> |
581 | 147 | </layout> | 148 | </widget> |
582 | 148 | </item> | 149 | </item> |
583 | 149 | <item> | 150 | <item row="3" column="4"> |
584 | 150 | <layout class="QHBoxLayout" name="horizontalLayout_4" > | 151 | <spacer name="horizontalSpacer_6"> |
585 | 151 | <item> | 152 | <property name="orientation"> |
586 | 152 | <spacer name="horizontalSpacer" > | 153 | <enum>Qt::Horizontal</enum> |
587 | 153 | <property name="orientation" > | 154 | </property> |
588 | 154 | <enum>Qt::Horizontal</enum> | 155 | <property name="sizeHint" stdset="0"> |
589 | 155 | </property> | 156 | <size> |
590 | 156 | <property name="sizeHint" stdset="0" > | 157 | <width>40</width> |
591 | 157 | <size> | 158 | <height>20</height> |
592 | 158 | <width>40</width> | 159 | </size> |
593 | 159 | <height>20</height> | 160 | </property> |
594 | 160 | </size> | 161 | </spacer> |
595 | 161 | </property> | 162 | </item> |
596 | 162 | </spacer> | 163 | <item row="3" column="0"> |
597 | 163 | </item> | 164 | <spacer name="horizontalSpacer_7"> |
598 | 164 | <item> | 165 | <property name="orientation"> |
599 | 165 | <widget class="QLabel" name="label_3" > | 166 | <enum>Qt::Horizontal</enum> |
600 | 166 | <property name="text" > | 167 | </property> |
601 | 167 | <string>Please enter your user name and password</string> | 168 | <property name="sizeHint" stdset="0"> |
602 | 168 | </property> | 169 | <size> |
603 | 169 | </widget> | 170 | <width>40</width> |
604 | 170 | </item> | 171 | <height>20</height> |
605 | 171 | <item> | 172 | </size> |
606 | 172 | <spacer name="horizontalSpacer_2" > | 173 | </property> |
607 | 173 | <property name="orientation" > | 174 | </spacer> |
608 | 174 | <enum>Qt::Horizontal</enum> | 175 | </item> |
609 | 175 | </property> | 176 | </layout> |
610 | 176 | <property name="sizeHint" stdset="0" > | 177 | </item> |
611 | 177 | <size> | 178 | <item> |
612 | 178 | <width>40</width> | 179 | <spacer name="verticalSpacer_4"> |
613 | 179 | <height>20</height> | 180 | <property name="orientation"> |
614 | 180 | </size> | 181 | <enum>Qt::Vertical</enum> |
615 | 181 | </property> | 182 | </property> |
616 | 182 | </spacer> | 183 | <property name="sizeHint" stdset="0"> |
617 | 183 | </item> | 184 | <size> |
618 | 184 | </layout> | 185 | <width>20</width> |
619 | 185 | </item> | 186 | <height>40</height> |
620 | 186 | <item> | 187 | </size> |
621 | 187 | <spacer name="horizontalSpacer_6" > | 188 | </property> |
622 | 188 | <property name="orientation" > | 189 | </spacer> |
623 | 189 | <enum>Qt::Horizontal</enum> | 190 | </item> |
624 | 190 | </property> | 191 | <item> |
625 | 191 | <property name="sizeHint" stdset="0" > | 192 | <layout class="QHBoxLayout" name="horizontalLayout"/> |
626 | 192 | <size> | 193 | </item> |
627 | 193 | <width>40</width> | 194 | <item> |
628 | 194 | <height>20</height> | 195 | <layout class="QVBoxLayout" name="verticalLayout_4"> |
629 | 195 | </size> | 196 | <item> |
630 | 196 | </property> | 197 | <layout class="QGridLayout" name="gridLayout"> |
631 | 197 | </spacer> | 198 | <property name="rightMargin"> |
632 | 198 | </item> | 199 | <number>100</number> |
633 | 199 | <item> | 200 | </property> |
634 | 200 | <layout class="QHBoxLayout" name="horizontalLayout_5" > | 201 | </layout> |
635 | 201 | <item> | 202 | </item> |
636 | 202 | <spacer name="horizontalSpacer_3" > | 203 | <item> |
637 | 203 | <property name="orientation" > | 204 | <layout class="QHBoxLayout" name="horizontalLayout_3"> |
638 | 204 | <enum>Qt::Horizontal</enum> | 205 | <item> |
639 | 205 | </property> | 206 | <spacer name="horizontalSpacer_8"> |
640 | 206 | <property name="sizeHint" stdset="0" > | 207 | <property name="orientation"> |
641 | 207 | <size> | 208 | <enum>Qt::Horizontal</enum> |
642 | 208 | <width>40</width> | 209 | </property> |
643 | 209 | <height>20</height> | 210 | <property name="sizeHint" stdset="0"> |
644 | 210 | </size> | 211 | <size> |
645 | 211 | </property> | 212 | <width>40</width> |
646 | 212 | </spacer> | 213 | <height>20</height> |
647 | 213 | </item> | 214 | </size> |
648 | 214 | <item> | 215 | </property> |
649 | 215 | <widget class="QDialogButtonBox" name="buttonBox" > | 216 | </spacer> |
650 | 216 | <property name="standardButtons" > | 217 | </item> |
651 | 217 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | 218 | <item> |
652 | 218 | </property> | 219 | <widget class="QLabel" name="label_4"> |
653 | 219 | </widget> | 220 | <property name="sizePolicy"> |
654 | 220 | </item> | 221 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
655 | 221 | </layout> | 222 | <horstretch>0</horstretch> |
656 | 222 | </item> | 223 | <verstretch>0</verstretch> |
657 | 223 | </layout> | 224 | </sizepolicy> |
658 | 224 | </item> | 225 | </property> |
659 | 225 | <item> | 226 | <property name="text"> |
660 | 226 | <spacer name="horizontalSpacer_5" > | 227 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
661 | 227 | <property name="orientation" > | 228 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
662 | 228 | <enum>Qt::Horizontal</enum> | 229 | p, li { white-space: pre-wrap; } |
663 | 229 | </property> | 230 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> |
664 | 230 | <property name="sizeHint" stdset="0" > | 231 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">User name: </span></p></body></html></string> |
665 | 231 | <size> | 232 | </property> |
666 | 232 | <width>40</width> | 233 | </widget> |
667 | 233 | <height>20</height> | 234 | </item> |
668 | 234 | </size> | 235 | <item> |
669 | 235 | </property> | 236 | <widget class="QLineEdit" name="usernameLineEdit"/> |
670 | 236 | </spacer> | 237 | </item> |
671 | 237 | </item> | 238 | <item> |
672 | 238 | </layout> | 239 | <spacer name="horizontalSpacer_4"> |
673 | 239 | </item> | 240 | <property name="orientation"> |
674 | 240 | <item> | 241 | <enum>Qt::Horizontal</enum> |
675 | 241 | <spacer name="verticalSpacer_2" > | 242 | </property> |
676 | 242 | <property name="orientation" > | 243 | <property name="sizeHint" stdset="0"> |
677 | 243 | <enum>Qt::Vertical</enum> | 244 | <size> |
678 | 244 | </property> | 245 | <width>40</width> |
679 | 245 | <property name="sizeHint" stdset="0" > | 246 | <height>20</height> |
680 | 246 | <size> | 247 | </size> |
681 | 247 | <width>20</width> | 248 | </property> |
682 | 248 | <height>40</height> | 249 | </spacer> |
683 | 249 | </size> | 250 | </item> |
684 | 250 | </property> | 251 | </layout> |
685 | 251 | </spacer> | 252 | </item> |
686 | 252 | </item> | 253 | <item> |
687 | 253 | <item> | 254 | <layout class="QHBoxLayout" name="horizontalLayout_6"> |
688 | 254 | <widget class="QLabel" name="versionNo" > | 255 | <property name="spacing"> |
689 | 255 | <property name="text" > | 256 | <number>17</number> |
690 | 257 | </property> | ||
691 | 258 | <property name="rightMargin"> | ||
692 | 259 | <number>0</number> | ||
693 | 260 | </property> | ||
694 | 261 | <property name="bottomMargin"> | ||
695 | 262 | <number>0</number> | ||
696 | 263 | </property> | ||
697 | 264 | <item> | ||
698 | 265 | <spacer name="horizontalSpacer_9"> | ||
699 | 266 | <property name="orientation"> | ||
700 | 267 | <enum>Qt::Horizontal</enum> | ||
701 | 268 | </property> | ||
702 | 269 | <property name="sizeHint" stdset="0"> | ||
703 | 270 | <size> | ||
704 | 271 | <width>40</width> | ||
705 | 272 | <height>20</height> | ||
706 | 273 | </size> | ||
707 | 274 | </property> | ||
708 | 275 | </spacer> | ||
709 | 276 | </item> | ||
710 | 277 | <item> | ||
711 | 278 | <widget class="QLabel" name="label_2"> | ||
712 | 279 | <property name="text"> | ||
713 | 280 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
714 | 281 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
715 | 282 | p, li { white-space: pre-wrap; } | ||
716 | 283 | </style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;"> | ||
717 | 284 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Password:</span></p></body></html></string> | ||
718 | 285 | </property> | ||
719 | 286 | </widget> | ||
720 | 287 | </item> | ||
721 | 288 | <item> | ||
722 | 289 | <widget class="QLineEdit" name="passwordLineEdit"> | ||
723 | 290 | <property name="echoMode"> | ||
724 | 291 | <enum>QLineEdit::Password</enum> | ||
725 | 292 | </property> | ||
726 | 293 | </widget> | ||
727 | 294 | </item> | ||
728 | 295 | <item> | ||
729 | 296 | <spacer name="horizontalSpacer_5"> | ||
730 | 297 | <property name="orientation"> | ||
731 | 298 | <enum>Qt::Horizontal</enum> | ||
732 | 299 | </property> | ||
733 | 300 | <property name="sizeHint" stdset="0"> | ||
734 | 301 | <size> | ||
735 | 302 | <width>40</width> | ||
736 | 303 | <height>20</height> | ||
737 | 304 | </size> | ||
738 | 305 | </property> | ||
739 | 306 | </spacer> | ||
740 | 307 | </item> | ||
741 | 308 | </layout> | ||
742 | 309 | </item> | ||
743 | 310 | <item> | ||
744 | 311 | <layout class="QHBoxLayout" name="horizontalLayout_4"> | ||
745 | 312 | <item> | ||
746 | 313 | <spacer name="horizontalSpacer"> | ||
747 | 314 | <property name="orientation"> | ||
748 | 315 | <enum>Qt::Horizontal</enum> | ||
749 | 316 | </property> | ||
750 | 317 | <property name="sizeHint" stdset="0"> | ||
751 | 318 | <size> | ||
752 | 319 | <width>40</width> | ||
753 | 320 | <height>20</height> | ||
754 | 321 | </size> | ||
755 | 322 | </property> | ||
756 | 323 | </spacer> | ||
757 | 324 | </item> | ||
758 | 325 | <item> | ||
759 | 326 | <widget class="QLabel" name="label_3"> | ||
760 | 327 | <property name="text"> | ||
761 | 328 | <string>Please enter your user name and password</string> | ||
762 | 329 | </property> | ||
763 | 330 | </widget> | ||
764 | 331 | </item> | ||
765 | 332 | <item> | ||
766 | 333 | <spacer name="horizontalSpacer_2"> | ||
767 | 334 | <property name="orientation"> | ||
768 | 335 | <enum>Qt::Horizontal</enum> | ||
769 | 336 | </property> | ||
770 | 337 | <property name="sizeHint" stdset="0"> | ||
771 | 338 | <size> | ||
772 | 339 | <width>40</width> | ||
773 | 340 | <height>20</height> | ||
774 | 341 | </size> | ||
775 | 342 | </property> | ||
776 | 343 | </spacer> | ||
777 | 344 | </item> | ||
778 | 345 | </layout> | ||
779 | 346 | </item> | ||
780 | 347 | <item> | ||
781 | 348 | <layout class="QHBoxLayout" name="horizontalLayout_5"> | ||
782 | 349 | <item> | ||
783 | 350 | <spacer name="horizontalSpacer_10"> | ||
784 | 351 | <property name="orientation"> | ||
785 | 352 | <enum>Qt::Horizontal</enum> | ||
786 | 353 | </property> | ||
787 | 354 | <property name="sizeHint" stdset="0"> | ||
788 | 355 | <size> | ||
789 | 356 | <width>40</width> | ||
790 | 357 | <height>20</height> | ||
791 | 358 | </size> | ||
792 | 359 | </property> | ||
793 | 360 | </spacer> | ||
794 | 361 | </item> | ||
795 | 362 | <item> | ||
796 | 363 | <widget class="QDialogButtonBox" name="buttonBox"> | ||
797 | 364 | <property name="standardButtons"> | ||
798 | 365 | <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> | ||
799 | 366 | </property> | ||
800 | 367 | </widget> | ||
801 | 368 | </item> | ||
802 | 369 | <item> | ||
803 | 370 | <spacer name="horizontalSpacer_3"> | ||
804 | 371 | <property name="orientation"> | ||
805 | 372 | <enum>Qt::Horizontal</enum> | ||
806 | 373 | </property> | ||
807 | 374 | <property name="sizeHint" stdset="0"> | ||
808 | 375 | <size> | ||
809 | 376 | <width>40</width> | ||
810 | 377 | <height>20</height> | ||
811 | 378 | </size> | ||
812 | 379 | </property> | ||
813 | 380 | </spacer> | ||
814 | 381 | </item> | ||
815 | 382 | </layout> | ||
816 | 383 | </item> | ||
817 | 384 | </layout> | ||
818 | 385 | </item> | ||
819 | 386 | <item> | ||
820 | 387 | <spacer name="verticalSpacer_2"> | ||
821 | 388 | <property name="orientation"> | ||
822 | 389 | <enum>Qt::Vertical</enum> | ||
823 | 390 | </property> | ||
824 | 391 | <property name="sizeHint" stdset="0"> | ||
825 | 392 | <size> | ||
826 | 393 | <width>20</width> | ||
827 | 394 | <height>40</height> | ||
828 | 395 | </size> | ||
829 | 396 | </property> | ||
830 | 397 | </spacer> | ||
831 | 398 | </item> | ||
832 | 399 | <item> | ||
833 | 400 | <widget class="QLabel" name="versionNo"> | ||
834 | 401 | <property name="text"> | ||
835 | 256 | <string/> | 402 | <string/> |
836 | 257 | </property> | 403 | </property> |
837 | 258 | </widget> | 404 | </widget> |
838 | @@ -261,8 +407,25 @@ | |||
839 | 261 | </item> | 407 | </item> |
840 | 262 | </layout> | 408 | </layout> |
841 | 263 | </widget> | 409 | </widget> |
843 | 264 | <widget class="QStatusBar" name="statusbar" /> | 410 | <widget class="QStatusBar" name="statusbar"/> |
844 | 265 | </widget> | 411 | </widget> |
845 | 412 | <tabstops> | ||
846 | 413 | <tabstop>pushButton_1</tabstop> | ||
847 | 414 | <tabstop>pushButton_2</tabstop> | ||
848 | 415 | <tabstop>pushButton_3</tabstop> | ||
849 | 416 | <tabstop>pushButton_4</tabstop> | ||
850 | 417 | <tabstop>pushButton_5</tabstop> | ||
851 | 418 | <tabstop>pushButton_6</tabstop> | ||
852 | 419 | <tabstop>pushButton_7</tabstop> | ||
853 | 420 | <tabstop>pushButton_8</tabstop> | ||
854 | 421 | <tabstop>pushButton_9</tabstop> | ||
855 | 422 | <tabstop>pushButton_Del</tabstop> | ||
856 | 423 | <tabstop>pushButton_0</tabstop> | ||
857 | 424 | <tabstop>pushButton_U</tabstop> | ||
858 | 425 | <tabstop>usernameLineEdit</tabstop> | ||
859 | 426 | <tabstop>passwordLineEdit</tabstop> | ||
860 | 427 | <tabstop>buttonBox</tabstop> | ||
861 | 428 | </tabstops> | ||
862 | 266 | <resources/> | 429 | <resources/> |
863 | 267 | <connections/> | 430 | <connections/> |
864 | 268 | </ui> | 431 | </ui> |
This branch replaces touchScreenUI_ NumericPad. It is a merge of the numericPad logic and the latest code.