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