summaryrefslogtreecommitdiffstats
path: root/smdialog.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2014-04-07 16:16:55 +0200
committerArno <am@disconnect.de>2014-04-07 16:16:55 +0200
commit9f314ad26720a925e8e7a7f1a9f61330f3fd29c1 (patch)
tree9ca0661d1be109ac3df65d3e55b8629b295c1c3c /smdialog.h
parent05c0ddf167054d1c7befe7440ff60718c98a8207 (diff)
downloadSheMov-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.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/smdialog.h b/smdialog.h
index cef5b27..4b2e935 100644
--- a/smdialog.h
+++ b/smdialog.h
@@ -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