attributedialog.h
author insilmaril
Tue Dec 04 12:32:59 2007 +0000 (2007-12-04)
changeset 628 d7d0708b1c60
parent 623 7ba1c04d96d5
child 637 0ff5fc89dc5c
permissions -rw-r--r--
Fixed HideExport bug, changed pre- and postscript in XHTML export dialog
     1 #ifndef ATTRIBUTEDIALOG_H
     2 #define ATTRIBUTEDIALOG_H
     3 
     4 #include "attribute.h"
     5 #include "branchobj.h"
     6 
     7 #include <QDialog>
     8 #include <QCloseEvent>
     9 #include <QtGui/QHBoxLayout>
    10 #include <QtGui/QPushButton>
    11 #include <QtGui/QSpacerItem>
    12 #include <QtGui/QVBoxLayout>
    13 
    14 
    15 class AttributeDialog:public QDialog
    16 {
    17 	Q_OBJECT 
    18 public:
    19 	AttributeDialog (QWidget *parent=0 );
    20 	void setTable (AttributeTable *table=0);
    21 	void setBranch (BranchObj *bo);
    22 signals:
    23 	void windowClosed();
    24 private slots:
    25 	void addKey();
    26 protected:
    27 	void closeEvent(QCloseEvent*);
    28 	void updateTable();
    29 private:
    30 	QVBoxLayout *vboxLayout;
    31 	QVBoxLayout *tableLayout;
    32     QHBoxLayout *hboxLayout;
    33     QPushButton *addButton;
    34     QSpacerItem *spacerItem;
    35     QPushButton *closeButton;
    36 
    37 	AttributeTable *table;
    38 	BranchObj *branch;
    39 };
    40 
    41 #endif