Scribus
Open source desktop publishing at your fingertips
pagepalette_pages.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 PAGEPALETTE_PAGES_H
8 #define PAGEPALETTE_PAGES_H
9 
10 #include <QHBoxLayout>
11 #include <QLabel>
12 #include <QLayout>
13 #include <QPixmap>
14 #include <QSplitter>
15 #include <QVBoxLayout>
16 
17 #include "ui_pagepalette_pagesbase.h"
18 
19 #include "scribusapi.h"
20 #include "scdockpalette.h"
21 
22 class PageLayouts;
23 class ScribusView;
24 class ScribusMainWindow;
25 class SeItem;
26 class SeList;
27 class SeView;
28 
29 class SCRIBUS_API PagePalette_Pages : public QWidget, Ui::PagePalette_PagesBase
30 {
31  Q_OBJECT
32 
33 public:
34  PagePalette_Pages(QWidget* parent);
35  ~PagePalette_Pages() {};
36 
37  virtual void changeEvent(QEvent *e);
38 
39 public slots:
40  void setView(ScribusView *view);
41  void deleteMasterPage(QString tmp);
42  void enablePalette(const bool);
43  void handlePageLayout(int layout);
44  void handleFirstPage(int fp);
46  void rebuildMasters();
48  void rebuildPages();
49  void Rebuild();
50  void markPage(uint nr);
51  void selMasterPage();
52  void languageChange();
53 
54 private slots:
55  void pageView_applyMasterPage(QString masterpageName, int pageIndex);
56  void pageView_movePage(int r, int c);
57  void pageView_gotoPage(int r, int c, int b);
58 
59 signals:
60  void gotoMasterPage(QString);
61  void gotoPage(int);
62 
63 protected:
64  ScribusView *currView;
65  ScribusMainWindow *m_scMW;
66 
67  QList<SeItem*> pageList;
68  QPixmap pix;
69 
70  QPixmap createIcon(int nr, QString mp, QPixmap pixin);
71 };
72 
73 #endif // SEITENPAL_H
Definition: pagepalette_widgets.h:40
Definition: pagepalette_widgets.h:57
This Class is the base class for your application. It sets up the main window and providing a menubar...
Definition: scribus.h:123
A widget for changing pages layout. User can change layouts on-the-fly changing widget's comboboxes...
Definition: pagelayout.h:37
Definition: pagepalette_widgets.h:89
Definition: pagepalette_pages.h:29
Definition: scribusview.h:87