summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/optionsDialog.cpp
authorar <ar>2004-05-03 21:35:18 (UTC)
committer ar <ar>2004-05-03 21:35:18 (UTC)
commit412619441fab46fc79c695a23ccf9e38135bdfad (patch) (side-by-side diff)
tree19d9b8af14cf6c345ef532bb32368b9c7b43c50f /noncore/apps/opie-gutenbrowser/optionsDialog.cpp
parentd1095d71394779557f446e2a67ba55bc62eec859 (diff)
downloadopie-412619441fab46fc79c695a23ccf9e38135bdfad.zip
opie-412619441fab46fc79c695a23ccf9e38135bdfad.tar.gz
opie-412619441fab46fc79c695a23ccf9e38135bdfad.tar.bz2
- convert qDebug to odebug
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/optionsDialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/optionsDialog.cpp42
1 files changed, 25 insertions, 17 deletions
diff --git a/noncore/apps/opie-gutenbrowser/optionsDialog.cpp b/noncore/apps/opie-gutenbrowser/optionsDialog.cpp
index bfd9c26..8cc83da 100644
--- a/noncore/apps/opie-gutenbrowser/optionsDialog.cpp
+++ b/noncore/apps/opie-gutenbrowser/optionsDialog.cpp
@@ -10,23 +10,25 @@
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
-#include "optionsDialog.h"
-#include <qpe/config.h>
-#include "fontDialog.h"
-// #include <unistd.h>
-// #include <stdio.h>
-// #include <stdlib.h>
+#include "optionsDialog.h"
+#include "fontDialog.h"
//#include "ftpsitedlg.h"
//#include "browserDialog.h"
//#define Inherited QDialog
+
+/* OPIE */
+#include <opie2/odebug.h>
+#include <qpe/config.h>
+
+/* QT */
#include <qfont.h>
#include <qcheckbox.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qlistbox.h>
#include <qpushbutton.h>
@@ -35,12 +37,18 @@
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#ifndef Q_WS_QWS
#include <qwhatsthis.h>
#endif
+
+/* STD */
+// #include <unistd.h>
+// #include <stdio.h>
+// #include <stdlib.h>
+
/*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
optionsDialog::optionsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
@@ -57,13 +65,13 @@ optionsDialog::optionsDialog( QWidget* parent, const char* name, bool modal, WF
BrowserDlg();
FontDialog();
}
optionsDialog::~optionsDialog()
{
-//qDebug("OnExit()");
+//odebug << "OnExit()" << oendl;
// writeConfig();
}
/// optionsDialog
void optionsDialog::doOptions() {
@@ -122,29 +130,29 @@ void optionsDialog::getConfig()
// if( i_style==10){ styleInt=10; ComboBoxStyle->setCurrentItem(10);}//"styleLacePlus"));
// #endif
config.setGroup("General");
QString qExit=config.readEntry("queryExit","TRUE");
if(qExit=="TRUE") {
cb_queryExit->setChecked(TRUE);
- qDebug("Config Setting b_qExit=TRUE;");
+ odebug << "Config Setting b_qExit=TRUE;" << oendl;
b_qExit=TRUE;
} else {
cb_queryExit->setChecked(FALSE);
- qDebug("ConfigSetting b_qExit=FALSE;");
+ odebug << "ConfigSetting b_qExit=FALSE;" << oendl;
b_qExit=FALSE;
}
-
+
useWordWrap_CheckBox->setChecked( config.readBoolEntry("WordWrap", 1));
QString downDir=config.readEntry( "DownloadDirectory",local_library);
downloadDirEdit->setText(downDir);
} // end getConfig
// // void optionsDialog::setStyle( int index) {
-// // qDebug("Set style%d",index);
+// // odebug << "Set style" << index << "" << oendl;
// // //int styleInt= index;
// // styleChanged=TRUE;
// // if( ComboBoxStyle->currentItem()==0) styleInt=0;//"styleMetal"));
// // if( ComboBoxStyle->currentItem()==1) styleInt=1;//"styleWindows") );
// // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"stylePlatinum"));
// // // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"styleCDE") );
@@ -164,44 +172,44 @@ void optionsDialog::getConfig()
// // }
void optionsDialog::slotQueryExit()
{
Config config("Gutenbrowser");
config.setGroup("General");
- qDebug("writing queryExit");
+ odebug << "writing queryExit" << oendl;
if(cb_queryExit->isChecked()) {
b_qExit=TRUE;
config.writeEntry("queryExit","TRUE");
- qDebug("WritingConfig queryExit=TRUE");
+ odebug << "WritingConfig queryExit=TRUE" << oendl;
} else {
b_qExit=FALSE;
config.writeEntry("queryExit","FALSE");
- qDebug("WritingConfig queryExit=FALSE");
+ odebug << "WritingConfig queryExit=FALSE" << oendl;
}
config.write();
}
// void optionsDialog::slotUseSplit()
// {
// }
// void optionsDialog::lineEditChanged(const QString &editText) {
-// qDebug(editText);
+// odebug << editText << oendl;
// }
-void optionsDialog::changeFonts()
+void optionsDialog::changeFonts()
{
changedFonts=TRUE;
}
void optionsDialog::slotWordWrap(bool b) {
Config config("Gutenbrowser");
config.setGroup("General");
config.writeEntry("WordWrap", b);
config.write();
-
+
}