editxlinkdialog.h
author insilmaril
Mon May 05 13:46:42 2008 +0000 (2008-05-05)
changeset 696 0c2d74acf035
parent 382 8b0ab4c0f767
child 790 133e2ed6b9c5
permissions -rw-r--r--
Some code cleanup and experimental stuff to support animations later
     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