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 ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Member Function Documentation

void AxesDialog::accept ( )
privateslot

References updatePlot().

Referenced by AxesDialog().

void AxesDialog::applyAxisFormat ( )
privateslot
void AxesDialog::applyAxisFormatToLayer ( Graph g)
protected
void AxesDialog::applyCanvasFormat ( )
privateslot
void AxesDialog::applyCanvasFormatTo ( Graph g)
protected
void AxesDialog::applyChangesToGrid ( Grid grid)
protected
void AxesDialog::changeMajorTicksLength ( int  majLength)
privateslot

References applyCanvasFormat(), and boxMinorTicksLength.

Referenced by initFramePage().

void AxesDialog::changeMinorTicksLength ( int  minLength)
privateslot

References applyCanvasFormat(), and boxMajorTicksLength.

Referenced by initFramePage().

void AxesDialog::customAxisFont ( )
privateslot
void AxesDialog::customAxisLabelFont ( )
privateslot
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().

void AxesDialog::initAxesPage ( )
protected
void AxesDialog::initFramePage ( )
protected
void AxesDialog::initGridPage ( )
protected
void AxesDialog::initScalesPage ( )
protected
void AxesDialog::majorGridEnabled ( bool  on)
privateslot
int AxesDialog::mapToQwtAxis ( int  axis)
privateslot
int AxesDialog::mapToQwtAxisId ( )
privateslot
void AxesDialog::minorGridEnabled ( bool  on)
privateslot
void AxesDialog::pageChanged ( QWidget *  page)
privateslot
void AxesDialog::pickAxisLabelColor ( )
privateslot
void AxesDialog::setAxisType ( int  axis)
privateslot
void AxesDialog::setBaselineDist ( int  )
privateslot

References boxBaseline, d_graph, and mapToQwtAxisId().

Referenced by initAxesPage().

void AxesDialog::setCurrentScale ( int  axisPos)
slot
void AxesDialog::setFrameDefaultValues ( )
privateslot
void AxesDialog::setGraph ( Graph g)
void AxesDialog::setLabelsNumericFormat ( int  )
privateslot
void AxesDialog::setTicksType ( int  )
privateslot
void AxesDialog::showAxesPage ( )
slot
void AxesDialog::showAxis ( )
privateslot
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
void AxesDialog::showAxisFormatOptions ( int  format)
privateslot
void AxesDialog::showAxisFormula ( int  axis)
privateslot
void AxesDialog::showFormulaBox ( )
slot

References boxFormula, and boxShowFormula.

Referenced by initAxesPage().

void AxesDialog::showGeneralPage ( )
slot

References frame, and generalDialog.

void AxesDialog::showGridOptions ( int  axis)
privateslot
void AxesDialog::showGridPage ( )
slot
void AxesDialog::stepDisabled ( )
privateslot

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

Referenced by initScalesPage().

void AxesDialog::stepEnabled ( )
privateslot

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

Referenced by initScalesPage().

void AxesDialog::updateAxisColor ( int  )
privateslot
void AxesDialog::updateAxisType ( int  axis)
privateslot

References boxAxisType, and mapToQwtAxisId().

void AxesDialog::updateCurrentAxis ( )
privateslot
void AxesDialog::updateGrid ( )
privateslot
void AxesDialog::updateLabelsFormat ( int  )
privateslot
void AxesDialog::updateMinorTicksList ( int  scaleType)
privateslot
bool AxesDialog::updatePlot ( QWidget *  page = NULL)
privateslot
void AxesDialog::updateScale ( )
privateslot
void AxesDialog::updateShowBox ( int  axis)
privateslot
void AxesDialog::updateTickLabelsList ( bool  on)
privateslot
void AxesDialog::updateTitleBox ( int  axis)
privateslot

Member Data Documentation

QListWidget* AxesDialog::axesGridList
protected
QListWidget* AxesDialog::axesList
protected
QWidget* AxesDialog::axesPage
protected
QListWidget* AxesDialog::axesTitlesList
protected
QComboBox* AxesDialog::axisFormatApplyToBox
protected

Referenced by applyAxisFormat(), and initAxesPage().

QGroupBox* AxesDialog::axisFormatBox
protected
ColorButton* AxesDialog::axisLabelColorButton
protected
QSpinBox * AxesDialog::boxAngle
protected
QCheckBox * AxesDialog::boxAntialiseGrid
protected
QComboBox* AxesDialog::boxApplyGridFormat
protected

Referenced by initGridPage(), and updateGrid().

