Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

TabTools Class Reference

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

#include <tabtools.h>

Collaboration diagram for TabTools:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 TabTools (QWidget *parent, struct toolPrefs *prefsData, int unitIndex, ScribusDoc *doc)
 ~TabTools ()
void restoreDefaults (struct toolPrefs *prefsData, int unitIndex)
void enableFontPreview (bool state)
 Enable sample rendering. It's called when user selects this panel in preferences. First painting is very slow so it's called on user demand - not in the prefs GUI initialization.
void unitChange (int docUnitIndex)

Public Attributes

QGroupBox * buttonGroupTools
QToolButton * toolShape
QToolButton * toolPoly
QToolButton * toolImage
QToolButton * toolText
QToolButton * toolLine
QToolButton * toolZoom
QToolButton * toolMisc
QStackedWidget * subStackTools
QWidget * subTabText
QLabel * textHeadLine
QLabel * textLabel3b
QLabel * textLabel3b2
QLabel * textLabel3b2t
QLabel * textLabel3b2t2
QLabel * textLabel3bT
QLabel * textLabel3bTL
QLabel * textLabel1b
QLabel * textLabel2b
QLabel * textLabel4b
QSpinBox * columnsText
QLabel * previewText
FontCombofontComboText
QComboBox * sizeComboText
ColorCombocolorComboText
ColorCombocolorComboStrokeText
ColorCombocolorComboTextBackground
ColorCombocolorComboTextLine
QSpinBox * shadingText
QSpinBox * shadingTextStroke
QSpinBox * shadingTextBack
QSpinBox * shadingTextLine
QLabel * textLabelTS
QLabel * textLabelTSS
QLabel * textLabelTSB
QLabel * textLabelTSL
QComboBox * tabFillCombo
QLabel * textLabel5b
ScrSpinBoxgapText
ScrSpinBoxgapTab
QWidget * subTabShape
QLabel * shapeHeadLine
QLabel * textLabel9b
QLabel * textLabel10b
ScrSpinBoxlineWidthShape
QLabel * textLabel12b
QLabel * textLabel11b
LineCombocomboStyleShape
QSpinBox * shadingFillShape
ColorCombocomboFillShape
QSpinBox * shadingLineShape
QLabel * textLabel7b
ColorCombocolorComboLineShape
QLabel * textLabel8b
QWidget * subTabLine
QLabel * lineHeadLine
ScrSpinBoxlineWidthLine
QSpinBox * shadingLine
ColorCombocolorComboLine
QLabel * textLabel13b
QLabel * textLabel14b
QLabel * textLabel15b
QLabel * textLabel16b
LineCombocomboStyleLine
QWidget * subTabImage
QLabel * imageHeadLine
ColorCombocomboFillImage
QLabel * textLabel19b
QSpinBox * shadingFillImage
QLabel * textLabel20b
QGroupBox * buttonGroup3
QLabel * textLabel17b
QLabel * textLabel18b
QSpinBox * scalingHorizontal
QSpinBox * scalingVertical
LinkButtonchainButton
QGroupBox * buttonGroup5
QCheckBox * checkRatioImage
QCheckBox * embeddedPath
QGroupBox * buttonGroupRes
QRadioButton * checkFullRes
QRadioButton * checkNormalRes
QRadioButton * checkHalfRes
QWidget * subTabPolygon
QLabel * polygonHeadLine
PolygonWidgetpolyWidget
QWidget * subTabZoom
QLabel * zoomHeadLine
QLabel * textLabel21b
QSpinBox * minimumZoom
QLabel * textLabel22b
QLabel * textLabel23b
QSpinBox * maximumZoom
QSpinBox * zoomStep
ArrowChooserstartArrow
ArrowChooserendArrow
QLabel * startArrowText
QLabel * endArrowText
QLabel * arrowText
QWidget * subTabGeneral
QLabel * generalHeadLine
QGroupBox * genDispBox
QLabel * genText1
QLabel * genText2
ScrSpinBoxgenDispX
ScrSpinBoxgenDispY
QGroupBox * genRotBox
QLabel * genText3
QLabel * genText4
ScrSpinBoxgenRot

