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

A window to allow customization of plots initialized. More...

#include "us_plot.h"

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

Public Member Functions

 US_PlotConfig (QwtPlot *, 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 updateTitleText (const QString &)
 Change the plot's title. More...
 
void updateTitleFont (void)
 Open Font dialog for changing the title font. More...
 
void selectFrameColor (void)
 Change the frame color. More...
 
void selectCanvasColor (void)
 Change the plot canvas color. More...
 
void selectMargin (int)
 Change the plot margin. More...
 
void selectLegendPos (int)
 Change the plot legend position. More...
 
void updateLegendFont (void)
 Change the legend font. More...
 
void updateAxis (int)
 
void updateCurve (void)
 Open US_PlotConfig dialog for changing the selected curves elements. More...
 
void updateGrid (void)
 

Private Member Functions

void setLegendFontString (void)
 

Private Attributes

QwtPlot * plot
 A signal to tell the parent that the window is closed. More...
 
QLineEdit * le_titleText
 
QLineEdit * le_titleFont
 
QLineEdit * le_legendFont
 
QLabel * lb_showFrameColor
 
QLabel * lb_showCanvasColor
 
QComboBox * cmbb_legendPos
 
QListWidget * lw_curves
 
US_PlotAxisConfigaxisWidget
 
US_PlotGridConfiggridWidget
 
US_PlotCurveConfigcurveWidget
 

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 allow customization of plots initialized.

Definition at line 108 of file us_plot.h.

Constructor & Destructor Documentation

US_PlotConfig::US_PlotConfig ( QwtPlot *  current_plot,
QWidget *  p = 0,
Qt::WindowFlags  f = 0 
)

Constructor.

Parameters
current_plot- The plot to be configured
current_plotQwtPlot widget
pParent widget
fWindow Flags

Definition at line 332 of file us_plot.cpp.

Member Function Documentation

void US_PlotConfig::selectCanvasColor ( void  )
privateslot

Change the plot canvas color.

Definition at line 587 of file us_plot.cpp.

void US_PlotConfig::selectFrameColor ( void  )
privateslot

Change the frame color.

Definition at line 604 of file us_plot.cpp.

void US_PlotConfig::selectLegendPos ( int  index)
privateslot

Change the plot legend position.

Parameters
index- The index of the plot position combobox

Definition at line 630 of file us_plot.cpp.

void US_PlotConfig::selectMargin ( int  index)
privateslot

Change the plot margin.

Parameters
index- The combobox index

Definition at line 622 of file us_plot.cpp.

void US_PlotConfig::setLegendFontString ( void  )
private

Definition at line 654 of file us_plot.cpp.

void US_PlotConfig::updateAxis ( int  axis)
privateslot

Definition at line 695 of file us_plot.cpp.

void US_PlotConfig::updateCurve ( void  )
privateslot

Open US_PlotConfig dialog for changing the selected curves elements.

Definition at line 718 of file us_plot.cpp.

void US_PlotConfig::updateGrid ( void  )
privateslot

Definition at line 756 of file us_plot.cpp.

void US_PlotConfig::updateLegendFont ( void  )
privateslot

Change the legend font.

Definition at line 674 of file us_plot.cpp.

void US_PlotConfig::updateTitleFont ( void  )
privateslot

Open Font dialog for changing the title font.

Definition at line 568 of file us_plot.cpp.

void US_PlotConfig::updateTitleText ( const QString &  newText)
privateslot

Change the plot's title.

Parameters
newTextnew title

Definition at line 561 of file us_plot.cpp.

Member Data Documentation

US_PlotAxisConfig* US_PlotConfig::axisWidget
private

Definition at line 134 of file us_plot.h.

QComboBox* US_PlotConfig::cmbb_legendPos
private

Definition at line 130 of file us_plot.h.

US_PlotCurveConfig* US_PlotConfig::curveWidget
private

Definition at line 136 of file us_plot.h.

US_PlotGridConfig* US_PlotConfig::gridWidget
private

Definition at line 135 of file us_plot.h.

QLabel* US_PlotConfig::lb_showCanvasColor
private

Definition at line 128 of file us_plot.h.

QLabel* US_PlotConfig::lb_showFrameColor
private

Definition at line 127 of file us_plot.h.

QLineEdit* US_PlotConfig::le_legendFont
private

Definition at line 125 of file us_plot.h.

QLineEdit* US_PlotConfig::le_titleFont
private

Definition at line 124 of file us_plot.h.

QLineEdit* US_PlotConfig::le_titleText
private

Definition at line 123 of file us_plot.h.

QListWidget* US_PlotConfig::lw_curves
private

Definition at line 132 of file us_plot.h.

QwtPlot* US_PlotConfig::plot
private

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

Definition at line 121 of file us_plot.h.


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