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