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

#include "us_experiment_gui_ra.h"

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

Signals

void updateExpInfoSelection (US_ExperimentRa &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_ExperimentGuiRa (bool=false, const US_ExperimentRa &=US_ExperimentRa(), int=US_Disk_DB_Controls::Default)
 Generic constructor for the US_ExperimentGuiRa class. To instantiate the class a calling function must provide a structure to contain all the data. More...
 
 ~US_ExperimentGuiRa ()
 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_ExperimentRa 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_SelectBoxRacb_instrument
 
US_SelectBoxRacb_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_ra.h.

Constructor & Destructor Documentation

US_ExperimentGuiRa::US_ExperimentGuiRa ( bool  signal_wanted = false,
const US_ExperimentRa dataIn = US_ExperimentRa(),
int  select_db_disk = US_Disk_DB_Controls::Default 
)

Generic constructor for the US_ExperimentGuiRa 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 14 of file us_experiment_gui_ra.cpp.

US_ExperimentGuiRa::~US_ExperimentGuiRa ( )
inline

A null destructor.

Definition at line 42 of file us_experiment_gui_ra.h.

Member Function Documentation

void US_ExperimentGuiRa::accept ( void  )
privateslot

Definition at line 720 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::assignInvestigator ( int  invID)
privateslot

Definition at line 423 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::assignProject ( US_Project project)
privateslot

Definition at line 509 of file us_experiment_gui_ra.cpp.

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

Definition at line 693 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::cancel ( void  )
privateslot

Definition at line 769 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::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_ExperimentGuiRa::cancelProject ( void  )
privateslot

Definition at line 516 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::cancelRotor ( void  )
privateslot

Definition at line 715 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::change_instrument ( int  )
privateslot

Definition at line 645 of file us_experiment_gui_ra.cpp.

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

Definition at line 777 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::getInvestigatorInfo ( void  )
privateslot

Definition at line 431 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::help ( void  )
inlineprivateslot

Definition at line 122 of file us_experiment_gui_ra.h.

bool US_ExperimentGuiRa::load ( void  )
privateslot

Definition at line 296 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::reload ( void  )
privateslot

Definition at line 367 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::reset ( void  )
privateslot

Definition at line 214 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::saveLabel ( void  )
privateslot

Definition at line 522 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::selectInvestigator ( void  )
privateslot

Definition at line 412 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::selectProject ( void  )
privateslot

Definition at line 480 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::selectRotor ( void  )
privateslot

Definition at line 661 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::setInstrumentList ( void  )
privateslot

Definition at line 552 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::setOperatorList ( void  )
privateslot

Definition at line 592 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::source_changed ( bool  db)
privateslot

Definition at line 454 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::syncHardware ( void  )
privateslot

Definition at line 408 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::update_disk_db ( bool  db)
privateslot

Definition at line 472 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::updateExpInfoSelection ( US_ExperimentRa 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_ExperimentGuiRa::us_expTypeComboBox ( void  )
privateslot

Definition at line 534 of file us_experiment_gui_ra.cpp.

void US_ExperimentGuiRa::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_ExperimentGuiRa::cb_expType
private

Definition at line 79 of file us_experiment_gui_ra.h.

US_SelectBoxRa* US_ExperimentGuiRa::cb_instrument
private

Definition at line 81 of file us_experiment_gui_ra.h.

US_SelectBoxRa* US_ExperimentGuiRa::cb_operator
private

Definition at line 82 of file us_experiment_gui_ra.h.

int US_ExperimentGuiRa::currentInstrument
private

Definition at line 70 of file us_experiment_gui_ra.h.

int US_ExperimentGuiRa::currentLab
private

Definition at line 69 of file us_experiment_gui_ra.h.

US_Disk_DB_Controls* US_ExperimentGuiRa::disk_controls
private

Radiobuttons for disk/db choice.

Definition at line 74 of file us_experiment_gui_ra.h.

QStringList US_ExperimentGuiRa::experimentTypes
private

Definition at line 78 of file us_experiment_gui_ra.h.

US_ExperimentRa US_ExperimentGuiRa::expInfo
private

Definition at line 67 of file us_experiment_gui_ra.h.

bool US_ExperimentGuiRa::lab_changed
private

Definition at line 71 of file us_experiment_gui_ra.h.

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

Definition at line 68 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_investigator
private

Definition at line 84 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_label
private

Definition at line 88 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_project
private

Definition at line 86 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_rotorDesc
private

Definition at line 89 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_runID
private

Definition at line 85 of file us_experiment_gui_ra.h.

QLineEdit* US_ExperimentGuiRa::le_runTemp
private

Definition at line 87 of file us_experiment_gui_ra.h.

QListWidget* US_ExperimentGuiRa::lw_rotorSpeeds
private

Definition at line 92 of file us_experiment_gui_ra.h.

QPushButton* US_ExperimentGuiRa::pb_accept
private

Definition at line 96 of file us_experiment_gui_ra.h.

QPushButton* US_ExperimentGuiRa::pb_project
private

Definition at line 94 of file us_experiment_gui_ra.h.

QPushButton* US_ExperimentGuiRa::pb_rotor
private

Definition at line 95 of file us_experiment_gui_ra.h.

US_Help US_ExperimentGuiRa::showHelp
private

Definition at line 76 of file us_experiment_gui_ra.h.

bool US_ExperimentGuiRa::signal
private

Definition at line 72 of file us_experiment_gui_ra.h.

QTextEdit* US_ExperimentGuiRa::te_comment
private

Definition at line 90 of file us_experiment_gui_ra.h.


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