X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Fbranchpropeditor.h;fp=src%2Fbranchpropeditor.h;h=62a9eac14590b0a18a840b70b230e7da26333029;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git

diff --git a/src/branchpropeditor.h b/src/branchpropeditor.h
new file mode 100644
index 0000000..62a9eac
--- /dev/null
+++ b/src/branchpropeditor.h
@@ -0,0 +1,64 @@
+#ifndef BRANCHPROPERTYEDITOR_H
+#define BRANCHPROPERTYEDITOR_H
+
+#include "ui_branchpropeditor.h"
+
+#include <QCloseEvent>
+#include <QDialog>
+#include <QtGui>
+
+// #include "attributedelegate.h"
+#include "branchobj.h"
+
+class QAbstractItemModel;
+
+class VymModel;
+
+class BranchPropertyEditor : public QDialog {
+    Q_OBJECT
+  public:
+    BranchPropertyEditor(QWidget *parent = 0);
+    ~BranchPropertyEditor();
+    void setItem(TreeItem *);
+    void setModel(VymModel *);
+
+  private slots:
+    void frameTypeChanged(int);
+    void framePenColorClicked();
+    void frameBrushColorClicked();
+    void framePaddingChanged(int);
+    void frameBorderWidthChanged(int);
+    void frameIncludeChildrenChanged(int);
+    void linkHideUnselectedChanged(int);
+    void incImgVerChanged(int);
+    void incImgHorChanged(int);
+    void childrenFreePositioningChanged(int);
+    void taskPriorityDeltaChanged(int);
+    void addAttributeClicked();
+    void deleteAttributeClicked();
+
+  signals:
+    void windowClosed();
+
+  protected:
+    void closeEvent(QCloseEvent *);
+
+  private:
+    void connectSignals();
+    void disconnectSignals();
+
+    Ui::BranchPropertyEditor ui;
+
+    BranchObj *branchObj;
+    BranchItem *branchItem;
+    VymModel *model;
+
+    QColor penColor;
+    QColor brushColor;
+
+    QAbstractItemModel *attributeModel;
+
+    //AttributeDelegate attributeDelegate;
+};
+
+#endif //