QtiPlot 0.9.7.3
Public Slots | Public Member Functions | Protected Member Functions | Protected Attributes | Private Slots

AxesDialog Class Reference

General plot options dialog. More...

#include <AxesDialog.h>

List of all members.

Public Slots

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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

QList< int > axesBaseline
QListWidget * axesGridList
QListWidget * axesList
QWidget * axesPage
QListWidget * axesTitlesList
QComboBox * axisFormatApplyToBox
QGroupBox * axisFormatBox
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
QTimeEdit * boxEndTime
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
QTimeEdit * boxStartTime
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.
QList< int > majTicks
QLabel * minorBoxLabel
QList< int > minTicks
QDateTimeEdit * originDateTimeBox
bool rightAxisOn
QWidget * scalesPage
QComboBox * showTicksPolicyBox
QStringList tablesList
QStringList tickLabelsOn
bool topAxisOn
bool xAxisOn
int xBottomLabelsRotation
int xTopLabelsRotation
bool yAxisOn

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 setAxisType (int axis)
void setBaselineDist (int)
void setDisplayDateTimeFormat (const QString &)
void setFrameDefaultValues ()
void setLabelsNumericFormat (int)
void setTicksType (int)
void showAxis (int, int, const QString &, bool, int, int, bool, const QColor &, int, int, int, int, const QString &, const QColor &, int, bool, int)
void showAxis ()
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 ( ) [private, slot]

References updatePlot().

Referenced by AxesDialog().

void AxesDialog::applyAxisFormat ( ) [private, slot]
void AxesDialog::applyAxisFormatToLayer ( Graph g) [protected]
void AxesDialog::applyCanvasFormat ( ) [private, slot]
void AxesDialog::applyCanvasFormatTo ( Graph g) [protected]
void AxesDialog::applyChangesToGrid ( Grid grid) [protected]
void AxesDialog::changeMajorTicksLength ( int  majLength) [private, slot]

References applyCanvasFormat(), and boxMinorTicksLength.

Referenced by initFramePage().

void AxesDialog::changeMinorTicksLength ( int  minLength) [private, slot]

References applyCanvasFormat(), and boxMajorTicksLength.

Referenced by initFramePage().

void AxesDialog::customAxisFont ( ) [private, slot]
void AxesDialog::customAxisLabelFont ( ) [private, slot]
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) [private, slot]
int AxesDialog::mapToQwtAxis ( int  axis) [private, slot]
int AxesDialog::mapToQwtAxisId ( ) [private, slot]
void AxesDialog::minorGridEnabled ( bool  on) [private, slot]
void AxesDialog::pageChanged ( QWidget *  page) [private, slot]
void AxesDialog::setAxisType ( int  axis) [private, slot]
void AxesDialog::setBaselineDist ( int  ) [private, slot]

References axesBaseline, boxBaseline, and mapToQwtAxisId().

Referenced by initAxesPage().

void AxesDialog::setCurrentScale ( int  axisPos) [slot]
void AxesDialog::setDisplayDateTimeFormat ( const QString &  format) [private, slot]
void AxesDialog::setFrameDefaultValues ( ) [private, slot]
void AxesDialog::setGraph ( Graph g)
void AxesDialog::setLabelsNumericFormat ( int  ) [private, slot]
void AxesDialog::setTicksType ( int  ) [private, slot]
void AxesDialog::showAxesPage ( ) [slot]
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 
) [private, slot]
void AxesDialog::showAxis ( ) [private, slot]
void AxesDialog::showAxisFormatOptions ( int  format) [private, slot]
void AxesDialog::showAxisFormula ( int  axis) [private, slot]
void AxesDialog::showFormulaBox ( ) [slot]

References boxFormula, and boxShowFormula.

Referenced by initAxesPage().

void AxesDialog::showGeneralPage ( ) [slot]

References frame, and generalDialog.

void AxesDialog::showGridOptions ( int  axis) [private, slot]
void AxesDialog::showGridPage ( ) [slot]
void AxesDialog::stepDisabled ( ) [private, slot]

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

Referenced by initScalesPage().

void AxesDialog::stepEnabled ( ) [private, slot]

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

Referenced by initScalesPage().

void AxesDialog::updateAxisColor ( int  ) [private, slot]
void AxesDialog::updateAxisType ( int  axis) [private, slot]

References boxAxisType, and mapToQwtAxisId().

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

Member Data Documentation

QList<int> AxesDialog::axesBaseline [protected]
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]
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]
QComboBox * AxesDialog::boxAxisType [protected]
QCheckBox* AxesDialog::boxBackbones [protected]
QSpinBox * AxesDialog::boxBaseline [protected]
QSpinBox * AxesDialog::boxBorderWidth [protected]
QCheckBox * AxesDialog::boxBreakDecoration [protected]
QSpinBox* AxesDialog::boxBreakPosition [protected]
QSpinBox * AxesDialog::boxBreakWidth [protected]
QComboBox * AxesDialog::boxColName [protected]
QDateTimeEdit * AxesDialog::boxEndDateTime [protected]
QTimeEdit * AxesDialog::boxEndTime [protected]
QComboBox * AxesDialog::boxFormat [protected]
QTextEdit* AxesDialog::boxFormula [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]
QDateTimeEdit* AxesDialog::boxStartDateTime [protected]
QTimeEdit* AxesDialog::boxStartTime [protected]
QLineEdit * AxesDialog::boxSuffix [protected]
QComboBox * AxesDialog::boxTableName [protected]
QSpinBox* AxesDialog::boxTickLabelDistance [protected]
QTextEdit * AxesDialog::boxTitle [protected]
QComboBox* AxesDialog::boxUnit [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]

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().

QList<int> AxesDialog::majTicks [protected]

Referenced by setGraph(), and setTicksType().

QLabel * AxesDialog::minorBoxLabel [protected]

Referenced by initScalesPage().

QList<int> AxesDialog::minTicks [protected]

Referenced by setGraph(), and setTicksType().

QDateTimeEdit* AxesDialog::originDateTimeBox [protected]
bool AxesDialog::rightAxisOn [protected]

Referenced by setGraph(), showAxis(), and updateShowBox().

QWidget* AxesDialog::scalesPage [protected]
QComboBox* AxesDialog::showTicksPolicyBox [protected]
QStringList AxesDialog::tablesList [protected]

Referenced by setGraph(), and showAxisFormatOptions().

QStringList AxesDialog::tickLabelsOn [protected]
bool AxesDialog::topAxisOn [protected]

Referenced by setGraph(), showAxis(), and updateShowBox().

bool AxesDialog::xAxisOn [protected]

Referenced by setGraph(), showAxis(), and updateShowBox().

Referenced by setGraph(), updatePlot(), and updateShowBox().

Referenced by setGraph(), updatePlot(), and updateShowBox().

bool AxesDialog::yAxisOn [protected]

Referenced by setGraph(), showAxis(), and updateShowBox().


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