]> git.sven.stormbind.net Git - sven/vym.git/blob - src/editxlinkdialog.h
Replace Pierre as the maintainer
[sven/vym.git] / src / editxlinkdialog.h
1 #ifndef EDITXLINKDIALOG_H
2 #define EDITXLINKDIALOG_H
3
4 #include "ui_editxlinkdialog.h"
5
6 /*! \brief Dialog to edit or delete XLinks
7
8 Using xLinks one can link one branch to any other, just like attaching a rope
9 between two branches in a real tree. This is especially useful in complex maps,
10 where you want to have crossreferences which don't fit on the same visible area
11 */
12
13 class BranchItem;
14
15 class EditXLinkDialog : public QDialog {
16     Q_OBJECT
17   public:
18     EditXLinkDialog(QWidget *parent = 0);
19     void setLink(Link *);
20     bool useSettingsGlobal();
21
22   private slots:
23     void widthChanged(int);
24     void colorButtonPressed();
25     void colorChanged(QColor c);
26     void setColorHeadingButtonPressed();
27     void lineStyleChanged(int);
28     void beginStyleChanged(int);
29     void endStyleChanged(int);
30
31   private:
32     void emitChanged();
33
34     Ui::EditXLinkDialog ui;
35     bool delink;
36     Link *link;
37 };
38
39 #endif // EDITXLINKDIALOG_H