QtiPlot  0.9.8.2
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots | List of all members
AxesDialog Class Reference

General plot options dialog. More...

#include <AxesDialog.h>

Inheritance diagram for AxesDialog:

Public Slots

int exec ()
 Shows the dialog as a modal dialog. More...
 
void setCurrentScale (int axisPos)
 
void showAxesPage ()
 
void showFormulaBox ()
 
void showGeneralPage ()
 
void showGridPage ()
 

Public Member Functions

 AxesDialog (QWidget *parent=0, Qt::WFlags fl=0)
 Constructor. More...
 
void setGraph (Graph *g)
 

Protected Member Functions

void applyAxisFormatToLayer (Graph *g)
 Customizes graph axes. More...
 
void applyCanvasFormatTo (Graph *g)
 
void applyChangesToGrid (Grid *grid)
 Modifies the grid. More...
 
void initAxesPage ()
 generate UI for the axes page More...
 
void initFramePage ()
 generate UI for the general page More...
 
void initGridPage ()
 generate UI for the grid page More...
 
void initScalesPage ()
 generate UI for the scales page More...
 

Protected Attributes

QListWidget * axesGridList
 
QListWidget * axesList
 
QWidget * axesPage
 
QListWidget * axesTitlesList
 
QComboBox * axisFormatApplyToBox
 
QGroupBox * axisFormatBox
 
ColorButtonaxisLabelColorButton
 
QSpinBox * boxAngle
 
QCheckBox * boxAntialiseGrid
 
QComboBox * boxApplyGridFormat
 
QGroupBox * boxAxesBreaks
 
QSpinBox * boxAxesLinewidth
 
QCheckBox * boxAxisBackbone
 
ColorButtonboxAxisColor
 
ColorButtonboxAxisNumColor
 
QComboBox * boxAxisType
 
QCheckBox * boxBackbones
 
QSpinBox * boxBaseline
 
QSpinBox * boxBorderWidth
 
QCheckBox * boxBreakDecoration
 
DoubleSpinBoxboxBreakEnd
 
QSpinBox * boxBreakPosition
 
DoubleSpinBoxboxBreakStart
 
QSpinBox * boxBreakWidth
 
ColorButtonboxCanvasColor
 
QComboBox * boxColName
 
ColorButtonboxColorMajor
 
ColorButtonboxColorMinor
 
DoubleSpinBoxboxEnd
 
QDateTimeEdit * boxEndDateTime
 
QComboBox * boxFormat
 
QTextEdit * boxFormula
 
ColorButtonboxFrameColor
 
QGroupBox * boxFramed
 
QSpinBox * boxFrameWidth
 
QComboBox * boxGridXAxis
 
QComboBox * boxGridYAxis
 
QSpinBox * boxLabelsDistance
 
QCheckBox * boxLog10AfterBreak
 
QCheckBox * boxMajorGrid
 
QSpinBox * boxMajorTicksLength
 
QComboBox * boxMajorTicksType
 
QSpinBox * boxMajorValue
 
QCheckBox * boxMinorGrid
 
QComboBox * boxMinorTicksAfterBreak
 
QComboBox * boxMinorTicksBeforeBreak
 
QSpinBox * boxMinorTicksLength
 
QComboBox * boxMinorTicksType
 
QComboBox * boxMinorValue
 
QSpinBox * boxPrecision
 
QLineEdit * boxPrefix
 
QComboBox * boxScaleType
 
QLabel * boxScaleTypeLabel
 
QCheckBox * boxShowAxis
 
QCheckBox * boxShowFormula
 
QGroupBox * boxShowLabels
 
DoubleSpinBoxboxStart
 
QDateTimeEdit * boxStartDateTime
 
DoubleSpinBoxboxStep
 
DoubleSpinBoxboxStepAfterBreak
 
DoubleSpinBoxboxStepBeforeBreak
 
QLineEdit * boxSuffix
 
QComboBox * boxTableName
 
QSpinBox * boxTickLabelDistance
 
QTextEdit * boxTitle
 
PenStyleBoxboxTypeMajor
 
PenStyleBoxboxTypeMinor
 
QComboBox * boxUnit
 
DoubleSpinBoxboxWidthMajor
 
DoubleSpinBoxboxWidthMinor
 
QCheckBox * boxXLine
 
QCheckBox * boxYLine
 
QPushButton * btnAxesFont
 
QCheckBox * btnInvert
 
QRadioButton * btnMajor
 
QRadioButton * btnStep
 
