newnodedialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
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
00095 LabelWidget *labelwidget;
00096
00097
00098 QPushButton *cancel,
00099 *ok;
00100 QGridLayout *buttonlayout;
00101 };
00102
00103 #endif // NEWNODEDIALOG_H
00104
00105