summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-gutenbrowser/optionsDialog.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-gutenbrowser/optionsDialog.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-gutenbrowser/optionsDialog.h112
1 files changed, 112 insertions, 0 deletions
diff --git a/noncore/apps/opie-gutenbrowser/optionsDialog.h b/noncore/apps/opie-gutenbrowser/optionsDialog.h
new file mode 100644
index 0000000..091b169
--- a/dev/null
+++ b/noncore/apps/opie-gutenbrowser/optionsDialog.h
@@ -0,0 +1,112 @@
1/***************************************************************************
2 optionsDialog.h - description
3 -------------------
4 begin : Tue Jul 25 2000
5 copyright : (C) 2000 -2004 by llornkcor
6 email : ljp@llornkcor.com
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 ***************************************************************************/
13#ifndef OPTIONSDIALOG_H
14#define OPTIONSDIALOG_H
15
16#include "gutenbrowser.h"
17#include "fontDialog.h"
18
19#include <qvariant.h>
20#include <qdialog.h>
21#include <qlineedit.h>
22#include <qpe/fontdatabase.h>
23#include <qfont.h>
24
25class QVBoxLayout;
26class QHBoxLayout;
27class QGridLayout;
28class QCheckBox;
29class QComboBox;
30class QLabel;
31class QListBox;
32class QListBoxItem;
33class QPushButton;
34class QTabWidget;
35class QWidget;
36
37class optionsDialog : public QDialog
38{
39 Q_OBJECT
40
41 public:
42 optionsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
43 ~optionsDialog();
44
45 QListBox* listBox,*http_ListBox1;
46 QPushButton* buttonOk, *fontChangeButton,*PushButton_Browse;
47 QTabWidget* tabWidget;
48 QWidget *tab, *Widget3, * Widget2, *fontWidget;
49 QCheckBox* Ftp_CheckBox,*Http_CheckBox;
50 QString s_Wrap;
51
52 QCheckBox* useWordWrap_CheckBox;
53 QCheckBox* cb_queryExit;
54 bool b_qExit;
55 QLabel* TextLabel2,*TextLabel3;
56 QListBox* ftp_QListBox_1;
57 QPushButton* ftp_DownloadButton;
58 QLabel* TextLabel3_3, *TextLabel4,*TextLabel5;
59 QComboBox *ComboBox1 ;///* * ComboBoxStyle,*/ ;
60 QLineEdit *downloadDirEdit;
61 bool changedFonts;
62 /////////////////////////////////////////////////////
63
64 void initDialog();
65 void initConnections();
66
67 // CConfigFile *config;
68 QString ftp_base_dir, ftp_host, brow, local_library;
69
70 // ftpsite
71 bool useIcon;
72 bool parseFtpList(QString outputFile);
73 QString ftpSite, ListFile, s_site, host, base_dir, browserName;
74// int styleInt;
75 // font dialog
76 FontDialog *fontDlg;
77
78// bool styleChanged;
79 protected:
80 void openSiteList();
81 void doOptions();
82 void ftpSiteDlg();
83 void BrowserDlg();
84 public slots:
85 void getConfig();
86 // void writeConfig();
87 // void iconCheckB();
88 void getSite();
89 void select_site( const char *index );
90 void getSelection( QListBoxItem *item);
91 // void lineEditChanged(const QString &);
92 private slots:
93 void slotWordWrap(bool);
94 void slotQueryExit();
95 void changeFonts();
96 protected slots:
97 // virtual void OnOK();
98 void listBoxMainSel( int index);
99// void setStyle( int index);
100 void setHttp(int);
101 // virtual void OptionsFtpClicked();
102 // virtual void httpCheckB();
103 // virtual void FtpCheckB();
104 // virtual void slotUseSplit();
105 // virtual void goBrowser(const QString&);
106 // virtual void chooseBrowser();
107 void select_title(int index);
108 void BrowseSelected();
109
110};
111
112#endif // OPTIONSDIALOG_H