QPushButton * buttonApply
 
QPushButton * buttonCancel
 
QPushButton * buttonLabelFont
 
QPushButton * buttonOk
 
QComboBox * canvasFrameApplyToBox
 
Graphd_graph
 
TextFormatButtonsformatButtons
 
QWidget * frame
 
QPushButton * frameDefaultBtn
 
QTabWidget * generalDialog
 
QWidget * gridPage
 
QCheckBox * invertTitleBox
 
QLabel * label1
 
QLabel * label2
 
QLabel * label3
 
QGroupBox * labelBox
 
QLabel * labelTable
 
QWidget * lastPage
 Last selected tab. More...
 
QLabel * minorBoxLabel
 
QWidget * scalesPage
 
QComboBox * showTicksPolicyBox
 
QStringList tickLabelsOn
 

Private Slots

void accept ()
 
void applyAxisFormat ()
 
void applyCanvasFormat ()
 
void changeMajorTicksLength (int majLength)
 
void changeMinorTicksLength (int minLength)
 
void customAxisFont ()
 
void customAxisLabelFont ()
 
void majorGridEnabled (bool on)
 
int mapToQwtAxis (int axis)
 
int mapToQwtAxisId ()
 
void minorGridEnabled (bool on)
 
void pageChanged (QWidget *page)
 
void pickAxisLabelColor ()
 
void setAxisType (int axis)
 
void setBaselineDist (int)
 
void setFrameDefaultValues ()
 
void setLabelsNumericFormat (int)
 
void setTicksType (int)
 
void showAxis ()
 
void showAxis (int, int, const QString &, bool, int, int, bool, const QColor &, int, int, int, int, const QString &, const QColor &, int, bool, int)
 
void showAxisFormatOptions (int format)
 
void showAxisFormula (int axis)
 
void showGridOptions (int axis)
 
void stepDisabled ()
 
void stepEnabled ()
 
void updateAxisColor (int)
 
void updateAxisType (int axis)
 
void updateCurrentAxis ()
 
void updateGrid ()
 
void updateLabelsFormat (int)
 
void updateMinorTicksList (int scaleType)
 
bool updatePlot (QWidget *page=NULL)
 
void updateScale ()
 
void updateShowBox (int axis)
 
void updateTickLabelsList (bool)
 
void updateTitleBox (int axis)
 

Detailed Description

General plot options dialog.

Remark: Don't use this dialog as a non modal dialog!

Constructor & Destructor Documentation

◆ AxesDialog()

AxesDialog::AxesDialog ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Member Function Documentation

◆ accept

void AxesDialog::accept ( )
privateslot

References updatePlot().

Referenced by AxesDialog().

◆ applyAxisFormat

void AxesDialog::applyAxisFormat ( )
privateslot

◆ applyAxisFormatToLayer()

void AxesDialog::applyAxisFormatToLayer ( Graph g)
protected

◆ applyCanvasFormat

void AxesDialog::applyCanvasFormat ( )
privateslot

◆ applyCanvasFormatTo()

void AxesDialog::applyCanvasFormatTo ( Graph g)
protected

◆ applyChangesToGrid()

void AxesDialog::applyChangesToGrid ( Grid grid)
protected

◆ changeMajorTicksLength

void AxesDialog::changeMajorTicksLength ( int  majLength)
privateslot

References applyCanvasFormat(), and boxMinorTicksLength.

Referenced by initFramePage().

◆ changeMinorTicksLength

void AxesDialog::changeMinorTicksLength ( int  minLength)
privateslot

References applyCanvasFormat(), and boxMajorTicksLength.

Referenced by initFramePage().

◆ customAxisFont

void AxesDialog::customAxisFont ( )
privateslot

◆ customAxisLabelFont

void AxesDialog::customAxisLabelFont ( )
privateslot

◆ exec

int AxesDialog::exec ( )
slot

Shows the dialog as a modal dialog.

Show the dialog as a modal dialog and do some initialization.

References axesGridList, axesList, and axesTitlesList.

Referenced by ApplicationWindow::showScaleDialog().

◆ initAxesPage()

void AxesDialog::initAxesPage ( )
protected

◆ initFramePage()

void AxesDialog::initFramePage ( )
protected

◆ initGridPage()

void AxesDialog::initGridPage ( )
protected

◆ initScalesPage()

void AxesDialog::initScalesPage ( )
protected

◆ majorGridEnabled

void AxesDialog::majorGridEnabled ( bool  on)
privateslot

