labplot  2.8.2
About: LabPlot is an application for plotting and analysis of 2D and 3D functions and data. It is a complete rewrite of LabPlot1 and lacks in the first release a lot of features available in the predecessor. On the other hand, the GUI and the usability is more superior.
  Fossies Dox: labplot-2.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

GuiTools Class Reference

#include <GuiTools.h>

Static Public Member Functions

static void updateBrushStyles (QComboBox *, const QColor &)
 
static void updatePenStyles (QComboBox *, const QColor &)
 
static void updatePenStyles (QMenu *, QActionGroup *, const QColor &)
 
static void selectPenStyleAction (QActionGroup *, Qt::PenStyle)
 
static Qt::PenStyle penStyleFromAction (QActionGroup *, QAction *)
 
static void fillColorMenu (QMenu *, QActionGroup *)
 
static void selectColorAction (QActionGroup *, const QColor &)
 
static QColor & colorFromAction (QActionGroup *, QAction *)
 
static void highlight (QLineEdit *, bool)
 

Detailed Description

Definition at line 42 of file GuiTools.h.

Member Function Documentation

◆ colorFromAction()

QColor & GuiTools::colorFromAction ( QActionGroup *  actionGroup,
QAction *  action 
)
static

Definition at line 219 of file GuiTools.cpp.

References asan_symbolize::action, colors, and colorsCount.

Referenced by Axis::lineColorChanged(), and ReferenceLine::lineColorChanged().

◆ fillColorMenu()

void GuiTools::fillColorMenu ( QMenu *  menu,
QActionGroup *  actionGroup 
)
static

Definition at line 174 of file GuiTools.cpp.

References asan_symbolize::action, colors, colorsCount, and i18n.

Referenced by Axis::initMenus(), and ReferenceLine::initMenus().

◆ highlight()

◆ penStyleFromAction()

Qt::PenStyle GuiTools::penStyleFromAction ( QActionGroup *  actionGroup,
QAction *  action 
)
static

Definition at line 132 of file GuiTools.cpp.

References asan_symbolize::action.

Referenced by Axis::lineStyleChanged(), and ReferenceLine::lineStyleChanged().

◆ selectColorAction()

void GuiTools::selectColorAction ( QActionGroup *  actionGroup,
const QColor &  color 
)
static

Selects (checks) the action in the group actionGroup hat corresponds to the color color. Unchecks the previously checked action if the color was not found in the list of predefined colors.

Definition at line 201 of file GuiTools.cpp.

References colors, and colorsCount.

Referenced by Axis::createContextMenu(), and ReferenceLine::createContextMenu().

◆ selectPenStyleAction()

void GuiTools::selectPenStyleAction ( QActionGroup *  actionGroup,
Qt::PenStyle  style 
)
static

Definition at line 126 of file GuiTools.cpp.

Referenced by Axis::createContextMenu(), and ReferenceLine::createContextMenu().

◆ updateBrushStyles()

◆ updatePenStyles() [1/2]

void GuiTools::updatePenStyles ( QComboBox *  comboBox,
const QColor &  color 
)
static

fills the ComboBox combobox with the six possible Qt::PenStyles, the color color is used.

Definition at line 56 of file GuiTools.cpp.

References i18n.

Referenced by AxisDock::axisLinePenChanged(), AxisDock::axisMajorGridPenChanged(), AxisDock::axisMinorGridPenChanged(), CartesianPlotDock::borderColorChanged(), CartesianPlotLegendDock::borderColorChanged(), ImageDock::borderColorChanged(), DatapickerCurveWidget::borderColorChanged(), LabelWidget::borderColorChanged(), ReferenceLineDock::colorChanged(), Axis::createContextMenu(), ReferenceLine::createContextMenu(), CartesianPlotDock::cursorLineColorChanged(), XYCurveDock::curveDropLinePenChanged(), HistogramDock::curveErrorBarsPenChanged(), XYCurveDock::curveErrorBarsPenChanged(), HistogramDock::curveLinePenChanged(), XYCurveDock::curveLinePenChanged(), HistogramDock::curveSymbolsPenChanged(), XYCurveDock::curveSymbolsPenChanged(), XYCurveDock::dropLineColorChanged(), HistogramDock::errorBarsColorChanged(), XYCurveDock::errorBarsColorChanged(), AxisDock::init(), CartesianPlotDock::init(), CustomPointDock::init(), HistogramDock::init(), XYCurveDock::init(), DatapickerCurveWidget::init(), DatapickerImageWidget::init(), AxisDock::lineColorChanged(), HistogramDock::lineColorChanged(), XYCurveDock::lineColorChanged(), ReferenceLineDock::linePenChanged(), AxisDock::load(), CartesianPlotDock::load(), CartesianPlotLegendDock::load(), ImageDock::load(), XYCurveDock::load(), LabelWidget::load(), AxisDock::loadConfig(), CartesianPlotDock::loadConfig(), CartesianPlotLegendDock::loadConfig(), CustomPointDock::loadConfig(), XYCurveDock::loadConfig(), AxisDock::majorGridColorChanged(), AxisDock::majorTicksColorChanged(), AxisDock::minorGridColorChanged(), AxisDock::minorTicksColorChanged(), DatapickerImageWidget::pointsBorderColorChanged(), CustomPointDock::pointSymbolPenChanged(), ReferenceLineDock::ReferenceLineDock(), CartesianPlotDock::retranslateUi(), CartesianPlotLegendDock::retranslateUi(), CustomPointDock::symbolBorderColorChanged(), DatapickerCurveWidget::symbolPenChanged(), DatapickerImageWidget::symbolPenChanged(), HistogramDock::symbolsBorderColorChanged(), and XYCurveDock::symbolsBorderColorChanged().

◆ updatePenStyles() [2/2]

void GuiTools::updatePenStyles ( QMenu *  menu,
QActionGroup *  actionGroup,
const QColor &  color 
)
static

fills the QMenu menu with the six possible Qt::PenStyles, the color color is used. QActions are created with actionGroup as the parent, if not available. If already available, onle the color in the QAction's icons is updated.

Definition at line 87 of file GuiTools.cpp.

References asan_symbolize::action, and i18n.


The documentation for this class was generated from the following files: