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

Manage a user's UltraScan license. More...

#include "us_license.h"

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

Public Member Functions

 US_License (QWidget *parent=0, Qt::WindowFlags flags=0)
 Set up Gui page for license import. More...
 
 ~US_License ()
 A null destructor. 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 help (void)
 
void update (void)
 
void update_response (const QString &)
 
void request_response (const QString &)
 
QString trim (const QString &)
 
void update_firstname (const QString &s)
 
void update_lastname (const QString &s)
 
void update_institution (const QString &s)
 
void update_address (const QString &s)
 
void update_city (const QString &s)
 
void update_state (const QString &s)
 
void update_zip (const QString &s)
 
void update_phone (const QString &s)
 
void update_email (const QString &s)
 
void update_licensetype (const QString &s)
 

Private Member Functions

void update_screen (void)
 
void load_current (void)
 
QString titleCase (const QString &)
 
void request (void)
 
bool save (void)
 

Private Attributes

QPushButton * pb_cancel
 
QPushButton * pb_save
 
QPushButton * pb_help
 
QPushButton * pb_load
 
QPushButton * pb_request
 
QPushButton * pb_import
 
QString firstname
 
QString lastname
 
QString institution
 
QString address
 
QString city
 
QString state
 
QString zip
 
QString phone
 
QString email
 
QString os
 
QString platform
 
QString version
 
QString licensetype
 
QString validation
 
QString expiration
 
QLineEdit * le_firstname
 
QLineEdit * le_lastname
 
QLineEdit * le_institution
 
QLineEdit * le_address
 
QLineEdit * le_city
 
QLineEdit * le_zip
 
QLineEdit * le_phone
 
QLineEdit * le_email
 
QLineEdit * le_platform
 
QLineEdit * le_expiration
 
QLineEdit * le_registration
 
QLabel * lbl_version
 
QLabel * lbl_platform
 
QLabel * lbl_expiration
 
QLabel * lbl_valid
 
QComboBox * cbb_state
 
QComboBox * cbb_os1
 
QComboBox * cbb_version
 
QComboBox * cbb_licensetype
 
US_Help online_help
 
QStringList states
 
QStringList types
 
bool updating_email
 
QPushButton * pb_update
 

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

Manage a user's UltraScan license.

This class allows a user to set license data either manually or via import of a mail message.

Definition at line 31 of file us_license.h.

Constructor & Destructor Documentation

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

Set up Gui page for license import.

The constructor creates all needed widgets and provides appropriate connections to save the license via US_Settings.

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 10 of file gui/us_license.cpp.

US_License::~US_License ( )
inline

A null destructor.

Definition at line 48 of file us_license.h.

Member Function Documentation

void US_License::help ( void  )
privateslot

Definition at line 283 of file gui/us_license.cpp.

void US_License::load_current ( void  )
private

Definition at line 311 of file gui/us_license.cpp.

void US_License::request ( void  )
private

Definition at line 532 of file gui/us_license.cpp.

void US_License::request_response ( const QString &  response)
privateslot

Definition at line 569 of file gui/us_license.cpp.

bool US_License::save ( void  )
private

Definition at line 596 of file gui/us_license.cpp.

QString US_License::titleCase ( const QString &  phrase)
private

Definition at line 288 of file gui/us_license.cpp.

QString US_License::trim ( const QString &  st)
privateslot

Definition at line 650 of file gui/us_license.cpp.

void US_License::update ( void  )
privateslot

Definition at line 427 of file gui/us_license.cpp.

void US_License::update_address ( const QString &  s)
inlineprivateslot

Definition at line 119 of file us_license.h.

void US_License::update_city ( const QString &  s)
inlineprivateslot

Definition at line 120 of file us_license.h.

void US_License::update_email ( const QString &  s)
inlineprivateslot

Definition at line 124 of file us_license.h.

void US_License::update_firstname ( const QString &  s)
inlineprivateslot

Definition at line 116 of file us_license.h.

void US_License::update_institution ( const QString &  s)
inlineprivateslot

Definition at line 118 of file us_license.h.

void US_License::update_lastname ( const QString &  s)
inlineprivateslot

Definition at line 117 of file us_license.h.

void US_License::update_licensetype ( const QString &  s)
inlineprivateslot

