branchpropwindow.h
author insilmaril
Mon Aug 27 10:11:59 2007 +0000 (2007-08-27)
changeset 590 eff55addc857
parent 462 494a5b8c131e
child 673 234b4900dfa8
permissions -rw-r--r--
Updated README
     1 #ifndef BRANCHPROPERTYWINDOW_H
     2 #define BRANCHPROPERTYWINDOW_H
     3 
     4 #include "ui_branchpropwindow.h"
     5 
     6 #include <QDialog>
     7 #include <QCloseEvent>
     8 
     9 #include "branchobj.h"
    10 #include "mapeditor.h"
    11 
    12 class BranchPropertyWindow:public QDialog
    13 {
    14 	Q_OBJECT
    15 public:
    16 	BranchPropertyWindow (QWidget *parent=0);
    17 	~BranchPropertyWindow ();
    18 	void setBranch (BranchObj *);
    19 	void setMapEditor (MapEditor *);
    20 
    21 private slots:
    22 	void frameTypeChanged (int);
    23 	void framePenColorClicked ();
    24 	void frameBrushColorClicked ();
    25 	void framePaddingChanged(int);
    26 	void frameBorderWidthChanged(int);
    27 	void linkHideUnselectedChanged (int);
    28 	void incImgVerChanged (int);
    29 	void incImgHorChanged (int);
    30 
    31 signals:
    32 	void windowClosed();
    33 	
    34 protected:
    35 	void closeEvent( QCloseEvent* );
    36 
    37 private:
    38 	void connectSignals();
    39 	void disconnectSignals();
    40 	
    41 	Ui::BranchPropertyWindow ui;
    42 
    43 	BranchObj *branch;
    44 	MapEditor *mapEditor;
    45 
    46 	QColor penColor;
    47 	QColor brushColor;
    48 };
    49 
    50 #endif //