/usr/include/scribus/pagepalette.h is in scribus-dev 1.4.6+dfsg-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 | /*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef SEITENPAL_H
#define SEITENPAL_H
#include <QCheckBox>
#include <QDialog>
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QHBoxLayout>
#include <QImage>
#include <QKeyEvent>
#include <QLabel>
#include <QLayout>
#include <QListWidget>
#include <QMouseEvent>
#include <QPixmap>
#include <QPushButton>
#include <QSplitter>
#include <QTableWidget>
#include <QTableWidgetItem>
#include <QToolTip>
#include <QVBoxLayout>
class QEvent;
#include "scribusapi.h"
#include "scrpalettebase.h"
class ScribusView;
class ScribusMainWindow;
class PageLayouts;
class SCRIBUS_API SeItem : public QTableWidgetItem
{
friend class PagePalette;
friend class SeView;
public:
SeItem(QString text, uint pgnr, const QPixmap& Pix);
~SeItem() {};
const QString& getPageName();
uint pageNumber;
protected:
QString pageName;
};
class SCRIBUS_API SeList : public QListWidget
{
friend class PagePalette;
Q_OBJECT
public:
SeList(QWidget* parent);
~SeList() {};
private slots:
void toggleThumbnail();
signals:
//! Emitted when user requests/disables the thumbnais for master pages.
void thumbnailChanged();
void DelMaster(QString);
protected:
void mouseReleaseEvent(QMouseEvent *m);
void mousePressEvent(QMouseEvent* e);
void mouseMoveEvent(QMouseEvent* e);
virtual void keyPressEvent(QKeyEvent* e);
QPoint Mpos;
QListWidgetItem *CurItem;
bool Mpressed;
bool Thumb;
};
class SCRIBUS_API SeView : public QTableWidget
{
Q_OBJECT
friend class PagePalette;
public:
SeView(QWidget* parent);
~SeView() {};
void ClearPix();
int GetPage(int r, int c, bool *last);
public slots:
void ToggleNam();
signals:
void UseTemp(QString, int);
void NewPage(int, QString);
void movePage(int, int);
void Click(int, int, int);
void DelPage(int);
protected:
virtual void dropEvent(QDropEvent * e);
virtual void dragEnterEvent(QDragEnterEvent *e);
virtual void dragLeaveEvent(QDragLeaveEvent *e);
virtual void dragMoveEvent(QDragMoveEvent *e);
virtual void mouseReleaseEvent(QMouseEvent *m);
virtual void mousePressEvent(QMouseEvent* e);
virtual void mouseMoveEvent(QMouseEvent* e);
virtual void keyPressEvent(QKeyEvent* e);
QPoint Mpos;
bool Mpressed;
bool Doppel;
bool Links;
bool Namen;
int MaxC;
int colmult;
int rowmult;
int coladd;
int rowadd;
int cols;
int firstP;
};
class SCRIBUS_API TrashBin : public QLabel
{
Q_OBJECT
public:
TrashBin( QWidget * parent );
~TrashBin() {};
void dragEnterEvent( QDragEnterEvent *e );
void dragLeaveEvent( QDragLeaveEvent * );
void dropEvent( QDropEvent * e );
protected:
QPixmap Normal;
QPixmap Offen;
signals:
void DelPage(int);
void DelMaster(QString);
};
class SCRIBUS_API PagePalette : public ScrPaletteBase
{
Q_OBJECT
public:
PagePalette(QWidget* parent);
~PagePalette() {};
virtual void changeEvent(QEvent *e);
//CB FIXME Put these in for now and hide the rest. What are these indicating?
const bool getNamen();
const bool getThumb();
public slots:
void setView(ScribusView *view);
void deleteMasterPage(QString tmp);
void pageView_movePage(int r, int c);
void pageView_gotoPage(int r, int c, int b);
void enablePalette(const bool);
void handlePageLayout(int layout);
void handleFirstPage(int fp);
//! Recreate master pages thumbnails (if it's set on)
void rebuildMasters();
//! Recreate common pages arrangement
void rebuildPages();
void Rebuild();
void markPage(uint nr);
void selMasterPage();
QPixmap CreateIcon(int nr, QPixmap pixin);
void languageChange();
signals:
void EditTemp(QString);
void gotoPage(int);
protected:
QVBoxLayout* PagePaletteLayout;
QHBoxLayout* Layout1;
QVBoxLayout* Layout2;
QVBoxLayout* Layout3;
PageLayouts* pageLayout;
QSplitter* Splitter1;
QLabel* TextLabel1;
QLabel* TextLabel2;
TrashBin* Trash;
QList<SeItem*> pageList;
SeList* masterPageList;
SeView* pageView;
ScribusView *currView;
ScribusMainWindow *m_scMW;
QPixmap pix;
// DynamicTip* dynTip;
};
#endif // SEITENPAL_H
|