Allow the user to set or change the colors used in UltraScan. More...
#include "us_color.h"
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_Plot * | us_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... | |
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.
|
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.
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.
|
privateslot |
Definition at line 1236 of file us_color.cpp.
|
privateslot |
Definition at line 1328 of file us_color.cpp.
|
private |
Definition at line 348 of file us_color.cpp.
|
privateslot |
Definition at line 1200 of file us_color.cpp.
|
privateslot |
Definition at line 833 of file us_color.cpp.
|
privateslot |
Definition at line 915 of file us_color.cpp.
|
privateslot |
Definition at line 997 of file us_color.cpp.
|
privateslot |
Definition at line 1072 of file us_color.cpp.
|
privateslot |
Definition at line 1134 of file us_color.cpp.
|
privateslot |
Definition at line 1171 of file us_color.cpp.
|
privateslot |
Definition at line 1205 of file us_color.cpp.
|
private |
Definition at line 774 of file us_color.cpp.
|
private |
Definition at line 823 of file us_color.cpp.
|
private |
Definition at line 759 of file us_color.cpp.
|
private |
Definition at line 797 of file us_color.cpp.
|
private |
Definition at line 813 of file us_color.cpp.
|
privateslot |
Definition at line 1256 of file us_color.cpp.
|
privateslot |
Definition at line 1369 of file us_color.cpp.
|
privateslot |
Definition at line 393 of file us_color.cpp.
|
privateslot |
Definition at line 1424 of file us_color.cpp.
|
privateslot |
Definition at line 1230 of file us_color.cpp.
|
private |
Definition at line 1306 of file us_color.cpp.
|
private |
Definition at line 368 of file us_color.cpp.
|
privateslot |
Definition at line 1223 of file us_color.cpp.
|
private |
Definition at line 97 of file us_color.h.
|
private |
Definition at line 98 of file us_color.h.
|
private |
Definition at line 100 of file us_color.h.
|
private |
Definition at line 61 of file us_color.h.
|
private |
Definition at line 62 of file us_color.h.
|
private |
Definition at line 63 of file us_color.h.
|
private |
Definition at line 64 of file us_color.h.
|
private |
Definition at line 65 of file us_color.h.
|
private |
Definition at line 66 of file us_color.h.
struct { ... } US_Color::current |
|
private |
Definition at line 108 of file us_color.h.
QPalette US_Color::editColor |
Definition at line 128 of file us_color.h.
|
private |
Definition at line 94 of file us_color.h.
QPalette US_Color::frameColor |
Definition at line 125 of file us_color.h.
|
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.
|
private |
Definition at line 43 of file us_color.h.
|
private |
Definition at line 36 of file us_color.h.
|
private |
Definition at line 39 of file us_color.h.
|
private |
Definition at line 49 of file us_color.h.
|
private |
Definition at line 51 of file us_color.h.
|
private |
Definition at line 52 of file us_color.h.
|
private |
Definition at line 53 of file us_color.h.
|
private |
Definition at line 54 of file us_color.h.
|
private |
Definition at line 55 of file us_color.h.
|
private |
Definition at line 56 of file us_color.h.
|
private |
Definition at line 42 of file us_color.h.
|
private |
Definition at line 38 of file us_color.h.
|
private |
Definition at line 41 of file us_color.h.
|
private |
Definition at line 37 of file us_color.h.
|
private |
Definition at line 40 of file us_color.h.
|
private |
Definition at line 50 of file us_color.h.
|
private |
Definition at line 58 of file us_color.h.
|
private |
Definition at line 57 of file us_color.h.
|
private |
Definition at line 44 of file us_color.h.
|
private |
Definition at line 48 of file us_color.h.
|
private |
Definition at line 103 of file us_color.h.
QPalette US_Color::lcdColor |
Definition at line 130 of file us_color.h.
|
private |
Definition at line 90 of file us_color.h.
|
private |
Definition at line 91 of file us_color.h.
|
private |
Definition at line 92 of file us_color.h.
QPalette US_Color::normalColor |
Definition at line 129 of file us_color.h.
|
private |
Definition at line 78 of file us_color.h.
|
private |
Definition at line 82 of file us_color.h.
|
private |
Definition at line 70 of file us_color.h.
|
private |
Definition at line 71 of file us_color.h.
|
private |
Definition at line 72 of file us_color.h.
|
private |
Definition at line 73 of file us_color.h.
|
private |
Definition at line 74 of file us_color.h.
|
private |
Definition at line 75 of file us_color.h.
|
private |
Definition at line 84 of file us_color.h.
|
private |
Definition at line 79 of file us_color.h.
|
private |
Definition at line 85 of file us_color.h.
|
private |
Definition at line 77 of file us_color.h.
|
private |
Definition at line 86 of file us_color.h.
|
private |
Definition at line 83 of file us_color.h.
|
private |
Definition at line 81 of file us_color.h.
|
private |
Definition at line 109 of file us_color.h.
|
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.
|
private |
Definition at line 99 of file us_color.h.
QPalette US_Color::pushbColor |
Definition at line 126 of file us_color.h.
|
private |
Definition at line 93 of file us_color.h.
|
private |
A destructor to clean up.
Definition at line 33 of file us_color.h.
|
private |
Definition at line 111 of file us_color.h.