kalarm
pickfileradio.hGo to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef PICKFILERADIO_H
00022 #define PICKFILERADIO_H
00023
00026 #include "radiobutton.h"
00027
00028 class TQPushButton;
00029 class LineEdit;
00030
00050 class PickFileRadio : public RadioButton
00051 {
00052 Q_OBJECT
00053 TQ_OBJECT
00054 public:
00062 PickFileRadio(TQPushButton* button, LineEdit* edit, const TQString& text, TQButtonGroup* parent, const char* name = 0);
00069 PickFileRadio(const TQString& text, TQButtonGroup* parent, const char* name = 0);
00074 void init(TQPushButton* button, LineEdit* edit = 0);
00079 virtual void setReadOnly(bool readOnly);
00085 virtual TQString pickFile() = 0;
00091 void setFile(const TQString& file);
00093 TQString file() const;
00095 LineEdit* fileEdit() const { return mEdit; }
00097 TQPushButton* pushButton() const { return mButton; }
00098
00099 public slots:
00103 virtual void setEnabled(bool);
00104
00105 private slots:
00106 void slotSelectionChanged(int id);
00107 void slotPickFile();
00108 void setLastId();
00109
00110 private:
00111 bool pickFileIfNone();
00112
00113 TQButtonGroup* mGroup;
00114 LineEdit* mEdit;
00115 TQPushButton* mButton;
00116 TQString mFile;
00117 int mLastId;
00118 bool mRevertId;
00119 };
00120
00121 #endif // PICKFILERADIO_H
|