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

#include "us_rotor_gui.h"

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

Signals

void RotorCalibrationSelected (US_Rotor::Rotor &Rotor, US_Rotor::RotorCalibration &RotorCalibration)
 Signal to pass the accepted rotor calibration to the calling program. More...
 
void RotorCalibrationCanceled (void)
 Signal to pass to the calling program if the operation was canceled. More...
 
void use_db (bool DB)
 

Public Member Functions

 US_RotorGui (bool=false, int=US_Disk_DB_Controls::Default, const US_Rotor::Rotor &=US_Rotor::Rotor(), const US_Rotor::RotorCalibration &=US_Rotor::RotorCalibration())
 Overloaded constructor for the US_RotorGui class. This one is used when passing rotor and rotor calibration information into the class. More...
 
 US_RotorGui (US_Rotor::RotorCalibration &, bool=false, bool=false, int=US_Disk_DB_Controls::Default)
 Overloaded constructor for the US_RotorGui class. In this case, it expects to be called from US_RotorCalibration. 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)
 

Public Attributes

US_Rotor::Status rotorStatus
 Most recent rotor status. More...
 
US_Rotor::Status calibrationStatus
 Most recent calibration status. More...
 
US_Rotor::Rotor currentRotor
 Current rotor structure. More...
 
US_Rotor::RotorCalibration currentCalibration
 Current calibration structure. More...
 
- 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...
 

Private Slots

US_Rotor::Status readCalibration (int, int)
 
US_Rotor::Status readRotor (int, int)
 
void source_changed (bool db)
 
bool loadRotors (const int)
 
void addRotor (void)
 
void update_disk_db (bool db)
 
void selectRotor (QListWidgetItem *)
 
void deleteRotor (void)
 
bool readCalibrationProfiles (int)
 
void selectCalibration (QListWidgetItem *)
 
void viewReport (void)
 
void deleteCalibration (void)
 
void updateName (const QString &)
 
void updateSerialNumber (const QString &)
 
void updateLabel (const QString &)
 
void updateOmega2t (const QString &)
 
void saveCalibration (void)
 
void replaceDummyCalibration (void)
 
void help (void)
 
void reset (void)
 
void accept (void)
 
void cancel (void)
 
bool load (void)
 
void changeLab (int)
 
void connect_error (const QString &)
 
int getIndex (void)
 
void db_error (const QString &)
 
void newRotor (void)
 

Private Member Functions

void setupGui (int)
 

Private Attributes

int labID
 
US_Help showHelp
 
QPushButton * pb_help
 
QPushButton * pb_reset
 
QPushButton * pb_accept
 
QPushButton * pb_cancel
 
QPushButton * pb_addRotor
 
QPushButton * pb_deleteRotor
 
QPushButton * pb_saveCalibration
 
QPushButton * pb_deleteCalibration
 
QPushButton * pb_viewReport
 
QLineEdit * le_name
 
QLineEdit * le_serialNumber
 
QLineEdit * le_coefficient1
 
QLineEdit * le_coefficient2
 
QLineEdit * le_omega2t
 
QListWidget * lw_rotors
 
QListWidget * lw_calibrations
 
QLineEdit * le_calibrationLabel
 
US_Disk_DB_Controlsdisk_controls
 Radiobuttons for disk/db choice. More...
 
QComboBox * cb_lab
 
bool signal
 True if the calling program wants a signal. More...
 
bool savingCalibration
 True if we're saving the calibration profile. 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 26 of file us_rotor_gui.h.

Constructor & Destructor Documentation

US_RotorGui::US_RotorGui ( bool  signal_wanted = false,
int  select_db_disk = US_Disk_DB_Controls::Default,
const US_Rotor::Rotor rotorIn = US_Rotor::Rotor(),
const US_Rotor::RotorCalibration calibrationIn = US_Rotor::RotorCalibration() 
)

Overloaded constructor for the US_RotorGui class. This one is used when passing rotor and rotor calibration information into the class.

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
rotorInA reference to a structure that contains the currently selected rotor information
calibrationInA reference to a structure that contains the currently selected calibration information

Definition at line 64 of file us_rotor_gui.cpp.

US_RotorGui::US_RotorGui ( US_Rotor::RotorCalibration calibration,
bool  new_calibration = false,
bool  signal_wanted = false,
int  select_db_disk = US_Disk_DB_Controls::Default 
)

Overloaded constructor for the US_RotorGui class. In this case, it expects to be called from US_RotorCalibration.

Parameters
calibrationThe calibration structure passed in from the calibration program
new_calibrationA boolean value indicating whether the caller is US_RotorCalibration with new calibration data or not
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

Definition at line 11 of file us_rotor_gui.cpp.

Member Function Documentation

void US_RotorGui::accept ( void  )
privateslot

Definition at line 879 of file us_rotor_gui.cpp.

void US_RotorGui::addRotor ( void  )
privateslot

Definition at line 336 of file us_rotor_gui.cpp.

void US_RotorGui::cancel ( void  )
privateslot

Definition at line 889 of file us_rotor_gui.cpp.

void US_RotorGui::changeLab ( int  )
privateslot

Definition at line 959 of file us_rotor_gui.cpp.

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

Definition at line 1045 of file us_rotor_gui.cpp.

void US_RotorGui::db_error ( const QString &  error)
privateslot

Definition at line 408 of file us_rotor_gui.cpp.

void US_RotorGui::deleteCalibration ( void  )
privateslot

Definition at line 675 of file us_rotor_gui.cpp.

void US_RotorGui::deleteRotor ( void  )
privateslot

Definition at line 482 of file us_rotor_gui.cpp.

