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

#include "us_experiment_gui.h"

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

Signals

void updateExpInfoSelection (US_Experiment &expInfo)
 The signal that is emitted when the user chooses to accept the current choices. This information is passed back to the calling function. More...
 
void cancelExpInfoSelection (void)
 The signal that is emitted when the user chooses to cancel the current selection. In this case all previously-entered experiment parameter associations are erased. More...
 
void use_db (bool DB)
 

Public Member Functions

 US_ExperimentGui (bool=false, const US_Experiment &=US_Experiment(), int=US_Disk_DB_Controls::Default)
 Generic constructor for the US_ExperimentGui class. To instantiate the class a calling function must provide a structure to contain all the data. More...
 
 ~US_ExperimentGui ()
 A null destructor. 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 reset (void)
 
bool load (void)
 
void reload (void)
 
void syncHardware (void)
 
void selectInvestigator (void)
 
void assignInvestigator (int)
 
void getInvestigatorInfo (void)
 
void source_changed (bool)
 
void update_disk_db (bool)
 
void selectProject (void)
 
void assignProject (US_Project &)
 
void cancelProject (void)
 
void saveLabel (void)
 
QComboBox * us_expTypeComboBox (void)
 
void setInstrumentList (void)
 
void setOperatorList (void)
 
void change_instrument (int)
 
void selectRotor (void)
 
void assignRotor (US_Rotor::Rotor &, US_Rotor::RotorCalibration &)
 
void cancelRotor (void)
 
void accept (void)
 
void cancel (void)
 
void connect_error (const QString &)
 
void help (void)
 

Private Attributes

US_Experiment expInfo
 
QVector< US_Rotor::LablabList
 
int currentLab
 
int currentInstrument
 
bool lab_changed
 
bool signal
 
US_Disk_DB_Controlsdisk_controls
 Radiobuttons for disk/db choice. More...
 
US_Help showHelp
 
QStringList experimentTypes
 
QComboBox * cb_expType
 
US_SelectBoxcb_instrument
 
US_SelectBoxcb_operator
 
QLineEdit * le_investigator
 
QLineEdit * le_runID
 
QLineEdit * le_project
 
QLineEdit * le_runTemp
 
QLineEdit * le_label
 
QLineEdit * le_rotorDesc
 
QTextEdit * te_comment
 
QListWidget * lw_rotorSpeeds
 
QPushButton * pb_project
 
QPushButton * pb_rotor
 
QPushButton * pb_accept
 

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 the ability to associate raw data with the relevant experiment parameters, such as the lab, instrument, and rotor on which the experiment was run.

Definition at line 21 of file us_experiment_gui.h.

Constructor & Destructor Documentation

US_ExperimentGui::US_ExperimentGui ( bool  signal_wanted = false,
const US_Experiment dataIn = US_Experiment(),
int  select_db_disk = US_Disk_DB_Controls::Default 
)

Generic constructor for the US_ExperimentGui class. To instantiate the class a calling function must provide a structure to contain all the data.

Parameters
signal_wantedA boolean value indicating whether the caller wants a signal to be emitted
dataInA reference to a structure that contains previously selected experiment data, if any.
select_db_diskIndicates whether the default search is on the local disk or in the DB

Definition at line 15 of file us_experiment_gui.cpp.

US_ExperimentGui::~US_ExperimentGui ( )
inline

A null destructor.

Definition at line 42 of file us_experiment_gui.h.

Member Function Documentation

void US_ExperimentGui::accept ( void  )
privateslot

Definition at line 725 of file us_experiment_gui.cpp.

void US_ExperimentGui::assignInvestigator ( int  invID)
privateslot

Definition at line 428 of file us_experiment_gui.cpp.

void US_ExperimentGui::assignProject ( US_Project project)
privateslot

Definition at line 514 of file us_experiment_gui.cpp.

void US_ExperimentGui::assignRotor ( US_Rotor::Rotor rotor,
US_Rotor::RotorCalibration calibration 
)
privateslot

Definition at line 698 of file us_experiment_gui.cpp.

void US_ExperimentGui::cancel ( void  )
privateslot

Definition at line 774 of file us_experiment_gui.cpp.

void US_ExperimentGui::cancelExpInfoSelection ( void  )
signal

The signal that is emitted when the user chooses to cancel the current selection. In this case all previously-entered experiment parameter associations are erased.

void US_ExperimentGui::cancelProject ( void  )
privateslot

Definition at line 521 of file us_experiment_gui.cpp.

void US_ExperimentGui::cancelRotor ( void  )
privateslot

Definition at line 720 of file us_experiment_gui.cpp.

void US_ExperimentGui::change_instrument ( int  )
privateslot