Definition at line 125 of file us_license.h.

void US_License::update_phone ( const QString &  s)
inlineprivateslot

Definition at line 123 of file us_license.h.

void US_License::update_response ( const QString &  response)
privateslot

Definition at line 502 of file gui/us_license.cpp.

void US_License::update_screen ( void  )
private

Definition at line 356 of file gui/us_license.cpp.

void US_License::update_state ( const QString &  s)
inlineprivateslot

Definition at line 121 of file us_license.h.

void US_License::update_zip ( const QString &  s)
inlineprivateslot

Definition at line 122 of file us_license.h.

Member Data Documentation

QString US_License::address
private

Definition at line 61 of file us_license.h.

QComboBox* US_License::cbb_licensetype
private

Definition at line 94 of file us_license.h.

QComboBox* US_License::cbb_os1
private

Definition at line 92 of file us_license.h.

QComboBox* US_License::cbb_state
private

Definition at line 91 of file us_license.h.

QComboBox* US_License::cbb_version
private

Definition at line 93 of file us_license.h.

QString US_License::city
private

Definition at line 62 of file us_license.h.

QString US_License::email
private

Definition at line 66 of file us_license.h.

QString US_License::expiration
private

Definition at line 72 of file us_license.h.

QString US_License::firstname
private

Definition at line 58 of file us_license.h.

QString US_License::institution
private

Definition at line 60 of file us_license.h.

QString US_License::lastname
private

Definition at line 59 of file us_license.h.

QLabel* US_License::lbl_expiration
private

Definition at line 88 of file us_license.h.

QLabel* US_License::lbl_platform
private

Definition at line 87 of file us_license.h.

QLabel* US_License::lbl_valid
private

Definition at line 89 of file us_license.h.

QLabel* US_License::lbl_version
private

Definition at line 86 of file us_license.h.

QLineEdit* US_License::le_address
private

Definition at line 77 of file us_license.h.

QLineEdit* US_License::le_city
private

Definition at line 78 of file us_license.h.

QLineEdit* US_License::le_email
private

Definition at line 81 of file us_license.h.

QLineEdit* US_License::le_expiration
private

Definition at line 83 of file us_license.h.

QLineEdit* US_License::le_firstname
private

Definition at line 74 of file us_license.h.

QLineEdit* US_License::le_institution
private

Definition at line 76 of file us_license.h.

QLineEdit* US_License::le_lastname
private

Definition at line 75 of file us_license.h.

QLineEdit* US_License::le_phone
private

Definition at line 80 of file us_license.h.

QLineEdit* US_License::le_platform
private

Definition at line 82 of file us_license.h.

QLineEdit* US_License::le_registration
private

Definition at line 84 of file us_license.h.

QLineEdit* US_License::le_zip
private

Definition at line 79 of file us_license.h.

QString US_License::licensetype
private

Definition at line 70 of file us_license.h.

US_Help US_License::online_help
private

Definition at line 96 of file us_license.h.

QString US_License::os
private

Definition at line 67 of file us_license.h.

QPushButton* US_License::pb_cancel
private

Definition at line 48 of file us_license.h.

QPushButton* US_License::pb_help
private

Definition at line 53 of file us_license.h.

QPushButton* US_License::pb_import
private

Definition at line 56 of file us_license.h.

QPushButton* US_License::pb_load
private

Definition at line 54 of file us_license.h.

QPushButton* US_License::pb_request
private

Definition at line 55 of file us_license.h.

QPushButton* US_License::pb_save
private

Definition at line 52 of file us_license.h.

QPushButton* US_License::pb_update
private

Definition at line 101 of file us_license.h.

QString US_License::phone
private

Definition at line 65 of file us_license.h.

QString US_License::platform
private

Definition at line 68 of file us_license.h.

QString US_License::state
private

Definition at line 63 of file us_license.h.

QStringList US_License::states
private

Definition at line 98 of file us_license.h.

QStringList US_License::types
private

Definition at line 99 of file us_license.h.

bool US_License::updating_email
private

Definition at line 100 of file us_license.h.

QString US_License::validation
private

Definition at line 71 of file us_license.h.

QString US_License::version
private

Definition at line 69 of file us_license.h.

QString US_License::zip
private

Definition at line 64 of file us_license.h.


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