diff -r f83abc1f75b4 -r 0ff5fc89dc5c attributedialog.h --- a/attributedialog.h Mon Jan 07 14:52:49 2008 +0000 +++ b/attributedialog.h Mon Jan 07 14:52:49 2008 +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; };