Back to index

scribus-ng  1.3.4.dfsg+svn20071115
tabdisplay.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef TABDISPLAY_H
00008 #define TABDISPLAY_H
00009 
00010 #include <qvaluelist.h>
00011 #include "tabdisplaybase.h"
00012 #include "scribusapi.h"
00013 #include "scribusstructs.h"
00014 
00015 class ScribusDoc;
00016 
00021 class SCRIBUS_API TabDisplay : public TabDisplayBase
00022 {
00023        Q_OBJECT
00024 
00025        public:
00026               TabDisplay(QWidget* parent = 0, const char* name = 0);
00027               ~TabDisplay(){};
00028               void restoreDefaults(struct ApplicationPrefs *prefsData, struct guidesPrefs &guidesSettings, QValueList<PageSet> &pageSets, int pageLayout, MarginStruct &scratch);
00029               void unitChange(QString unit, int docUnitIx, int decimals, double invUnitConversion);
00031               void setDocSetupMode();
00032               void setPaperColor(QColor neu);
00033 
00034               double DisScale;
00035               QColor colorPaper;
00036               QColor colorFrame;
00037               QColor colorFrameNorm;
00038               QColor colorFrameGroup;
00039               QColor colorFrameLocked;
00040               QColor colorFrameLinked;
00041               QColor colorFrameAnnotation;
00042               QColor colorPageBorder;
00043               QColor colorControlChars;
00044 
00045        private:
00046               int docUnitIndex;
00047 
00048        private slots:
00053               void drawRuler();
00058               void setDisScale();
00063               virtual void changePaperColor();
00064               virtual void changeFrameColor();
00065               virtual void changeNormFrameColor();
00066               virtual void changeGroupFrameColor();
00067               virtual void changeChainFrameColor();
00068               virtual void changeLockFrameColor();
00069               virtual void changeAnnotFrameColor();
00070               virtual void changePageBorderColor();
00071               virtual void changeControlCharsColor();
00072 };
00073 
00074 #endif