Ksetiwatch API Documentation


addsetilocdlg.h

Go to the documentation of this file.
00001 /***************************************************************************/
00014 #ifndef ADDSETILOCDLG_H
00015 #define ADDSETILOCDLG_H
00016 
00017 #include <kdialogbase.h>
00018 
00019 #include <qlineedit.h>
00020 
00021 #include "setiloc.h"
00022 
00023 class QGridLayout;
00024 class QVBoxLayout;
00025 class KColorButton;
00026 class QLabel;
00027 class QLineEdit;
00028 class QPushButton;
00029 class QCheckBox;
00030 class QSlider;
00031 
00037 class AddSetiLocDlg : public KDialogBase
00038 {
00039 Q_OBJECT
00040 
00041 public:
00048   AddSetiLocDlg(QWidget* parent=0, const char* name=0);
00050   ~AddSetiLocDlg();
00058   void setOptions(const LocSettings& locsets);
00060   LocSettings options() const;
00071   void setSetiDirectory(const QString& t) {DirecEdit->setText(t);}
00077   QString setiDirectory() const {return(DirecEdit->text());}
00089   void setLogDirectory(const QString& t) {RedirEdit->setText(t);}
00095   QString logDirectory() const {return(RedirEdit->text().stripWhiteSpace());}
00107   void setStartExeFilePath(const QString& exe) {StartExeEdit->setText(exe);}
00113   QString startExeFilePath() const {return(StartExeEdit->text().stripWhiteSpace());}
00125   void setStopExeFilePath(const QString& exe) {StopExeEdit->setText(exe);}
00131   QString stopExeFilePath() const {return(StopExeEdit->text().stripWhiteSpace());}
00132 
00133 protected slots:
00135   void slotOk();
00137   void slotGetSetiDirectory();
00139   void slotGetLogDirectory();
00142   void slotGetStartExe();
00145   void slotGetStopExe();
00153   void slotHandleText(const QString& t);
00154 
00155 protected: // Protected methods
00159   void setupLocationPage();
00163   void setupLoggingPage();
00167   void setupClientPage();
00168 
00169 protected:
00170   // Location page.
00171   QGridLayout*  LocationLayout;
00172   QGridLayout*  LocationSubLayout1;
00173   QGridLayout*  LocationSubLayout2;
00174   QGridLayout*  LocationSubLayout3;
00175   QLabel*       DirecLabel;
00176   QPushButton*  DirecButton;
00177   QLineEdit*    DirecEdit;
00178   QLineEdit*    DescrEdit;
00179   KColorButton* ColorButton;
00180   QLabel*       DescrLabel;
00181   QLabel*       ColorLabel;
00182   QLineEdit*    StartExeEdit;
00183   QCheckBox*    StartExeChkBox;
00184   QPushButton*  StartExeButton;
00185   QLineEdit*    StopExeEdit;
00186   QCheckBox*    StopExeChkBox;
00187   QPushButton*  StopExeButton;
00188   // Logging page.
00189   QGridLayout*  LoggingLayout;
00190   QLineEdit*    RedirEdit;
00191   QPushButton*  RedirButton;
00192   QCheckBox*    RedirChkBox;
00193   QCheckBox*    LogChkBox;
00194   // Client page.
00195   QVBoxLayout*  ClientLayout;
00196   QGridLayout*  ClientSubLayout1;
00197   QGridLayout*  ClientSubLayout2;
00198   QGridLayout*  ClientSubLayout3;
00199   QCheckBox*    StartSetiChkBox;
00200   QCheckBox*    StopSetiChkBox;
00201   QCheckBox*    KeepAliveCheckBox;
00202   QLineEdit*    ArgEdit;
00203   QCheckBox*    StopAfterProcChkBox;
00204   QLabel*       ArgLabel;
00205   QCheckBox*    GraphicsChkBox;
00206   QCheckBox*    StopAfterSendChkBox;
00207   QCheckBox*    EmailChkBox;
00208   QSlider*      PrioritySlider;
00209   QLabel*       PriorityLabel;
00210   QLabel*       HighLabel;
00211   QLabel*       LowLabel;
00212   QLineEdit*    ProxyServerEdit;
00213   QLineEdit*    ProxyPortEdit;
00214   QLabel*       ProxyPortLabel;
00215   QCheckBox*    ProxyServerChkBox;
00216 };
00217 
00218 #endif
00219 
00220 
00221 
00222 
00223 
00224 
00225 
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:13 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002