summaryrefslogtreecommitdiff
path: root/noncore/net/wellenreiter/gui/configwindow.cpp
Side-by-side diff
Diffstat (limited to 'noncore/net/wellenreiter/gui/configwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/wellenreiter/gui/configwindow.cpp27
1 files changed, 17 insertions, 10 deletions
diff --git a/noncore/net/wellenreiter/gui/configwindow.cpp b/noncore/net/wellenreiter/gui/configwindow.cpp
index 279b39c..89ed24c 100644
--- a/noncore/net/wellenreiter/gui/configwindow.cpp
+++ b/noncore/net/wellenreiter/gui/configwindow.cpp
@@ -38,7 +38,8 @@ using namespace Opie::Net;
#include <qmap.h>
#include <qpushbutton.h>
+#include <qradiobutton.h>
+#include <qspinbox.h>
#include <qtabwidget.h>
#include <qtoolbutton.h>
-#include <qspinbox.h>
#include <qtextstream.h>
@@ -113,5 +114,5 @@ void WellenreiterConfigWindow::performAutodetection()
// like we're actually doing something fancy... ;-)
- odebug << "WellenreiterConfigWindow::performAutodetection()" << oendl;
+ odebug << "WellenreiterConfigWindow::performAutodetection()" << oendl;
// try to guess device type
@@ -134,5 +135,5 @@ void WellenreiterConfigWindow::performAutodetection()
deviceType->setCurrentItem( devicetype );
_guess = devicetype;
- odebug << "Wellenreiter: guessed device type to be #" << devicetype << "" << oendl;
+ odebug << "Wellenreiter: guessed device type to be #" << devicetype << "" << oendl;
}
}
@@ -238,5 +239,5 @@ void WellenreiterConfigWindow::getCaptureFileNameClicked()
{
QString name = ( (WellenreiterMainWindow*) qApp->mainWidget() )->getFileName(true);
- odebug << "name = " << name << "" << oendl;
+ odebug << "name = " << name << "" << oendl;
if ( !name.isEmpty() )
{
@@ -313,9 +314,9 @@ void WellenreiterConfigWindow::performAction( const QString& type,
else
{
- owarn << "WellenreiterConfigWindow::performAction(): unknown type '" << type << "'" << oendl;
+ owarn << "WellenreiterConfigWindow::performAction(): unknown type '" << type << "'" << oendl;
return;
}
- odebug << "for event '" << (const char*) type << "' I'm going to perform action " << action << " (script='" << script << "')" << oendl;
+ odebug << "for event '" << (const char*) type << "' I'm going to perform action " << action << " (script='" << script << "')" << oendl;
switch( action )
@@ -342,7 +343,7 @@ void WellenreiterConfigWindow::performAction( const QString& type,
script = script.replace( QRegExp( "$CHAN" ), QString::number( channel ) );
- odebug << "going to call script '" << script << "'" << oendl;
+ odebug << "going to call script '" << script << "'" << oendl;
::system( script );
- odebug << "script returned." << oendl;
+ odebug << "script returned." << oendl;
return;
}
@@ -358,5 +359,5 @@ void WellenreiterConfigWindow::load()
performAutodetection();
#else
- odebug << "loading configuration settings..." << oendl;
+ odebug << "loading configuration settings..." << oendl;
/* This is dumb monkey typing stuff... We _need_ to do this automatically! */
@@ -436,5 +437,5 @@ void WellenreiterConfigWindow::save()
#warning Persistent Configuration not yet implemented for standalone X11 build
#else
- odebug << "saving configuration settings..." << oendl;
+ odebug << "saving configuration settings..." << oendl;
/* This is dumb monkey typing stuff... We _need_ to do this automatically! */
@@ -475,2 +476,8 @@ void WellenreiterConfigWindow::save()
#endif
}
+
+
+int WellenreiterConfigWindow::hexViewBuffer() const
+{
+ return hexViewBufferUnlimited->isChecked() ? -1 : hexViewBufferSize->value();
+}