attributedialog.h
author insilmaril
Wed Dec 05 14:58:03 2007 +0000 (2007-12-05)
changeset 631 ba4a99830ad1
parent 623 7ba1c04d96d5
child 637 0ff5fc89dc5c
permissions -rw-r--r--
Added files from Andrew Ng for Windows
insilmaril@623
     1
#ifndef ATTRIBUTEDIALOG_H
insilmaril@623
     2
#define ATTRIBUTEDIALOG_H
insilmaril@623
     3
insilmaril@626
     4
#include "attribute.h"
insilmaril@626
     5
#include "branchobj.h"
insilmaril@623
     6
insilmaril@623
     7
#include <QDialog>
insilmaril@623
     8
#include <QCloseEvent>
insilmaril@626
     9
#include <QtGui/QHBoxLayout>
insilmaril@626
    10
#include <QtGui/QPushButton>
insilmaril@626
    11
#include <QtGui/QSpacerItem>
insilmaril@626
    12
#include <QtGui/QVBoxLayout>
insilmaril@626
    13
insilmaril@623
    14
insilmaril@623
    15
class AttributeDialog:public QDialog
insilmaril@623
    16
{
insilmaril@623
    17
	Q_OBJECT 
insilmaril@623
    18
public:
insilmaril@623
    19
	AttributeDialog (QWidget *parent=0 );
insilmaril@626
    20
	void setTable (AttributeTable *table=0);
insilmaril@626
    21
	void setBranch (BranchObj *bo);
insilmaril@623
    22
signals:
insilmaril@623
    23
	void windowClosed();
insilmaril@626
    24
private slots:
insilmaril@626
    25
	void addKey();
insilmaril@623
    26
protected:
insilmaril@623
    27
	void closeEvent(QCloseEvent*);
insilmaril@626
    28
	void updateTable();
insilmaril@623
    29
private:
insilmaril@626
    30
	QVBoxLayout *vboxLayout;
insilmaril@626
    31
	QVBoxLayout *tableLayout;
insilmaril@626
    32
    QHBoxLayout *hboxLayout;
insilmaril@626
    33
    QPushButton *addButton;
insilmaril@626
    34
    QSpacerItem *spacerItem;
insilmaril@626
    35
    QPushButton *closeButton;
insilmaril@626
    36
insilmaril@626
    37
	AttributeTable *table;
insilmaril@626
    38
	BranchObj *branch;
insilmaril@623
    39
};
insilmaril@623
    40
insilmaril@623
    41
#endif