attributedialog.h
changeset 637 0ff5fc89dc5c
parent 626 96c8e6860e0c
     1.1 --- a/attributedialog.h	Mon Jan 07 14:52:49 2008 +0000
     1.2 +++ b/attributedialog.h	Mon Jan 07 14:52:49 2008 +0000
     1.3 @@ -12,6 +12,12 @@
     1.4  #include <QtGui/QVBoxLayout>
     1.5  
     1.6  
     1.7 +/*! \brief Set the dialog mode  */
     1.8 +enum AttributeDialogMode {
     1.9 +	Definition,	//!< Edit attribute definitions (AttributeDef)
    1.10 +	Object		//!< Edit attributes of OrnamentedObj
    1.11 +};
    1.12 +
    1.13  class AttributeDialog:public QDialog
    1.14  {
    1.15  	Q_OBJECT 
    1.16 @@ -19,13 +25,14 @@
    1.17  	AttributeDialog (QWidget *parent=0 );
    1.18  	void setTable (AttributeTable *table=0);
    1.19  	void setBranch (BranchObj *bo);
    1.20 +	void setMode (const AttributeDialogMode &m);
    1.21 +	void updateTable();
    1.22  signals:
    1.23  	void windowClosed();
    1.24  private slots:
    1.25  	void addKey();
    1.26  protected:
    1.27  	void closeEvent(QCloseEvent*);
    1.28 -	void updateTable();
    1.29  private:
    1.30  	QVBoxLayout *vboxLayout;
    1.31  	QVBoxLayout *tableLayout;
    1.32 @@ -34,6 +41,7 @@
    1.33      QSpacerItem *spacerItem;
    1.34      QPushButton *closeButton;
    1.35  
    1.36 +	AttributeDialogMode mode;
    1.37  	AttributeTable *table;
    1.38  	BranchObj *branch;
    1.39  };