SciDAVis  1.D4
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

void accept ()
void changeAxesLinewidth (int)
void changeBaselineDist (int baseline)
void changeMajorTicksLength (int majLength)
void changeMinorTicksLength (int minLength)
void customAxisFont ()
void customAxisLabelFont ()
void drawAxesBackbones (bool)
void drawFrame (bool framed)
int exec ()
 Shows the dialog as a modal dialog.
void insertColList (const QStringList &cols)
void majorGridEnabled (bool on)
int mapToQwtAxisId ()
void minorGridEnabled (bool on)
void pickAxisColor ()
void pickAxisNumColor ()
void pickCanvasFrameColor ()
void setAxisType (int axis)
void setBaselineDist (int)
void setCurrentScale (int axisPos)
void setLabelsNumericFormat (int)
void setTicksType (int)
void showAxesPage ()
void showAxis ()
void showAxisFormatOptions (int format)
void showAxisFormula (int axis)
void showFormulaBox ()
void showGeneralPage ()
void showGridOptions (int axis)
void showGridPage ()
void stepDisabled ()
void stepEnabled ()
void updateAxisColor (int)
void updateFrame (int)
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)

Public Member Functions

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

Protected Member Functions

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
void showAxis (int, int, const QString &, bool, int, int, bool, const QColor &, int, int, int, int, const QString &, const QColor &)

Protected Attributes

QList< int > axesBaseline
QListWidget * axesGridList
QListWidget * axesList
QWidget * axesPage
QListWidget * axesTitlesList
QList< int > axesType
QSpinBox * boxAngle
QSpinBox * boxAxesLinewidth
ColorButtonboxAxisColor
ColorButtonboxAxisNumColor
QComboBox * boxAxisType
QCheckBox * boxBackbones
QSpinBox * boxBaseline
QSpinBox * boxBorderWidth
ColorButtonboxCanvasColor
QComboBox * boxColName
ColorBoxboxColorMajor
ColorBoxboxColorMinor
QLineEdit * boxEnd
QComboBox * boxFormat
QTextEdit * boxFormula
ColorButtonboxFrameColor
QGroupBox * boxFramed
QSpinBox * boxFrameWidth
QComboBox * boxGridXAxis
QComboBox * boxGridYAxis
QCheckBox * boxMajorGrid
QSpinBox * boxMajorTicksLength
QComboBox * boxMajorTicksType
QSpinBox * boxMajorValue
QCheckBox * boxMinorGrid
QSpinBox * boxMinorTicksLength
QComboBox * boxMinorTicksType
QComboBox * boxMinorValue
QSpinBox * boxPrecision
QComboBox * boxScaleType
QLabel * boxScaleTypeLabel
QCheckBox * boxShowAxis
QCheckBox * boxShowFormula
QGroupBox * boxShowLabels
QLineEdit * boxStart
QLineEdit * boxStep
QComboBox * boxTableName
QTextEdit * boxTitle
QComboBox * boxTypeMajor
QComboBox * boxTypeMinor
QComboBox * boxUnit
QSpinBox * boxWidthMajor
QSpinBox * boxWidthMinor
QCheckBox * boxXLine
QCheckBox * boxYLine
QPushButton * btnAxesFont
QCheckBox * btnInvert
QRadioButton * btnMajor
QRadioButton * btnStep
QPushButton * buttonApply
QPushButton * buttonCancel
QPushButton * buttonLabelFont
QPushButton * buttonOk
Graphd_graph
TextFormatButtonsformatButtons
QStringList formatInfo
QWidget * frame
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 pageChanged (QWidget *page)

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 
)
AxesDialog::~AxesDialog ( )
inline

Destructor.


Member Function Documentation

void AxesDialog::accept ( )
slot

References updatePlot().

Referenced by AxesDialog().

void AxesDialog::changeAxesLinewidth ( int  width)
slot
void AxesDialog::changeBaselineDist ( int  baseline)
slot
void AxesDialog::changeMajorTicksLength ( int  majLength)
slot
void AxesDialog::changeMinorTicksLength ( int  minLength)
slot
int AxesDialog::currentSelectedAxisType ( )
void AxesDialog::customAxisFont ( )
slot
void AxesDialog::customAxisLabelFont ( )
slot
void AxesDialog::drawAxesBackbones ( bool  draw)
slot
void AxesDialog::drawFrame ( bool  framed)
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::insertColList ( const QStringList &  cols)
slot

