#include "us_rotor_gui.h"
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_Controls * | disk_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... | |
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.
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.
signal_wanted | A boolean value indicating whether the caller wants a signal to be emitted |
select_db_disk | Indicates whether the default search is on the local disk or in the DB |
rotorIn | A reference to a structure that contains the currently selected rotor information |
calibrationIn | A 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.
calibration | The calibration structure passed in from the calibration program |
new_calibration | A boolean value indicating whether the caller is US_RotorCalibration with new calibration data or not |
signal_wanted | A boolean value indicating whether the caller wants a signal to be emitted |
select_db_disk | Indicates whether the default search is on the local disk or in the DB |
Definition at line 11 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 879 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 336 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 889 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 959 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 1045 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 408 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 675 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 482 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 321 of file us_rotor_gui.cpp.
|
inlineprivateslot |
Definition at line 142 of file us_rotor_gui.h.
|
privateslot |
Definition at line 899 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 977 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 354 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 626 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 532 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 445 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 804 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 275 of file us_rotor_gui.cpp.
|
signal |
Signal to pass to the calling program if the operation was canceled.
|
signal |
Signal to pass the accepted rotor calibration to the calling program.
Rotor | the rotor structure selected by the user |
RotorCalibration | the rotor calibration structure selected by the user |
|
privateslot |
Definition at line 742 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 598 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 414 of file us_rotor_gui.cpp.
|
private |
Definition at line 108 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 860 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 349 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 732 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 722 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 737 of file us_rotor_gui.cpp.
|
privateslot |
Definition at line 727 of file us_rotor_gui.cpp.
|
signal |
A signal to indicate that the current disk/db selection has changed. /param DB True if DB is the new selection
|
privateslot |
Definition at line 663 of file us_rotor_gui.cpp.
US_Rotor::Status US_RotorGui::calibrationStatus |
Most recent calibration status.
Definition at line 66 of file us_rotor_gui.h.
|
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.
|
private |
Radiobuttons for disk/db choice.
Definition at line 112 of file us_rotor_gui.h.
|
private |
Definition at line 88 of file us_rotor_gui.h.
|
private |
Definition at line 110 of file us_rotor_gui.h.
|
private |
Definition at line 103 of file us_rotor_gui.h.
|
private |
Definition at line 104 of file us_rotor_gui.h.
|
private |
Definition at line 101 of file us_rotor_gui.h.
|
private |
Definition at line 105 of file us_rotor_gui.h.
|
private |
Definition at line 102 of file us_rotor_gui.h.
|
private |
Definition at line 108 of file us_rotor_gui.h.
|
private |
Definition at line 107 of file us_rotor_gui.h.
|
private |
Definition at line 93 of file us_rotor_gui.h.
|
private |
Definition at line 95 of file us_rotor_gui.h.
|
private |
Definition at line 94 of file us_rotor_gui.h.
|
private |
Definition at line 98 of file us_rotor_gui.h.
|
private |
Definition at line 96 of file us_rotor_gui.h.
|
private |
Definition at line 91 of file us_rotor_gui.h.
|
private |
Definition at line 92 of file us_rotor_gui.h.
|
private |
Definition at line 97 of file us_rotor_gui.h.
|
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.
|
private |
True if we're saving the calibration profile.
Definition at line 117 of file us_rotor_gui.h.
|
private |
Definition at line 89 of file us_rotor_gui.h.
|
private |
True if the calling program wants a signal.
Definition at line 116 of file us_rotor_gui.h.