Protected Slots

virtual void toggleChain ()
 TabTools (Tools, Image Frame), Sets Y Scale value from X Scale value when chain is toggled.
virtual void hChange ()
 TabTools (Tools, Image Frame), Sets Y Scale value from X Scale value when X Scale value is changed.
virtual void vChange ()
 TabTools (Tools, Image Frame). Sets X Scale value from Y Scale value when Y Scale value is changed.
virtual void changeImageScalingFree (bool)
virtual void changeImageScalingRatio (bool)
virtual void setSample ()
 TabTools (Tools, Text frame), Sets the sample text in selected font in text frame preferences.
virtual void setTool ()
 TabTools (Tools), Raises widget for selected Tool properties.
virtual void setFillChar (int act)
virtual void setCustomFillChar (const QString &txt)

Protected Member Functions

void enableSignals (bool)

Protected Attributes

QHBoxLayout * tabToolsLayout
QVBoxLayout * buttonGroupToolsLayout
QGridLayout * subTabTextLayout
QGridLayout * subTabShapeLayout
QGridLayout * subTabLineLayout
QGridLayout * subTabImageLayout
QGridLayout * buttonGroup3Layout
QHBoxLayout * buttonGroup5Layout
QVBoxLayout * buttonGroupResLayout
QGridLayout * subTabPolygonLayout
QGridLayout * subTabZoomLayout
QGridLayout * subTabGeneralLayout
QGridLayout * subTabGeneralLayout2
QGridLayout * subTabGeneralLayout3
ScribusDocdocu
double unitRatio
QString unit
int precision
bool fontPreview
 True when is font sample allowed. See enableFontPreview().


Detailed Description

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

Author:
Petr Vanek <petr@scribus.info>

Definition at line 38 of file tabtools.h.


Constructor & Destructor Documentation

TabTools::TabTools ( QWidget *  parent,
struct toolPrefs prefsData,
int  unitIndex,
ScribusDoc doc 
)

Definition at line 42 of file tabtools.cpp.

References arrowText, buttonGroup3, buttonGroup3Layout, buttonGroup5, buttonGroup5Layout, buttonGroupRes, buttonGroupResLayout, buttonGroupTools, buttonGroupToolsLayout, chainButton, checkFullRes, checkHalfRes, checkNormalRes, checkRatioImage, colorComboLine, colorComboLineShape, colorComboStrokeText, colorComboText, colorComboTextBackground, colorComboTextLine, columnsText, comboFillImage, comboFillShape, comboStyleLine, comboStyleShape, docu, embeddedPath, endArrow, endArrowText, fontComboText, fontPreview, gapTab, gapText, genDispBox, genDispX, genDispY, generalHeadLine, genRot, genRotBox, genText1, genText2, genText3, genText4, imageHeadLine, lineHeadLine, lineWidthLine, lineWidthShape, loadIcon(), maximumZoom, minimumZoom, toolPrefs::polyC, toolPrefs::polyF, toolPrefs::polyFd, polygonHeadLine, toolPrefs::polyR, toolPrefs::polyS, polyWidget, previewText, scalingHorizontal, scalingVertical, shadingFillImage, shadingFillShape, shadingLine, shadingLineShape, shadingText, shadingTextBack, shadingTextLine, shadingTextStroke, shapeHeadLine, sizeComboText, startArrow, startArrowText, subStackTools, subTabGeneral, subTabGeneralLayout, subTabGeneralLayout2, subTabGeneralLayout3, subTabImage, subTabImageLayout, subTabLine, subTabLineLayout, subTabPolygon, subTabPolygonLayout, subTabShape, subTabShapeLayout, subTabText, subTabTextLayout, subTabZoom, subTabZoomLayout, tabFillCombo, tabToolsLayout, textHeadLine, textLabel10b, textLabel11b, textLabel12b, textLabel13b, textLabel14b, textLabel15b, textLabel16b, textLabel17b, textLabel18b, textLabel19b, textLabel1b, textLabel20b, textLabel21b, textLabel22b, textLabel23b, textLabel2b, textLabel3b, textLabel3b2, textLabel3b2t, textLabel3b2t2, textLabel3bT, textLabel3bTL, textLabel4b, textLabel5b, textLabel7b, textLabel8b, textLabel9b, textLabelTS, textLabelTSB, textLabelTSL, textLabelTSS, toolImage, toolLine, toolMisc, toolPoly, toolShape, toolText, toolZoom, tr(), zoomHeadLine, and zoomStep.

