Scribus
Open source desktop publishing at your fingertips
mergedoc.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 MERGEDOC_H
8 #define MERGEDOC_H
9 
10 #include <QDialog>
11 #include "scribusapi.h"
12 class QPushButton;
13 class QLabel;
14 class QLineEdit;
15 class QSpinBox;
16 class QString;
17 class QCheckBox;
18 class QVBoxLayout;
19 class QHBoxLayout;
20 class QGridLayout;
21 class ScComboBox;
22 
23 
24 class SCRIBUS_API MergeDoc : public QDialog
25 {
26  Q_OBJECT
27 
28 public:
29  MergeDoc( QWidget* parent, bool importMasterPages, int targetDocPageCount = -1, int currentPage = 1 );
30  ~MergeDoc();
31 
32  const QString getFromDoc();
33  const int getMasterPageNameItem();
34  const QString getMasterPageNameText();
35  const int getImportWhere();
36  const int getImportWherePage();
37  const bool getCreatePageChecked();
38  const QString getPageNumbers();
39  const int getPageCounter();
40 
41 private:
42  QLabel* fromDocLabel;
43  QLabel* importPageLabel;
44  QLabel* fromLabel;
45  QLineEdit* pageNumberData;
46  QLineEdit* fromDocData;
47  QPushButton* importButton;
48  QPushButton* cancelButton;
49  QPushButton* changeButton;
50  QCheckBox* createPageData;
51  ScComboBox* masterPageNameData;
52  ScComboBox* importWhereData;
53  QSpinBox* importWherePageData;
54  QVBoxLayout* dialogLayout;
55  QGridLayout* fromInfoLayout;
56  QHBoxLayout* importCancelLayout;
57  int count;
58  bool masterPages;
59 
60 private slots:
61  void changeFile();
62  void checkDestPageStatus( int positionComboSelection );
63  void enableCreateWidgets();
64 
65 };
66 
67 #endif // MERGEDOC_H
Definition: mergedoc.h:24
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26