author | ar <ar> | 2004-05-03 21:35:18 (UTC) |
---|---|---|
committer | ar <ar> | 2004-05-03 21:35:18 (UTC) |
commit | 412619441fab46fc79c695a23ccf9e38135bdfad (patch) (unidiff) | |
tree | 19d9b8af14cf6c345ef532bb32368b9c7b43c50f /noncore/apps/opie-gutenbrowser/optionsDialog.cpp | |
parent | d1095d71394779557f446e2a67ba55bc62eec859 (diff) | |
download | opie-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) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-gutenbrowser/optionsDialog.cpp | 36 |
1 files changed, 22 insertions, 14 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 @@ | |||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * |
11 | * it under the terms of the GNU General Public License as published by * | 11 | * it under the terms of the GNU General Public License as published by * |
12 | * the Free Software Foundation; either version 2 of the License, or * | 12 | * the Free Software Foundation; either version 2 of the License, or * |
13 | * (at your option) any later version. * | 13 | * (at your option) any later version. * |
14 | * * | 14 | * * |
15 | ***************************************************************************/ | 15 | ***************************************************************************/ |
16 | #include "optionsDialog.h" | ||
17 | #include <qpe/config.h> | ||
18 | #include "fontDialog.h" | ||
19 | 16 | ||
20 | // #include <unistd.h> | ||
21 | // #include <stdio.h> | ||
22 | // #include <stdlib.h> | ||
23 | 17 | ||
18 | #include "optionsDialog.h" | ||
19 | #include "fontDialog.h" | ||
24 | //#include "ftpsitedlg.h" | 20 | //#include "ftpsitedlg.h" |
25 | //#include "browserDialog.h" | 21 | //#include "browserDialog.h" |
26 | //#define Inherited QDialog | 22 | //#define Inherited QDialog |
23 | |||
24 | /* OPIE */ | ||
25 | #include <opie2/odebug.h> | ||
26 | #include <qpe/config.h> | ||
27 | |||
28 | /* QT */ | ||
27 | #include <qfont.h> | 29 | #include <qfont.h> |
28 | #include <qcheckbox.h> | 30 | #include <qcheckbox.h> |
29 | #include <qcombobox.h> | 31 | #include <qcombobox.h> |
30 | #include <qlabel.h> | 32 | #include <qlabel.h> |
31 | #include <qlistbox.h> | 33 | #include <qlistbox.h> |
32 | #include <qpushbutton.h> | 34 | #include <qpushbutton.h> |
@@ -35,12 +37,18 @@ | |||
35 | #include <qlayout.h> | 37 | #include <qlayout.h> |
36 | #include <qvariant.h> | 38 | #include <qvariant.h> |
37 | #include <qtooltip.h> | 39 | #include <qtooltip.h> |
38 | #ifndef Q_WS_QWS | 40 | #ifndef Q_WS_QWS |
39 | #include <qwhatsthis.h> | 41 | #include <qwhatsthis.h> |
40 | #endif | 42 | #endif |
43 | |||
44 | /* STD */ | ||
45 | // #include <unistd.h> | ||
46 | // #include <stdio.h> | ||
47 | // #include <stdlib.h> | ||
48 | |||
41 | /* | 49 | /* |
42 | * The dialog will by default be modeless, unless you set 'modal' to | 50 | * The dialog will by default be modeless, unless you set 'modal' to |
43 | * TRUE to construct a modal dialog. | 51 | * TRUE to construct a modal dialog. |
44 | */ | 52 | */ |
45 | optionsDialog::optionsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) | 53 | optionsDialog::optionsDialog( QWidget* parent, const char* name, bool modal, WFlags fl ) |
46 | : QDialog( parent, name, modal, fl ) | 54 | : QDialog( parent, name, modal, fl ) |
@@ -57,13 +65,13 @@ optionsDialog::optionsDialog( QWidget* parent, const char* name, bool modal, WF | |||
57 | BrowserDlg(); | 65 | BrowserDlg(); |
58 | FontDialog(); | 66 | FontDialog(); |
59 | } | 67 | } |
60 | 68 | ||
61 | optionsDialog::~optionsDialog() | 69 | optionsDialog::~optionsDialog() |
62 | { | 70 | { |
63 | //qDebug("OnExit()"); | 71 | //odebug << "OnExit()" << oendl; |
64 | // writeConfig(); | 72 | // writeConfig(); |
65 | } | 73 | } |
66 | 74 | ||
67 | /// optionsDialog | 75 | /// optionsDialog |
68 | void optionsDialog::doOptions() { | 76 | void optionsDialog::doOptions() { |
69 | 77 | ||
@@ -122,29 +130,29 @@ void optionsDialog::getConfig() | |||
122 | // if( i_style==10){ styleInt=10; ComboBoxStyle->setCurrentItem(10);}//"styleLacePlus")); | 130 | // if( i_style==10){ styleInt=10; ComboBoxStyle->setCurrentItem(10);}//"styleLacePlus")); |
123 | // #endif | 131 | // #endif |
124 | config.setGroup("General"); | 132 | config.setGroup("General"); |
125 | QString qExit=config.readEntry("queryExit","TRUE"); | 133 | QString qExit=config.readEntry("queryExit","TRUE"); |
126 | if(qExit=="TRUE") { | 134 | if(qExit=="TRUE") { |
127 | cb_queryExit->setChecked(TRUE); | 135 | cb_queryExit->setChecked(TRUE); |
128 | qDebug("Config Setting b_qExit=TRUE;"); | 136 | odebug << "Config Setting b_qExit=TRUE;" << oendl; |
129 | b_qExit=TRUE; | 137 | b_qExit=TRUE; |
130 | } else { | 138 | } else { |
131 | cb_queryExit->setChecked(FALSE); | 139 | cb_queryExit->setChecked(FALSE); |
132 | qDebug("ConfigSetting b_qExit=FALSE;"); | 140 | odebug << "ConfigSetting b_qExit=FALSE;" << oendl; |
133 | b_qExit=FALSE; | 141 | b_qExit=FALSE; |
134 | } | 142 | } |
135 | 143 | ||
136 | 144 | ||
137 | useWordWrap_CheckBox->setChecked( config.readBoolEntry("WordWrap", 1)); | 145 | useWordWrap_CheckBox->setChecked( config.readBoolEntry("WordWrap", 1)); |
138 | QString downDir=config.readEntry( "DownloadDirectory",local_library); | 146 | QString downDir=config.readEntry( "DownloadDirectory",local_library); |
139 | downloadDirEdit->setText(downDir); | 147 | downloadDirEdit->setText(downDir); |
140 | } // end getConfig | 148 | } // end getConfig |
141 | 149 | ||
142 | // // void optionsDialog::setStyle( int index) { | 150 | // // void optionsDialog::setStyle( int index) { |
143 | 151 | ||
144 | // // qDebug("Set style%d",index); | 152 | // // odebug << "Set style" << index << "" << oendl; |
145 | // // //int styleInt= index; | 153 | // // //int styleInt= index; |
146 | // // styleChanged=TRUE; | 154 | // // styleChanged=TRUE; |
147 | // // if( ComboBoxStyle->currentItem()==0) styleInt=0;//"styleMetal")); | 155 | // // if( ComboBoxStyle->currentItem()==0) styleInt=0;//"styleMetal")); |
148 | // // if( ComboBoxStyle->currentItem()==1) styleInt=1;//"styleWindows") ); | 156 | // // if( ComboBoxStyle->currentItem()==1) styleInt=1;//"styleWindows") ); |
149 | // // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"stylePlatinum")); | 157 | // // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"stylePlatinum")); |
150 | // // // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"styleCDE") ); | 158 | // // // if( ComboBoxStyle->currentItem()==2) styleInt=2;//"styleCDE") ); |
@@ -164,33 +172,33 @@ void optionsDialog::getConfig() | |||
164 | // // } | 172 | // // } |
165 | 173 | ||
166 | void optionsDialog::slotQueryExit() | 174 | void optionsDialog::slotQueryExit() |
167 | { | 175 | { |
168 | Config config("Gutenbrowser"); | 176 | Config config("Gutenbrowser"); |
169 | config.setGroup("General"); | 177 | config.setGroup("General"); |
170 | qDebug("writing queryExit"); | 178 | odebug << "writing queryExit" << oendl; |
171 | if(cb_queryExit->isChecked()) { | 179 | if(cb_queryExit->isChecked()) { |
172 | b_qExit=TRUE; | 180 | b_qExit=TRUE; |
173 | config.writeEntry("queryExit","TRUE"); | 181 | config.writeEntry("queryExit","TRUE"); |
174 | qDebug("WritingConfig queryExit=TRUE"); | 182 | odebug << "WritingConfig queryExit=TRUE" << oendl; |
175 | } else { | 183 | } else { |
176 | b_qExit=FALSE; | 184 | b_qExit=FALSE; |
177 | config.writeEntry("queryExit","FALSE"); | 185 | config.writeEntry("queryExit","FALSE"); |
178 | qDebug("WritingConfig queryExit=FALSE"); | 186 | odebug << "WritingConfig queryExit=FALSE" << oendl; |
179 | } | 187 | } |
180 | config.write(); | 188 | config.write(); |
181 | } | 189 | } |
182 | 190 | ||
183 | 191 | ||
184 | // void optionsDialog::slotUseSplit() | 192 | // void optionsDialog::slotUseSplit() |
185 | // { | 193 | // { |
186 | 194 | ||
187 | // } | 195 | // } |
188 | 196 | ||
189 | // void optionsDialog::lineEditChanged(const QString &editText) { | 197 | // void optionsDialog::lineEditChanged(const QString &editText) { |
190 | // qDebug(editText); | 198 | // odebug << editText << oendl; |
191 | // } | 199 | // } |
192 | 200 | ||
193 | void optionsDialog::changeFonts() | 201 | void optionsDialog::changeFonts() |
194 | { | 202 | { |
195 | changedFonts=TRUE; | 203 | changedFonts=TRUE; |
196 | } | 204 | } |