newnodedialog.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 NEWNODEDIALOG_H
00022 #define NEWNODEDIALOG_H
00023 
00024 #include "src/data/node/abstractnodecontent.h"
00025 #include "src/gui/widget/labelwidget.h"
00026 #include "src/gui/widget/syntaxbox.h"
00027 #include <QDialog>
00028 #include <QFormLayout>
00029 #include <QGridLayout>
00030 #include <QGroupBox>
00031 #include <QLabel>
00032 #include <klineedit.h>
00033 #include <QListWidget>
00034 
00035 
00043 class NewNodeDialog : public QDialog
00044 {
00045     Q_OBJECT
00046 
00047     public:
00054         NewNodeDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
00055 
00060         ~NewNodeDialog();
00061 
00066         QString getCaption() const;
00067 
00072         AbstractNodeContent* getContent() const;
00073 
00078         QStringList getLabels() const;
00079 
00080     private slots:
00081         void indexChanged(int index);
00082 
00083     private:
00084         QVBoxLayout *baselayout;
00085 
00086         QFormLayout *namelayout;
00087         KLineEdit *nameedit;
00088 
00089         QGridLayout *typelayout;
00090         QLabel *lbltype;
00091         QComboBox *typebox;
00092         SyntaxBox *syntaxbox;
00093 
00094         // labels
00095         LabelWidget *labelwidget;
00096 
00097         // butons
00098         QPushButton *cancel,
00099                     *ok;
00100         QGridLayout *buttonlayout;
00101 };
00102 
00103 #endif // NEWNODEDIALOG_H
00104 
00105 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3