1 #ifndef ATTRIBUTEDIALOG_H
2 #define ATTRIBUTEDIALOG_H
9 #include <QtGui/QHBoxLayout>
10 #include <QtGui/QPushButton>
11 #include <QtGui/QSpacerItem>
12 #include <QtGui/QVBoxLayout>
15 /*! \brief Set the dialog mode */
16 enum AttributeDialogMode {
17 Definition, //!< Edit attribute definitions (AttributeDef)
18 Object //!< Edit attributes of OrnamentedObj
21 class AttributeDialog:public QDialog
25 AttributeDialog (QWidget *parent=0 );
26 void setTable (AttributeTable *table=0);
27 void setBranch (BranchObj *bo);
28 void setMode (const AttributeDialogMode &m);
35 void closeEvent(QCloseEvent*);
37 QVBoxLayout *vboxLayout;
38 QVBoxLayout *tableLayout;
39 QHBoxLayout *hboxLayout;
40 QPushButton *addButton;
41 QSpacerItem *spacerItem;
42 QPushButton *closeButton;
44 AttributeDialogMode mode;
45 AttributeTable *table;