TabTools::~TabTools (  )  [inline]

Definition at line 44 of file tabtools.h.


Member Function Documentation

void TabTools::restoreDefaults ( struct toolPrefs prefsData,
int  unitIndex 
)

Definition at line 612 of file tabtools.cpp.

References PrefsManager::appPrefs, ApplicationPrefs::arrowStyles, ScribusDoc::arrowStyles, toolPrefs::aspectRatio, buttonGroup3, buttonGroup5, checkFullRes, checkHalfRes, checkNormalRes, checkRatioImage, colorComboLine, colorComboLineShape, colorComboStrokeText, colorComboText, colorComboTextBackground, colorComboTextLine, PrefsManager::colorSetPtr(), columnsText, comboFillImage, comboFillShape, comboStyleLine, comboStyleShape, toolPrefs::constrain, toolPrefs::dBrush, toolPrefs::dBrushPict, toolPrefs::dCols, toolPrefs::defFont, toolPrefs::defSize, toolPrefs::dEndArrow, toolPrefs::dGap, toolPrefs::dispX, toolPrefs::dispY, toolPrefs::dLineArt, toolPrefs::dLstyleLine, docu, toolPrefs::dPen, toolPrefs::dPenLine, toolPrefs::dPenText, toolPrefs::dShade, toolPrefs::dShade2, toolPrefs::dShadeLine, toolPrefs::dStartArrow, toolPrefs::dStrokeText, toolPrefs::dTabWidth, toolPrefs::dTextBackGround, toolPrefs::dTextBackGroundShade, toolPrefs::dTextLineColor, toolPrefs::dTextLineShade, toolPrefs::dTextPenShade, toolPrefs::dTextStrokeShade, toolPrefs::dWidth, toolPrefs::dWidthLine, embeddedPath, enableSignals(), endArrow, fontComboText, gapTab, gapText, genDispX, genDispY, genRot, ColorCombo::insertSmallItem(), PrefsManager::instance(), lineWidthLine, lineWidthShape, toolPrefs::lowResType, toolPrefs::magMax, toolPrefs::magMin, toolPrefs::magStep, maximumZoom, minimumZoom, CommonStrings::None, ScribusDoc::PageColors, precision, ArrowChooser::rebuildList(), toolPrefs::scaleType, toolPrefs::scaleX, toolPrefs::scaleY, scalingHorizontal, scalingVertical, ScrSpinBox::setNewUnit(), setSample(), toolPrefs::shadePict, shadingFillImage, shadingFillShape, shadingLine, shadingLineShape, shadingText, shadingTextBack, shadingTextLine, shadingTextStroke, sizeComboText, startArrow, toolPrefs::tabFillChar, tabFillCombo, tr(), CommonStrings::tr_NoneColor, CommonStrings::trCustomTabFill, unit, unitGetPrecisionFromIndex(), unitGetRatioFromIndex(), unitGetSuffixFromIndex(), unitRatio, toolPrefs::useEmbeddedPath, and zoomStep.

Referenced by ReformDoc::restoreDefaults(), and Preferences::setupGui().

void TabTools::enableFontPreview ( bool  state  ) 

Enable sample rendering. It's called when user selects this panel in preferences. First painting is very slow so it's called on user demand - not in the prefs GUI initialization.

Parameters:
state allow drawing the sample when TRUE
Author:
Petr Vanek <petr@scribus.info>

Definition at line 979 of file tabtools.cpp.

References fontPreview, and setSample().

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

void TabTools::unitChange ( int  docUnitIndex  ) 

Definition at line 985 of file tabtools.cpp.

References gapTab, gapText, genDispX, genDispY, and ScrSpinBox::setNewUnit().

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

void TabTools::toggleChain (  )  [protected, virtual, slot]

