UltraScan III
List of all members | Public Member Functions | Private Slots | Private Attributes | Friends
US_PlotCurveConfig Class Reference

A window to customize plot curves. More...

#include "us_plot.h"

Inheritance diagram for US_PlotCurveConfig:
Inheritance graph
[legend]
Collaboration diagram for US_PlotCurveConfig:
Collaboration graph
[legend]

Public Member Functions

 US_PlotCurveConfig (QwtPlot *, const QStringList &, QWidget *=0, Qt::WindowFlags=0)
 Constructor. More...
 
- Public Member Functions inherited from US_WidgetsDialog
 US_WidgetsDialog (QWidget *, Qt::WindowFlags)
 
QLabel * us_label (const QString &, int=0, int=QFont::Bold)
 
QLabel * us_textlabel (const QString &, int=-1, int=QFont::Bold)
 
QLabel * us_banner (const QString &, int=0, int=QFont::Bold)
 
QPushButton * us_pushbutton (const QString &, bool=true, int=0)
 
QTextEdit * us_textedit (void)
 
QLineEdit * us_lineedit (const QString &=0, int=0, bool=false)
 
void us_setReadOnly (QLineEdit *, bool=true)
 
void us_setReadOnly (QTextEdit *, bool=true)
 
QListWidget * us_listwidget (int=0)
 
QGridLayout * us_checkbox (const QString &, QCheckBox *&, bool=false)
 
QGridLayout * us_radiobutton (const QString &text, QRadioButton *&rb, bool state=false)
 
QProgressBar * us_progressBar (int, int, int=0)
 
QComboBox * us_comboBox (void)
 
QLCDNumber * us_lcd (int, int=0)
 
QwtCounter * us_counter (int, double, double, double=0.0)
 
QwtPlot * us_plot (const QString &, const QString &=QString(), const QString &=QString())
 
QwtPlotGrid * us_grid (QwtPlot *)
 
QwtPlotCurve * us_curve (QwtPlot *, const QString &)
 
QwtPlotPicker * us_picker (QwtPlot *)
 
QTabWidget * us_tabwidget (int=0, int=QFont::Bold)
 

Private Slots

void curveStyleChanged (int)
 
void updateSample (int)
 
void selectCurveColor (void)
 
void symbolStyleChanged (int)
 
void selectSymbolInteriorColor (void)
 
void selectSymbolOutlineColor (void)
 
void apply (void)
 

Private Attributes

QwtPlot * plot
 A signal to tell the parent that the window is closed. More...
 
QStringList selectedItems
 
US_PlotLabellb_sample2
 
QLabel * lb_showCurveColor
 
QLabel * lb_showSymbolOutlineColor
 
QLabel * lb_showSymbolInteriorColor
 
QLineEdit * le_curveTitle
 
QSpinBox * sb_curveWidth
 
QSpinBox * sb_symbolWidth
 
QSpinBox * sb_symbolHeight
 
QComboBox * cmbb_curveStyle
 
QComboBox * cmbb_symbolStyle
 
QwtPlotCurve * firstSelectedCurve
 
QwtPlotCurve::CurveStyle curveStyle
 
QwtSymbol::Style symbolStyle
 

Friends

class US_PlotLabel
 

Additional Inherited Members

- Public Attributes inherited from US_WidgetsDialog
US_Global g
 Connect to global memory and make the values accessible. More...
 
QPalette vlgray
 Very light gray palette for read-only line edits. More...
 

Detailed Description

A window to customize plot curves.

Definition at line 161 of file us_plot.h.

Constructor & Destructor Documentation

US_PlotCurveConfig::US_PlotCurveConfig ( QwtPlot *  currentPlot,
const QStringList &  selected,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
currentPlotQwtPlot widget
selectedA list of curve names to be configured
parentParent widget
fWidget flags

Definition at line 814 of file us_plot.cpp.

Member Function Documentation

void US_PlotCurveConfig::apply ( void  )
privateslot

Definition at line 1135 of file us_plot.cpp.

void US_PlotCurveConfig::curveStyleChanged ( int  index)
privateslot

Definition at line 1076 of file us_plot.cpp.

void US_PlotCurveConfig::selectCurveColor ( void  )
privateslot

Definition at line 1090 of file us_plot.cpp.

void US_PlotCurveConfig::selectSymbolInteriorColor ( void  )
privateslot

Definition at line 1105 of file us_plot.cpp.

void US_PlotCurveConfig::selectSymbolOutlineColor ( void  )
privateslot

Definition at line 1120 of file us_plot.cpp.

void US_PlotCurveConfig::symbolStyleChanged ( int  index)
privateslot

Definition at line 1083 of file us_plot.cpp.

void US_PlotCurveConfig::updateSample ( int  )
privateslot

Definition at line 1071 of file us_plot.cpp.

Friends And Related Function Documentation

friend class US_PlotLabel
friend

Definition at line 165 of file us_plot.h.

Member Data Documentation

QComboBox* US_PlotCurveConfig::cmbb_curveStyle
private

Definition at line 191 of file us_plot.h.

QComboBox* US_PlotCurveConfig::cmbb_symbolStyle
private

Definition at line 192 of file us_plot.h.

QwtPlotCurve::CurveStyle US_PlotCurveConfig::curveStyle
private

Definition at line 196 of file us_plot.h.

QwtPlotCurve* US_PlotCurveConfig::firstSelectedCurve
private

Definition at line 194 of file us_plot.h.

US_PlotLabel* US_PlotCurveConfig::lb_sample2
private

Definition at line 180 of file us_plot.h.

QLabel* US_PlotCurveConfig::lb_showCurveColor
private

Definition at line 181 of file us_plot.h.

QLabel* US_PlotCurveConfig::lb_showSymbolInteriorColor
private

Definition at line 183 of file us_plot.h.

QLabel* US_PlotCurveConfig::lb_showSymbolOutlineColor
private

Definition at line 182 of file us_plot.h.

QLineEdit* US_PlotCurveConfig::le_curveTitle
private

Definition at line 185 of file us_plot.h.

QwtPlot* US_PlotCurveConfig::plot
private

A signal to tell the parent that the window is closed.

Definition at line 176 of file us_plot.h.

QSpinBox* US_PlotCurveConfig::sb_curveWidth
private

Definition at line 187 of file us_plot.h.

QSpinBox* US_PlotCurveConfig::sb_symbolHeight
private

Definition at line 189 of file us_plot.h.

QSpinBox* US_PlotCurveConfig::sb_symbolWidth
private

Definition at line 188 of file us_plot.h.

QStringList US_PlotCurveConfig::selectedItems
private

Definition at line 178 of file us_plot.h.

QwtSymbol::Style US_PlotCurveConfig::symbolStyle
private

Definition at line 197 of file us_plot.h.


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