AxesDialog Class Reference

#include <AxesDialog.h>

List of all members.


Detailed Description

General plot options dialog.

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

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 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
QSpinBox * boxAngle
QCheckBox * boxAntialiseGrid
QComboBox * boxApplyGridFormat
QGroupBox * boxAxesBreaks
QSpinBox * boxAxesLinewidth
ColorButtonboxAxisColor
ColorButtonboxAxisNumColor
QComboBox * boxAxisType
QCheckBox * boxBackbones
QSpinBox * boxBaseline
QSpinBox * boxBorderWidth
QCheckBox * boxBreakDecoration
DoubleSpinBoxboxBreakEnd
QSpinBox * boxBreakPosition
DoubleSpinBoxboxBreakStart
QSpinBox * boxBreakWidth
ColorButtonboxCanvasColor
QComboBox * boxColName
ColorBoxboxColorMajor
ColorBoxboxColorMinor
DoubleSpinBoxboxEnd
QDateTimeEdit * boxEndDateTime
QTimeEdit * boxEndTime
QComboBox * boxFormat
QTextEdit * boxFormula
ColorButtonboxFrameColor
QGroupBox * boxFramed
QSpinBox * boxFrameWidth
QComboBox * boxGridXAxis
QComboBox * boxGridYAxis
QCheckBox * boxLog10AfterBreak
QCheckBox * boxMajorGrid
QSpinBox * boxMajorTicksLength
QComboBox * boxMajorTicksType
QSpinBox * boxMajorValue
QCheckBox * boxMinorGrid
QComboBox * boxMinorTicksAfterBreak
QComboBox * boxMinorTicksBeforeBreak
QSpinBox * boxMinorTicksLength
QComboBox * boxMinorTicksType
QComboBox * boxMinorValue
QSpinBox * boxPrecision
QComboBox * boxScaleType
QLabel * boxScaleTypeLabel
QCheckBox * boxShowAxis
QCheckBox * boxShowFormula
QGroupBox * boxShowLabels
DoubleSpinBoxboxStart
QDateTimeEdit * boxStartDateTime
QTimeEdit * boxStartTime
DoubleSpinBoxboxStep
DoubleSpinBoxboxStepAfterBreak
DoubleSpinBoxboxStepBeforeBreak
QComboBox * boxTableName
QTextEdit * boxTitle
PenStyleBoxboxTypeMajor
PenStyleBoxboxTypeMinor
QComboBox * boxUnit
DoubleSpinBoxboxWidthMajor
DoubleSpinBoxboxWidthMinor
QCheckBox * boxXLine
QCheckBox * boxYLine
QPushButton * btnAxesFont
QCheckBox * btnInvert
QCheckBox * btnMajor
QCheckBox * btnStep
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonLabelFont
QPushButton * buttonOk
QComboBox * canvasFrameApplyToBox
Graphd_graph
TextFormatButtonsformatButtons
QWidget * frame
QPushButton * frameDefaultBtn
QTabWidget * generalDialog
QWidget * gridPage
QLabel * label1
QLabel * label2
QLabel * label3
QGroupBox * labelBox
QLabel * labelTable
QWidget * lastPage
 Last selected tab.
QList< int > majTicks
QLabel * minorBoxLabel
QList< int > minTicks
bool rightAxisOn
QWidget * scalesPage
QStringList tablesList
QStringList tickLabelsOn
bool topAxisOn
bool xAxisOn
QFont xBottomFont
int xBottomLabelsRotation
QFont xTopFont
int xTopLabelsRotation
bool yAxisOn
QFont yLeftFont
QFont yRightFont

Private Slots

void accept ()
void applyCanvasFormat ()
void changeBaselineDist (int baseline)
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 pickAxisColor ()
void pickAxisNumColor ()
void setAxisType (int axis)
void setBaselineDist (int)
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 &)
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 updateGrid ()
void updateLabelsFormat (int)
void updateMajTicksType (int)
void updateMinorTicksList (int scaleType)
void updateMinTicksType (int)
bool updatePlot ()
void updateScale ()
void updateShowBox (int axis)
void updateTickLabelsList (bool)
void updateTitleBox (int axis)


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::applyCanvasFormat (  )  [private, slot]

void AxesDialog::applyCanvasFormatTo ( Graph g  )  [protected]

void AxesDialog::applyChangesToGrid ( Grid grid  )  [protected]

void AxesDialog::changeBaselineDist ( int  baseline  )  [private, slot]

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]

References axesList, axesPage, axesTitlesList, lastPage, and scalesPage.

Referenced by AxesDialog().

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

void AxesDialog::pickAxisNumColor (  )  [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::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 
) [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::updateGrid (  )  [private, slot]

void AxesDialog::updateLabelsFormat ( int   )  [private, slot]

void AxesDialog::updateMajTicksType ( int   )  [private, slot]

void AxesDialog::updateMinorTicksList ( int  scaleType  )  [private, slot]

void AxesDialog::updateMinTicksType ( int   )  [private, slot]

bool AxesDialog::updatePlot (  )  [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]

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]

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]

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]

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]

QComboBox * AxesDialog::boxTableName [protected]

QTextEdit * AxesDialog::boxTitle [protected]

QComboBox* AxesDialog::boxUnit [protected]

QCheckBox* AxesDialog::boxXLine [protected]

QCheckBox* AxesDialog::boxYLine [protected]

QPushButton* AxesDialog::btnAxesFont [protected]

QCheckBox * AxesDialog::btnInvert [protected]

QCheckBox* AxesDialog::btnMajor [protected]

QCheckBox* 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]

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]

QLabel * AxesDialog::minorBoxLabel [protected]

Referenced by initScalesPage().

QList<int> AxesDialog::minTicks [protected]

bool AxesDialog::rightAxisOn [protected]

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

QWidget* AxesDialog::scalesPage [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().

QFont AxesDialog::xBottomFont [protected]

Referenced by customAxisFont(), and setGraph().

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

QFont AxesDialog::xTopFont [protected]

Referenced by customAxisFont(), and setGraph().

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

bool AxesDialog::yAxisOn [protected]

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

QFont AxesDialog::yLeftFont [protected]

Referenced by customAxisFont(), and setGraph().

QFont AxesDialog::yRightFont [protected]

Referenced by customAxisFont(), and setGraph().


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

Generated on Fri Nov 7 03:36:54 2008 for QtiPlot by  doxygen 1.5.6