newlinkdialog.h

00001 /*
00002  * Silence
00003  *
00004  * Copyright (C) 2009 Manuel Unglaub
00005  *
00006  * This file is part of Silence.
00007  *
00008  * Silence is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, version GPLv2 only of the License.
00011  *
00012  * Silence is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with Silence.  If not, see <http://www.gnu.org/licenses/>.
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 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3