Subversion Repositories Scribus

Rev

Rev 3560 | Rev 3698 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 paul 1
/****************************************************************************
2
** Form interface generated from reading ui file 'Seiten2.ui'
3
**
4
** Created: Mon Apr 1 12:07:27 2002
5
**      by:  The User Interface Compiler (uic)
6
**
7
** WARNING! All changes made in this file will be lost!
8
****************************************************************************/
9
#ifndef SEITENPAL_H
10
#define SEITENPAL_H
11
 
1448 cbradney 12
#include <qdialog.h>
3 paul 13
#include <qtable.h>
14
#include <qlabel.h>
15
#include <qlistbox.h>
16
#include <qcheckbox.h>
17
#include <qpushbutton.h>
18
#include <qlayout.h>
19
#include <qtooltip.h>
20
#include <qimage.h>
21
#include <qpixmap.h>
22
#include <qdragobject.h>
23
#include <qevent.h>
24
#include <qsplitter.h>
2969 craig 25
 
26
#include "scribusapi.h"
1525 cbradney 27
#include "scrpalettebase.h"
3 paul 28
#include "scribusview.h"
3436 fschmid 29
class DynamicTip;
3560 fschmid 30
class PageLayouts;
3 paul 31
 
2969 craig 32
class SCRIBUS_API SeDrag : public QStoredDrag
3 paul 33
{
34
public:
3429 fschmid 35
        SeDrag( QString s, QWidget * parent = 0, const char * name = 0 );
36
        ~SeDrag() {};
3 paul 37
 
3429 fschmid 38
        static bool canDecode( QDragMoveEvent* e );
39
        static bool decode( QDropEvent* e, QString& s );
3 paul 40
};
41
 
2969 craig 42
class SCRIBUS_API SeItem : public QTableItem
3 paul 43
{
3623 cbradney 44
 
45
friend class PagePalette;
46
friend class SeView;
47
 
48
 
3 paul 49
public:
3429 fschmid 50
        SeItem(QTable* parent, QString text, QPixmap Pix);
51
        ~SeItem() {};
3623 cbradney 52
 
53
        const QString& getPageName();
54
 
55
protected:
3429 fschmid 56
        QString pageName;
3 paul 57
};
58
 
2969 craig 59
class SCRIBUS_API SeList : public QListBox
3 paul 60
{
3623 cbradney 61
friend class PagePalette;
62
 
3429 fschmid 63
        Q_OBJECT
3 paul 64
 
65
public:
3429 fschmid 66
        SeList(QWidget* parent);
67
        ~SeList() {};
3 paul 68
 
69
private slots:
70
        void ToggleTh();
71
 
72
signals:
73
        void ThumbChanged();
74
 
75
protected:
76
        void mouseReleaseEvent(QMouseEvent *m);
77
        void mousePressEvent(QMouseEvent* e);
78
        void mouseMoveEvent(QMouseEvent* e);
3623 cbradney 79
 
80
        QPoint Mpos;
81
        QListBoxItem *CurItem;
82
        bool Mpressed;
83
        bool Thumb;
84
 
3 paul 85
};
86
 
2969 craig 87
class SCRIBUS_API SeView : public QTable
3 paul 88
{
3429 fschmid 89
        Q_OBJECT
3623 cbradney 90
 
91
friend class PagePalette;
3 paul 92
 
93
public:
3429 fschmid 94
        SeView(QWidget* parent);
95
        ~SeView() {};
168 Franz 96
        void ClearPix();
3429 fschmid 97
        int GetPage(int r, int c, bool *last);
3 paul 98
 
99
public slots:
100
        void ToggleNam();
101
 
102
signals:
168 Franz 103
        void UseTemp(QString, int);
104
        void NewPage(int, QString);
105
        void MovePage(int, int);
106
        void Click(int, int, int);
3 paul 107
 
108
protected:
168 Franz 109
        virtual void contentsDropEvent(QDropEvent * e);
110
        virtual void contentsDragEnterEvent(QDragEnterEvent *e);
111
        virtual void contentsDragLeaveEvent(QDragLeaveEvent *e);
112
        virtual void contentsDragMoveEvent(QDragMoveEvent *e);
113
        virtual void contentsMouseReleaseEvent(QMouseEvent *m);
114
        virtual void contentsMousePressEvent(QMouseEvent* e);
115
        virtual void contentsMouseMoveEvent(QMouseEvent* e);
3623 cbradney 116
 
117
        QPoint Mpos;
118
        bool Mpressed;
119
        bool Doppel;
120
        bool Links;
121
        bool Namen;
122
        int MaxC;
123
        int colmult;
124
        int rowmult;
125
        int coladd;
126
        int rowadd;
127
        int cols;
128
        int firstP;
3 paul 129
};
130
 
2969 craig 131
class SCRIBUS_API TrashBin : public QLabel
3 paul 132
{
3429 fschmid 133
        Q_OBJECT
3 paul 134
 
135
public:
168 Franz 136
        TrashBin( QWidget * parent );
137
        ~TrashBin() {};
138
        void dragEnterEvent( QDragEnterEvent *e );
139
        void dragLeaveEvent( QDragLeaveEvent * );
140
        void dropEvent( QDropEvent * e );
3 paul 141
 
3623 cbradney 142
protected:
143
        QPixmap Normal;
144
        QPixmap Offen;
145
 
3 paul 146
signals:
168 Franz 147
        void DelPage(int);
148
        void DelMaster(QString);
3 paul 149
};
150
 
3623 cbradney 151
class SCRIBUS_API PagePalette : public ScrPaletteBase
3429 fschmid 152
{
153
        Q_OBJECT
3 paul 154
 
155
public:
3623 cbradney 156
        PagePalette(QWidget* parent);
157
        ~PagePalette() {};
158
 
159
        //CB FIXME Put these in for now and hide the rest. What are these indicating?
160
        const bool getNamen();
161
        const bool getThumb();
3 paul 162
 
163
public slots:
3623 cbradney 164
        void setView(ScribusView *view);
168 Franz 165
        void DelMPage(QString tmp);
166
        void MPage(int r, int c);
167
        void GotoPage(int r, int c, int b);
3623 cbradney 168
        void enablePalette(const bool);
3560 fschmid 169
        void handlePageLayout(int layout);
170
        void handleFirstPage(int fp);
168 Franz 171
        void RebuildTemp();
172
        void RebuildPage();
173
        void Rebuild();
2093 cbradney 174
        void selMasterPage();
168 Franz 175
        QPixmap CreateIcon(int nr, QPixmap ret);
2195 cbradney 176
        void languageChange();
3 paul 177
 
178
signals:
168 Franz 179
        void EditTemp(QString);
180
        void GotoSeite(int);
3 paul 181
 
182
protected:
3623 cbradney 183
        QVBoxLayout* PagePaletteLayout;
3429 fschmid 184
        QHBoxLayout* Layout1;
185
        QVBoxLayout* Layout2;
186
        QVBoxLayout* Layout3;
3623 cbradney 187
 
188
        PageLayouts* pageLayout;
189
        QSplitter* Splitter1;
190
        QLabel* TextLabel1;
191
        QLabel* TextLabel2;
192
        TrashBin* Trash;
193
        SeList* masterPageList;
194
        SeView* pageView;
195
        ScribusView *currView;
196
        QPixmap pix;
197
        DynamicTip* dynTip;
3 paul 198
};
199
 
200
#endif // SEITENPAL_H