diff -r 96c8e6860e0c -r 16a8ef1d82b2 attributedialog.h --- a/attributedialog.h Tue Dec 04 12:32:56 2007 +0000 +++ b/attributedialog.h Fri Oct 02 09:40:57 2009 +0000 @@ -12,6 +12,12 @@ #include +/*! \brief Set the dialog mode */ +enum AttributeDialogMode { + Definition, //!< Edit attribute definitions (AttributeDef) + Object //!< Edit attributes of OrnamentedObj +}; + class AttributeDialog:public QDialog { Q_OBJECT @@ -19,13 +25,14 @@ AttributeDialog (QWidget *parent=0 ); void setTable (AttributeTable *table=0); void setBranch (BranchObj *bo); + void setMode (const AttributeDialogMode &m); + void updateTable(); signals: void windowClosed(); private slots: void addKey(); protected: void closeEvent(QCloseEvent*); - void updateTable(); private: QVBoxLayout *vboxLayout; QVBoxLayout *tableLayout; @@ -34,6 +41,7 @@ QSpacerItem *spacerItem; QPushButton *closeButton; + AttributeDialogMode mode; AttributeTable *table; BranchObj *branch; };