QGroupBox* AxesDialog::boxAxesBreaks
protected
QSpinBox * AxesDialog::boxAxesLinewidth
protected
QCheckBox* AxesDialog::boxAxisBackbone
protected
ColorButton* AxesDialog::boxAxisColor
protected
ColorButton * AxesDialog::boxAxisNumColor
protected
QComboBox * AxesDialog::boxAxisType
protected
QCheckBox* AxesDialog::boxBackbones
protected
QSpinBox * AxesDialog::boxBaseline
protected
QSpinBox * AxesDialog::boxBorderWidth
protected
QCheckBox * AxesDialog::boxBreakDecoration
protected
DoubleSpinBox * AxesDialog::boxBreakEnd
protected
QSpinBox* AxesDialog::boxBreakPosition
protected
DoubleSpinBox* AxesDialog::boxBreakStart
protected
QSpinBox * AxesDialog::boxBreakWidth
protected
ColorButton* AxesDialog::boxCanvasColor
protected
QComboBox * AxesDialog::boxColName
protected
ColorButton* AxesDialog::boxColorMajor
protected
ColorButton* AxesDialog::boxColorMinor
protected
DoubleSpinBox* AxesDialog::boxEnd
protected
QDateTimeEdit * AxesDialog::boxEndDateTime
protected
QComboBox * AxesDialog::boxFormat
protected
QTextEdit* AxesDialog::boxFormula
protected
ColorButton* AxesDialog::boxFrameColor
protected
QGroupBox* AxesDialog::boxFramed
protected
QSpinBox* AxesDialog::boxFrameWidth
protected
QComboBox * AxesDialog::boxGridXAxis
protected
QComboBox * AxesDialog::boxGridYAxis
protected
QSpinBox* AxesDialog::boxLabelsDistance
protected
QCheckBox* AxesDialog::boxLog10AfterBreak
protected
QCheckBox* AxesDialog::boxMajorGrid
protected
QSpinBox* AxesDialog::boxMajorTicksLength
protected
QComboBox* AxesDialog::boxMajorTicksType
protected
QSpinBox* AxesDialog::boxMajorValue
protected
QCheckBox* AxesDialog::boxMinorGrid
protected
QComboBox * AxesDialog::boxMinorTicksAfterBreak
protected
QComboBox* AxesDialog::boxMinorTicksBeforeBreak
protected
QSpinBox * AxesDialog::boxMinorTicksLength
protected
QComboBox * AxesDialog::boxMinorTicksType
protected
QComboBox* AxesDialog::boxMinorValue
protected
QSpinBox * AxesDialog::boxPrecision
protected
QLineEdit* AxesDialog::boxPrefix
protected
QComboBox* AxesDialog::boxScaleType
protected
QLabel * AxesDialog::boxScaleTypeLabel
protected

Referenced by initScalesPage().

QCheckBox* AxesDialog::boxShowAxis
protected
QCheckBox * AxesDialog::boxShowFormula
protected
QGroupBox* AxesDialog::boxShowLabels
protected
DoubleSpinBox* AxesDialog::boxStart
protected
QDateTimeEdit* AxesDialog::boxStartDateTime
protected
DoubleSpinBox* AxesDialog::boxStep
protected
DoubleSpinBox * AxesDialog::boxStepAfterBreak
protected
DoubleSpinBox * AxesDialog::boxStepBeforeBreak
protected
QLineEdit * AxesDialog::boxSuffix
protected
QComboBox * AxesDialog::boxTableName
protected
QSpinBox* AxesDialog::boxTickLabelDistance
protected
QTextEdit * AxesDialog::boxTitle
protected
PenStyleBox* AxesDialog::boxTypeMajor
protected
PenStyleBox* AxesDialog::boxTypeMinor
protected
QComboBox* AxesDialog::boxUnit
protected
DoubleSpinBox* AxesDialog::boxWidthMajor
protected
DoubleSpinBox* AxesDialog::boxWidthMinor
protected
QCheckBox* AxesDialog::boxXLine
protected
QCheckBox* AxesDialog::boxYLine
protected
QPushButton* AxesDialog::btnAxesFont
protected

Referenced by initAxesPage().

QCheckBox* AxesDialog::btnInvert
protected
QRadioButton* AxesDialog::btnMajor
protected
QRadioButton* AxesDialog::btnStep
protected
QPushButton* AxesDialog::buttonApply
protected

Referenced by AxesDialog().

QPushButton* AxesDialog::buttonCancel
protected

Referenced by AxesDialog().

QPushButton* AxesDialog::buttonLabelFont
protected

Referenced by initAxesPage().

QPushButton* AxesDialog::buttonOk
protected

Referenced by AxesDialog().

QComboBox* AxesDialog::canvasFrameApplyToBox
protected

Referenced by applyCanvasFormat(), and initFramePage().

Graph* AxesDialog::d_graph
protected
TextFormatButtons* AxesDialog::formatButtons
protected

Referenced by initAxesPage().

QWidget * AxesDialog::frame
protected
QPushButton* AxesDialog::frameDefaultBtn
protected

Referenced by initFramePage().

QTabWidget* AxesDialog::generalDialog
protected
QWidget* AxesDialog::gridPage
protected
QCheckBox* AxesDialog::invertTitleBox
protected
QLabel* AxesDialog::label1
protected
QLabel * AxesDialog::label2
protected
QLabel * AxesDialog::label3
protected
QGroupBox* AxesDialog::labelBox
protected
QLabel * AxesDialog::labelTable
protected
QWidget* AxesDialog::lastPage
protected

Last selected tab.

Referenced by AxesDialog(), and pageChanged().

QLabel * AxesDialog::minorBoxLabel
protected

Referenced by initScalesPage().

QWidget* AxesDialog::scalesPage
protected
QComboBox* AxesDialog::showTicksPolicyBox
protected
QStringList AxesDialog::tickLabelsOn
protected

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