Diffstat (limited to 'noncore/net/wellenreiter/gui/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/wellenreiter/gui/mainwindow.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/noncore/net/wellenreiter/gui/mainwindow.cpp b/noncore/net/wellenreiter/gui/mainwindow.cpp index 6f57a7f..5cc0daf 100644 --- a/noncore/net/wellenreiter/gui/mainwindow.cpp +++ b/noncore/net/wellenreiter/gui/mainwindow.cpp | |||
@@ -7,25 +7,25 @@ | |||
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | **********************************************************************/ | 14 | **********************************************************************/ |
15 | 15 | ||
16 | #include "configwindow.h" | 16 | #include "configwindow.h" |
17 | #include "gps.h" | 17 | #include "gps.h" |
18 | #include "logwindow.h" | 18 | #include "logwindow.h" |
19 | #include "hexwindow.h" | 19 | #include "packetview.h" |
20 | #include "mainwindow.h" | 20 | #include "mainwindow.h" |
21 | #include "wellenreiter.h" | 21 | #include "wellenreiter.h" |
22 | #include "scanlist.h" | 22 | #include "scanlist.h" |
23 | 23 | ||
24 | #include <qcombobox.h> | 24 | #include <qcombobox.h> |
25 | #include <qdatastream.h> | 25 | #include <qdatastream.h> |
26 | #include <qfile.h> | 26 | #include <qfile.h> |
27 | #include <qfileinfo.h> | 27 | #include <qfileinfo.h> |
28 | #include <qlabel.h> | 28 | #include <qlabel.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qlineedit.h> | 30 | #include <qlineedit.h> |
31 | #include <qiconset.h> | 31 | #include <qiconset.h> |
@@ -323,40 +323,43 @@ void WellenreiterMainWindow::fileSaveSession() | |||
323 | f.close(); | 323 | f.close(); |
324 | qDebug( "Saved session to file '%s'", (const char*) fname ); | 324 | qDebug( "Saved session to file '%s'", (const char*) fname ); |
325 | } | 325 | } |
326 | else | 326 | else |
327 | { | 327 | { |
328 | qDebug( "Problem saving session to file '%s'", (const char*) fname ); | 328 | qDebug( "Problem saving session to file '%s'", (const char*) fname ); |
329 | } | 329 | } |
330 | } | 330 | } |
331 | } | 331 | } |
332 | 332 | ||
333 | void WellenreiterMainWindow::fileSaveHex() | 333 | void WellenreiterMainWindow::fileSaveHex() |
334 | { | 334 | { |
335 | #warning DOES NOT WORK AT THE MOMENT | ||
336 | /* | ||
335 | QString fname = getFileName( true ); | 337 | QString fname = getFileName( true ); |
336 | if ( !fname.isEmpty() ) | 338 | if ( !fname.isEmpty() ) |
337 | { | 339 | { |
338 | QFile f( fname ); | 340 | QFile f( fname ); |
339 | if ( f.open(IO_WriteOnly) ) | 341 | if ( f.open(IO_WriteOnly) ) |
340 | { | 342 | { |
341 | QTextStream t( &f ); | 343 | QTextStream t( &f ); |
342 | t << mw->hexWindow()->getLog(); | 344 | t << mw->hexWindow()->getLog(); |
343 | f.close(); | 345 | f.close(); |
344 | qDebug( "Saved hex log to file '%s'", (const char*) fname ); | 346 | qDebug( "Saved hex log to file '%s'", (const char*) fname ); |
345 | } | 347 | } |
346 | else | 348 | else |
347 | { | 349 | { |
348 | qDebug( "Problem saving hex log to file '%s'", (const char*) fname ); | 350 | qDebug( "Problem saving hex log to file '%s'", (const char*) fname ); |
349 | } | 351 | } |
350 | } | 352 | } |
353 | */ | ||
351 | } | 354 | } |
352 | 355 | ||
353 | void WellenreiterMainWindow::fileLoadSession() | 356 | void WellenreiterMainWindow::fileLoadSession() |
354 | { | 357 | { |
355 | QString fname = getFileName( false ); | 358 | QString fname = getFileName( false ); |
356 | if ( !fname.isEmpty() ) | 359 | if ( !fname.isEmpty() ) |
357 | { | 360 | { |
358 | QFile f( fname ); | 361 | QFile f( fname ); |
359 | if ( f.open(IO_ReadOnly) ) | 362 | if ( f.open(IO_ReadOnly) ) |
360 | { | 363 | { |
361 | QDataStream t( &f ); | 364 | QDataStream t( &f ); |
362 | t >> *mw->netView(); | 365 | t >> *mw->netView(); |