int US_RotorGui::getIndex ( void  )
privateslot

Definition at line 321 of file us_rotor_gui.cpp.

void US_RotorGui::help ( void  )
inlineprivateslot

Definition at line 142 of file us_rotor_gui.h.

bool US_RotorGui::load ( void  )
privateslot

Definition at line 899 of file us_rotor_gui.cpp.

bool US_RotorGui::loadRotors ( const int  labID)
privateslot

Definition at line 977 of file us_rotor_gui.cpp.

void US_RotorGui::newRotor ( void  )
privateslot

Definition at line 354 of file us_rotor_gui.cpp.

US_Rotor::Status US_RotorGui::readCalibration ( int  disk_db,
int  calibrationID 
)
privateslot

Definition at line 626 of file us_rotor_gui.cpp.

bool US_RotorGui::readCalibrationProfiles ( int  rotorID)
privateslot

Definition at line 532 of file us_rotor_gui.cpp.

US_Rotor::Status US_RotorGui::readRotor ( int  disk_db,
int  rotorID 
)
privateslot

Definition at line 445 of file us_rotor_gui.cpp.

void US_RotorGui::replaceDummyCalibration ( void  )
privateslot

Definition at line 804 of file us_rotor_gui.cpp.

void US_RotorGui::reset ( void  )
privateslot

Definition at line 275 of file us_rotor_gui.cpp.

void US_RotorGui::RotorCalibrationCanceled ( void  )
signal

Signal to pass to the calling program if the operation was canceled.

void US_RotorGui::RotorCalibrationSelected ( US_Rotor::Rotor Rotor,
US_Rotor::RotorCalibration RotorCalibration 
)
signal

Signal to pass the accepted rotor calibration to the calling program.

Parameters
Rotorthe rotor structure selected by the user
RotorCalibrationthe rotor calibration structure selected by the user
void US_RotorGui::saveCalibration ( void  )
privateslot

Definition at line 742 of file us_rotor_gui.cpp.

void US_RotorGui::selectCalibration ( QListWidgetItem *  item)
privateslot

Definition at line 598 of file us_rotor_gui.cpp.

void US_RotorGui::selectRotor ( QListWidgetItem *  item)
privateslot

Definition at line 414 of file us_rotor_gui.cpp.

void US_RotorGui::setupGui ( int  select_db_disk)
private

Definition at line 108 of file us_rotor_gui.cpp.

void US_RotorGui::source_changed ( bool  db)
privateslot

Definition at line 860 of file us_rotor_gui.cpp.

void US_RotorGui::update_disk_db ( bool  db)
privateslot

Definition at line 349 of file us_rotor_gui.cpp.

void US_RotorGui::updateLabel ( const QString &  label)
privateslot

Definition at line 732 of file us_rotor_gui.cpp.

void US_RotorGui::updateName ( const QString &  name)
privateslot

Definition at line 722 of file us_rotor_gui.cpp.

void US_RotorGui::updateOmega2t ( const QString &  omega2t)
privateslot

Definition at line 737 of file us_rotor_gui.cpp.

void US_RotorGui::updateSerialNumber ( const QString &  number)
privateslot

Definition at line 727 of file us_rotor_gui.cpp.

void US_RotorGui::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

void US_RotorGui::viewReport ( void  )
privateslot

Definition at line 663 of file us_rotor_gui.cpp.

Member Data Documentation

US_Rotor::Status US_RotorGui::calibrationStatus

Most recent calibration status.

Definition at line 66 of file us_rotor_gui.h.

QComboBox* US_RotorGui::cb_lab
private

Definition at line 114 of file us_rotor_gui.h.

US_Rotor::RotorCalibration US_RotorGui::currentCalibration

Current calibration structure.

Definition at line 68 of file us_rotor_gui.h.

US_Rotor::Rotor US_RotorGui::currentRotor

Current rotor structure.

Definition at line 67 of file us_rotor_gui.h.

US_Disk_DB_Controls* US_RotorGui::disk_controls
private

Radiobuttons for disk/db choice.

Definition at line 112 of file us_rotor_gui.h.

int US_RotorGui::labID
private

Definition at line 88 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_calibrationLabel
private

Definition at line 110 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_coefficient1
private

Definition at line 103 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_coefficient2
private

Definition at line 104 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_name
private

Definition at line 101 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_omega2t
private

Definition at line 105 of file us_rotor_gui.h.

QLineEdit* US_RotorGui::le_serialNumber
private

Definition at line 102 of file us_rotor_gui.h.

QListWidget* US_RotorGui::lw_calibrations
private

Definition at line 108 of file us_rotor_gui.h.

QListWidget* US_RotorGui::lw_rotors
private

Definition at line 107 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_accept
private

Definition at line 93 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_addRotor
private

Definition at line 95 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_cancel
private

Definition at line 94 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_deleteCalibration
private

Definition at line 98 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_deleteRotor
private

Definition at line 96 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_help
private

Definition at line 91 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_reset
private

Definition at line 92 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_saveCalibration
private

Definition at line 97 of file us_rotor_gui.h.

QPushButton* US_RotorGui::pb_viewReport
private

Definition at line 99 of file us_rotor_gui.h.

US_Rotor::Status US_RotorGui::rotorStatus

Most recent rotor status.

Definition at line 65 of file us_rotor_gui.h.

bool US_RotorGui::savingCalibration
private

True if we're saving the calibration profile.

Definition at line 117 of file us_rotor_gui.h.

US_Help US_RotorGui::showHelp
private

Definition at line 89 of file us_rotor_gui.h.

bool US_RotorGui::signal
private

True if the calling program wants a signal.

Definition at line 116 of file us_rotor_gui.h.


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