References boxColName.

void AxesDialog::majorGridEnabled ( bool  on)
slot
int AxesDialog::mapToQwtAxisId ( )
slot
void AxesDialog::minorGridEnabled ( bool  on)
slot
void AxesDialog::pageChanged ( QWidget *  page)
privateslot

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

Referenced by AxesDialog().

void AxesDialog::pickAxisColor ( )
slot
void AxesDialog::pickAxisNumColor ( )
slot
void AxesDialog::pickCanvasFrameColor ( )
slot
void AxesDialog::setAxisType ( int  axis)
slot
void AxesDialog::setBaselineDist ( int  )
slot

References axesBaseline, boxBaseline, and mapToQwtAxisId().

Referenced by initAxesPage().

void AxesDialog::setCurrentScale ( int  axisPos)
slot
void AxesDialog::setGraph ( Graph g)
void AxesDialog::setLabelsNumericFormat ( int  )
slot
void AxesDialog::setTicksType ( int  )
slot
void AxesDialog::showAxesPage ( )
slot
void AxesDialog::showAxis ( )
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 
)
protected
void AxesDialog::showAxisFormatOptions ( int  format)
slot
void AxesDialog::showAxisFormula ( int  axis)
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)
slot
void AxesDialog::showGridPage ( )
slot
void AxesDialog::stepDisabled ( )
slot
void AxesDialog::stepEnabled ( )
slot
void AxesDialog::updateAxisColor ( int  )
slot
void AxesDialog::updateFrame ( int  width)
slot
void AxesDialog::updateGrid ( )
slot
void AxesDialog::updateLabelsFormat ( int  )
slot
void AxesDialog::updateMajTicksType ( int  )
slot
void AxesDialog::updateMinorTicksList ( int  scaleType)
slot
void AxesDialog::updateMinTicksType ( int  )
slot
bool AxesDialog::updatePlot ( )
slot
void AxesDialog::updateScale ( )
slot
void AxesDialog::updateShowBox ( int  axis)
slot
void AxesDialog::updateTickLabelsList ( bool  on)
slot
void AxesDialog::updateTitleBox ( int  axis)
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
QList<int> AxesDialog::axesType
protected
QSpinBox * AxesDialog::boxAngle
protected
QSpinBox * AxesDialog::boxAxesLinewidth
protected

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

ColorButton* AxesDialog::boxAxisColor
protected
ColorButton * AxesDialog::boxAxisNumColor
protected
QComboBox * AxesDialog::boxAxisType
protected
QCheckBox* AxesDialog::boxBackbones
protected

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

QSpinBox * AxesDialog::boxBaseline
protected
QSpinBox * AxesDialog::boxBorderWidth
protected
ColorButton* AxesDialog::boxCanvasColor
protected
QComboBox * AxesDialog::boxColName
protected
ColorBox* AxesDialog::boxColorMajor
protected
ColorBox* AxesDialog::boxColorMinor
protected
QLineEdit* AxesDialog::boxEnd
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
QCheckBox* AxesDialog::boxMajorGrid
protected
QSpinBox* AxesDialog::boxMajorTicksLength
protected
QComboBox* AxesDialog::boxMajorTicksType
protected
QSpinBox* AxesDialog::boxMajorValue
protected
QCheckBox* AxesDialog::boxMinorGrid
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
QLineEdit* AxesDialog::boxStart
protected
QLineEdit* AxesDialog::boxStep
protected
QComboBox * AxesDialog::boxTableName
protected
QTextEdit * AxesDialog::boxTitle
protected
QComboBox* AxesDialog::boxTypeMajor
protected
QComboBox* AxesDialog::boxTypeMinor
protected
QComboBox* AxesDialog::boxUnit
protected
QSpinBox* AxesDialog::boxWidthMajor
protected
QSpinBox* AxesDialog::boxWidthMinor
protected
QCheckBox* AxesDialog::boxXLine
protected
QCheckBox* AxesDialog::boxYLine
protected
QPushButton* AxesDialog::btnAxesFont
protected
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().

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

Referenced by initAxesPage().

QStringList AxesDialog::formatInfo
protected
QWidget * AxesDialog::frame
protected
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().

int AxesDialog::xBottomLabelsRotation
protected

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

QFont AxesDialog::xTopFont
protected

Referenced by customAxisFont(), and setGraph().

int AxesDialog::xTopLabelsRotation
protected

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: