An application to manage buffer data.
More...
#include "us_buffer_gui.h"
|
| US_BufferGui (bool=false, const US_Buffer &=US_Buffer(), int=US_Disk_DB_Controls::Default) |
|
| 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) |
|
|
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...
|
|
An application to manage buffer data.
Definition at line 14 of file us_buffer_gui.h.
Main constructor
- Parameters
-
signal_wanted | A flag to specify if one of the signals should be emitted when terminating the dialog |
buf | The default buffer |
select_db_disk | An indicatior of whether to search the disk or DB for the default buffer |
Definition at line 13 of file us_buffer_gui.cpp.
void US_BufferGui::accept_buffer |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::add_component |
( |
void |
| ) |
|
|
privateslot |
Input the value of component selected in lw_ingredients. After 'Return' key was pressed, this function will display the selected component value in lw_buffer and recalculate the density and viscosity.
Definition at line 1073 of file us_buffer_gui.cpp.
void US_BufferGui::assign_investigator |
( |
int |
invID | ) |
|
|
privateslot |
bool US_BufferGui::buffer_in_use |
( |
QString & |
bufferGUID | ) |
|
|
private |
bool US_BufferGui::buffer_path |
( |
QString & |
path | ) |
|
|
private |
void US_BufferGui::check_db |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::connect_error |
( |
const QString & |
error | ) |
|
|
private |
void US_BufferGui::delete_buffer |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::delete_db |
( |
void |
| ) |
|
|
private |
void US_BufferGui::delete_disk |
( |
void |
| ) |
|
|
private |
void US_BufferGui::density |
( |
const QString & |
d | ) |
|
|
privateslot |
void US_BufferGui::help |
( |
void |
| ) |
|
|
inlineprivateslot |
void US_BufferGui::init_buffer |
( |
void |
| ) |
|
|
private |
void US_BufferGui::list_component |
( |
void |
| ) |
|
|
privateslot |
After selection of the buffer component in lw_ingredients, this method will display in lb_selected and wait for a partial concentartion input value.
Definition at line 1144 of file us_buffer_gui.cpp.
void US_BufferGui::new_description |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::query |
( |
void |
| ) |
|
|
privateslot |
Load buffer data and populate listbox. If an investigator is defined, only select the buffer files from the investigator.
Definition at line 507 of file us_buffer_gui.cpp.
void US_BufferGui::read_buffer |
( |
void |
| ) |
|
|
private |
void US_BufferGui::read_db |
( |
void |
| ) |
|
|
private |
void US_BufferGui::read_from_db |
( |
QListWidgetItem * |
item | ) |
|
|
private |
void US_BufferGui::read_from_db |
( |
const QString & |
bufferID | ) |
|
|
private |
void US_BufferGui::read_from_disk |
( |
QListWidgetItem * |
item | ) |
|
|
private |
void US_BufferGui::recalc_density |
( |
void |
| ) |
|
|
private |
Recalculate the density of the buffer based on the information in the template file
Definition at line 1253 of file us_buffer_gui.cpp.
void US_BufferGui::recalc_viscosity |
( |
void |
| ) |
|
|
private |
Recalculate the viscosity of the buffer based on the information in the template file
Definition at line 1285 of file us_buffer_gui.cpp.
void US_BufferGui::remove_component |
( |
QListWidgetItem * |
item | ) |
|
|
privateslot |
When double clicked, the selected item in lw_buffer will be removed and the density and viscosity will be recalculated.
Definition at line 1157 of file us_buffer_gui.cpp.
void US_BufferGui::reset |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::save |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::save_db |
( |
void |
| ) |
|
|
private |
void US_BufferGui::save_disk |
( |
void |
| ) |
|
|
private |
void US_BufferGui::search |
( |
const QString & |
text = QString() | ) |
|
|
privateslot |
void US_BufferGui::sel_investigator |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::select_buffer |
( |
QListWidgetItem * |
item | ) |
|
|
privateslot |
Display the appropriate data when the buffer name in the list widget is selected with a double click.
- Parameters
-
item | The description of the buffer selected. |
Definition at line 695 of file us_buffer_gui.cpp.
void US_BufferGui::source_changed |
( |
bool |
db | ) |
|
|
privateslot |
void US_BufferGui::spectrum |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::synch_components |
( |
void |
| ) |
|
|
privateslot |
bool US_BufferGui::up_to_date |
( |
void |
| ) |
|
|
private |
void US_BufferGui::update |
( |
void |
| ) |
|
|
privateslot |
void US_BufferGui::update_buffer |
( |
void |
| ) |
|
|
private |
void US_BufferGui::update_db |
( |
void |
| ) |
|
|
private |
void US_BufferGui::update_lw_buf |
( |
const QString & |
componentID, |
|
|
double |
conc |
|
) |
| |
|
private |
void US_BufferGui::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_BufferGui::valueBufferID |
( |
const QString |
bufferID | ) |
|
|
signal |
Return the ID of the buffer in the current database. A value of -1 indicates the data was manually input or was returned from the local disk.
- Parameters
-
bufferID | A string value of the returned ID |
void US_BufferGui::valueChanged |
( |
double |
density, |
|
|
double |
viscosity |
|
) |
| |
|
signal |
Return the main values
- Parameters
-
density | of the buffer |
viscosity | of the buffer |
void US_BufferGui::valueChanged |
( |
US_Buffer |
buffer | ) |
|
|
signal |
Return all values associated with the buffer
- Parameters
-
buffer | Return the entire class. |
void US_BufferGui::viscosity |
( |
const QString & |
v | ) |
|
|
privateslot |
bool US_BufferGui::bufferCurrent |
|
private |
QStringList US_BufferGui::bufferIDs |
|
private |
QCheckBox* US_BufferGui::cb_manual |
|
private |
QCheckBox* US_BufferGui::cb_shared |
|
private |
QComboBox* US_BufferGui::cmb_optics |
|
private |
A BufferComponent vector structure for all components in template list (stored in us_home/etc/buffer.xml).
Definition at line 60 of file us_buffer_gui.h.
QStringList US_BufferGui::descriptions |
|
private |
QStringList US_BufferGui::filenames |
|
private |
QPalette US_BufferGui::gray |
|
private |
QStringList US_BufferGui::GUIDs |
|
private |
QLabel* US_BufferGui::lb_selected |
|
private |
QLabel* US_BufferGui::lb_units |
|
private |
QLineEdit* US_BufferGui::le_compressibility |
|
private |
QLineEdit* US_BufferGui::le_concentration |
|
private |
QLineEdit* US_BufferGui::le_density |
|
private |
QLineEdit* US_BufferGui::le_description |
|
private |
QLineEdit* US_BufferGui::le_guid |
|
private |
QLineEdit* US_BufferGui::le_investigator |
|
private |
QLineEdit* US_BufferGui::le_ph |
|
private |
QLineEdit* US_BufferGui::le_search |
|
private |
QLineEdit* US_BufferGui::le_viscosity |
|
private |
QListWidget* US_BufferGui::lw_buffer |
|
private |
QListWidget* US_BufferGui::lw_buffer_db |
|
private |
QListWidget* US_BufferGui::lw_ingredients |
|
private |
bool US_BufferGui::manualUpdate |
|
private |
QPalette US_BufferGui::normal |
|
private |
QPushButton* US_BufferGui::pb_del |
|
private |
QPushButton* US_BufferGui::pb_save |
|
private |
QPushButton* US_BufferGui::pb_spectrum |
|
private |
QPushButton* US_BufferGui::pb_update |
|
private |
int US_BufferGui::personID |
|
private |
bool US_BufferGui::signal |
|
private |
bool US_BufferGui::view_shared |
|
private |
The documentation for this class was generated from the following files: