TabTools Class Reference
Tools panel for preferences dialog. This class is inherited from UI base class. More...
#include <tabtools.h>

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 |
| FontCombo * | fontComboText |
| QComboBox * | sizeComboText |
| ColorCombo * | colorComboText |
| ColorCombo * | colorComboStrokeText |
| ColorCombo * | colorComboTextBackground |
| ColorCombo * | colorComboTextLine |
| QSpinBox * | shadingText |
| QSpinBox * | shadingTextStroke |
| QSpinBox * | shadingTextBack |
| QSpinBox * | shadingTextLine |
| QLabel * | textLabelTS |
| QLabel * | textLabelTSS |
| QLabel * | textLabelTSB |
| QLabel * | textLabelTSL |
| QComboBox * | tabFillCombo |
| QLabel * | textLabel5b |
| ScrSpinBox * | gapText |
| ScrSpinBox * | gapTab |
| QWidget * | subTabShape |
| QLabel * | shapeHeadLine |
| QLabel * | textLabel9b |
| QLabel * | textLabel10b |
| ScrSpinBox * | lineWidthShape |
| QLabel * | textLabel12b |
| QLabel * | textLabel11b |
| LineCombo * | comboStyleShape |
| QSpinBox * | shadingFillShape |
| ColorCombo * | comboFillShape |
| QSpinBox * | shadingLineShape |
| QLabel * | textLabel7b |
| ColorCombo * | colorComboLineShape |
| QLabel * | textLabel8b |
| QWidget * | subTabLine |
| QLabel * | lineHeadLine |
| ScrSpinBox * | lineWidthLine |
| QSpinBox * | shadingLine |
| ColorCombo * | colorComboLine |
| QLabel * | textLabel13b |
| QLabel * | textLabel14b |
| QLabel * | textLabel15b |
| QLabel * | textLabel16b |
| LineCombo * | comboStyleLine |
| QWidget * | subTabImage |
| QLabel * | imageHeadLine |
| ColorCombo * | comboFillImage |
| QLabel * | textLabel19b |
| QSpinBox * | shadingFillImage |
| QLabel * | textLabel20b |
| QGroupBox * | buttonGroup3 |
| QLabel * | textLabel17b |
| QLabel * | textLabel18b |
| QSpinBox * | scalingHorizontal |
| QSpinBox * | scalingVertical |
| LinkButton * | chainButton |
| QGroupBox * | buttonGroup5 |
| QCheckBox * | checkRatioImage |
| QCheckBox * | embeddedPath |
| QGroupBox * | buttonGroupRes |
| QRadioButton * | checkFullRes |
| QRadioButton * | checkNormalRes |
| QRadioButton * | checkHalfRes |
| QWidget * | subTabPolygon |
| QLabel * | polygonHeadLine |
| PolygonWidget * | polyWidget |
| QWidget * | subTabZoom |
| QLabel * | zoomHeadLine |
| QLabel * | textLabel21b |
| QSpinBox * | minimumZoom |
| QLabel * | textLabel22b |
| QLabel * | textLabel23b |
| QSpinBox * | maximumZoom |
| QSpinBox * | zoomStep |
| ArrowChooser * | startArrow |
| ArrowChooser * | endArrow |
| QLabel * | startArrowText |
| QLabel * | endArrowText |
| QLabel * | arrowText |
| QWidget * | subTabGeneral |
| QLabel * | generalHeadLine |
| QGroupBox * | genDispBox |
| QLabel * | genText1 |
| QLabel * | genText2 |
| ScrSpinBox * | genDispX |
| ScrSpinBox * | genDispY |
| QGroupBox * | genRotBox |
| QLabel * | genText3 |
| QLabel * | genText4 |
| ScrSpinBox * | genRot |
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 |
| ScribusDoc * | docu |
| 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.
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
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.
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.
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.
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] |
TabTools (Tools, Text frame), Sets the sample text in selected font in text frame preferences.
Definition at line 914 of file tabtools.cpp.
References colorComboText, colorComboTextBackground, PrefsManager::colorSetPtr(), docu, fontComboText, fontPreview, SampleItem::getSample(), PrefsManager::instance(), ScribusDoc::PageColors, previewText, SampleItem::setBgColor(), SampleItem::setBgShade(), SampleItem::setFont(), SampleItem::setFontSize(), SampleItem::setText(), SampleItem::setTxColor(), SampleItem::setTxShade(), shadingText, shadingTextBack, sizeComboText, tr(), and CommonStrings::tr_NoneColor.
Referenced by enableFontPreview(), enableSignals(), and restoreDefaults().
| void TabTools::setTool | ( | ) | [protected, virtual, slot] |
TabTools (Tools), Raises widget for selected Tool properties.
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] |
Definition at line 564 of file tabtools.cpp.
References buttonGroup3, buttonGroup5, chainButton, changeImageScalingFree(), changeImageScalingRatio(), colorComboText, colorComboTextBackground, fontComboText, hChange(), scalingHorizontal, scalingVertical, setFillChar(), setSample(), setTool(), shadingText, shadingTextBack, sizeComboText, tabFillCombo, toggleChain(), toolImage, toolLine, toolMisc, toolPoly, toolShape, toolText, toolZoom, and vChange().
Referenced by restoreDefaults().
Member Data Documentation
| QGroupBox* TabTools::buttonGroupTools |
| QToolButton* TabTools::toolShape |
| QToolButton* TabTools::toolPoly |
| QToolButton* TabTools::toolImage |
| QToolButton* TabTools::toolText |
| QToolButton* TabTools::toolLine |
| QToolButton* TabTools::toolZoom |
| QToolButton* TabTools::toolMisc |
| QStackedWidget* TabTools::subStackTools |
| QWidget* TabTools::subTabText |
| QLabel* TabTools::textHeadLine |
| QLabel* TabTools::textLabel3b |
| QLabel* TabTools::textLabel3b2 |
| QLabel* TabTools::textLabel3b2t |
| QLabel* TabTools::textLabel3b2t2 |
| QLabel* TabTools::textLabel3bT |
| QLabel* TabTools::textLabel3bTL |
| QLabel* TabTools::textLabel1b |
| QLabel* TabTools::textLabel2b |
| QLabel* TabTools::textLabel4b |
| QSpinBox* TabTools::columnsText |
Definition at line 77 of file tabtools.h.
Referenced by restoreDefaults(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QLabel* TabTools::previewText |
Definition at line 79 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QComboBox* TabTools::sizeComboText |
Definition at line 80 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
Definition at line 81 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
Definition at line 82 of file tabtools.h.
Referenced by restoreDefaults(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
Definition at line 83 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
Definition at line 84 of file tabtools.h.
Referenced by restoreDefaults(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QSpinBox* TabTools::shadingText |
Definition at line 85 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QSpinBox* TabTools::shadingTextStroke |
Definition at line 86 of file tabtools.h.
Referenced by restoreDefaults(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QSpinBox* TabTools::shadingTextBack |
Definition at line 87 of file tabtools.h.
Referenced by enableSignals(), restoreDefaults(), setSample(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QSpinBox* TabTools::shadingTextLine |
Definition at line 88 of file tabtools.h.
Referenced by restoreDefaults(), TabTools(), ReformDoc::updateDocumentSettings(), and Preferences::updatePreferences().
| QLabel* TabTools::textLabelTS |
| QLabel* TabTools::textLabelTSS |
| QLabel* TabTools::textLabelTSB |
