00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef OPTIONSDIALOG_H
00014 #define OPTIONSDIALOG_H
00015
00016 #include "gutenbrowser.h"
00017 #include "fontDialog.h"
00018
00019 #include <qvariant.h>
00020 #include <qdialog.h>
00021 #include <qlineedit.h>
00022 #include <qpe/fontdatabase.h>
00023 #include <qfont.h>
00024
00025 class QVBoxLayout;
00026 class QHBoxLayout;
00027 class QGridLayout;
00028 class QCheckBox;
00029 class QComboBox;
00030 class QLabel;
00031 class QListBox;
00032 class QListBoxItem;
00033 class QPushButton;
00034 class QTabWidget;
00035 class QWidget;
00036
00037 class optionsDialog : public QDialog
00038 {
00039 Q_OBJECT
00040
00041 public:
00042 optionsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00043 ~optionsDialog();
00044
00045 QListBox* listBox,*http_ListBox1;
00046 QPushButton* buttonOk, *fontChangeButton,*PushButton_Browse;
00047 QTabWidget* tabWidget;
00048 QWidget *tab, *Widget3, * Widget2, *fontWidget;
00049 QCheckBox* Ftp_CheckBox,*Http_CheckBox;
00050 QString s_Wrap;
00051
00052 QCheckBox* useWordWrap_CheckBox;
00053 QCheckBox* cb_queryExit;
00054 bool b_qExit;
00055 QLabel* TextLabel2,*TextLabel3;
00056 QListBox* ftp_QListBox_1;
00057 QPushButton* ftp_DownloadButton;
00058 QLabel* TextLabel3_3, *TextLabel4,*TextLabel5;
00059 QComboBox *ComboBox1 ;
00060 QLineEdit *downloadDirEdit;
00061 bool changedFonts;
00063
00064 void initDialog();
00065 void initConnections();
00066
00067
00068 QString ftp_base_dir, ftp_host, brow, local_library;
00069
00070
00071 bool useIcon;
00072 bool parseFtpList(QString outputFile);
00073 QString ftpSite, ListFile, s_site, host, base_dir, browserName;
00074
00075
00076 FontDialog *fontDlg;
00077
00078
00079 protected:
00080 void openSiteList();
00081 void doOptions();
00082 void ftpSiteDlg();
00083 void BrowserDlg();
00084 public slots:
00085 void getConfig();
00086
00087
00088 void getSite();
00089 void select_site( const char *index );
00090 void getSelection( QListBoxItem *item);
00091
00092 private slots:
00093 void slotWordWrap(bool);
00094 void slotQueryExit();
00095 void changeFonts();
00096 protected slots:
00097
00098 void listBoxMainSel( int index);
00099
00100 void setHttp(int);
00101
00102
00103
00104
00105
00106
00107 void select_title(int index);
00108 void BrowseSelected();
00109
00110 };
00111
00112 #endif // OPTIONSDIALOG_H