Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

optionsDialog.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           optionsDialog.h  -  description
00003                              -------------------
00004     begin                : Tue Jul 25 2000
00005     copyright            : (C) 2000 -2004 by llornkcor
00006     email                : ljp@llornkcor.com
00007     *   This program is free software; you can redistribute it and/or modify  *
00008     *   it under the terms of the GNU General Public License as published by  *
00009     *   the Free Software Foundation; either version 2 of the License, or     *
00010     *   (at your option) any later version.                                   *
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   //    CConfigFile *config;
00068   QString ftp_base_dir, ftp_host, brow, local_library;
00069 
00070   // ftpsite
00071   bool useIcon;
00072   bool parseFtpList(QString outputFile);
00073   QString ftpSite,  ListFile, s_site,  host, base_dir, browserName;
00074 //  int styleInt;
00075   // font dialog
00076   FontDialog *fontDlg; 
00077    
00078 //  bool styleChanged;
00079  protected:
00080   void openSiteList();
00081   void doOptions();
00082   void ftpSiteDlg();
00083   void BrowserDlg();
00084   public slots:
00085     void getConfig();
00086   //    void writeConfig();
00087   //    void iconCheckB();
00088   void getSite();
00089   void select_site( const char *index );
00090   void getSelection(  QListBoxItem *item);
00091   //    void lineEditChanged(const QString &);
00092   private slots:
00093     void slotWordWrap(bool); 
00094   void slotQueryExit();
00095   void changeFonts();
00096   protected slots:
00097     //    virtual void OnOK();
00098     void listBoxMainSel( int index);
00099 //  void setStyle( int index);
00100   void setHttp(int);
00101   //    virtual void OptionsFtpClicked();
00102   //    virtual void httpCheckB();
00103   //    virtual void FtpCheckB();
00104   //    virtual void slotUseSplit();
00105   //  virtual void goBrowser(const QString&);
00106   //    virtual void chooseBrowser();
00107   void select_title(int index);
00108   void BrowseSelected();
00109 
00110 };
00111 
00112 #endif // OPTIONSDIALOG_H

Generated on Sat Nov 5 16:16:53 2005 for OPIE by  doxygen 1.4.2