◆ mapToQwtAxis

int AxesDialog::mapToQwtAxis ( int  axis)
privateslot

◆ mapToQwtAxisId

int AxesDialog::mapToQwtAxisId ( )
privateslot

◆ minorGridEnabled

void AxesDialog::minorGridEnabled ( bool  on)
privateslot

◆ pageChanged

void AxesDialog::pageChanged ( QWidget *  page)
privateslot

◆ pickAxisLabelColor

void AxesDialog::pickAxisLabelColor ( )
privateslot

◆ setAxisType

void AxesDialog::setAxisType ( int  axis)
privateslot

◆ setBaselineDist

void AxesDialog::setBaselineDist ( int  )
privateslot

References boxBaseline, d_graph, and mapToQwtAxisId().

Referenced by initAxesPage().

◆ setCurrentScale

void AxesDialog::setCurrentScale ( int  axisPos)
slot

◆ setFrameDefaultValues

void AxesDialog::setFrameDefaultValues ( )
privateslot

◆ setGraph()

void AxesDialog::setGraph ( Graph g)

◆ setLabelsNumericFormat

void AxesDialog::setLabelsNumericFormat ( int  )
privateslot

◆ setTicksType

void AxesDialog::setTicksType ( int  )
privateslot

◆ showAxesPage

void AxesDialog::showAxesPage ( )
slot

◆ showAxis [1/2]

void AxesDialog::showAxis ( )
privateslot

◆ showAxis [2/2]

void AxesDialog::showAxis ( int  axis,
int  type,
const QString &  labelsColName,
bool  axisOn,
int  majTicksType,
int  minTicksType,
bool  labelsOn,
const QColor &  c,
int  format,
int  prec,
int  rotation,
int  baselineDist,
const QString &  formula,
const QColor &  labelsColor,
int  spacing,
bool  backbone,
int  showTicks 
)
privateslot

◆ showAxisFormatOptions

void AxesDialog::showAxisFormatOptions ( int  format)
privateslot

◆ showAxisFormula

void AxesDialog::showAxisFormula ( int  axis)
privateslot

◆ showFormulaBox

void AxesDialog::showFormulaBox ( )
slot

References boxFormula, and boxShowFormula.

Referenced by initAxesPage().

◆ showGeneralPage

void AxesDialog::showGeneralPage ( )
slot

References frame, and generalDialog.

◆ showGridOptions

void AxesDialog::showGridOptions ( int  axis)
privateslot

◆ showGridPage

void AxesDialog::showGridPage ( )
slot

◆ stepDisabled

void AxesDialog::stepDisabled ( )
privateslot

References boxMajorValue, boxStep, boxUnit, btnMajor, and btnStep.

Referenced by initScalesPage().

◆ stepEnabled

void AxesDialog::stepEnabled ( )
privateslot

References boxMajorValue, boxStep, boxUnit, btnMajor, and btnStep.

Referenced by initScalesPage().

◆ updateAxisColor

void AxesDialog::updateAxisColor ( int  )
privateslot

◆ updateAxisType

void AxesDialog::updateAxisType ( int  axis)
privateslot

References boxAxisType, and mapToQwtAxisId().

◆ updateCurrentAxis

void AxesDialog::updateCurrentAxis ( )
privateslot

◆ updateGrid

void AxesDialog::updateGrid ( )
privateslot

◆ updateLabelsFormat

void AxesDialog::updateLabelsFormat ( int  )
privateslot

◆ updateMinorTicksList

void AxesDialog::updateMinorTicksList ( int  scaleType)
privateslot

◆ updatePlot

bool AxesDialog::updatePlot ( QWidget *  page = NULL)
privateslot

◆ updateScale

void AxesDialog::updateScale ( )
privateslot

◆ updateShowBox

void AxesDialog::updateShowBox ( int  axis)
privateslot

◆ updateTickLabelsList

void AxesDialog::updateTickLabelsList ( bool  on)
privateslot

◆ updateTitleBox

void AxesDialog::updateTitleBox ( int  axis)
privateslot

Member Data Documentation

◆ axesGridList

QListWidget* AxesDialog::axesGridList
protected

◆ axesList

QListWidget* AxesDialog::axesList
protected

◆ axesPage

QWidget* AxesDialog::axesPage
protected

◆ axesTitlesList

QListWidget* AxesDialog::axesTitlesList
protected

◆ axisFormatApplyToBox

QComboBox* AxesDialog::axisFormatApplyToBox
protected

