Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

TabDisplay Class Reference

Display panel for preferences dialog. This class is inherited from UI base class. More...

#include <tabdisplay.h>

List of all members.

Public Member Functions

 TabDisplay (QWidget *parent=0, const char *name=0)
 ~TabDisplay ()
void restoreDefaults (struct ApplicationPrefs *prefsData, struct guidesPrefs &guidesSettings, QList< PageSet > &pageSets, int pageLayout, MarginStruct &scratch)
void unitChange (int docUnitIx)
void setDocSetupMode ()
 Hide non-needed widgets for ReformDoc widget.
void setPaperColor (QColor neu)

Public Attributes

double DisScale
QColor colorPaper
QColor colorFrame
QColor colorFrameNorm
QColor colorFrameGroup
QColor colorFrameLocked
QColor colorFrameLinked
QColor colorFrameAnnotation
QColor colorPageBorder
QColor colorControlChars

Private Slots

void drawRuler ()
 Preferences (Display, Display Size). Draws ruler depending on scaling factor.
void setDisScale ()
 Preferences (Display, Display Size). Sets Scale for ruler scale.
virtual void changePaperColor ()
 Sets implicit paper color.
virtual void changeFrameColor ()
virtual void changeNormFrameColor ()
virtual void changeGroupFrameColor ()
virtual void changeChainFrameColor ()
virtual void changeLockFrameColor ()
virtual void changeAnnotFrameColor ()
virtual void changePageBorderColor ()
virtual void changeControlCharsColor ()

Private Attributes

int docUnitIndex


Detailed Description

Display panel for preferences dialog. This class is inherited from UI base class.

Author:
Petr Vanek <petr@scribus.info>

Definition at line 21 of file tabdisplay.h.


Constructor & Destructor Documentation

TabDisplay::TabDisplay ( QWidget *  parent = 0,
const char *  name = 0 
)

TabDisplay::~TabDisplay (  )  [inline]

Definition at line 27 of file tabdisplay.h.


Member Function Documentation

void TabDisplay::restoreDefaults ( struct ApplicationPrefs prefsData,
struct guidesPrefs guidesSettings,
QList< PageSet > &  pageSets,
int  pageLayout,
MarginStruct scratch 
)

void TabDisplay::unitChange ( int  docUnitIx  ) 

Definition at line 142 of file tabdisplay.cpp.

References docUnitIndex, and drawRuler().

Referenced by ReformDoc::unitChange(), and Preferences::unitChange().

void TabDisplay::setDocSetupMode (  ) 

Hide non-needed widgets for ReformDoc widget.

Definition at line 250 of file tabdisplay.cpp.

Referenced by ReformDoc::ReformDoc().

void TabDisplay::setPaperColor ( QColor  neu  ) 

Definition at line 167 of file tabdisplay.cpp.

References colorPaper.

Referenced by ReformDoc::restoreDefaults().

void TabDisplay::drawRuler (  )  [private, slot]

Preferences (Display, Display Size). Draws ruler depending on scaling factor.

Author:
Franz Schmid

Definition at line 185 of file tabdisplay.cpp.

References DisScale, p, unitRulerGetIter1FromIndex(), and unitRulerGetIter2FromIndex().

Referenced by restoreDefaults(), setDisScale(), TabDisplay(), and unitChange().

void TabDisplay::setDisScale (  )  [private, slot]

Preferences (Display, Display Size). Sets Scale for ruler scale.

Author:
Franz Schmid

Definition at line 178 of file tabdisplay.cpp.

References DisScale, and drawRuler().

Referenced by TabDisplay().

void TabDisplay::changePaperColor (  )  [private, virtual, slot]

Sets implicit paper color.

Author:
Franz Schmid

Definition at line 154 of file tabdisplay.cpp.

References colorPaper.

Referenced by TabDisplay().

void TabDisplay::changeFrameColor (  )  [private, virtual, slot]

Definition at line 259 of file tabdisplay.cpp.

References colorFrame.

Referenced by TabDisplay().

void TabDisplay::changeNormFrameColor (  )  [private, virtual, slot]

Definition at line 272 of file tabdisplay.cpp.

References colorFrameNorm.

Referenced by TabDisplay().

void TabDisplay::changeGroupFrameColor (  )  [private, virtual, slot]

Definition at line 285 of file tabdisplay.cpp.

References colorFrameGroup.

Referenced by TabDisplay().

void TabDisplay::changeChainFrameColor (  )  [private, virtual, slot]

Definition at line 298 of file tabdisplay.cpp.

References colorFrameLinked.

Referenced by TabDisplay().

void TabDisplay::changeLockFrameColor (  )  [private, virtual, slot]

Definition at line 311 of file tabdisplay.cpp.

References colorFrameLocked.

Referenced by TabDisplay().

void TabDisplay::changeAnnotFrameColor (  )  [private, virtual, slot]

Definition at line 324 of file tabdisplay.cpp.

References colorFrameAnnotation.

Referenced by TabDisplay().

void TabDisplay::changePageBorderColor (  )  [private, virtual, slot]

Definition at line 337 of file tabdisplay.cpp.

References colorPageBorder.

Referenced by TabDisplay().

void TabDisplay::changeControlCharsColor (  )  [private, virtual, slot]

Definition at line 350 of file tabdisplay.cpp.

References colorControlChars.

Referenced by TabDisplay().


Member Data Documentation

Definition at line 36 of file tabdisplay.h.

Referenced by changeFrameColor(), restoreDefaults(), and Preferences::updatePreferences().

int TabDisplay::docUnitIndex [private]

Definition at line 46 of file tabdisplay.h.

Referenced by restoreDefaults(), and unitChange().


The documentation for this class was generated from the following files:
Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.