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

Allow the user to set or change the colors used in UltraScan. More...

#include "us_color.h"

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

Public Member Functions

 US_Color (QWidget *=0, Qt::WindowFlags=0)
 
- Public Member Functions inherited from US_Widgets
 US_Widgets (bool=true, QWidget *p=0, Qt::WindowFlags f=0)
 
 ~US_Widgets (void)
 
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=-1, 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)
 
void write_plot (const QString &, const QwtPlot *)
 Write a plot file (PNG or SVG+PNG) from a plot. More...
 
int clean_etc_dir (bool=false)
 Clean install and work ./etc directories. More...
 

Private Types

enum  {
  FRAME, NORMAL_PB, DISABLED_PB, PLOT_FRAME,
  PLOT_CANVAS, LABELS, OTHER_WIDGETS, LCD,
  EDIT_BOXES
}
 

Private Slots

void updateWidgets (double)
 
void selected_scheme (void)
 
void save_as (void)
 
void selMargin (int)
 
void selectedElement (int)
 
void selectStyle (const QString &)
 
void apply (void)
 
void reset (void)
 
void delete_scheme (void)
 
void help (void)
 
void pick_color1 (void)
 
void pick_color2 (void)
 
void pick_color3 (void)
 
void pick_color4 (void)
 
void pick_color5 (void)
 
void pick_color6 (void)
 

Private Member Functions

void getCurrentSettings (void)
 
void updateScreen (void)
 
void updateSchemeList (const QString &=QString())
 
void resetFrames (void)
 
void resetButtons (void)
 
void resetLabels (void)
 
void resetWidgets (void)
 
void resetEditBoxes (void)
 

Private Attributes

US_Help showhelp
 A destructor to clean up. More...
 
QLabel * lbl_background
 
QLabel * lbl_margin
 
QLabel * lbl_example
 
QLabel * lbl_banner
 
QLabel * lbl_progress
 
QLabel * lbl_lcd
 
QLabel * lbl_counter
 
QLabel * lbl_assign
 
QLabel * lbl_style
 
QLabel * lbl_text
 
QLabel * lbl_choices
 
QLabel * lbl_select
 
QLabel * lbl_color1
 
QLabel * lbl_color2
 
QLabel * lbl_color3
 
QLabel * lbl_color4
 
QLabel * lbl_color5
 
QLabel * lbl_color6
 
QLabel * lbl_select_scheme
 
QLabel * lbl_select_element
 
QLabel * color_field1
 
QLabel * color_field2
 
QLabel * color_field3
 
QLabel * color_field4
 
QLabel * color_field5
 
QLabel * color_field6
 
QPushButton * pb_color1
 
QPushButton * pb_color2
 
QPushButton * pb_color3
 
QPushButton * pb_color4
 
QPushButton * pb_color5
 
QPushButton * pb_color6
 
QPushButton * pb_normal
 
QPushButton * pb_active
 
QPushButton * pb_disabled
 
QPushButton * pb_save_as
 
QPushButton * pb_apply
 
QPushButton * pb_reset
 
QPushButton * pb_delete
 
QPushButton * pb_help
 
QPushButton * pb_quit
 
QLineEdit * le_choice
 
QLineEdit * le_edit
 
QLineEdit * le_save_as
 
QListWidget * schemes
 
QListWidget * elements
 
QComboBox * cmbb_margin
 
QComboBox * cmbb_style
 
QProgressBar * progress
 
QwtCounter * cnt
 
QLCDNumber * lcd
 
QwtPlot * plot
 
QwtPlotGrid * grid
 
QwtPlotCurve * curve
 
QwtPlotPicker * pick
 
US_Plotus_plot
 
struct {
   int   plotMargin
 
   QColor   plotCurve
 
   QColor   plotBg
 
   QColor   plotMajorGrid
 
   QColor   plotMinorGrid
 
   QColor   plotPicker
 
   QString   guiStyle
 
   QPalette   frameColor
 
   QPalette   pushbColor
 
   QPalette   labelColor
 
   QPalette   editColor
 
   QPalette   normalColor
 
   QPalette   lcdColor
 
