diff options
author | Arno <am@disconnect.de> | 2014-04-07 16:16:55 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2014-04-07 16:16:55 +0200 |
commit | 9f314ad26720a925e8e7a7f1a9f61330f3fd29c1 (patch) | |
tree | 9ca0661d1be109ac3df65d3e55b8629b295c1c3c /smdialog.h | |
parent | 05c0ddf167054d1c7befe7440ff60718c98a8207 (diff) | |
download | SheMov-9f314ad26720a925e8e7a7f1a9f61330f3fd29c1.tar.gz SheMov-9f314ad26720a925e8e7a7f1a9f61330f3fd29c1.tar.bz2 SheMov-9f314ad26720a925e8e7a7f1a9f61330f3fd29c1.zip |
Create new, empty Seriespart by contect menu
Preparation for drag and drop. Also make it possible to delete
Seriesparts without files.
Diffstat (limited to 'smdialog.h')
-rw-r--r-- | smdialog.h | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -8,7 +8,11 @@ #ifndef SMDIALOG_H #define SMDIALOG_H -#include <QtWidgets/QDialog> +#include <QDialog> + +class QLineEdit; +class QSpinBox; +class QPushButton; class SmDialog : public QDialog { Q_OBJECT @@ -19,4 +23,21 @@ class SmDialog : public QDialog { virtual void showEvent(QShowEvent *); }; +class SeriesPartsDialog : public SmDialog { + Q_OBJECT + public: + explicit SeriesPartsDialog(QWidget *parent, Qt::WindowFlags f = 0); + QString subtitle() const; + int partNo() const; + void setSubtitle(const QString &subtitle); + void setPartno(int partNo); + + private: + QLineEdit *mSubtitle; + QSpinBox *mPartno; + QPushButton *mOk; + QPushButton *mCancel; + +}; + #endif // SMDIALOG_H |