TabTools (Tools, Image Frame), Sets Y Scale value from X Scale value when chain is toggled.

Author:
Franz Schmid

Definition at line 880 of file tabtools.cpp.

References chainButton, scalingHorizontal, and scalingVertical.

Referenced by enableSignals().

void TabTools::hChange (  )  [protected, virtual, slot]

TabTools (Tools, Image Frame), Sets Y Scale value from X Scale value when X Scale value is changed.

Author:
Franz Schmid

Definition at line 886 of file tabtools.cpp.

References chainButton, scalingHorizontal, and scalingVertical.

Referenced by enableSignals().

void TabTools::vChange (  )  [protected, virtual, slot]

TabTools (Tools, Image Frame). Sets X Scale value from Y Scale value when Y Scale value is changed.

Author:
Franz Schmid

Definition at line 892 of file tabtools.cpp.

References chainButton, scalingHorizontal, and scalingVertical.

Referenced by enableSignals().

void TabTools::changeImageScalingFree ( bool   )  [protected, virtual, slot]

Definition at line 898 of file tabtools.cpp.

References buttonGroup3, and buttonGroup5.

Referenced by enableSignals().

void TabTools::changeImageScalingRatio ( bool   )  [protected, virtual, slot]

Definition at line 906 of file tabtools.cpp.

References buttonGroup3, and buttonGroup5.

Referenced by enableSignals().

void TabTools::setSample (  )  [protected, virtual, slot]

void TabTools::setTool (  )  [protected, virtual, slot]

TabTools (Tools), Raises widget for selected Tool properties.

Author:
Franz Schmid

Definition at line 961 of file tabtools.cpp.

References subStackTools, toolImage, toolLine, toolMisc, toolPoly, toolShape, toolText, and toolZoom.

Referenced by enableSignals().

void TabTools::setFillChar ( int  act  )  [protected, virtual, slot]

Definition at line 855 of file tabtools.cpp.

References setCustomFillChar(), tabFillCombo, and CommonStrings::trCustomTabFill.

Referenced by enableSignals(), and setCustomFillChar().

void TabTools::setCustomFillChar ( const QString &  txt  )  [protected, virtual, slot]

Definition at line 839 of file tabtools.cpp.

References setFillChar(), tabFillCombo, and CommonStrings::trCustomTabFill.

Referenced by setFillChar().

void TabTools::enableSignals ( bool  on  )  [protected]


Member Data Documentation

Definition at line 57 of file tabtools.h.

Referenced by TabTools().

QToolButton* TabTools::toolShape

Definition at line 58 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolPoly

Definition at line 59 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolImage

Definition at line 60 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolText

Definition at line 61 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolLine

Definition at line 62 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolZoom

Definition at line 63 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QToolButton* TabTools::toolMisc

Definition at line 64 of file tabtools.h.

Referenced by enableSignals(), setTool(), and TabTools().

QStackedWidget* TabTools::subStackTools

Definition at line 65 of file tabtools.h.

Referenced by setTool(), and TabTools().

Definition at line 66 of file tabtools.h.

Referenced by TabTools().

Definition at line 67 of file tabtools.h.

Referenced by TabTools().

Definition at line 68 of file tabtools.h.

Referenced by TabTools().

Definition at line 69 of file tabtools.h.

Referenced by TabTools().

Definition at line 70 of file tabtools.h.

Referenced by TabTools().

Definition at line 71 of file tabtools.h.

Referenced by TabTools().

Definition at line 72 of file tabtools.h.

Referenced by TabTools().

Definition at line 73 of file tabtools.h.

Referenced by TabTools().

Definition at line 74 of file tabtools.h.

Referenced by TabTools().

Definition at line 75 of file tabtools.h.

Referenced by TabTools().

Definition at line 76 of file tabtools.h.

Referenced by TabTools().

Definition at line 78 of file tabtools.h.

Referenced by setSample(), and TabTools().

Definition at line 89 of file tabtools.h.

Referenced by TabTools().

Definition at line 90 of file tabtools.h.

Referenced by TabTools().

Definition at line 91 of file tabtools.h.

Referenced by TabTools().