   QPalette   plotColor
 
current
 

Additional Inherited Members

- Static Public Member Functions inherited from US_Widgets
static QFont fixedFont (void)
 
- Public Attributes inherited from US_Widgets
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

Allow the user to set or change the colors used in UltraScan.

A class to allow the user to set or change the look of UltraScan windows via maipulation of the color components of widget palettes. It also allows the control of plot margins.

Definition at line 21 of file us_color.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
FRAME 
NORMAL_PB 
DISABLED_PB 
PLOT_FRAME 
PLOT_CANVAS 
LABELS 
OTHER_WIDGETS 
LCD 
EDIT_BOXES 

Definition at line 134 of file us_color.h.

Constructor & Destructor Documentation

US_Color::US_Color ( QWidget *  w = 0,
Qt::WindowFlags  flags = 0 
)

Construct the window to manage the user's color choices. The settings are saved for each user via US_Settings.

Definition at line 6 of file us_color.cpp.

Member Function Documentation

void US_Color::apply ( void  )
privateslot

Definition at line 1236 of file us_color.cpp.

void US_Color::delete_scheme ( void  )
privateslot

Definition at line 1328 of file us_color.cpp.

void US_Color::getCurrentSettings ( void  )
private

Definition at line 348 of file us_color.cpp.

void US_Color::help ( void  )
privateslot

Definition at line 1200 of file us_color.cpp.

void US_Color::pick_color1 ( void  )
privateslot

Definition at line 833 of file us_color.cpp.

void US_Color::pick_color2 ( void  )
privateslot

Definition at line 915 of file us_color.cpp.

void US_Color::pick_color3 ( void  )
privateslot

Definition at line 997 of file us_color.cpp.

void US_Color::pick_color4 ( void  )
privateslot

Definition at line 1072 of file us_color.cpp.

void US_Color::pick_color5 ( void  )
privateslot

Definition at line 1134 of file us_color.cpp.

void US_Color::pick_color6 ( void  )
privateslot

Definition at line 1171 of file us_color.cpp.

void US_Color::reset ( void  )
privateslot

Definition at line 1205 of file us_color.cpp.

void US_Color::resetButtons ( void  )
private

Definition at line 774 of file us_color.cpp.

void US_Color::resetEditBoxes ( void  )
private

Definition at line 823 of file us_color.cpp.

void US_Color::resetFrames ( void  )
private

Definition at line 759 of file us_color.cpp.

void US_Color::resetLabels ( void  )
private

Definition at line 797 of file us_color.cpp.

void US_Color::resetWidgets ( void  )
private

Definition at line 813 of file us_color.cpp.

void US_Color::save_as ( void  )
privateslot

Definition at line 1256 of file us_color.cpp.

void US_Color::selected_scheme ( void  )
privateslot

Definition at line 1369 of file us_color.cpp.

void US_Color::selectedElement ( int  index)
privateslot

Definition at line 393 of file us_color.cpp.

void US_Color::selectStyle ( const QString &  styleName)
privateslot

Definition at line 1424 of file us_color.cpp.

void US_Color::selMargin ( int  index)
privateslot

Definition at line 1230 of file us_color.cpp.

void US_Color::updateSchemeList ( const QString &  active = QString())
private

Definition at line 1306 of file us_color.cpp.

void US_Color::updateScreen ( void  )
private

Definition at line 368 of file us_color.cpp.

void US_Color::updateWidgets ( double  newval)
privateslot

Definition at line 1223 of file us_color.cpp.

Member Data Documentation

QComboBox* US_Color::cmbb_margin
private

Definition at line 97 of file us_color.h.

QComboBox* US_Color::cmbb_style
private

Definition at line 98 of file us_color.h.

QwtCounter* US_Color::cnt
private

Definition at line 100 of file us_color.h.

QLabel* US_Color::color_field1
private

Definition at line 61 of file us_color.h.

QLabel* US_Color::color_field2
private

Definition at line 62 of file us_color.h.

QLabel* US_Color::color_field3
private

Definition at line 63 of file us_color.h.

QLabel* US_Color::color_field4
private

Definition at line 64 of file us_color.h.

QLabel* US_Color::color_field5
private

Definition at line 65 of file us_color.h.

QLabel* US_Color::color_field6
private

Definition at line 66 of file us_color.h.

struct { ... } US_Color::current
QwtPlotCurve* US_Color::curve
private

Definition at line 108 of file us_color.h.

QPalette US_Color::editColor

Definition at line 128 of file us_color.h.

QListWidget* US_Color::elements
private

Definition at line 94 of file us_color.h.

QPalette US_Color::frameColor

Definition at line 125 of file us_color.h.

QwtPlotGrid* US_Color::grid
private

Definition at line 107 of file us_color.h.

QString US_Color::guiStyle

Definition at line 123 of file us_color.h.

QPalette US_Color::labelColor

Definition at line 127 of file us_color.h.

QLabel* US_Color::lbl_assign
private

Definition at line 43 of file us_color.h.

QLabel* US_Color::lbl_background
private

Definition at line 36 of file us_color.h.

QLabel* US_Color::lbl_banner
private

Definition at line 39 of file us_color.h.

QLabel* US_Color::lbl_choices
private

Definition at line 49 of file us_color.h.

QLabel* US_Color::lbl_color1
private

Definition at line 51 of file us_color.h.

QLabel* US_Color::lbl_color2
private

Definition at line 52 of file us_color.h.

QLabel* US_Color::lbl_color3
private

Definition at line 53 of file us_color.h.

QLabel* US_Color::lbl_color4
private

Definition at line 54 of file us_color.h.

QLabel* US_Color::lbl_color5
private

Definition at line 55 of file us_color.h.

QLabel* US_Color::lbl_color6
private

Definition at line 56 of file us_color.h.

QLabel* US_Color::lbl_counter
private

Definition at line 42 of file us_color.h.

QLabel* US_Color::lbl_example
private

Definition at line 38 of file us_color.h.

QLabel* US_Color::lbl_lcd
private

Definition at line 41 of file us_color.h.

QLabel* US_Color::lbl_margin
private

Definition at line 37 of file us_color.h.

QLabel* US_Color::lbl_progress
private

Definition at line 40 of file us_color.h.

QLabel* US_Color::lbl_select
private

Definition at line 50 of file us_color.h.

QLabel* US_Color::lbl_select_element
private

Definition at line 58 of file us_color.h.

QLabel* US_Color::lbl_select_scheme
private

Definition at line 57 of file us_color.h.

QLabel* US_Color::lbl_style
private

Definition at line 44 of file us_color.h.

QLabel* US_Color::lbl_text
private

Definition at line 48 of file us_color.h.

QLCDNumber* US_Color::lcd
private

Definition at line 103 of file us_color.h.

QPalette US_Color::lcdColor

Definition at line 130 of file us_color.h.

QLineEdit* US_Color::le_choice
private

Definition at line 90 of file us_color.h.

QLineEdit* US_Color::le_edit
private

Definition at line 91 of file us_color.h.

QLineEdit* US_Color::le_save_as
private

Definition at line 92 of file us_color.h.

QPalette US_Color::normalColor

Definition at line 129 of file us_color.h.

QPushButton* US_Color::pb_active
private

Definition at line 78 of file us_color.h.

QPushButton* US_Color::pb_apply
private

Definition at line 82 of file us_color.h.

QPushButton* US_Color::pb_color1
private

Definition at line 70 of file us_color.h.

QPushButton* US_Color::pb_color2
private

Definition at line 71 of file us_color.h.

QPushButton* US_Color::pb_color3
private

Definition at line 72 of file us_color.h.

QPushButton* US_Color::pb_color4
private

Definition at line 73 of file us_color.h.

QPushButton* US_Color::pb_color5
private

Definition at line 74 of file us_color.h.

QPushButton* US_Color::pb_color6
private

Definition at line 75 of file us_color.h.

QPushButton* US_Color::pb_delete
private

Definition at line 84 of file us_color.h.

QPushButton* US_Color::pb_disabled
private

Definition at line 79 of file us_color.h.

QPushButton* US_Color::pb_help
private

Definition at line 85 of file us_color.h.

QPushButton* US_Color::pb_normal
private

Definition at line 77 of file us_color.h.

QPushButton* US_Color::pb_quit
private

Definition at line 86 of file us_color.h.

QPushButton* US_Color::pb_reset
private

Definition at line 83 of file us_color.h.

QPushButton* US_Color::pb_save_as
private

Definition at line 81 of file us_color.h.

QwtPlotPicker* US_Color::pick
private

Definition at line 109 of file us_color.h.

QwtPlot* US_Color::plot
private

Definition at line 106 of file us_color.h.

QColor US_Color::plotBg

Definition at line 118 of file us_color.h.

QPalette US_Color::plotColor

Definition at line 131 of file us_color.h.

QColor US_Color::plotCurve

Definition at line 117 of file us_color.h.

QColor US_Color::plotMajorGrid

Definition at line 119 of file us_color.h.

int US_Color::plotMargin

Definition at line 115 of file us_color.h.

QColor US_Color::plotMinorGrid

Definition at line 120 of file us_color.h.

QColor US_Color::plotPicker

Definition at line 121 of file us_color.h.

QProgressBar* US_Color::progress
private

Definition at line 99 of file us_color.h.

QPalette US_Color::pushbColor

Definition at line 126 of file us_color.h.

QListWidget* US_Color::schemes
private

Definition at line 93 of file us_color.h.

US_Help US_Color::showhelp
private

A destructor to clean up.

Definition at line 33 of file us_color.h.

US_Plot* US_Color::us_plot
private

Definition at line 111 of file us_color.h.


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