]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - src/editxlinkdialog.h
New upstream version 2.9.22
[sven/vym.git] / src / editxlinkdialog.h
diff --git a/src/editxlinkdialog.h b/src/editxlinkdialog.h
new file mode 100644 (file)
index 0000000..b660cb5
--- /dev/null
@@ -0,0 +1,39 @@
+#ifndef EDITXLINKDIALOG_H
+#define EDITXLINKDIALOG_H
+
+#include "ui_editxlinkdialog.h"
+
+/*! \brief Dialog to edit or delete XLinks
+
+Using xLinks one can link one branch to any other, just like attaching a rope
+between two branches in a real tree. This is especially useful in complex maps,
+where you want to have crossreferences which don't fit on the same visible area
+*/
+
+class BranchItem;
+
+class EditXLinkDialog : public QDialog {
+    Q_OBJECT
+  public:
+    EditXLinkDialog(QWidget *parent = 0);
+    void setLink(Link *);
+    bool useSettingsGlobal();
+
+  private slots:
+    void widthChanged(int);
+    void colorButtonPressed();
+    void colorChanged(QColor c);
+    void setColorHeadingButtonPressed();
+    void lineStyleChanged(int);
+    void beginStyleChanged(int);
+    void endStyleChanged(int);
+
+  private:
+    void emitChanged();
+
+    Ui::EditXLinkDialog ui;
+    bool delink;
+    Link *link;
+};
+
+#endif // EDITXLINKDIALOG_H