#include <CurvesDialog.h>
Public Member Functions | |
CurvesDialog (QWidget *parent=0, Qt::WFlags fl=0) | |
void | setGraph (Graph *graph) |
Private Slots | |
void | addCurves () |
int | curveStyle () |
void | enableAddBtn () |
void | enableRemoveBtn () |
void | removeCurves () |
void | showCurrentFolder (bool) |
void | showCurveBtn (int) |
void | showCurveRange (bool) |
void | showCurveRangeDialog () |
void | showFunctionDialog () |
void | showPlotAssociations () |
void | updateCurveRange () |
Private Member Functions | |
bool | addCurve (const QString &name) |
void | closeEvent (QCloseEvent *) |
void | contextMenuEvent (QContextMenuEvent *) |
void | init () |
QSize | sizeHint () const |
Private Attributes | |
QListWidget * | available |
QComboBox * | boxMatrixStyle |
QCheckBox * | boxShowCurrentFolder |
QCheckBox * | boxShowRange |
QComboBox * | boxStyle |
QPushButton * | btnAdd |
QPushButton * | btnAssociations |
QPushButton * | btnCancel |
QPushButton * | btnEditFunction |
QPushButton * | btnOK |
QPushButton * | btnRange |
QPushButton * | btnRemove |
QListWidget * | contents |
Graph * | d_graph |
CurvesDialog::CurvesDialog | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
References addCurves(), area_xpm, available, boxMatrixStyle, boxShowCurrentFolder, boxShowRange, boxStyle, btnAdd, btnAssociations, btnCancel, btnEditFunction, btnOK, btnRange, btnRemove, color_map_xpm, contents, contour_map_xpm, dropLines_xpm, enableAddBtn(), enableRemoveBtn(), gray_map_xpm, hBars_xpm, histogram_xpm, hor_steps_xpm, init(), lPlot_xpm, lpPlot_xpm, next_xpm, pPlot_xpm, prev_xpm, removeCurves(), showCurrentFolder(), showCurveBtn(), showCurveRange(), showCurveRangeDialog(), showFunctionDialog(), showPlotAssociations(), spline_xpm, vert_steps_xpm, and vertBars_xpm.
bool CurvesDialog::addCurve | ( | const QString & | name | ) | [private] |
References CurveLayout::aCol, Graph::addHistogram(), Graph::Area, boxMatrixStyle, Graph::ColorMap, CurveLayout::connectType, contents, Graph::Contour, curveStyle(), d_graph, ApplicationWindow::defaultCurveLineWidth, ApplicationWindow::defaultSymbolSize, CurveLayout::fillCol, CurveLayout::filledArea, Graph::GrayScale, Graph::guessUniqueCurveLayout(), Graph::HorizontalBars, Graph::HorizontalSteps, Graph::initCurveLayout(), Graph::insertCurve(), CurveLayout::lCol, Graph::Line, CurveLayout::lWidth, ApplicationWindow::matrix(), ApplicationWindow::matrixNames(), Graph::plotSpectrogram(), Graph::Spline, CurveLayout::sSize, CurveLayout::sType, CurveLayout::symCol, ApplicationWindow::table(), Graph::updateCurveLayout(), Graph::VerticalBars, Graph::VerticalDropLines, and Graph::VerticalSteps.
Referenced by addCurves().
void CurvesDialog::addCurves | ( | ) | [private, slot] |
References addCurve(), available, boxShowRange, contents, d_graph, showCurveRange(), Graph::showPlotErrorMessage(), and Graph::updatePlot().
Referenced by contextMenuEvent(), and CurvesDialog().
void CurvesDialog::closeEvent | ( | QCloseEvent * | e | ) | [private] |
References ApplicationWindow::d_add_curves_dialog_size.
void CurvesDialog::contextMenuEvent | ( | QContextMenuEvent * | e | ) | [private] |
References addCurves(), available, contents, and removeCurves().
int CurvesDialog::curveStyle | ( | ) | [private, slot] |
References Graph::Area, boxStyle, Graph::HorizontalBars, Graph::HorizontalSteps, Graph::Line, Graph::LineSymbols, Graph::Scatter, Graph::Spline, Graph::VerticalBars, Graph::VerticalDropLines, and Graph::VerticalSteps.
Referenced by addCurve().
void CurvesDialog::enableAddBtn | ( | ) | [private, slot] |
void CurvesDialog::enableRemoveBtn | ( | ) | [private, slot] |
void CurvesDialog::init | ( | ) | [private] |
References Graph::Area, available, boxMatrixStyle, boxShowCurrentFolder, boxStyle, btnAdd, ApplicationWindow::d_show_current_folder, ApplicationWindow::defaultCurveStyle, Graph::HorizontalBars, Graph::HorizontalSteps, Graph::Line, Graph::LineSymbols, ApplicationWindow::matrixNames(), Graph::Scatter, showCurrentFolder(), Graph::Spline, Graph::VerticalBars, Graph::VerticalDropLines, and Graph::VerticalSteps.
Referenced by CurvesDialog().
void CurvesDialog::removeCurves | ( | ) | [private, slot] |
References boxShowRange, contents, d_graph, Graph::removeCurve(), showCurveRange(), and Graph::updatePlot().
Referenced by contextMenuEvent(), and CurvesDialog().
void CurvesDialog::setGraph | ( | Graph * | graph | ) |
References contents, d_graph, enableAddBtn(), enableRemoveBtn(), and Graph::plotItemsList().
Referenced by ApplicationWindow::showCurvesDialog().
void CurvesDialog::showCurrentFolder | ( | bool | currentFolder | ) | [private, slot] |
void CurvesDialog::showCurveBtn | ( | int | ) | [private, slot] |
References btnAssociations, btnEditFunction, btnRange, contents, d_graph, Graph::ErrorBars, Graph::Function, Graph::plotItem(), and PlotCurve::type().
Referenced by CurvesDialog().
void CurvesDialog::showCurveRange | ( | bool | on | ) | [private, slot] |
References contents, Graph::curveCount(), d_graph, enableRemoveBtn(), DataCurve::endRow(), Graph::Function, Graph::plotItem(), Graph::plotItemsList(), and DataCurve::startRow().
Referenced by addCurves(), CurvesDialog(), removeCurves(), and updateCurveRange().
void CurvesDialog::showCurveRangeDialog | ( | ) | [private, slot] |
References contents, d_graph, ApplicationWindow::showCurveRangeDialog(), and updateCurveRange().
Referenced by CurvesDialog().
void CurvesDialog::showFunctionDialog | ( | ) | [private, slot] |
References contents, d_graph, and ApplicationWindow::showFunctionDialog().
Referenced by CurvesDialog().
void CurvesDialog::showPlotAssociations | ( | ) | [private, slot] |
QSize CurvesDialog::sizeHint | ( | ) | const [private] |
void CurvesDialog::updateCurveRange | ( | ) | [private, slot] |
QListWidget* CurvesDialog::available [private] |
Referenced by addCurves(), contextMenuEvent(), CurvesDialog(), enableAddBtn(), init(), and showCurrentFolder().
QComboBox* CurvesDialog::boxMatrixStyle [private] |
Referenced by addCurve(), CurvesDialog(), and init().
QCheckBox* CurvesDialog::boxShowCurrentFolder [private] |
Referenced by CurvesDialog(), and init().
QCheckBox* CurvesDialog::boxShowRange [private] |
Referenced by addCurves(), CurvesDialog(), removeCurves(), and updateCurveRange().
QComboBox* CurvesDialog::boxStyle [private] |
Referenced by CurvesDialog(), curveStyle(), and init().
QPushButton* CurvesDialog::btnAdd [private] |
Referenced by CurvesDialog(), enableAddBtn(), and init().
QPushButton* CurvesDialog::btnAssociations [private] |
Referenced by CurvesDialog(), and showCurveBtn().
QPushButton* CurvesDialog::btnCancel [private] |
Referenced by CurvesDialog().
QPushButton* CurvesDialog::btnEditFunction [private] |
Referenced by CurvesDialog(), and showCurveBtn().
QPushButton* CurvesDialog::btnOK [private] |
Referenced by CurvesDialog().
QPushButton* CurvesDialog::btnRange [private] |
Referenced by CurvesDialog(), and showCurveBtn().
QPushButton* CurvesDialog::btnRemove [private] |
Referenced by CurvesDialog(), and enableRemoveBtn().
QListWidget* CurvesDialog::contents [private] |
Graph* CurvesDialog::d_graph [private] |
Referenced by addCurve(), addCurves(), removeCurves(), setGraph(), showCurveBtn(), showCurveRange(), showCurveRangeDialog(), and showFunctionDialog().