00001 #ifndef VIS_FRAMEWORK_BASE_VIS_PARAM_EDITOR_H 00002 # define VIS_FRAMEWORK_BASE_VIS_PARAM_EDITOR_H 00003 00004 #include <qvariant.h> 00005 #include <qwidget.h> 00006 class QVBoxLayout; 00007 class QHBoxLayout; 00008 class QGridLayout; 00009 class QLabel; 00010 class QLineEdit; 00011 class QPushButton; 00012 class IgState; 00013 00014 class VisParamEditor : public QWidget 00015 { 00016 Q_OBJECT 00017 00018 public: 00019 VisParamEditor (IgState *state, QWidget* parent = 0, const char* name = 0, WFlags fl = 0); 00020 ~VisParamEditor (); 00021 00022 QLabel* peNameLbl; 00023 QLineEdit* peNameStr; 00024 QLabel* peValueLbl; 00025 QLineEdit* peValueStr; 00026 QPushButton* peHelpBtn; 00027 QPushButton* peApplyBtn; 00028 QPushButton* peOkBtn; 00029 QPushButton* peCancelBtn; 00030 00031 public slots: 00032 virtual void peHelpBtn_clicked(); 00033 virtual void peApplyBtn_clicked(); 00034 virtual void peOkBtn_clicked(); 00035 virtual void peCancelBtn_clicked(); 00036 virtual void peNameStr_textChanged(const QString &); 00037 virtual void peNameStr_returnPressed(); 00038 virtual void peValueStr_returnPressed(); 00039 virtual void peValueStr_textChanged(const QString &); 00040 00041 protected: 00042 QVBoxLayout* paramEditorLayout; 00043 QVBoxLayout* peLayout; 00044 QHBoxLayout* peBtnLayout; 00045 00046 private: 00047 IgState *m_state; 00048 }; 00049 00050 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00051 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00052 00053 #endif // VIS_FRAMEWORK_BASE_VIS_PARAM_EDITOR_H