Scribus
Open source desktop publishing at your fingertips
movepage.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 #ifndef MOVEPAGES_H
8 #define MOVEPAGES_H
9 
10 #include <QVBoxLayout>
11 #include <QGridLayout>
12 #include <QHBoxLayout>
13 #include <QDialog>
14 
15 class QComboBox;
16 class QLabel;
17 class QPushButton;
18 class ScrSpinBox;
19 
20 #include "scribusapi.h"
21 
22 class SCRIBUS_API MovePages : public QDialog
23 {
24  Q_OBJECT
25 
26 public:
27  MovePages( QWidget* parent, int currentPage, int maxPages, bool moving );
28  ~MovePages() {};
29 
30  const int getFromPage();
31  const int getToPage();
32  const int getWhere();
33  const int getWherePage();
34  const int getCopyCount();
35 
36 
37 private:
38  QLabel* moveLabel;
39  QLabel* toLabel;
40  QLabel* numberOfCopiesLabel;
41  ScrSpinBox* fromPageData;
42  ScrSpinBox* toPageData;
43  ScrSpinBox* numberOfCopiesData;
44  ScrSpinBox* mvWherePageData;
45  QComboBox* mvWhereData;
46  QPushButton* okButton;
47  QPushButton* cancelButton;
48  QVBoxLayout* dialogLayout;
49  QGridLayout* fromToLayout;
50  QHBoxLayout* okCancelLayout;
51 
52  bool move;
53 
54 private slots:
55  virtual void fromChanged();
56  virtual void toChanged();
57  void mvWherePageDataDisable(int index);
58 };
59 
60 #endif // MOVEPAGES_H
61 
Definition: movepage.h:22
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21