attributedialog.h
changeset 626 96c8e6860e0c
parent 623 7ba1c04d96d5
child 637 0ff5fc89dc5c
     1.1 --- a/attributedialog.h	Fri Nov 09 12:07:22 2007 +0000
     1.2 +++ b/attributedialog.h	Tue Dec 04 12:32:56 2007 +0000
     1.3 @@ -1,22 +1,41 @@
     1.4  #ifndef ATTRIBUTEDIALOG_H
     1.5  #define ATTRIBUTEDIALOG_H
     1.6  
     1.7 -#include "ui_attributedialog.h"
     1.8 +#include "attribute.h"
     1.9 +#include "branchobj.h"
    1.10  
    1.11  #include <QDialog>
    1.12  #include <QCloseEvent>
    1.13 +#include <QtGui/QHBoxLayout>
    1.14 +#include <QtGui/QPushButton>
    1.15 +#include <QtGui/QSpacerItem>
    1.16 +#include <QtGui/QVBoxLayout>
    1.17 +
    1.18  
    1.19  class AttributeDialog:public QDialog
    1.20  {
    1.21  	Q_OBJECT 
    1.22  public:
    1.23  	AttributeDialog (QWidget *parent=0 );
    1.24 +	void setTable (AttributeTable *table=0);
    1.25 +	void setBranch (BranchObj *bo);
    1.26  signals:
    1.27  	void windowClosed();
    1.28 +private slots:
    1.29 +	void addKey();
    1.30  protected:
    1.31  	void closeEvent(QCloseEvent*);
    1.32 +	void updateTable();
    1.33  private:
    1.34 -	Ui::AttributeDialog ui;
    1.35 +	QVBoxLayout *vboxLayout;
    1.36 +	QVBoxLayout *tableLayout;
    1.37 +    QHBoxLayout *hboxLayout;
    1.38 +    QPushButton *addButton;
    1.39 +    QSpacerItem *spacerItem;
    1.40 +    QPushButton *closeButton;
    1.41 +
    1.42 +	AttributeTable *table;
    1.43 +	BranchObj *branch;
    1.44  };
    1.45  
    1.46  #endif