#include "us_project_gui.h"
Signals | |
void | newProject (void) |
Emitted when the new project button is clicked. More... | |
void | load (void) |
Emitted when the Query Projects button is clicked. More... | |
void | selectProject (QListWidgetItem *item) |
Emitted when the user selects a project. More... | |
void | saveDescription (const QString &) |
Emitted when the description changes. More... | |
void | save (void) |
Emitted when the user saves the project. More... | |
void | deleteProject (void) |
Emitted when the user deletes the project. More... | |
void | source_changed (bool db) |
Emitted when the user changes data source (disk/db) More... | |
Public Member Functions | |
US_ProjectGuiGeneral (int *, int) | |
Generic constructor for the US_ProjectGuiGeneral class. To instantiate the class a calling function must provide the ID of the investigator. More... | |
void | reset (void) |
Resets all the controls on the general tab. More... | |
void | setGUID (QString) |
Sets the GUID line edit value. More... | |
void | setDesc (QString) |
Sets the Description textbox value. More... | |
QString | getDesc (void) |
Returns the description from the form. More... | |
Public Member Functions inherited from US_Widgets | |
US_Widgets (bool=true, QWidget *p=0, Qt::WindowFlags f=0) | |
~US_Widgets (void) | |
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=-1, 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) |
void | write_plot (const QString &, const QwtPlot *) |
Write a plot file (PNG or SVG+PNG) from a plot. More... | |
int | clean_etc_dir (bool=false) |
Clean install and work ./etc directories. More... | |
Public Attributes | |
QLineEdit * | le_investigator |
Stores the investigator information. More... | |
QLineEdit * | le_projectDesc |
A description of the project. More... | |
QLineEdit * | le_guid |
The unique GUID of the project. More... | |
int * | investigatorID |
Stores the investiator ID locally. More... | |
QListWidget * | lw_projects |
Lists the projects retrieved. More... | |
QPushButton * | pb_query |
The query projects button. More... | |
QPushButton * | pb_save |
The save projects button. More... | |
QPushButton * | pb_newProject |
The new project button. More... | |
QPushButton * | pb_del |
The delete project button. More... | |
QPushButton * | pb_resetAll |
Resets everything on the form. More... | |
US_Disk_DB_Controls * | disk_controls |
Radiobuttons for disk/db choice. More... | |
Public Attributes inherited from US_Widgets | |
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 | |
void | sel_investigator (void) |
void | assign_investigator (int) |
Additional Inherited Members | |
Static Public Member Functions inherited from US_Widgets | |
static QFont | fixedFont (void) |
This class forms the content of the general tab in the US_Project GUI. Most management of the information itself takes place here.
Definition at line 15 of file us_project_gui.h.
US_ProjectGuiGeneral::US_ProjectGuiGeneral | ( | int * | invID, |
int | select_db_disk | ||
) |
Generic constructor for the US_ProjectGuiGeneral class. To instantiate the class a calling function must provide the ID of the investigator.
invID | A pointer to the current investigator ID |
select_db_disk | Indicates whether the default search is on the local disk or in the DB |
Definition at line 664 of file us_project_gui.cpp.
|
privateslot |
Definition at line 794 of file us_project_gui.cpp.
|
signal |
Emitted when the user deletes the project.
QString US_ProjectGuiGeneral::getDesc | ( | void | ) |
Returns the description from the form.
Definition at line 815 of file us_project_gui.cpp.
|
signal |
Emitted when the Query Projects button is clicked.
|
signal |
Emitted when the new project button is clicked.
void US_ProjectGuiGeneral::reset | ( | void | ) |
Resets all the controls on the general tab.
Definition at line 768 of file us_project_gui.cpp.
|
signal |
Emitted when the user saves the project.
|
signal |
Emitted when the description changes.
|
privateslot |
Definition at line 782 of file us_project_gui.cpp.
|
signal |
Emitted when the user selects a project.
item | The currently selected item in the project list widget |
void US_ProjectGuiGeneral::setDesc | ( | QString | newDesc | ) |
Sets the Description textbox value.
newDesc | The new description to load into the text box |
Definition at line 810 of file us_project_gui.cpp.
void US_ProjectGuiGeneral::setGUID | ( | QString | newGUID | ) |
Sets the GUID line edit value.
newGUID | The new GUID value to load into the form |
Definition at line 805 of file us_project_gui.cpp.
|
signal |
Emitted when the user changes data source (disk/db)
db | True for db, false for disk |
US_Disk_DB_Controls* US_ProjectGuiGeneral::disk_controls |
Radiobuttons for disk/db choice.
Definition at line 58 of file us_project_gui.h.
int* US_ProjectGuiGeneral::investigatorID |
Stores the investiator ID locally.
Definition at line 48 of file us_project_gui.h.
QLineEdit* US_ProjectGuiGeneral::le_guid |
The unique GUID of the project.
Definition at line 46 of file us_project_gui.h.
QLineEdit* US_ProjectGuiGeneral::le_investigator |
Stores the investigator information.
Definition at line 44 of file us_project_gui.h.
QLineEdit* US_ProjectGuiGeneral::le_projectDesc |
A description of the project.
Definition at line 45 of file us_project_gui.h.
QListWidget* US_ProjectGuiGeneral::lw_projects |
Lists the projects retrieved.
Definition at line 50 of file us_project_gui.h.
QPushButton* US_ProjectGuiGeneral::pb_del |
The delete project button.
Definition at line 55 of file us_project_gui.h.
QPushButton* US_ProjectGuiGeneral::pb_newProject |
The new project button.
Definition at line 54 of file us_project_gui.h.
QPushButton* US_ProjectGuiGeneral::pb_query |
The query projects button.
Definition at line 52 of file us_project_gui.h.
QPushButton* US_ProjectGuiGeneral::pb_resetAll |
Resets everything on the form.
Definition at line 56 of file us_project_gui.h.
QPushButton* US_ProjectGuiGeneral::pb_save |
The save projects button.
Definition at line 53 of file us_project_gui.h.