branchpropwindow.h
author insilmaril
Wed Feb 27 16:09:06 2008 +0000 (2008-02-27)
changeset 677 3472b93efb0c
parent 481 31196a98699c
child 721 12958f987bcf
permissions -rw-r--r--
autosave fix
     1 #ifndef BRANCHPROPERTYWINDOW_H
     2 #define BRANCHPROPERTYWINDOW_H
     3 
     4 #include "ui_branchpropwindow.h"
     5 
     6 #include <QDialog>
     7 #include <QCloseEvent>
     8 #include <QtGui>
     9 
    10 
    11 #include "attributedelegate.h"
    12 #include "branchobj.h"
    13 #include "mapeditor.h"
    14 
    15 
    16 class QAbstractItemModel;
    17 
    18 class BranchPropertyWindow:public QDialog
    19 {
    20 	Q_OBJECT
    21 public:
    22 	BranchPropertyWindow (QWidget *parent=0);
    23 	~BranchPropertyWindow ();
    24 	void setBranch (BranchObj *);
    25 	void setMapEditor (MapEditor *);
    26 
    27 private slots:
    28 	void frameTypeChanged (int);
    29 	void framePenColorClicked ();
    30 	void frameBrushColorClicked ();
    31 	void framePaddingChanged(int);
    32 	void frameBorderWidthChanged(int);
    33 	void linkHideUnselectedChanged (int);
    34 	void incImgVerChanged (int);
    35 	void incImgHorChanged (int);
    36 	void addAttributeClicked();
    37 	void deleteAttributeClicked();
    38 
    39 signals:
    40 	void windowClosed();
    41 	
    42 protected:
    43 	void closeEvent( QCloseEvent* );
    44 
    45 private:
    46 	void connectSignals();
    47 	void disconnectSignals();
    48 	
    49 	Ui::BranchPropertyWindow ui;
    50 
    51 	BranchObj *branch;
    52 	MapEditor *mapEditor;
    53 
    54 	QColor penColor;
    55 	QColor brushColor;
    56 
    57 	QAbstractItemModel *attributeModel;
    58 
    59 	AttributeDelegate delegate;
    60 };
    61 
    62 #endif //