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

A class to allow the user to set, modify or delete parameters for database access. More...

#include "us_database.h"

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

Public Member Functions

 US_Database (QWidget *w=0, Qt::WindowFlags flags=0)
 Construct the window to manage database parameters. 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 select_db (QListWidgetItem *)
 
void check_add (void)
 
void reset (void)
 
void save_default (void)
 
void deleteDB (void)
 
bool test_connect (void)
 
void update_inv (void)
 

Private Member Functions

void update_lw (const QString &=0)
 

Private Attributes

QList< QStringList > dblist
 
QString uuid
 
QPushButton * pb_add
 
QPushButton * pb_delete
 
QPushButton * pb_save
 
QPushButton * pb_reset
 
QPushButton * pb_testConnect
 
QLineEdit * le_description
 
QLineEdit * le_username
 
QLineEdit * le_password
 
QLineEdit * le_dbname
 
QLineEdit * le_host
 
QLineEdit * le_investigator_email
 
QLineEdit * le_investigator_pw
 
QListWidget * lw_entries
 

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

A class to allow the user to set, modify or delete parameters for database access.

Definition at line 12 of file us_database.h.

Constructor & Destructor Documentation

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

Construct the window to manage database parameters.

Definition at line 10 of file us_database.cpp.

Member Function Documentation

void US_Database::check_add ( void  )
privateslot

Definition at line 238 of file us_database.cpp.

void US_Database::deleteDB ( void  )
privateslot

Definition at line 457 of file us_database.cpp.

void US_Database::help ( void  )
privateslot

Definition at line 413 of file us_database.cpp.

void US_Database::reset ( void  )
privateslot

Definition at line 393 of file us_database.cpp.

void US_Database::save_default ( void  )
privateslot

Definition at line 419 of file us_database.cpp.

void US_Database::select_db ( QListWidgetItem *  entry)
privateslot

Definition at line 158 of file us_database.cpp.

bool US_Database::test_connect ( void  )
privateslot

Definition at line 493 of file us_database.cpp.

void US_Database::update_inv ( void  )
privateslot

Definition at line 210 of file us_database.cpp.

void US_Database::update_lw ( const QString &  current = 0)
private

Definition at line 368 of file us_database.cpp.

Member Data Documentation

QList<QStringList> US_Database::dblist
private

Definition at line 22 of file us_database.h.

QLineEdit* US_Database::le_dbname
private

Definition at line 34 of file us_database.h.

QLineEdit* US_Database::le_description
private

Definition at line 31 of file us_database.h.

QLineEdit* US_Database::le_host
private

Definition at line 35 of file us_database.h.

QLineEdit* US_Database::le_investigator_email
private

Definition at line 36 of file us_database.h.

QLineEdit* US_Database::le_investigator_pw
private

Definition at line 37 of file us_database.h.

QLineEdit* US_Database::le_password
private

Definition at line 33 of file us_database.h.

QLineEdit* US_Database::le_username
private

Definition at line 32 of file us_database.h.

QListWidget* US_Database::lw_entries
private

Definition at line 39 of file us_database.h.

QPushButton* US_Database::pb_add
private

Definition at line 25 of file us_database.h.

QPushButton* US_Database::pb_delete
private

Definition at line 26 of file us_database.h.

QPushButton* US_Database::pb_reset
private

Definition at line 28 of file us_database.h.

QPushButton* US_Database::pb_save
private

Definition at line 27 of file us_database.h.

QPushButton* US_Database::pb_testConnect
private

Definition at line 29 of file us_database.h.

QString US_Database::uuid
private

Definition at line 23 of file us_database.h.


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