1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
/***************************************************************************
optionsDialog.h - description
-------------------
begin : Tue Jul 25 2000
copyright : (C) 2000 -2004 by llornkcor
email : ljp@llornkcor.com
* 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. *
* *
***************************************************************************/
#ifndef OPTIONSDIALOG_H
#define OPTIONSDIALOG_H
#include "gutenbrowser.h"
#include "fontDialog.h"
#include <qvariant.h>
#include <qdialog.h>
#include <qlineedit.h>
#include <qpe/fontdatabase.h>
#include <qfont.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QComboBox;
class QLabel;
class QListBox;
class QListBoxItem;
class QPushButton;
class QTabWidget;
class QWidget;
class optionsDialog : public QDialog
{
Q_OBJECT
public:
optionsDialog( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~optionsDialog();
QListBox* listBox,*http_ListBox1;
QPushButton* buttonOk, *fontChangeButton,*PushButton_Browse;
QTabWidget* tabWidget;
QWidget *tab, *Widget3, * Widget2, *fontWidget;
QCheckBox* Ftp_CheckBox,*Http_CheckBox;
QString s_Wrap;
QCheckBox* useWordWrap_CheckBox;
QCheckBox* cb_queryExit;
bool b_qExit;
QLabel* TextLabel2,*TextLabel3;
QListBox* ftp_QListBox_1;
QPushButton* ftp_DownloadButton;
QLabel* TextLabel3_3, *TextLabel4,*TextLabel5;
QComboBox *ComboBox1 ;///* * ComboBoxStyle,*/ ;
QLineEdit *downloadDirEdit;
bool changedFonts;
/////////////////////////////////////////////////////
void initDialog();
void initConnections();
// CConfigFile *config;
QString ftp_base_dir, ftp_host, brow, local_library;
// ftpsite
bool useIcon;
bool parseFtpList(QString outputFile);
QString ftpSite, ListFile, s_site, host, base_dir, browserName;
// int styleInt;
// font dialog
FontDialog *fontDlg;
// bool styleChanged;
protected:
void openSiteList();
void doOptions();
void ftpSiteDlg();
void BrowserDlg();
public slots:
void getConfig();
// void writeConfig();
// void iconCheckB();
void getSite();
void select_site( const char *index );
void getSelection( QListBoxItem *item);
// void lineEditChanged(const QString &);
private slots:
void slotWordWrap(bool);
void slotQueryExit();
void changeFonts();
protected slots:
// virtual void OnOK();
void listBoxMainSel( int index);
// void setStyle( int index);
void setHttp(int);
// virtual void OptionsFtpClicked();
// virtual void httpCheckB();
// virtual void FtpCheckB();
// virtual void slotUseSplit();
// virtual void goBrowser(const QString&);
// virtual void chooseBrowser();
void select_title(int index);
void BrowseSelected();
};
#endif // OPTIONSDIALOG_H
|