SciDAVis  1.D4
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
CurvesDialog Class Reference

Add/remove curves dialog. More...

#include <CurvesDialog.h>

List of all members.

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
Graphd_graph
int defaultCurveLineWidth
int defaultSymbolSize

Detailed Description

Add/remove curves dialog.


Constructor & Destructor Documentation

CurvesDialog::CurvesDialog ( QWidget *  parent = 0,
Qt::WFlags  fl = 0 
)

Member Function Documentation

bool CurvesDialog::addCurve ( const QString &  name)
private
void CurvesDialog::addCurves ( )
privateslot
void CurvesDialog::closeEvent ( QCloseEvent *  e)
private
void CurvesDialog::contextMenuEvent ( QContextMenuEvent *  e)
private
int CurvesDialog::curveStyle ( )
privateslot
void CurvesDialog::enableAddBtn ( )
privateslot

References available, and btnAdd.

Referenced by CurvesDialog(), and setGraph().

void CurvesDialog::enableRemoveBtn ( )
privateslot

References btnRemove, and contents.

Referenced by CurvesDialog(), setGraph(), and showCurveRange().

void CurvesDialog::init ( )
private
void CurvesDialog::removeCurves ( )
privateslot
void CurvesDialog::setGraph ( Graph graph)
void CurvesDialog::showCurrentFolder ( bool  currentFolder)
privateslot
void CurvesDialog::showCurveBtn ( int  )
privateslot

Enables ("yes")/disables ("no") the following buttons, which are on the right besides the graph contents list, depending on the selected item in this list:

Selected ItembtnEditFunction btnAssociations btnRange
Spectrogram no no no
Function yes no no
ErrorBars no yes no
all others no yes yes

References btnAssociations, btnEditFunction, btnRange, contents, d_graph, Graph::ErrorBars, Graph::Function, Graph::plotItem(), and PlotCurve::type().

Referenced by CurvesDialog().

void CurvesDialog::showCurveRange ( bool  on)
privateslot
void CurvesDialog::showCurveRangeDialog ( )
privateslot
void CurvesDialog::showFunctionDialog ( )
privateslot
void CurvesDialog::showPlotAssociations ( )
privateslot
QSize CurvesDialog::sizeHint ( ) const
private
void CurvesDialog::updateCurveRange ( )
privateslot

References boxShowRange, and showCurveRange().

Referenced by showCurveRangeDialog().


Member Data Documentation

QListWidget* CurvesDialog::available
private
QComboBox* CurvesDialog::boxMatrixStyle
private

Referenced by addCurve(), CurvesDialog(), and init().

QCheckBox* CurvesDialog::boxShowCurrentFolder
private

Referenced by CurvesDialog(), and init().

QCheckBox* CurvesDialog::boxShowRange
private
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
int CurvesDialog::defaultCurveLineWidth
private
int CurvesDialog::defaultSymbolSize
private

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