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

#include "us_abstractrotor_gui.h"

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

Signals

void use_db (bool DB)
 

Public Member Functions

 US_AbstractRotorGui (bool=false, int=US_Disk_DB_Controls::Default, US_Rotor::Rotor *=new US_Rotor::Rotor())
 Generic constructor for the US_AbstractRotorGui class used to add a new rotor. More...
 
- Public Member Functions inherited from US_WidgetsDialog
 US_WidgetsDialog (QWidget *, Qt::WindowFlags)
 
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=0, 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)
 

Private Slots

void setupGui (int)
 
void reset (void)
 
void source_changed (bool)
 
bool loadAbstractRotors (void)
 
void showDetails (int)
 
int getIndex (void)
 
void select (void)
 
void connect_error (const QString &)
 
void help (void)
 

Private Attributes

US_Rotor::RotorcurrentRotor
 
bool signal
 
QPushButton * pb_help
 
QPushButton * pb_reset
 
QPushButton * pb_accept
 
QPushButton * pb_close
 
QRadioButton * rb_db
 
QRadioButton * rb_disk
 
QLineEdit * le_name
 
QLineEdit * le_serialNumber
 
QComboBox * cb_rotors
 
QTextEdit * te_details
 
US_Disk_DB_Controlsdisk_controls
 Radiobuttons for disk/db choice. More...
 
QVector< US_Rotor::AbstractRotorabstractRotorList
 
int currentARIndex
 
US_Help showHelp
 

Additional Inherited Members

- Public Attributes inherited from US_WidgetsDialog
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

This class provides an interface to the Rotor tables of USLIMS and allows the user to add, delete, vide and modify rotors in the database. This class is also used to pick rotors from the database for various Applications that need rotors.

Definition at line 22 of file us_abstractrotor_gui.h.

Constructor & Destructor Documentation

US_AbstractRotorGui::US_AbstractRotorGui ( bool  signal_wanted = false,
int  select_db_disk = US_Disk_DB_Controls::Default,
US_Rotor::Rotor dataIn = new US_Rotor::Rotor() 
)

Generic constructor for the US_AbstractRotorGui class used to add a new rotor.

Parameters
signal_wantedA boolean value indicating whether the caller wants a signal to be emitted
select_db_diskIndicates whether the default search is on the local disk or in the DB
dataInThe Rotor structure that will be added to the database

Definition at line 13 of file us_abstractrotor_gui.cpp.

Member Function Documentation

void US_AbstractRotorGui::connect_error ( const QString &  error)
privateslot

Definition at line 238 of file us_abstractrotor_gui.cpp.

int US_AbstractRotorGui::getIndex ( void  )
privateslot

Definition at line 190 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::help ( void  )
inlineprivateslot

Definition at line 83 of file us_abstractrotor_gui.h.

bool US_AbstractRotorGui::loadAbstractRotors ( void  )
privateslot

Definition at line 137 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::reset ( void  )
privateslot

Definition at line 105 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::select ( void  )
privateslot

Definition at line 215 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::setupGui ( int  select_db_disk)
privateslot

Definition at line 27 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::showDetails ( int  )
privateslot

Definition at line 245 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::source_changed ( bool  db)
privateslot

Definition at line 114 of file us_abstractrotor_gui.cpp.

void US_AbstractRotorGui::use_db ( bool  DB)
signal

A signal to indicate that the current disk/db selection has changed. /param DB True if DB is the new selection

Member Data Documentation

QVector<US_Rotor::AbstractRotor> US_AbstractRotorGui::abstractRotorList
private

Definition at line 68 of file us_abstractrotor_gui.h.

QComboBox* US_AbstractRotorGui::cb_rotors
private

Definition at line 62 of file us_abstractrotor_gui.h.

int US_AbstractRotorGui::currentARIndex
private

Definition at line 69 of file us_abstractrotor_gui.h.

US_Rotor::Rotor* US_AbstractRotorGui::currentRotor
private

Definition at line 48 of file us_abstractrotor_gui.h.

US_Disk_DB_Controls* US_AbstractRotorGui::disk_controls
private

Radiobuttons for disk/db choice.

Definition at line 66 of file us_abstractrotor_gui.h.

QLineEdit* US_AbstractRotorGui::le_name
private

Definition at line 59 of file us_abstractrotor_gui.h.

QLineEdit* US_AbstractRotorGui::le_serialNumber
private

Definition at line 60 of file us_abstractrotor_gui.h.

QPushButton* US_AbstractRotorGui::pb_accept
private

Definition at line 53 of file us_abstractrotor_gui.h.

QPushButton* US_AbstractRotorGui::pb_close
private

Definition at line 54 of file us_abstractrotor_gui.h.

QPushButton* US_AbstractRotorGui::pb_help
private

Definition at line 51 of file us_abstractrotor_gui.h.

QPushButton* US_AbstractRotorGui::pb_reset
private

Definition at line 52 of file us_abstractrotor_gui.h.

QRadioButton* US_AbstractRotorGui::rb_db
private

Definition at line 56 of file us_abstractrotor_gui.h.

QRadioButton* US_AbstractRotorGui::rb_disk
private

Definition at line 57 of file us_abstractrotor_gui.h.

US_Help US_AbstractRotorGui::showHelp
private

Definition at line 71 of file us_abstractrotor_gui.h.

bool US_AbstractRotorGui::signal
private

Definition at line 49 of file us_abstractrotor_gui.h.

QTextEdit* US_AbstractRotorGui::te_details
private

Definition at line 64 of file us_abstractrotor_gui.h.


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