Definition at line 650 of file us_experiment_gui.cpp.

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

Definition at line 782 of file us_experiment_gui.cpp.

void US_ExperimentGui::getInvestigatorInfo ( void  )
privateslot

Definition at line 436 of file us_experiment_gui.cpp.

void US_ExperimentGui::help ( void  )
inlineprivateslot

Definition at line 122 of file us_experiment_gui.h.

bool US_ExperimentGui::load ( void  )
privateslot

Definition at line 301 of file us_experiment_gui.cpp.

void US_ExperimentGui::reload ( void  )
privateslot

Definition at line 372 of file us_experiment_gui.cpp.

void US_ExperimentGui::reset ( void  )
privateslot

Definition at line 219 of file us_experiment_gui.cpp.

void US_ExperimentGui::saveLabel ( void  )
privateslot

Definition at line 527 of file us_experiment_gui.cpp.

void US_ExperimentGui::selectInvestigator ( void  )
privateslot

Definition at line 417 of file us_experiment_gui.cpp.

void US_ExperimentGui::selectProject ( void  )
privateslot

Definition at line 485 of file us_experiment_gui.cpp.

void US_ExperimentGui::selectRotor ( void  )
privateslot

Definition at line 666 of file us_experiment_gui.cpp.

void US_ExperimentGui::setInstrumentList ( void  )
privateslot

Definition at line 557 of file us_experiment_gui.cpp.

void US_ExperimentGui::setOperatorList ( void  )
privateslot

Definition at line 597 of file us_experiment_gui.cpp.

void US_ExperimentGui::source_changed ( bool  db)
privateslot

Definition at line 459 of file us_experiment_gui.cpp.

void US_ExperimentGui::syncHardware ( void  )
privateslot

Definition at line 413 of file us_experiment_gui.cpp.

void US_ExperimentGui::update_disk_db ( bool  db)
privateslot

Definition at line 477 of file us_experiment_gui.cpp.

void US_ExperimentGui::updateExpInfoSelection ( US_Experiment expInfo)
signal

The signal that is emitted when the user chooses to accept the current choices. This information is passed back to the calling function.

Parameters
expInfoA reference to a structure that contains all the current experiment data
QComboBox * US_ExperimentGui::us_expTypeComboBox ( void  )
privateslot

Definition at line 539 of file us_experiment_gui.cpp.

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

QComboBox* US_ExperimentGui::cb_expType
private

Definition at line 79 of file us_experiment_gui.h.

US_SelectBox* US_ExperimentGui::cb_instrument
private

Definition at line 81 of file us_experiment_gui.h.

US_SelectBox* US_ExperimentGui::cb_operator
private

Definition at line 82 of file us_experiment_gui.h.

int US_ExperimentGui::currentInstrument
private

Definition at line 70 of file us_experiment_gui.h.

int US_ExperimentGui::currentLab
private

Definition at line 69 of file us_experiment_gui.h.

US_Disk_DB_Controls* US_ExperimentGui::disk_controls
private

Radiobuttons for disk/db choice.

Definition at line 74 of file us_experiment_gui.h.

QStringList US_ExperimentGui::experimentTypes
private

Definition at line 78 of file us_experiment_gui.h.

US_Experiment US_ExperimentGui::expInfo
private

Definition at line 67 of file us_experiment_gui.h.

bool US_ExperimentGui::lab_changed
private

Definition at line 71 of file us_experiment_gui.h.

QVector< US_Rotor::Lab > US_ExperimentGui::labList
private

Definition at line 68 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_investigator
private

Definition at line 84 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_label
private

Definition at line 88 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_project
private

Definition at line 86 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_rotorDesc
private

Definition at line 89 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_runID
private

Definition at line 85 of file us_experiment_gui.h.

QLineEdit* US_ExperimentGui::le_runTemp
private

Definition at line 87 of file us_experiment_gui.h.

QListWidget* US_ExperimentGui::lw_rotorSpeeds
private

Definition at line 92 of file us_experiment_gui.h.

QPushButton* US_ExperimentGui::pb_accept
private

Definition at line 96 of file us_experiment_gui.h.

QPushButton* US_ExperimentGui::pb_project
private

Definition at line 94 of file us_experiment_gui.h.

QPushButton* US_ExperimentGui::pb_rotor
private

Definition at line 95 of file us_experiment_gui.h.

US_Help US_ExperimentGui::showHelp
private

Definition at line 76 of file us_experiment_gui.h.

bool US_ExperimentGui::signal
private

Definition at line 72 of file us_experiment_gui.h.

QTextEdit* US_ExperimentGui::te_comment
private

Definition at line 90 of file us_experiment_gui.h.


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