-rw-r--r-- | noncore/apps/opie-gutenbrowser/optionsDialogData.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp b/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp index e03fa2c..772926a 100644 --- a/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp +++ b/noncore/apps/opie-gutenbrowser/optionsDialogData.cpp | |||
@@ -17,19 +17,19 @@ | |||
17 | 17 | ||
18 | #include <qlabel.h> | 18 | #include <qlabel.h> |
19 | #include <qpushbutton.h> | 19 | #include <qpushbutton.h> |
20 | #include <qlineedit.h> | 20 | #include <qlineedit.h> |
21 | #include <qcombobox.h> | 21 | #include <qcombobox.h> |
22 | 22 | ||
23 | void optionsDialog::initDialog() | 23 | void optionsDialog::initDialog() |
24 | { | 24 | { |
25 | QWidget *d = QApplication::desktop(); | 25 | // QWidget *d = QApplication::desktop(); |
26 | int width = d->width(); | 26 | // int width = d->width(); |
27 | int height = d->height(); | 27 | // int height = d->height(); |
28 | 28 | ||
29 | QGridLayout *layout = new QGridLayout( this ); | 29 | QGridLayout *layout = new QGridLayout( this ); |
30 | layout->setSpacing(2); | 30 | layout->setSpacing(2); |
31 | layout->setMargin(2); | 31 | layout->setMargin(2); |
32 | 32 | ||
33 | tabWidget = new QTabWidget( this, "tabWidget" ); | 33 | tabWidget = new QTabWidget( this, "tabWidget" ); |
34 | layout->addMultiCellWidget( tabWidget, 0, 0, 0, 3); | 34 | layout->addMultiCellWidget( tabWidget, 0, 0, 0, 3); |
35 | 35 | ||
@@ -39,17 +39,17 @@ void optionsDialog::initDialog() | |||
39 | layout2->setSpacing(2); | 39 | layout2->setSpacing(2); |
40 | layout2->setMargin(2); | 40 | layout2->setMargin(2); |
41 | 41 | ||
42 | // Http_CheckBox = new QCheckBox( Widget2, "Http_CheckBox" ); | 42 | // Http_CheckBox = new QCheckBox( Widget2, "Http_CheckBox" ); |
43 | 43 | ||
44 | QLabel *downLabel= new QLabel(Widget2,"Label1"); | 44 | QLabel *downLabel= new QLabel(Widget2,"Label1"); |
45 | downLabel->setText("Download Directory:"); | 45 | downLabel->setText("Download Directory:"); |
46 | downLabel->setMaximumHeight(30); | 46 | downLabel->setMaximumHeight(30); |
47 | 47 | ||
48 | downloadDirEdit = new QLineEdit(Widget2,"downloadDir"); | 48 | downloadDirEdit = new QLineEdit(Widget2,"downloadDir"); |
49 | 49 | ||
50 | // ComboBoxStyle = new QComboBox( FALSE, Widget2, "ComboBoxStyle" ); | 50 | // ComboBoxStyle = new QComboBox( FALSE, Widget2, "ComboBoxStyle" ); |
51 | // ComboBoxStyle->insertItem( tr( "styleMetal") ); | 51 | // ComboBoxStyle->insertItem( tr( "styleMetal") ); |
52 | // ComboBoxStyle->insertItem( tr( "styleWindows") ); | 52 | // ComboBoxStyle->insertItem( tr( "styleWindows") ); |
53 | // ComboBoxStyle->insertItem( tr( "default style") ); | 53 | // ComboBoxStyle->insertItem( tr( "default style") ); |
54 | 54 | ||
55 | cb_queryExit = new QCheckBox( Widget2, "cb_queryExit" ); | 55 | cb_queryExit = new QCheckBox( Widget2, "cb_queryExit" ); |
@@ -84,17 +84,17 @@ void optionsDialog::initDialog() | |||
84 | TextLabel3 = new QLabel( Widget3, "TextLabel3" ); | 84 | TextLabel3 = new QLabel( Widget3, "TextLabel3" ); |
85 | // TextLabel3->setProperty( "text", tr( "Current ftp server:/n" ) ); | 85 | // TextLabel3->setProperty( "text", tr( "Current ftp server:/n" ) ); |
86 | ftp_QListBox_1 = new QListBox( Widget3, "ftp_QListBox_1" ); | 86 | ftp_QListBox_1 = new QListBox( Widget3, "ftp_QListBox_1" ); |
87 | ftp_DownloadButton = new QPushButton( Widget3, "ftp_DownloadButton" ); | 87 | ftp_DownloadButton = new QPushButton( Widget3, "ftp_DownloadButton" ); |
88 | 88 | ||
89 | ////////////////////////////////////////////////////////// | 89 | ////////////////////////////////////////////////////////// |
90 | tabWidget->insertTab( Widget3, tr( "FTP" ) ); | 90 | tabWidget->insertTab( Widget3, tr( "FTP" ) ); |
91 | tab = new QWidget( tabWidget, "tab" ); | 91 | tab = new QWidget( tabWidget, "tab" ); |
92 | 92 | ||
93 | TextLabel3_3 = new QLabel( tab, "TextLabel3_3" ); | 93 | TextLabel3_3 = new QLabel( tab, "TextLabel3_3" ); |
94 | 94 | ||
95 | // TextLabel4 = new QLabel( tab, "TextLabel4" ); | 95 | // TextLabel4 = new QLabel( tab, "TextLabel4" ); |
96 | // TextLabel5 = new QLabel( tab, "TextLabel5" ); | 96 | // TextLabel5 = new QLabel( tab, "TextLabel5" ); |
97 | 97 | ||
98 | PushButton_Browse = new QPushButton( tab, "PushButton_Browse" ); | 98 | PushButton_Browse = new QPushButton( tab, "PushButton_Browse" ); |
99 | 99 | ||
100 | ComboBox1 = new QComboBox( FALSE, tab, "ComboBox1" ); | 100 | ComboBox1 = new QComboBox( FALSE, tab, "ComboBox1" ); |
@@ -105,23 +105,23 @@ void optionsDialog::initDialog() | |||
105 | http_ListBox1 = new QListBox( tab, "http_ListBox1" ); | 105 | http_ListBox1 = new QListBox( tab, "http_ListBox1" ); |
106 | 106 | ||
107 | ////////////////////////////////////////////////////////// | 107 | ////////////////////////////////////////////////////////// |
108 | tabWidget->insertTab( tab, tr( "HTTP" ) ); | 108 | tabWidget->insertTab( tab, tr( "HTTP" ) ); |
109 | 109 | ||
110 | QGridLayout *layout4 = new QGridLayout(tab ); | 110 | QGridLayout *layout4 = new QGridLayout(tab ); |
111 | layout4->setSpacing(2); | 111 | layout4->setSpacing(2); |
112 | layout4->setMargin(2); | 112 | layout4->setMargin(2); |
113 | 113 | ||
114 | fontDlg = new FontDialog( tabWidget,"FontDialog"); | 114 | fontDlg = new FontDialog( tabWidget,"FontDialog"); |
115 | // fontWidget= new QWidget( tabWidget, "fontWidget" ); | 115 | // fontWidget= new QWidget( tabWidget, "fontWidget" ); |
116 | tabWidget->insertTab( fontDlg,"Font"); | 116 | tabWidget->insertTab( fontDlg,"Font"); |
117 | // fontDlg = new FontDialog( fontWidget,"FontDialog"); | 117 | // fontDlg = new FontDialog( fontWidget,"FontDialog"); |
118 | // fontDlg->show(); | 118 | // fontDlg->show(); |
119 | 119 | ||
120 | initConnections(); | 120 | initConnections(); |
121 | 121 | ||
122 | ftp_DownloadButton->setText("New List"); | 122 | ftp_DownloadButton->setText("New List"); |
123 | PushButton_Browse->setText("Browse"); | 123 | PushButton_Browse->setText("Browse"); |
124 | 124 | ||
125 | local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/"; | 125 | local_library = (QDir::homeDirPath ()) +"/Applications/gutenbrowser/"; |
126 | // config = new CConfigFile( local_library+"gutenbrowserrc"); | 126 | // config = new CConfigFile( local_library+"gutenbrowserrc"); |
127 | doOptions(); | 127 | doOptions(); |