X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Feditxlinkdialog.h;fp=src%2Feditxlinkdialog.h;h=b660cb5bd34f6693c373d91c489161c613be5537;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/editxlinkdialog.h b/src/editxlinkdialog.h new file mode 100644 index 0000000..b660cb5 --- /dev/null +++ b/src/editxlinkdialog.h @@ -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