newlinkdialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NEWLINKDIALOG_H
00022 #define NEWLINKDIALOG_H
00023
00024 #include <klineedit.h>
00025 #include <QDialog>
00026 #include <QGridLayout>
00027 #include <QLabel>
00028 #include <QPushButton>
00029 #include <QRadioButton>
00030 #include <QTreeView>
00031 #include <QUrl>
00032 #include "src/data/model/simpletreemodel.h"
00033
00034
00042 class NewLinkDialog : public QDialog
00043 {
00044 Q_OBJECT
00045
00046 public:
00055 NewLinkDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
00056
00062 ~NewLinkDialog();
00063
00069 void setLinkText(QString text);
00070
00076 QString getLinkText();
00077
00083 QUrl getUrl();
00084
00085 private slots:
00086 void selectFile();
00087
00088 private:
00089 QGridLayout *layout;
00090 QTreeView *tree;
00091 SimpleTreeModel *model;
00092 QPushButton *btnCancel,
00093 *btnOk,
00094 *btnSelectFile;
00095 QLabel *lblLinkText;
00096 QRadioButton *rbtnNode,
00097 *rbtnWebUrl,
00098 *rbtnFile;
00099 KLineEdit *ledLinkText,
00100 *ledWebUrl,
00101 *ledFile;
00102
00103 };
00104
00105 #endif // NEWLINKDIALOG_H
00106
00107