Source: scribus/scribusview.h
|
|
|
|
/***************************************************************************
scribusview.h - description
-------------------
begin : Fre Apr 6 21:47:55 CEST 2001
copyright : (C) 2001 by Franz Schmid
email : Franz.Schmid@altmuehlnet.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef SCRIBUSVIEW_H
#define SCRIBUSVIEW_H
// include files for QT
#include
#include
#include
#include
#include
#include
#include
#include
#include
// application specific includes
#include "scribusdoc.h"
#include "page.h"
#include "hruler.h"
#include "vruler.h"
#include "libpostscript/pslib.h"
#include "mspinbox.h"
extern QPixmap loadIcon(QString nam);
/**
* This class provides an incomplete base for your application view.
*/
class ScribusView : public QScrollView
{
Q_OBJECT
public:
ScribusView(QWidget *parent=0, ScribusDoc *doc=0, preV *prefs=0);
~ScribusView() {};
/** Vergroesserungseingabefeld */
MSpinBox* LE;
QToolButton *UN;
Hruler *HR;
Vruler *VR;
/** Liste der Seiten */
QPtrList Pages;
/** Liste der Musterseiten */
QPtrList MasterPages;
/** Liste der Dokumentseiten */
QPtrList DocPages;
/** Mapping Namen zu Musterseiten */
QMap MasterNames;
/** Fügt eine Seite hinzu */
Page* addPage(int nr);
/** Löscht eine Seite */
void delPage(int Nr);
/** verschiebt Seiten */
void movePage(int from, int to, int ziel, int art);
void reformPages();
void PaMenu();
void LaMenu();
void ShowTemplate(int nr);
void HideTemplate();
int CountElements();
QPixmap PageToPixmap(int Nr, int maxGr);
QPixmap MPageToPixmap(QString name, int maxGr);
void RecalcPictures(ProfilesL *Pr, QProgressBar *dia = 0);
void CreatePS(PSLib *p, uint von, uint bis, int step, bool sep, QString SepNam, bool farb, bool Hm, bool Vm, bool Ic);
void ProcessPage(PSLib *p, Page* a, uint PNr, bool sep = false, bool farb = true, bool ic = false);
void SetClipPath(PSLib *p, FPointArray *c);
void SetFarbe(QString farb, int shade, int *h, int *s, int *v, int *k);
/** Dokument zu dem die Seite gehört */
ScribusDoc *Doc;
preV *Prefs;
public slots: // Public slots
/** Führt die Vergrößerung/Verkleinerung aus; */
void slotDoZoom();
/** Vergrößert die Ansicht */
void slotZoomIn();
/** Verkleinert die Ansicht */
void slotZoomOut();
/** Vergrößert die Ansicht */
void slotZoomIn2();
/** Verkleinert die Ansicht */
void slotZoomOut2();
/** Zeichnet alle Seiten neu */
void DrawNew();
void setMenTxt(int Seite);
void setLayMenTxt(int l);
void GotoPa(int Seite);
void GotoLa(int l);
void GotoPage(int Seite);
void ChgUnit(int art);
void SetCPo(int x, int y);
void SetCCPo(int x, int y);
private: // Private attributes
QPushButton *SB1;
QPushButton *SB2;
QPushButton *LA;
QPushButton *LY;
QPopupMenu *Seitmen;
QPopupMenu *Unitmen;
QPopupMenu *Laymen;
bool Ready;
private slots:
void Zval();
void setRulerPos(int x, int y);
protected: // Protected methods
/** Waagrechter Scrollbalken */
virtual void contentsWheelEvent ( QWheelEvent *ev );
virtual void setHBarGeometry(QScrollBar &bar, int x, int y, int w, int h);
virtual void setVBarGeometry(QScrollBar &bar, int x, int y, int w, int h);
signals:
void changeUN(int);
void changeLA(int);
};
#endif
Generated by: paul on ahnews.music.salford.ac.uk on Tue Oct 21 16:33:32 2003, using kdoc 2.0a54. |