]> git.sven.stormbind.net Git - sven/vym.git/blob - editxlinkdialog.h
e145eca76ad9197449590ce1c0b8d4aae87732ef
[sven/vym.git] / 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 {
17     Q_OBJECT
18 public:
19     EditXLinkDialog (QWidget *parent=0);
20     void setLink (Link *);
21     bool useSettingsGlobal();
22
23 private slots:
24     void widthChanged (int);
25     void colorButtonPressed();
26     void colorChanged(QColor c);
27     void setColorHeadingButtonPressed ();
28     void lineStyleChanged( int );
29     void beginStyleChanged( int );
30     void endStyleChanged( int );
31
32 private:
33     void emitChanged();
34
35     Ui::EditXLinkDialog ui;
36     bool delink;
37     Link *link;
38 };
39
40 #endif // EDITXLINKDIALOG_H