]> git.sven.stormbind.net Git - sven/vym.git/blob - branchpropeditor.h
26ca3dcd46ef0003451ae0c16b7cb7f9aed9ca28
[sven/vym.git] / branchpropeditor.h
1 #ifndef BRANCHPROPERTYEDITOR_H
2 #define BRANCHPROPERTYEDITOR_H
3
4 #include "ui_branchpropeditor.h"
5
6 #include <QDialog>
7 #include <QCloseEvent>
8 #include <QtGui>
9
10
11 //#include "attributedelegate.h"
12 #include "branchobj.h"
13
14 class QAbstractItemModel;
15 class VymModel;
16
17 class BranchPropertyEditor:public QDialog
18 {
19     Q_OBJECT
20 public:
21     BranchPropertyEditor (QWidget *parent=0);
22     ~BranchPropertyEditor ();
23     void setItem (TreeItem *);
24     void setModel (VymModel *);
25
26 private slots:
27     void frameTypeChanged (int);
28     void framePenColorClicked ();
29     void frameBrushColorClicked ();
30     void framePaddingChanged(int);
31     void frameBorderWidthChanged(int);
32     void frameIncludeChildrenChanged(int);
33     void linkHideUnselectedChanged (int);
34     void incImgVerChanged (int);
35     void incImgHorChanged (int);
36     void childrenFreePositioningChanged (int);
37 //  void addAttributeClicked();
38 //  void deleteAttributeClicked();
39
40 signals:
41     void windowClosed();
42     
43 protected:
44     void closeEvent( QCloseEvent* );
45
46 private:
47     void connectSignals();
48     void disconnectSignals();
49     
50     Ui::BranchPropertyEditor ui;
51
52     BranchObj *branchObj;
53     BranchItem *branchItem;
54     VymModel *model;
55
56     QColor penColor;
57     QColor brushColor;
58
59 //  QAbstractItemModel *attributeModel;
60
61 //  AttributeDelegate delegate;
62 };
63
64 #endif //