Referenced by applyAxisFormat(), and initAxesPage().

◆ axisFormatBox

QGroupBox* AxesDialog::axisFormatBox
protected

◆ axisLabelColorButton

ColorButton* AxesDialog::axisLabelColorButton
protected

◆ boxAngle

QSpinBox * AxesDialog::boxAngle
protected

◆ boxAntialiseGrid

QCheckBox * AxesDialog::boxAntialiseGrid
protected

◆ boxApplyGridFormat

QComboBox* AxesDialog::boxApplyGridFormat
protected

Referenced by initGridPage(), and updateGrid().

◆ boxAxesBreaks

QGroupBox* AxesDialog::boxAxesBreaks
protected

◆ boxAxesLinewidth

QSpinBox * AxesDialog::boxAxesLinewidth
protected

◆ boxAxisBackbone

QCheckBox* AxesDialog::boxAxisBackbone
protected

◆ boxAxisColor

ColorButton* AxesDialog::boxAxisColor
protected

◆ boxAxisNumColor

ColorButton * AxesDialog::boxAxisNumColor
protected

◆ boxAxisType

QComboBox * AxesDialog::boxAxisType
protected

◆ boxBackbones

QCheckBox* AxesDialog::boxBackbones
protected

◆ boxBaseline

QSpinBox * AxesDialog::boxBaseline
protected

◆ boxBorderWidth

QSpinBox * AxesDialog::boxBorderWidth
protected

◆ boxBreakDecoration

QCheckBox * AxesDialog::boxBreakDecoration
protected

◆ boxBreakEnd

DoubleSpinBox * AxesDialog::boxBreakEnd
protected

◆ boxBreakPosition

QSpinBox* AxesDialog::boxBreakPosition
protected

◆ boxBreakStart

DoubleSpinBox* AxesDialog::boxBreakStart
protected

◆ boxBreakWidth

QSpinBox * AxesDialog::boxBreakWidth
protected

◆ boxCanvasColor

ColorButton* AxesDialog::boxCanvasColor
protected

◆ boxColName

QComboBox * AxesDialog::boxColName
protected

◆ boxColorMajor

ColorButton* AxesDialog::boxColorMajor
protected

◆ boxColorMinor

ColorButton* AxesDialog::boxColorMinor
protected

◆ boxEnd

DoubleSpinBox* AxesDialog::boxEnd
protected

◆ boxEndDateTime

QDateTimeEdit * AxesDialog::boxEndDateTime
protected

◆ boxFormat

QComboBox * AxesDialog::boxFormat
protected

◆ boxFormula

QTextEdit* AxesDialog::boxFormula
protected

◆ boxFrameColor

ColorButton* AxesDialog::boxFrameColor
protected

◆ boxFramed

QGroupBox* AxesDialog::boxFramed
protected

◆ boxFrameWidth

QSpinBox* AxesDialog::boxFrameWidth
protected

◆ boxGridXAxis

QComboBox * AxesDialog::boxGridXAxis
protected

◆ boxGridYAxis

QComboBox * AxesDialog::boxGridYAxis
protected

◆ boxLabelsDistance

QSpinBox* AxesDialog::boxLabelsDistance
protected

◆ boxLog10AfterBreak

QCheckBox* AxesDialog::boxLog10AfterBreak
protected

◆ boxMajorGrid

QCheckBox* AxesDialog::boxMajorGrid
protected

◆ boxMajorTicksLength

QSpinBox* AxesDialog::boxMajorTicksLength
protected

◆ boxMajorTicksType

QComboBox* AxesDialog::boxMajorTicksType
protected

◆ boxMajorValue

QSpinBox* AxesDialog::boxMajorValue
protected

◆ boxMinorGrid

QCheckBox* AxesDialog::boxMinorGrid
protected

◆ boxMinorTicksAfterBreak

QComboBox * AxesDialog::boxMinorTicksAfterBreak
protected

◆ boxMinorTicksBeforeBreak

QComboBox* AxesDialog::boxMinorTicksBeforeBreak
protected

◆ boxMinorTicksLength

QSpinBox * AxesDialog::boxMinorTicksLength
protected

◆ boxMinorTicksType

QComboBox * AxesDialog::boxMinorTicksType
protected

◆ boxMinorValue

QComboBox* AxesDialog::boxMinorValue
protected

◆ boxPrecision

QSpinBox * AxesDialog::boxPrecision
protected

◆ boxPrefix

QLineEdit* AxesDialog::boxPrefix
protected

