author | insilmaril |
Mon Jul 27 12:53:17 2009 +0000 (2009-07-27) | |
changeset 782 | ffb02a9bb508 |
parent 721 | 12958f987bcf |
child 785 | 5987f9f15bac |
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@767 | 11 |
//#include "attributedelegate.h" |
insilmaril@421 | 12 |
#include "branchobj.h" |
insilmaril@721 | 13 |
#include "vymmodel.h" |
insilmaril@673 | 14 |
|
insilmaril@673 | 15 |
class QAbstractItemModel; |
insilmaril@673 | 16 |
|
insilmaril@421 | 17 |
class BranchPropertyWindow:public QDialog |
insilmaril@421 | 18 |
{ |
insilmaril@421 | 19 |
Q_OBJECT |
insilmaril@421 | 20 |
public: |
insilmaril@421 | 21 |
BranchPropertyWindow (QWidget *parent=0); |
insilmaril@462 | 22 |
~BranchPropertyWindow (); |
insilmaril@421 | 23 |
void setBranch (BranchObj *); |
insilmaril@721 | 24 |
void setModel (VymModel *); |
insilmaril@421 | 25 |
|
insilmaril@421 | 26 |
private slots: |
insilmaril@421 | 27 |
void frameTypeChanged (int); |
insilmaril@440 | 28 |
void framePenColorClicked (); |
insilmaril@440 | 29 |
void frameBrushColorClicked (); |
insilmaril@462 | 30 |
void framePaddingChanged(int); |
insilmaril@462 | 31 |
void frameBorderWidthChanged(int); |
insilmaril@421 | 32 |
void linkHideUnselectedChanged (int); |
insilmaril@462 | 33 |
void incImgVerChanged (int); |
insilmaril@462 | 34 |
void incImgHorChanged (int); |
insilmaril@767 | 35 |
// void addAttributeClicked(); |
insilmaril@767 | 36 |
// void deleteAttributeClicked(); |
insilmaril@421 | 37 |
|
insilmaril@481 | 38 |
signals: |
insilmaril@481 | 39 |
void windowClosed(); |
insilmaril@481 | 40 |
|
insilmaril@481 | 41 |
protected: |
insilmaril@481 | 42 |
void closeEvent( QCloseEvent* ); |
insilmaril@481 | 43 |
|
insilmaril@421 | 44 |
private: |
insilmaril@462 | 45 |
void connectSignals(); |
insilmaril@462 | 46 |
void disconnectSignals(); |
insilmaril@462 | 47 |
|
insilmaril@421 | 48 |
Ui::BranchPropertyWindow ui; |
insilmaril@421 | 49 |
|
insilmaril@421 | 50 |
BranchObj *branch; |
insilmaril@721 | 51 |
VymModel *model; |
insilmaril@440 | 52 |
|
insilmaril@462 | 53 |
QColor penColor; |
insilmaril@440 | 54 |
QColor brushColor; |
insilmaril@673 | 55 |
|
insilmaril@767 | 56 |
// QAbstractItemModel *attributeModel; |
insilmaril@673 | 57 |
|
insilmaril@767 | 58 |
// AttributeDelegate delegate; |
insilmaril@421 | 59 |
}; |
insilmaril@421 | 60 |
|
insilmaril@421 | 61 |
#endif // |