00001 #ifndef SubWidget_H 00002 #define SubWidget_H 00003 00004 #include <QWidget> 00005 00006 #include "roctabswidget.h" 00007 00008 class SubWidget : public QWidget { 00009 00010 Q_OBJECT 00011 00012 protected: 00013 00014 bool fSubChanged; // indicate if configuration changed 00015 00016 public: 00017 SubWidget(QWidget* parent = 0); 00018 00019 virtual bool getSubConfig() { return true; } 00020 virtual bool setSubConfig() { return true; } 00021 virtual bool setSubToDefault() { return false; } 00022 virtual bool fillCmdFile(FILE* f) { return true; } 00023 00024 RocTabsWidget* rocTabs(); 00025 00026 bool isSubChanged() const { return fSubChanged; } 00027 void setSubChanged(bool on); 00028 00029 void showMessage(const QString& msg, int tmout = 0); 00030 00031 public slots: 00032 void setSubChangedOn(); 00033 void setSubChangedOff(); 00034 00035 00036 00037 }; 00038 00039 #endif