Merge lp:~gaurav-pawaskar/randy-qt/Minor_changes_finishing_updated into lp:randy-qt
- Minor_changes_finishing_updated
- Merge into Randyqt
Proposed by
Gaurav Pawaskar
Status: | Merged |
---|---|
Merged at revision: | 11 |
Proposed branch: | lp:~gaurav-pawaskar/randy-qt/Minor_changes_finishing_updated |
Merge into: | lp:randy-qt |
Diff against target: |
672 lines (+454/-5) (has conflicts) 5 files modified
mainwindow.cpp (+77/-0) mainwindow.h (+17/-2) mainwindow.ui (+236/-1) moc_mainwindow.cpp (+21/-0) ui_mainwindow.h (+103/-2) Text conflict in mainwindow.cpp Text conflict in mainwindow.h Text conflict in mainwindow.ui Text conflict in moc_mainwindow.cpp Text conflict in ui_mainwindow.h |
To merge this branch: | bzr merge lp:~gaurav-pawaskar/randy-qt/Minor_changes_finishing_updated |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Duane Hinnen | Approve | ||
Review via email: mp+54948@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Duane Hinnen (duanedesign) wrote : | # |
Revision history for this message
Duane Hinnen (duanedesign) : | # |
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'mainwindow.cpp' | |||
2 | --- mainwindow.cpp 2011-03-21 18:37:01 +0000 | |||
3 | +++ mainwindow.cpp 2011-03-26 06:06:39 +0000 | |||
4 | @@ -3,12 +3,20 @@ | |||
5 | 3 | MainWindow::MainWindow(QWidget *parent) : | 3 | MainWindow::MainWindow(QWidget *parent) : |
6 | 4 | QMainWindow(parent), | 4 | QMainWindow(parent), |
7 | 5 | ui(new Ui :: MainWindow) | 5 | ui(new Ui :: MainWindow) |
8 | 6 | <<<<<<< TREE | ||
9 | 6 | { | 7 | { |
10 | 7 | qsrand(time(0)); | 8 | qsrand(time(0)); |
11 | 8 | ui -> setupUi(this); | 9 | ui -> setupUi(this); |
12 | 9 | setTable(""); | 10 | setTable(""); |
13 | 10 | //connect(ui -> actionRegenerate_PasswordCard, SIGNAL(triggered()), this, SLOT(on_regenerate_PasswordCard_triggered())); | 11 | //connect(ui -> actionRegenerate_PasswordCard, SIGNAL(triggered()), this, SLOT(on_regenerate_PasswordCard_triggered())); |
14 | 11 | } | 12 | } |
15 | 13 | ======= | ||
16 | 14 | { | ||
17 | 15 | qsrand(time(0)); | ||
18 | 16 | ui -> setupUi(this); | ||
19 | 17 | setTable(""); | ||
20 | 18 | } | ||
21 | 19 | >>>>>>> MERGE-SOURCE | ||
22 | 12 | 20 | ||
23 | 13 | MainWindow::~MainWindow() | 21 | MainWindow::~MainWindow() |
24 | 14 | { | 22 | { |
25 | @@ -161,8 +169,12 @@ | |||
26 | 161 | { | 169 | { |
27 | 162 | key[i] = keyString[i]; | 170 | key[i] = keyString[i]; |
28 | 163 | } | 171 | } |
29 | 172 | <<<<<<< TREE | ||
30 | 164 | //ui->lineEdit->setText(QApplication::translate("MainWindow", key, 0, QApplication::UnicodeUTF8)); | 173 | //ui->lineEdit->setText(QApplication::translate("MainWindow", key, 0, QApplication::UnicodeUTF8)); |
31 | 174 | ======= | ||
32 | 175 | >>>>>>> MERGE-SOURCE | ||
33 | 165 | setTable(key); | 176 | setTable(key); |
34 | 177 | <<<<<<< TREE | ||
35 | 166 | 178 | ||
36 | 167 | QMessageBox msgBox; | 179 | QMessageBox msgBox; |
37 | 168 | char *msg = (char*)malloc(200*sizeof(char)); | 180 | char *msg = (char*)malloc(200*sizeof(char)); |
38 | @@ -226,3 +238,68 @@ | |||
39 | 226 | msgBox.exec(); | 238 | msgBox.exec(); |
40 | 227 | } | 239 | } |
41 | 228 | } | 240 | } |
42 | 241 | ======= | ||
43 | 242 | ui->keyLineEdit->setText(QApplication::translate("MainWindow", key, 0, QApplication::UnicodeUTF8)); | ||
44 | 243 | |||
45 | 244 | QMessageBox msgBox; | ||
46 | 245 | char *msg = (char*)malloc(200*sizeof(char)); | ||
47 | 246 | strcpy(msg, "Please save your key : "); | ||
48 | 247 | strcat(msg, key); | ||
49 | 248 | msgBox.setText(msg); | ||
50 | 249 | msgBox.exec(); | ||
51 | 250 | } | ||
52 | 251 | |||
53 | 252 | void MainWindow::on_actionSave_triggered() | ||
54 | 253 | { | ||
55 | 254 | QRect r1(0, 0, 470, 265); | ||
56 | 255 | |||
57 | 256 | QImage image(r1.size(), QImage::Format_ARGB32_Premultiplied); | ||
58 | 257 | ui->tableWidget->render(&image, r1.topLeft(), r1, QWidget::DrawWindowBackground | QWidget::DrawChildren); | ||
59 | 258 | QPrinter printer; | ||
60 | 259 | QPrintDialog printDialog(&printer, this); | ||
61 | 260 | if (printDialog.exec()) { | ||
62 | 261 | QPainter painter(&printer); | ||
63 | 262 | painter.setViewport(0, 0,470, 265); | ||
64 | 263 | painter.setWindow(r1); | ||
65 | 264 | painter.drawImage(0, 0, image); | ||
66 | 265 | } | ||
67 | 266 | } | ||
68 | 267 | |||
69 | 268 | void MainWindow::on_actionRegenerate_PasswordCard_triggered() | ||
70 | 269 | { | ||
71 | 270 | bool ok; | ||
72 | 271 | QString text = QInputDialog::getText(this, tr("QInputDialog::getText()"), | ||
73 | 272 | tr("Regeneration Key:"), QLineEdit::Normal, | ||
74 | 273 | NULL, &ok); | ||
75 | 274 | |||
76 | 275 | if ( ok && !text.isEmpty() ) | ||
77 | 276 | { | ||
78 | 277 | //Message Box for wrong formatted regenerateKey string | ||
79 | 278 | QMessageBox msgBox; | ||
80 | 279 | char *msg = (char*)malloc(100*sizeof(char)); | ||
81 | 280 | strcpy(msg, "Wrong format, Please enter 16 Hex digits in capital "); | ||
82 | 281 | |||
83 | 282 | QString regenerateKey = text; | ||
84 | 283 | |||
85 | 284 | /*Regular Expreesion to check whether string is HEX & in | ||
86 | 285 | captial letters*/ | ||
87 | 286 | QRegExp rx("[0-9A-F]{1,16}"); | ||
88 | 287 | |||
89 | 288 | // Checks regenerateKey to be a 16 HEX digits in CAPS | ||
90 | 289 | if((regenerateKey.length()==16) && (rx.exactMatch(regenerateKey) )) | ||
91 | 290 | setTable(regenerateKey.toStdString()); | ||
92 | 291 | else | ||
93 | 292 | { | ||
94 | 293 | msgBox.setText(msg); | ||
95 | 294 | msgBox.exec(); | ||
96 | 295 | } | ||
97 | 296 | } | ||
98 | 297 | else | ||
99 | 298 | { | ||
100 | 299 | QMessageBox msgBox; | ||
101 | 300 | char *msg = (char*)malloc(100*sizeof(char)); | ||
102 | 301 | strcpy(msg, "Enter Regeneration key."); | ||
103 | 302 | msgBox.setText(msg); | ||
104 | 303 | msgBox.exec(); | ||
105 | 304 | } | ||
106 | 305 | }>>>>>>> MERGE-SOURCE | ||
107 | 229 | 306 | ||
108 | === modified file 'mainwindow.h' | |||
109 | --- mainwindow.h 2011-03-21 18:37:01 +0000 | |||
110 | +++ mainwindow.h 2011-03-26 06:06:39 +0000 | |||
111 | @@ -19,8 +19,15 @@ | |||
112 | 19 | #include "ui_mainwindow.h" | 19 | #include "ui_mainwindow.h" |
113 | 20 | #include "md5.h" | 20 | #include "md5.h" |
114 | 21 | #include "randyUtil.h" | 21 | #include "randyUtil.h" |
117 | 22 | #include <QPrintDialog> | 22 | <<<<<<< TREE |
118 | 23 | #include <QPainter> | 23 | #include <QPrintDialog> |
119 | 24 | #include <QPainter> | ||
120 | 25 | ======= | ||
121 | 26 | #include <QPrintDialog> | ||
122 | 27 | #include <QPrinter> | ||
123 | 28 | #include <QPainter> | ||
124 | 29 | #include <QPrintDialog> | ||
125 | 30 | >>>>>>> MERGE-SOURCE | ||
126 | 24 | 31 | ||
127 | 25 | 32 | ||
128 | 26 | namespace Ui { | 33 | namespace Ui { |
129 | @@ -56,9 +63,17 @@ | |||
130 | 56 | 63 | ||
131 | 57 | 64 | ||
132 | 58 | private slots: | 65 | private slots: |
133 | 66 | <<<<<<< TREE | ||
134 | 59 | void on_actionSavePrint_triggered(); | 67 | void on_actionSavePrint_triggered(); |
135 | 68 | ======= | ||
136 | 69 | void on_actionRegenerate_PasswordCard_triggered(); | ||
137 | 70 | void on_actionSave_triggered(); | ||
138 | 71 | >>>>>>> MERGE-SOURCE | ||
139 | 60 | void on_pb_Generate_clicked(); | 72 | void on_pb_Generate_clicked(); |
140 | 73 | <<<<<<< TREE | ||
141 | 61 | void on_actionRegenerate_PasswordCard_triggered(); | 74 | void on_actionRegenerate_PasswordCard_triggered(); |
142 | 75 | ======= | ||
143 | 76 | >>>>>>> MERGE-SOURCE | ||
144 | 62 | }; | 77 | }; |
145 | 63 | 78 | ||
146 | 64 | #endif // MAINWINDOW_H | 79 | #endif // MAINWINDOW_H |
147 | 65 | 80 | ||
148 | === modified file 'mainwindow.ui' | |||
149 | --- mainwindow.ui 2011-03-21 18:37:01 +0000 | |||
150 | +++ mainwindow.ui 2011-03-26 06:06:39 +0000 | |||
151 | @@ -11,9 +11,10 @@ | |||
152 | 11 | </rect> | 11 | </rect> |
153 | 12 | </property> | 12 | </property> |
154 | 13 | <property name="windowTitle"> | 13 | <property name="windowTitle"> |
156 | 14 | <string>MainWindow</string> | 14 | <string>Randy</string> |
157 | 15 | </property> | 15 | </property> |
158 | 16 | <widget class="QWidget" name="centralWidget"> | 16 | <widget class="QWidget" name="centralWidget"> |
159 | 17 | <<<<<<< TREE | ||
160 | 17 | <layout class="QVBoxLayout" name="verticalLayout"> | 18 | <layout class="QVBoxLayout" name="verticalLayout"> |
161 | 18 | <item> | 19 | <item> |
162 | 19 | <layout class="QHBoxLayout" name="horizontalLayout"> | 20 | <layout class="QHBoxLayout" name="horizontalLayout"> |
163 | @@ -205,6 +206,234 @@ | |||
164 | 205 | </layout> | 206 | </layout> |
165 | 206 | </item> | 207 | </item> |
166 | 207 | </layout> | 208 | </layout> |
167 | 209 | ======= | ||
168 | 210 | <layout class="QVBoxLayout" name="verticalLayout"> | ||
169 | 211 | <item> | ||
170 | 212 | <layout class="QHBoxLayout" name="horizontalLayout_2"> | ||
171 | 213 | <property name="leftMargin"> | ||
172 | 214 | <number>3</number> | ||
173 | 215 | </property> | ||
174 | 216 | <property name="rightMargin"> | ||
175 | 217 | <number>3</number> | ||
176 | 218 | </property> | ||
177 | 219 | <property name="bottomMargin"> | ||
178 | 220 | <number>0</number> | ||
179 | 221 | </property> | ||
180 | 222 | <item> | ||
181 | 223 | <widget class="QLabel" name="keyGenerateLabel"> | ||
182 | 224 | <property name="text"> | ||
183 | 225 | <string>Password card Key</string> | ||
184 | 226 | </property> | ||
185 | 227 | </widget> | ||
186 | 228 | </item> | ||
187 | 229 | <item> | ||
188 | 230 | <spacer name="horizontalSpacer_2"> | ||
189 | 231 | <property name="orientation"> | ||
190 | 232 | <enum>Qt::Horizontal</enum> | ||
191 | 233 | </property> | ||
192 | 234 | <property name="sizeHint" stdset="0"> | ||
193 | 235 | <size> | ||
194 | 236 | <width>40</width> | ||
195 | 237 | <height>20</height> | ||
196 | 238 | </size> | ||
197 | 239 | </property> | ||
198 | 240 | </spacer> | ||
199 | 241 | </item> | ||
200 | 242 | <item> | ||
201 | 243 | <widget class="QLineEdit" name="keyLineEdit"> | ||
202 | 244 | <property name="readOnly"> | ||
203 | 245 | <bool>true</bool> | ||
204 | 246 | </property> | ||
205 | 247 | </widget> | ||
206 | 248 | </item> | ||
207 | 249 | <item> | ||
208 | 250 | <spacer name="horizontalSpacer"> | ||
209 | 251 | <property name="orientation"> | ||
210 | 252 | <enum>Qt::Horizontal</enum> | ||
211 | 253 | </property> | ||
212 | 254 | <property name="sizeHint" stdset="0"> | ||
213 | 255 | <size> | ||
214 | 256 | <width>40</width> | ||
215 | 257 | <height>20</height> | ||
216 | 258 | </size> | ||
217 | 259 | </property> | ||
218 | 260 | </spacer> | ||
219 | 261 | </item> | ||
220 | 262 | <item> | ||
221 | 263 | <widget class="QCheckBox" name="symbols"> | ||
222 | 264 | <property name="text"> | ||
223 | 265 | <string>Use Symbols</string> | ||
224 | 266 | </property> | ||
225 | 267 | </widget> | ||
226 | 268 | </item> | ||
227 | 269 | </layout> | ||
228 | 270 | </item> | ||
229 | 271 | <item> | ||
230 | 272 | <widget class="QTableWidget" name="tableWidget"> | ||
231 | 273 | <property name="enabled"> | ||
232 | 274 | <bool>false</bool> | ||
233 | 275 | </property> | ||
234 | 276 | <property name="whatsThis"> | ||
235 | 277 | <string/> | ||
236 | 278 | </property> | ||
237 | 279 | <property name="selectionMode"> | ||
238 | 280 | <enum>QAbstractItemView::NoSelection</enum> | ||
239 | 281 | </property> | ||
240 | 282 | <attribute name="horizontalHeaderDefaultSectionSize"> | ||
241 | 283 | <number>30</number> | ||
242 | 284 | </attribute> | ||
243 | 285 | <attribute name="horizontalHeaderMinimumSectionSize"> | ||
244 | 286 | <number>30</number> | ||
245 | 287 | </attribute> | ||
246 | 288 | <row> | ||
247 | 289 | <property name="text"> | ||
248 | 290 | <string>1</string> | ||
249 | 291 | </property> | ||
250 | 292 | </row> | ||
251 | 293 | <row> | ||
252 | 294 | <property name="text"> | ||
253 | 295 | <string>2</string> | ||
254 | 296 | </property> | ||
255 | 297 | </row> | ||
256 | 298 | <row> | ||
257 | 299 | <property name="text"> | ||
258 | 300 | <string>3</string> | ||
259 | 301 | </property> | ||
260 | 302 | </row> | ||
261 | 303 | <row> | ||
262 | 304 | <property name="text"> | ||
263 | 305 | <string>4</string> | ||
264 | 306 | </property> | ||
265 | 307 | </row> | ||
266 | 308 | <row> | ||
267 | 309 | <property name="text"> | ||
268 | 310 | <string>5</string> | ||
269 | 311 | </property> | ||
270 | 312 | </row> | ||
271 | 313 | <row> | ||
272 | 314 | <property name="text"> | ||
273 | 315 | <string>6</string> | ||
274 | 316 | </property> | ||
275 | 317 | </row> | ||
276 | 318 | <row> | ||
277 | 319 | <property name="text"> | ||
278 | 320 | <string>7</string> | ||
279 | 321 | </property> | ||
280 | 322 | </row> | ||
281 | 323 | <row> | ||
282 | 324 | <property name="text"> | ||
283 | 325 | <string>8</string> | ||
284 | 326 | </property> | ||
285 | 327 | </row> | ||
286 | 328 | <column> | ||
287 | 329 | <property name="text"> | ||
288 | 330 | <string>A</string> | ||
289 | 331 | </property> | ||
290 | 332 | </column> | ||
291 | 333 | <column> | ||
292 | 334 | <property name="text"> | ||
293 | 335 | <string>B</string> | ||
294 | 336 | </property> | ||
295 | 337 | </column> | ||
296 | 338 | <column> | ||
297 | 339 | <property name="text"> | ||
298 | 340 | <string>C</string> | ||
299 | 341 | </property> | ||
300 | 342 | </column> | ||
301 | 343 | <column> | ||
302 | 344 | <property name="text"> | ||
303 | 345 | <string>D</string> | ||
304 | 346 | </property> | ||
305 | 347 | </column> | ||
306 | 348 | <column> | ||
307 | 349 | <property name="text"> | ||
308 | 350 | <string>E</string> | ||
309 | 351 | </property> | ||
310 | 352 | </column> | ||
311 | 353 | <column> | ||
312 | 354 | <property name="text"> | ||
313 | 355 | <string>F</string> | ||
314 | 356 | </property> | ||
315 | 357 | </column> | ||
316 | 358 | <column> | ||
317 | 359 | <property name="text"> | ||
318 | 360 | <string>G</string> | ||
319 | 361 | </property> | ||
320 | 362 | </column> | ||
321 | 363 | <column> | ||
322 | 364 | <property name="text"> | ||
323 | 365 | <string>H</string> | ||
324 | 366 | </property> | ||
325 | 367 | </column> | ||
326 | 368 | <column> | ||
327 | 369 | <property name="text"> | ||
328 | 370 | <string>I</string> | ||
329 | 371 | </property> | ||
330 | 372 | </column> | ||
331 | 373 | <column> | ||
332 | 374 | <property name="text"> | ||
333 | 375 | <string>J</string> | ||
334 | 376 | </property> | ||
335 | 377 | </column> | ||
336 | 378 | <column> | ||
337 | 379 | <property name="text"> | ||
338 | 380 | <string>K</string> | ||
339 | 381 | </property> | ||
340 | 382 | </column> | ||
341 | 383 | <column> | ||
342 | 384 | <property name="text"> | ||
343 | 385 | <string>L</string> | ||
344 | 386 | </property> | ||
345 | 387 | </column> | ||
346 | 388 | <column> | ||
347 | 389 | <property name="text"> | ||
348 | 390 | <string>M</string> | ||
349 | 391 | </property> | ||
350 | 392 | </column> | ||
351 | 393 | <column> | ||
352 | 394 | <property name="text"> | ||
353 | 395 | <string>N</string> | ||
354 | 396 | </property> | ||
355 | 397 | </column> | ||
356 | 398 | <column> | ||
357 | 399 | <property name="text"> | ||
358 | 400 | <string>O</string> | ||
359 | 401 | </property> | ||
360 | 402 | </column> | ||
361 | 403 | </widget> | ||
362 | 404 | </item> | ||
363 | 405 | <item> | ||
364 | 406 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||
365 | 407 | <property name="leftMargin"> | ||
366 | 408 | <number>3</number> | ||
367 | 409 | </property> | ||
368 | 410 | <property name="rightMargin"> | ||
369 | 411 | <number>3</number> | ||
370 | 412 | </property> | ||
371 | 413 | <item> | ||
372 | 414 | <spacer name="horizontalSpacer_3"> | ||
373 | 415 | <property name="orientation"> | ||
374 | 416 | <enum>Qt::Horizontal</enum> | ||
375 | 417 | </property> | ||
376 | 418 | <property name="sizeHint" stdset="0"> | ||
377 | 419 | <size> | ||
378 | 420 | <width>88</width> | ||
379 | 421 | <height>20</height> | ||
380 | 422 | </size> | ||
381 | 423 | </property> | ||
382 | 424 | </spacer> | ||
383 | 425 | </item> | ||
384 | 426 | <item> | ||
385 | 427 | <widget class="QPushButton" name="pb_Generate"> | ||
386 | 428 | <property name="text"> | ||
387 | 429 | <string>Generate</string> | ||
388 | 430 | </property> | ||
389 | 431 | </widget> | ||
390 | 432 | </item> | ||
391 | 433 | </layout> | ||
392 | 434 | </item> | ||
393 | 435 | </layout> | ||
394 | 436 | >>>>>>> MERGE-SOURCE | ||
395 | 208 | </widget> | 437 | </widget> |
396 | 209 | <widget class="QMenuBar" name="menuBar"> | 438 | <widget class="QMenuBar" name="menuBar"> |
397 | 210 | <property name="geometry"> | 439 | <property name="geometry"> |
398 | @@ -221,6 +450,7 @@ | |||
399 | 221 | </property> | 450 | </property> |
400 | 222 | <addaction name="actionSavePrint"/> | 451 | <addaction name="actionSavePrint"/> |
401 | 223 | <addaction name="actionRegenerate_PasswordCard"/> | 452 | <addaction name="actionRegenerate_PasswordCard"/> |
402 | 453 | <addaction name="actionSave"/> | ||
403 | 224 | </widget> | 454 | </widget> |
404 | 225 | <addaction name="menuFile"/> | 455 | <addaction name="menuFile"/> |
405 | 226 | </widget> | 456 | </widget> |
406 | @@ -235,6 +465,11 @@ | |||
407 | 235 | <string>Regenerate PasswordCard</string> | 465 | <string>Regenerate PasswordCard</string> |
408 | 236 | </property> | 466 | </property> |
409 | 237 | </action> | 467 | </action> |
410 | 468 | <action name="actionSave"> | ||
411 | 469 | <property name="text"> | ||
412 | 470 | <string>Save</string> | ||
413 | 471 | </property> | ||
414 | 472 | </action> | ||
415 | 238 | </widget> | 473 | </widget> |
416 | 239 | <layoutdefault spacing="6" margin="11"/> | 474 | <layoutdefault spacing="6" margin="11"/> |
417 | 240 | <resources/> | 475 | <resources/> |
418 | 241 | 476 | ||
419 | === modified file 'moc_mainwindow.cpp' | |||
420 | --- moc_mainwindow.cpp 2011-03-21 18:37:01 +0000 | |||
421 | +++ moc_mainwindow.cpp 2011-03-26 06:06:39 +0000 | |||
422 | @@ -1,7 +1,11 @@ | |||
423 | 1 | /**************************************************************************** | 1 | /**************************************************************************** |
424 | 2 | ** Meta object code from reading C++ file 'mainwindow.h' | 2 | ** Meta object code from reading C++ file 'mainwindow.h' |
425 | 3 | ** | 3 | ** |
426 | 4 | <<<<<<< TREE | ||
427 | 4 | ** Created: Mon Mar 14 14:35:28 2011 | 5 | ** Created: Mon Mar 14 14:35:28 2011 |
428 | 6 | ======= | ||
429 | 7 | ** Created: Mon Mar 14 10:09:42 2011 | ||
430 | 8 | >>>>>>> MERGE-SOURCE | ||
431 | 5 | ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0) | 9 | ** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0) |
432 | 6 | ** | 10 | ** |
433 | 7 | ** WARNING! All changes made in this file will be lost! | 11 | ** WARNING! All changes made in this file will be lost! |
434 | @@ -32,16 +36,27 @@ | |||
435 | 32 | 36 | ||
436 | 33 | // slots: signature, parameters, type, tag, flags | 37 | // slots: signature, parameters, type, tag, flags |
437 | 34 | 12, 11, 11, 11, 0x08, | 38 | 12, 11, 11, 11, 0x08, |
438 | 39 | <<<<<<< TREE | ||
439 | 35 | 43, 11, 11, 11, 0x08, | 40 | 43, 11, 11, 11, 0x08, |
440 | 36 | 68, 11, 11, 11, 0x08, | 41 | 68, 11, 11, 11, 0x08, |
441 | 42 | ======= | ||
442 | 43 | 57, 11, 11, 11, 0x08, | ||
443 | 44 | 83, 11, 11, 11, 0x08, | ||
444 | 45 | >>>>>>> MERGE-SOURCE | ||
445 | 37 | 46 | ||
446 | 38 | 0 // eod | 47 | 0 // eod |
447 | 39 | }; | 48 | }; |
448 | 40 | 49 | ||
449 | 41 | static const char qt_meta_stringdata_MainWindow[] = { | 50 | static const char qt_meta_stringdata_MainWindow[] = { |
450 | 51 | <<<<<<< TREE | ||
451 | 42 | "MainWindow\0\0on_actionSavePrint_triggered()\0" | 52 | "MainWindow\0\0on_actionSavePrint_triggered()\0" |
452 | 43 | "on_pb_Generate_clicked()\0" | 53 | "on_pb_Generate_clicked()\0" |
453 | 44 | "on_actionRegenerate_PasswordCard_triggered()\0" | 54 | "on_actionRegenerate_PasswordCard_triggered()\0" |
454 | 55 | ======= | ||
455 | 56 | "MainWindow\0\0on_actionRegenerate_PasswordCard_triggered()\0" | ||
456 | 57 | "on_actionSave_triggered()\0" | ||
457 | 58 | "on_pb_Generate_clicked()\0" | ||
458 | 59 | >>>>>>> MERGE-SOURCE | ||
459 | 45 | }; | 60 | }; |
460 | 46 | 61 | ||
461 | 47 | const QMetaObject MainWindow::staticMetaObject = { | 62 | const QMetaObject MainWindow::staticMetaObject = { |
462 | @@ -73,9 +88,15 @@ | |||
463 | 73 | return _id; | 88 | return _id; |
464 | 74 | if (_c == QMetaObject::InvokeMetaMethod) { | 89 | if (_c == QMetaObject::InvokeMetaMethod) { |
465 | 75 | switch (_id) { | 90 | switch (_id) { |
466 | 91 | <<<<<<< TREE | ||
467 | 76 | case 0: on_actionSavePrint_triggered(); break; | 92 | case 0: on_actionSavePrint_triggered(); break; |
468 | 77 | case 1: on_pb_Generate_clicked(); break; | 93 | case 1: on_pb_Generate_clicked(); break; |
469 | 78 | case 2: on_actionRegenerate_PasswordCard_triggered(); break; | 94 | case 2: on_actionRegenerate_PasswordCard_triggered(); break; |
470 | 95 | ======= | ||
471 | 96 | case 0: on_actionRegenerate_PasswordCard_triggered(); break; | ||
472 | 97 | case 1: on_actionSave_triggered(); break; | ||
473 | 98 | case 2: on_pb_Generate_clicked(); break; | ||
474 | 99 | >>>>>>> MERGE-SOURCE | ||
475 | 79 | default: ; | 100 | default: ; |
476 | 80 | } | 101 | } |
477 | 81 | _id -= 3; | 102 | _id -= 3; |
478 | 82 | 103 | ||
479 | === modified file 'randy' | |||
480 | 83 | Binary files randy 2011-03-11 19:45:29 +0000 and randy 2011-03-26 06:06:39 +0000 differ | 104 | Binary files randy 2011-03-11 19:45:29 +0000 and randy 2011-03-26 06:06:39 +0000 differ |
481 | === modified file 'ui_mainwindow.h' | |||
482 | --- ui_mainwindow.h 2011-03-21 18:37:01 +0000 | |||
483 | +++ ui_mainwindow.h 2011-03-26 06:06:39 +0000 | |||
484 | @@ -1,7 +1,11 @@ | |||
485 | 1 | /******************************************************************************** | 1 | /******************************************************************************** |
486 | 2 | ** Form generated from reading UI file 'mainwindow.ui' | 2 | ** Form generated from reading UI file 'mainwindow.ui' |
487 | 3 | ** | 3 | ** |
488 | 4 | <<<<<<< TREE | ||
489 | 4 | ** Created: Mon Mar 14 14:35:20 2011 | 5 | ** Created: Mon Mar 14 14:35:20 2011 |
490 | 6 | ======= | ||
491 | 7 | ** Created: Mon Mar 14 10:09:39 2011 | ||
492 | 8 | >>>>>>> MERGE-SOURCE | ||
493 | 5 | ** by: Qt User Interface Compiler version 4.7.0 | 9 | ** by: Qt User Interface Compiler version 4.7.0 |
494 | 6 | ** | 10 | ** |
495 | 7 | ** WARNING! All changes made in this file will be lost when recompiling UI file! | 11 | ** WARNING! All changes made in this file will be lost when recompiling UI file! |
496 | @@ -35,15 +39,31 @@ | |||
497 | 35 | public: | 39 | public: |
498 | 36 | QAction *actionSavePrint; | 40 | QAction *actionSavePrint; |
499 | 37 | QAction *actionRegenerate_PasswordCard; | 41 | QAction *actionRegenerate_PasswordCard; |
500 | 42 | QAction *actionSave; | ||
501 | 38 | QWidget *centralWidget; | 43 | QWidget *centralWidget; |
502 | 44 | <<<<<<< TREE | ||
503 | 39 | QVBoxLayout *verticalLayout; | 45 | QVBoxLayout *verticalLayout; |
504 | 40 | QHBoxLayout *horizontalLayout; | 46 | QHBoxLayout *horizontalLayout; |
505 | 41 | QLabel *keyGenerateLabel; | 47 | QLabel *keyGenerateLabel; |
506 | 42 | QSpacerItem *horizontalSpacer; | 48 | QSpacerItem *horizontalSpacer; |
507 | 43 | QCheckBox *symbols; | 49 | QCheckBox *symbols; |
508 | 50 | ======= | ||
509 | 51 | QVBoxLayout *verticalLayout; | ||
510 | 52 | QHBoxLayout *horizontalLayout_2; | ||
511 | 53 | QLabel *keyGenerateLabel; | ||
512 | 54 | QSpacerItem *horizontalSpacer_2; | ||
513 | 55 | QLineEdit *keyLineEdit; | ||
514 | 56 | QSpacerItem *horizontalSpacer; | ||
515 | 57 | QCheckBox *symbols; | ||
516 | 58 | >>>>>>> MERGE-SOURCE | ||
517 | 44 | QTableWidget *tableWidget; | 59 | QTableWidget *tableWidget; |
518 | 60 | <<<<<<< TREE | ||
519 | 45 | QHBoxLayout *horizontalLayout_2; | 61 | QHBoxLayout *horizontalLayout_2; |
520 | 46 | QSpacerItem *horizontalSpacer_2; | 62 | QSpacerItem *horizontalSpacer_2; |
521 | 63 | ======= | ||
522 | 64 | QHBoxLayout *horizontalLayout; | ||
523 | 65 | QSpacerItem *horizontalSpacer_3; | ||
524 | 66 | >>>>>>> MERGE-SOURCE | ||
525 | 47 | QPushButton *pb_Generate; | 67 | QPushButton *pb_Generate; |
526 | 48 | QMenuBar *menuBar; | 68 | QMenuBar *menuBar; |
527 | 49 | QMenu *menuFile; | 69 | QMenu *menuFile; |
528 | @@ -53,13 +73,22 @@ | |||
529 | 53 | { | 73 | { |
530 | 54 | if (MainWindow->objectName().isEmpty()) | 74 | if (MainWindow->objectName().isEmpty()) |
531 | 55 | MainWindow->setObjectName(QString::fromUtf8("MainWindow")); | 75 | MainWindow->setObjectName(QString::fromUtf8("MainWindow")); |
532 | 76 | <<<<<<< TREE | ||
533 | 56 | MainWindow->resize(492, 402); | 77 | MainWindow->resize(492, 402); |
534 | 57 | actionSavePrint = new QAction(MainWindow); | 78 | actionSavePrint = new QAction(MainWindow); |
535 | 58 | actionSavePrint->setObjectName(QString::fromUtf8("actionSavePrint")); | 79 | actionSavePrint->setObjectName(QString::fromUtf8("actionSavePrint")); |
536 | 80 | ======= | ||
537 | 81 | MainWindow->resize(492, 402); | ||
538 | 82 | actionPrint = new QAction(MainWindow); | ||
539 | 83 | actionPrint->setObjectName(QString::fromUtf8("actionPrint")); | ||
540 | 84 | >>>>>>> MERGE-SOURCE | ||
541 | 59 | actionRegenerate_PasswordCard = new QAction(MainWindow); | 85 | actionRegenerate_PasswordCard = new QAction(MainWindow); |
542 | 60 | actionRegenerate_PasswordCard->setObjectName(QString::fromUtf8("actionRegenerate_PasswordCard")); | 86 | actionRegenerate_PasswordCard->setObjectName(QString::fromUtf8("actionRegenerate_PasswordCard")); |
543 | 87 | actionSave = new QAction(MainWindow); | ||
544 | 88 | actionSave->setObjectName(QString::fromUtf8("actionSave")); | ||
545 | 61 | centralWidget = new QWidget(MainWindow); | 89 | centralWidget = new QWidget(MainWindow); |
546 | 62 | centralWidget->setObjectName(QString::fromUtf8("centralWidget")); | 90 | centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
547 | 91 | <<<<<<< TREE | ||
548 | 63 | verticalLayout = new QVBoxLayout(centralWidget); | 92 | verticalLayout = new QVBoxLayout(centralWidget); |
549 | 64 | verticalLayout->setSpacing(6); | 93 | verticalLayout->setSpacing(6); |
550 | 65 | verticalLayout->setContentsMargins(11, 11, 11, 11); | 94 | verticalLayout->setContentsMargins(11, 11, 11, 11); |
551 | @@ -84,6 +113,43 @@ | |||
552 | 84 | 113 | ||
553 | 85 | verticalLayout->addLayout(horizontalLayout); | 114 | verticalLayout->addLayout(horizontalLayout); |
554 | 86 | 115 | ||
555 | 116 | ======= | ||
556 | 117 | verticalLayout = new QVBoxLayout(centralWidget); | ||
557 | 118 | verticalLayout->setSpacing(6); | ||
558 | 119 | verticalLayout->setContentsMargins(11, 11, 11, 11); | ||
559 | 120 | verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); | ||
560 | 121 | horizontalLayout_2 = new QHBoxLayout(); | ||
561 | 122 | horizontalLayout_2->setSpacing(6); | ||
562 | 123 | horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2")); | ||
563 | 124 | horizontalLayout_2->setContentsMargins(3, -1, 3, 0); | ||
564 | 125 | keyGenerateLabel = new QLabel(centralWidget); | ||
565 | 126 | keyGenerateLabel->setObjectName(QString::fromUtf8("keyGenerateLabel")); | ||
566 | 127 | |||
567 | 128 | horizontalLayout_2->addWidget(keyGenerateLabel); | ||
568 | 129 | |||
569 | 130 | horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); | ||
570 | 131 | |||
571 | 132 | horizontalLayout_2->addItem(horizontalSpacer_2); | ||
572 | 133 | |||
573 | 134 | keyLineEdit = new QLineEdit(centralWidget); | ||
574 | 135 | keyLineEdit->setObjectName(QString::fromUtf8("keyLineEdit")); | ||
575 | 136 | keyLineEdit->setReadOnly(true); | ||
576 | 137 | |||
577 | 138 | horizontalLayout_2->addWidget(keyLineEdit); | ||
578 | 139 | |||
579 | 140 | horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); | ||
580 | 141 | |||
581 | 142 | horizontalLayout_2->addItem(horizontalSpacer); | ||
582 | 143 | |||
583 | 144 | symbols = new QCheckBox(centralWidget); | ||
584 | 145 | symbols->setObjectName(QString::fromUtf8("symbols")); | ||
585 | 146 | |||
586 | 147 | horizontalLayout_2->addWidget(symbols); | ||
587 | 148 | |||
588 | 149 | |||
589 | 150 | verticalLayout->addLayout(horizontalLayout_2); | ||
590 | 151 | |||
591 | 152 | >>>>>>> MERGE-SOURCE | ||
592 | 87 | tableWidget = new QTableWidget(centralWidget); | 153 | tableWidget = new QTableWidget(centralWidget); |
593 | 88 | if (tableWidget->columnCount() < 15) | 154 | if (tableWidget->columnCount() < 15) |
594 | 89 | tableWidget->setColumnCount(15); | 155 | tableWidget->setColumnCount(15); |
595 | @@ -140,6 +206,7 @@ | |||
596 | 140 | tableWidget->setSelectionMode(QAbstractItemView::NoSelection); | 206 | tableWidget->setSelectionMode(QAbstractItemView::NoSelection); |
597 | 141 | tableWidget->horizontalHeader()->setDefaultSectionSize(30); | 207 | tableWidget->horizontalHeader()->setDefaultSectionSize(30); |
598 | 142 | tableWidget->horizontalHeader()->setMinimumSectionSize(30); | 208 | tableWidget->horizontalHeader()->setMinimumSectionSize(30); |
599 | 209 | <<<<<<< TREE | ||
600 | 143 | 210 | ||
601 | 144 | verticalLayout->addWidget(tableWidget); | 211 | verticalLayout->addWidget(tableWidget); |
602 | 145 | 212 | ||
603 | @@ -150,14 +217,36 @@ | |||
604 | 150 | 217 | ||
605 | 151 | horizontalLayout_2->addItem(horizontalSpacer_2); | 218 | horizontalLayout_2->addItem(horizontalSpacer_2); |
606 | 152 | 219 | ||
607 | 220 | ======= | ||
608 | 221 | |||
609 | 222 | verticalLayout->addWidget(tableWidget); | ||
610 | 223 | |||
611 | 224 | horizontalLayout = new QHBoxLayout(); | ||
612 | 225 | horizontalLayout->setSpacing(6); | ||
613 | 226 | horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout")); | ||
614 | 227 | horizontalLayout->setContentsMargins(3, -1, 3, -1); | ||
615 | 228 | horizontalSpacer_3 = new QSpacerItem(88, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); | ||
616 | 229 | |||
617 | 230 | horizontalLayout->addItem(horizontalSpacer_3); | ||
618 | 231 | |||
619 | 232 | >>>>>>> MERGE-SOURCE | ||
620 | 153 | pb_Generate = new QPushButton(centralWidget); | 233 | pb_Generate = new QPushButton(centralWidget); |
621 | 154 | pb_Generate->setObjectName(QString::fromUtf8("pb_Generate")); | 234 | pb_Generate->setObjectName(QString::fromUtf8("pb_Generate")); |
622 | 235 | <<<<<<< TREE | ||
623 | 155 | 236 | ||
624 | 156 | horizontalLayout_2->addWidget(pb_Generate); | 237 | horizontalLayout_2->addWidget(pb_Generate); |
625 | 157 | 238 | ||
626 | 158 | 239 | ||
627 | 159 | verticalLayout->addLayout(horizontalLayout_2); | 240 | verticalLayout->addLayout(horizontalLayout_2); |
628 | 160 | 241 | ||
629 | 242 | ======= | ||
630 | 243 | |||
631 | 244 | horizontalLayout->addWidget(pb_Generate); | ||
632 | 245 | |||
633 | 246 | |||
634 | 247 | verticalLayout->addLayout(horizontalLayout); | ||
635 | 248 | |||
636 | 249 | >>>>>>> MERGE-SOURCE | ||
637 | 161 | MainWindow->setCentralWidget(centralWidget); | 250 | MainWindow->setCentralWidget(centralWidget); |
638 | 162 | menuBar = new QMenuBar(MainWindow); | 251 | menuBar = new QMenuBar(MainWindow); |
639 | 163 | menuBar->setObjectName(QString::fromUtf8("menuBar")); | 252 | menuBar->setObjectName(QString::fromUtf8("menuBar")); |
640 | @@ -172,6 +261,7 @@ | |||
641 | 172 | menuBar->addAction(menuFile->menuAction()); | 261 | menuBar->addAction(menuFile->menuAction()); |
642 | 173 | menuFile->addAction(actionSavePrint); | 262 | menuFile->addAction(actionSavePrint); |
643 | 174 | menuFile->addAction(actionRegenerate_PasswordCard); | 263 | menuFile->addAction(actionRegenerate_PasswordCard); |
644 | 264 | menuFile->addAction(actionSave); | ||
645 | 175 | 265 | ||
646 | 176 | retranslateUi(MainWindow); | 266 | retranslateUi(MainWindow); |
647 | 177 | 267 | ||
648 | @@ -180,11 +270,22 @@ | |||
649 | 180 | 270 | ||
650 | 181 | void retranslateUi(QMainWindow *MainWindow) | 271 | void retranslateUi(QMainWindow *MainWindow) |
651 | 182 | { | 272 | { |
652 | 273 | <<<<<<< TREE | ||
653 | 183 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8)); | 274 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8)); |
654 | 184 | actionSavePrint->setText(QApplication::translate("MainWindow", "Save/Print", 0, QApplication::UnicodeUTF8)); | 275 | actionSavePrint->setText(QApplication::translate("MainWindow", "Save/Print", 0, QApplication::UnicodeUTF8)); |
655 | 276 | ======= | ||
656 | 277 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "Randy", 0, QApplication::UnicodeUTF8)); | ||
657 | 278 | actionPrint->setText(QApplication::translate("MainWindow", "Print", 0, QApplication::UnicodeUTF8)); | ||
658 | 279 | >>>>>>> MERGE-SOURCE | ||
659 | 185 | actionRegenerate_PasswordCard->setText(QApplication::translate("MainWindow", "Regenerate PasswordCard", 0, QApplication::UnicodeUTF8)); | 280 | actionRegenerate_PasswordCard->setText(QApplication::translate("MainWindow", "Regenerate PasswordCard", 0, QApplication::UnicodeUTF8)); |
662 | 186 | keyGenerateLabel->setText(QApplication::translate("MainWindow", "Password card Key", 0, QApplication::UnicodeUTF8)); | 281 | <<<<<<< TREE |
663 | 187 | symbols->setText(QApplication::translate("MainWindow", "Use Symbols", 0, QApplication::UnicodeUTF8)); | 282 | keyGenerateLabel->setText(QApplication::translate("MainWindow", "Password card Key", 0, QApplication::UnicodeUTF8)); |
664 | 283 | symbols->setText(QApplication::translate("MainWindow", "Use Symbols", 0, QApplication::UnicodeUTF8)); | ||
665 | 284 | ======= | ||
666 | 285 | actionSave->setText(QApplication::translate("MainWindow", "Save", 0, QApplication::UnicodeUTF8)); | ||
667 | 286 | keyGenerateLabel->setText(QApplication::translate("MainWindow", "Password card Key", 0, QApplication::UnicodeUTF8)); | ||
668 | 287 | symbols->setText(QApplication::translate("MainWindow", "Use Symbols", 0, QApplication::UnicodeUTF8)); | ||
669 | 288 | >>>>>>> MERGE-SOURCE | ||
670 | 188 | QTableWidgetItem *___qtablewidgetitem = tableWidget->horizontalHeaderItem(0); | 289 | QTableWidgetItem *___qtablewidgetitem = tableWidget->horizontalHeaderItem(0); |
671 | 189 | ___qtablewidgetitem->setText(QApplication::translate("MainWindow", "A", 0, QApplication::UnicodeUTF8)); | 290 | ___qtablewidgetitem->setText(QApplication::translate("MainWindow", "A", 0, QApplication::UnicodeUTF8)); |
672 | 190 | QTableWidgetItem *___qtablewidgetitem1 = tableWidget->horizontalHeaderItem(1); | 291 | QTableWidgetItem *___qtablewidgetitem1 = tableWidget->horizontalHeaderItem(1); |
their were some conflicts, Guarev too cake of those. Looks great