diff -r 96c8e6860e0c -r 9abdd5e6c3dc attributedialog.h --- a/attributedialog.h Tue Dec 04 12:32:56 2007 +0000 +++ b/attributedialog.h Fri Feb 01 15:28:35 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; };