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

Color gradient generator; output is color steps XML file. More...

#include "us_colorgradient.h"

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

Public Slots

void show_gradient (void)
 

Public Member Functions

 US_ColorGradient (QWidget *=0, Qt::WindowFlags=0)
 The constructor creates various controls for the main window. More...
 
- 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 Slots

void c_click (int)
 
void c_cnt_change (double)
 
void update_steps (double)
 
void load_gradient (void)
 
void save_gradient (void)
 
void safe_close (void)
 
void update_banner (void)
 
void reset (void)
 
void help (void)
 

Private Attributes

bool have_load
 
bool have_save
 
bool new_mods
 
bool is_reset
 
int width_lb
 
int height_lb
 
int margin
 
US_Help showHelp
 
QLabel * lb_banner1
 
QLabel * lb_nsteps
 
QLabel * lb_gradient
 
QPushButton * pb_help
 
QPushButton * pb_reset
 
QPushButton * pb_load
 
QPushButton * pb_show
 
QPushButton * pb_save
 
QPushButton * pb_close
 
MyButtonpb_c [11]
 
QwtCounter * ct_c [11]
 
QwtCounter * ct_nsteps
 
QwtCounter * ct_stindex
 
QPixmap * pm_gradient
 
QString in_filename
 
QString out_filename
 
QString img_filename
 
QString grad_dir
 

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

Color gradient generator; output is color steps XML file.

This class provides the top level window for creating a color gradient file. It allows specifying color steps, each one with a number of points and an end color. A start color is also specified. Output is an XML file that specifies color step parameters, from which a full color gradient can be derived.

Definition at line 41 of file us_colorgradient.h.

Constructor & Destructor Documentation

US_ColorGradient::US_ColorGradient ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

The constructor creates various controls for the main window.

Parameters
parentA pointer to the parent widget. This normally can be left as NULL.
flagsAn enum value that describes the window properties. This normally can be left as 0 (Qt::Widget).

Definition at line 44 of file us_colorgradient.cpp.

Member Function Documentation

void US_ColorGradient::c_click ( int  which)
privateslot

Definition at line 171 of file us_colorgradient.cpp.

void US_ColorGradient::c_cnt_change ( double  )
privateslot

Definition at line 187 of file us_colorgradient.cpp.

void US_ColorGradient::help ( void  )
inlineprivateslot

Definition at line 106 of file us_colorgradient.h.

void US_ColorGradient::load_gradient ( void  )
privateslot

Definition at line 365 of file us_colorgradient.cpp.

void US_ColorGradient::reset ( void  )
privateslot

Definition at line 195 of file us_colorgradient.cpp.

void US_ColorGradient::safe_close ( void  )
privateslot

Definition at line 332 of file us_colorgradient.cpp.

void US_ColorGradient::save_gradient ( void  )
privateslot

Definition at line 212 of file us_colorgradient.cpp.

void US_ColorGradient::show_gradient ( void  )
slot

Definition at line 495 of file us_colorgradient.cpp.

void US_ColorGradient::update_banner ( void  )
privateslot

Definition at line 624 of file us_colorgradient.cpp.

void US_ColorGradient::update_steps ( double  newval)
privateslot

Definition at line 477 of file us_colorgradient.cpp.

Member Data Documentation

QwtCounter* US_ColorGradient::ct_c[11]
private

Definition at line 80 of file us_colorgradient.h.

QwtCounter* US_ColorGradient::ct_nsteps
private

Definition at line 82 of file us_colorgradient.h.

QwtCounter* US_ColorGradient::ct_stindex
private

Definition at line 83 of file us_colorgradient.h.

QString US_ColorGradient::grad_dir
private

Definition at line 90 of file us_colorgradient.h.

bool US_ColorGradient::have_load
private

Definition at line 56 of file us_colorgradient.h.

bool US_ColorGradient::have_save
private

Definition at line 57 of file us_colorgradient.h.

int US_ColorGradient::height_lb
private

Definition at line 62 of file us_colorgradient.h.

QString US_ColorGradient::img_filename
private

Definition at line 89 of file us_colorgradient.h.

QString US_ColorGradient::in_filename
private

Definition at line 87 of file us_colorgradient.h.

bool US_ColorGradient::is_reset
private

Definition at line 59 of file us_colorgradient.h.

QLabel* US_ColorGradient::lb_banner1
private

Definition at line 67 of file us_colorgradient.h.

QLabel* US_ColorGradient::lb_gradient
private

Definition at line 69 of file us_colorgradient.h.

QLabel* US_ColorGradient::lb_nsteps
private

Definition at line 68 of file us_colorgradient.h.

int US_ColorGradient::margin
private

Definition at line 63 of file us_colorgradient.h.

bool US_ColorGradient::new_mods
private

Definition at line 58 of file us_colorgradient.h.

QString US_ColorGradient::out_filename
private

Definition at line 88 of file us_colorgradient.h.

MyButton* US_ColorGradient::pb_c[11]
private

Definition at line 78 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_close
private

Definition at line 76 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_help
private

Definition at line 71 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_load
private

Definition at line 73 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_reset
private

Definition at line 72 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_save
private

Definition at line 75 of file us_colorgradient.h.

QPushButton* US_ColorGradient::pb_show
private

Definition at line 74 of file us_colorgradient.h.

QPixmap* US_ColorGradient::pm_gradient
private

Definition at line 85 of file us_colorgradient.h.

US_Help US_ColorGradient::showHelp
private

Definition at line 65 of file us_colorgradient.h.

int US_ColorGradient::width_lb
private

Definition at line 61 of file us_colorgradient.h.


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