◆ boxScaleType

QComboBox* AxesDialog::boxScaleType
protected

◆ boxScaleTypeLabel

QLabel * AxesDialog::boxScaleTypeLabel
protected

Referenced by initScalesPage().

◆ boxShowAxis

QCheckBox* AxesDialog::boxShowAxis
protected

◆ boxShowFormula

QCheckBox * AxesDialog::boxShowFormula
protected

◆ boxShowLabels

QGroupBox* AxesDialog::boxShowLabels
protected

◆ boxStart

DoubleSpinBox* AxesDialog::boxStart
protected

◆ boxStartDateTime

QDateTimeEdit* AxesDialog::boxStartDateTime
protected

◆ boxStep

DoubleSpinBox* AxesDialog::boxStep
protected

◆ boxStepAfterBreak

DoubleSpinBox * AxesDialog::boxStepAfterBreak
protected

◆ boxStepBeforeBreak

DoubleSpinBox * AxesDialog::boxStepBeforeBreak
protected

◆ boxSuffix

QLineEdit * AxesDialog::boxSuffix
protected

◆ boxTableName

QComboBox * AxesDialog::boxTableName
protected

◆ boxTickLabelDistance

QSpinBox* AxesDialog::boxTickLabelDistance
protected

◆ boxTitle

QTextEdit * AxesDialog::boxTitle
protected

◆ boxTypeMajor

PenStyleBox* AxesDialog::boxTypeMajor
protected

◆ boxTypeMinor

PenStyleBox* AxesDialog::boxTypeMinor
protected

◆ boxUnit

QComboBox* AxesDialog::boxUnit
protected

◆ boxWidthMajor

DoubleSpinBox* AxesDialog::boxWidthMajor
protected

◆ boxWidthMinor

DoubleSpinBox* AxesDialog::boxWidthMinor
protected

◆ boxXLine

QCheckBox* AxesDialog::boxXLine
protected

◆ boxYLine

QCheckBox* AxesDialog::boxYLine
protected

◆ btnAxesFont

QPushButton* AxesDialog::btnAxesFont
protected

Referenced by initAxesPage().

◆ btnInvert

QCheckBox* AxesDialog::btnInvert
protected

◆ btnMajor

QRadioButton* AxesDialog::btnMajor
protected

◆ btnStep

QRadioButton* AxesDialog::btnStep
protected

◆ buttonApply

QPushButton* AxesDialog::buttonApply
protected

Referenced by AxesDialog().

◆ buttonCancel

QPushButton* AxesDialog::buttonCancel
protected

Referenced by AxesDialog().

◆ buttonLabelFont

QPushButton* AxesDialog::buttonLabelFont
protected

Referenced by initAxesPage().

◆ buttonOk

QPushButton* AxesDialog::buttonOk
protected

Referenced by AxesDialog().

◆ canvasFrameApplyToBox

QComboBox* AxesDialog::canvasFrameApplyToBox
protected

Referenced by applyCanvasFormat(), and initFramePage().

◆ d_graph

Graph* AxesDialog::d_graph
protected

◆ formatButtons

TextFormatButtons* AxesDialog::formatButtons
protected

Referenced by initAxesPage().

◆ frame

QWidget * AxesDialog::frame
protected

◆ frameDefaultBtn

QPushButton* AxesDialog::frameDefaultBtn
protected

Referenced by initFramePage().

◆ generalDialog

QTabWidget* AxesDialog::generalDialog
protected

◆ gridPage

QWidget* AxesDialog::gridPage
protected

◆ invertTitleBox

QCheckBox* AxesDialog::invertTitleBox
protected

◆ label1

QLabel* AxesDialog::label1
protected

◆ label2

QLabel * AxesDialog::label2
protected

◆ label3

QLabel * AxesDialog::label3
protected

◆ labelBox

QGroupBox* AxesDialog::labelBox
protected

◆ labelTable

QLabel * AxesDialog::labelTable
protected

◆ lastPage

QWidget* AxesDialog::lastPage
protected

Last selected tab.

Referenced by AxesDialog(), and pageChanged().

◆ minorBoxLabel

QLabel * AxesDialog::minorBoxLabel
protected

Referenced by initScalesPage().

◆ scalesPage

QWidget* AxesDialog::scalesPage
protected

◆ showTicksPolicyBox

QComboBox* AxesDialog::showTicksPolicyBox
protected

◆ tickLabelsOn

QStringList AxesDialog::tickLabelsOn
protected

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