]> git.sven.stormbind.net Git - sven/vym.git/blob - src/branchpropeditor.h
Replace Pierre as the maintainer
[sven/vym.git] / src / branchpropeditor.h
1 #ifndef BRANCHPROPERTYEDITOR_H
2 #define BRANCHPROPERTYEDITOR_H
3
4 #include "ui_branchpropeditor.h"
5
6 #include <QCloseEvent>
7 #include <QDialog>
8 #include <QtGui>
9
10 // #include "attributedelegate.h"
11 #include "branchobj.h"
12
13 class QAbstractItemModel;
14
15 class VymModel;
16
17 class BranchPropertyEditor : public QDialog {
18     Q_OBJECT
19   public:
20     BranchPropertyEditor(QWidget *parent = 0);
21     ~BranchPropertyEditor();
22     void setItem(TreeItem *);
23     void setModel(VymModel *);
24
25   private slots:
26     void frameTypeChanged(int);
27     void framePenColorClicked();
28     void frameBrushColorClicked();
29     void framePaddingChanged(int);
30     void frameBorderWidthChanged(int);
31     void frameIncludeChildrenChanged(int);
32     void linkHideUnselectedChanged(int);
33     void incImgVerChanged(int);
34     void incImgHorChanged(int);
35     void childrenFreePositioningChanged(int);
36     void taskPriorityDeltaChanged(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 attributeDelegate;
62 };
63
64 #endif //