initial import
[vym] / 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 EditXLinkDialog:public QDialog
14 {
15         Q_OBJECT
16 public:
17         EditXLinkDialog (QWidget *parent=0);
18         void setXLink (XLinkObj *);
19         void setSelection (LinkableMapObj *);
20         bool useSettingsGlobal();
21         bool deleteXLink();
22
23 private slots:
24         void deleteButtonPressed();
25         void widthChanged (int);
26         void colorButtonPressed();
27         void setColorHeadingButtonPressed ();
28
29 private:
30         Ui::EditXLinkDialog ui;
31         bool delink;
32         XLinkObj *xlo;
33         LinkableMapObj *selection;
34 };
35
36 #endif // EDITXLINKDIALOG_H