]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - src/branchpropeditor.h
New upstream version 2.9.22
[sven/vym.git] / src / branchpropeditor.h
diff --git a/src/branchpropeditor.h b/src/branchpropeditor.h
new file mode 100644 (file)
index 0000000..62a9eac
--- /dev/null
@@ -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 //