Scribus
Open source desktop publishing at your fingertips
pagelayout.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 PAGELAYOUT_H
8 #define PAGELAYOUT_H
9 
10 #include <QGroupBox>
11 #include <QListWidget>
12 #include <QList>
13 class QVBoxLayout;
14 class QListWidgetItem;
15 class QLabel;
16 
17 #include "scribusapi.h"
18 #include "scribusstructs.h"
19 class ScComboBox;
20 
21 
23 class SCRIBUS_API PageListWidget : public QListWidget
24 {
25  Q_OBJECT
26 
27 public:
28  PageListWidget(QWidget* parent);
29  ~PageListWidget() {};
30  void arrangeIcons();
31 };
32 
33 
37 class SCRIBUS_API PageLayouts : public QGroupBox
38 {
39  Q_OBJECT
40 
41 public:
42  PageLayouts(QWidget* parent);
43  PageLayouts(QWidget* parent, QList<PageSet> pSets, bool mode = true);
44  ~PageLayouts() {};
45 
46  void updateLayoutSelector(QList<PageSet> pSets);
47  void selectFirstP(int nr);
48  void selectItem(uint nr);
49  PageListWidget* layoutsView;
50  ScComboBox* layoutsCombo;
51  QLabel* layoutLabel1;
52  ScComboBox* firstPage;
53  QList<PageSet> pageSets;
54 
55 public slots:
56  void itemSelected(QListWidgetItem* ic);
57  void itemSelected(int ic);
58 
59 signals:
60  void selectedLayout(int);
61  void selectedFirstPage(int);
62 
63 private:
64  void itemSelectedPost(int choosen);
65  bool modus;
66 
67 protected:
68  QVBoxLayout* layoutGroupLayout;
69 
70 protected slots:
71  virtual void languageChange();
72 
73 };
74 
75 #endif // PAGELAYOUT_H
A widget for changing pages layout. User can change layouts on-the-fly changing widget's comboboxes...
Definition: pagelayout.h:37
The ScComboBox widget always uses a listbox instead of a popup, independent of any QStyle...
Definition: sccombobox.h:26
A widget containing pages layout schema.
Definition: pagelayout.h:23