21 #ifndef SPECIALACTIONS_H 22 #define SPECIALACTIONS_H 24 #include <kdialogbase.h> 26 #include <tqpushbutton.h> 31 class SpecialActionsButton : public TQPushButton 36 SpecialActionsButton( const TQString& caption, TQWidget* parent = 0, const char* name = 0); 37 void setActions( const TQString& pre, const TQString& post); 38 const TQString& preAction() const { return mPreAction; } 39 const TQString& postAction() const { return mPostAction; } 40 virtual void setReadOnly( bool ro) { mReadOnly = ro; } 41 virtual bool isReadOnly() const { return mReadOnly; } 47 void slotButtonPressed(); 57 class SpecialActions : public TQWidget 62 SpecialActions(TQWidget* parent = 0, const char* name = 0); 63 void setActions( const TQString& pre, const TQString& post); 64 TQString preAction() const; 65 TQString postAction() const; 66 void setReadOnly( bool); 67 bool isReadOnly() const { return mReadOnly; } 70 KLineEdit* mPreAction; 71 KLineEdit* mPostAction; 77 class SpecialActionsDlg : public KDialogBase 82 SpecialActionsDlg( const TQString& preAction, const TQString& postAction, 83 const TQString& caption, TQWidget* parent = 0, const char* name = 0); 84 TQString preAction() const { return mActions->preAction(); } 85 TQString postAction() const { return mActions->postAction(); } 86 void setReadOnly( bool ro) { mActions->setReadOnly(ro); } 87 bool isReadOnly() const { return mActions->isReadOnly(); } 90 virtual void resizeEvent(TQResizeEvent*); 93 virtual void slotOk(); 96 SpecialActions* mActions; 99 #endif // SPECIALACTIONS_H
|