#include "us_project_gui.h"
Classes | |
class | ProjectInfo |
Information that is useful throughout US_ProjectGui. More... | |
Public Slots | |
void | newProject (void) |
Creates a new project. More... | |
void | load (void) |
Loads projects into the projects list widget. More... | |
void | selectProject (QListWidgetItem *) |
Handles when project listwidget item is selected. More... | |
void | saveDescription (const QString &) |
Updates the description associated with the current project. More... | |
void | saveProject (void) |
Saves the project information from all tabs to disk or db. More... | |
void | deleteProject (void) |
Deletes the currently selected project from disk or db. More... | |
void | source_changed (bool) |
Change data source (disk/db) More... | |
void | tabTextChanged (const QString &="") |
Helps to keep track if the text in any tab has changed. More... | |
Signals | |
void | updateProjectGuiSelection (US_Project &project) |
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 | cancelProjectGuiSelection (void) |
The signal that is emitted when the user chooses to cancel the current selection. In this case all previously-entered information is erased. More... | |
void | use_db (bool DB) |
Public Member Functions | |
US_ProjectGui (bool=false, int=US_Disk_DB_Controls::Default, const US_Project &=US_Project()) | |
Generic constructor for the US_ProjectGui class. To instantiate the class a calling function must provide a structure to contain all the data. More... | |
~US_ProjectGui () | |
Cleans up when the project dialog is closed. 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 | |
QList< ProjectInfo > | info |
Information to populate the project list widget. More... | |
int | investigatorID |
Stores the ID of the current investigator. More... | |
US_Project | project |
Stores all the information about the project. More... | |
QStringList | IDs |
The IDs of the items in the project list. More... | |
QStringList | descriptions |
The descriptions in the project list. More... | |
QStringList | GUIDs |
The GUIDs of the items in the project list. More... | |
QStringList | filenames |
The filenames associated with disk saves. More... | |
QMap< QListWidgetItem *, int > | projectMap |
Maps the IDs with the listwidget items. 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 | |
void | reset (void) |
void | enableButtons (void) |
void | resetAll (void) |
void | accept (void) |
void | cancel (void) |
void | loadDisk (void) |
void | loadDB (void) |
void | loadProjects (void) |
void | db_error (const QString &) |
void | help (void) |
Private Attributes | |
bool | signal |
bool | text_changed |
US_Help | showHelp |
QTabWidget * | tabWidget |
US_ProjectGuiGeneral * | generalTab |
US_ProjectGuiGoals * | goalsTab |
US_ProjectGuiMolecules * | moleculesTab |
US_ProjectGuiPurity * | purityTab |
US_ProjectGuiExpense * | expenseTab |
US_ProjectGuiBufferComponents * | bufferComponentsTab |
US_ProjectGuiSaltInformation * | saltInformationTab |
US_ProjectGuiAUC_questions * | auc_questionsTab |
US_ProjectGuiExpDesign * | expDesignTab |
US_ProjectGuiNotes * | notesTab |
QPushButton * | pb_accept |
This class provides the ability to enter/edit the project parameters.
Definition at line 338 of file us_project_gui.h.
US_ProjectGui::US_ProjectGui | ( | bool | signal_wanted = false , |
int | select_db_disk = US_Disk_DB_Controls::Default , |
||
const US_Project & | dataIn = US_Project() |
||
) |
Generic constructor for the US_ProjectGui class. To instantiate the class a calling function must provide a structure to contain all the data.
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 |
dataIn | A reference to a structure that contains the currently selected project information. |
Definition at line 13 of file us_project_gui.cpp.
US_ProjectGui::~US_ProjectGui | ( | ) |
Cleans up when the project dialog is closed.
Definition at line 162 of file us_project_gui.cpp.
|
privateslot |
Definition at line 248 of file us_project_gui.cpp.
|
privateslot |
Definition at line 268 of file us_project_gui.cpp.
|
signal |
The signal that is emitted when the user chooses to cancel the current selection. In this case all previously-entered information is erased.
|
privateslot |
Definition at line 658 of file us_project_gui.cpp.
|
slot |
Deletes the currently selected project from disk or db.
Definition at line 599 of file us_project_gui.cpp.
|
privateslot |
Definition at line 200 of file us_project_gui.cpp.
|
inlineprivateslot |
Definition at line 462 of file us_project_gui.h.
|
slot |
Loads projects into the projects list widget.
Definition at line 317 of file us_project_gui.cpp.
|
privateslot |
Definition at line 386 of file us_project_gui.cpp.
|
privateslot |
Definition at line 331 of file us_project_gui.cpp.
|
privateslot |
Definition at line 424 of file us_project_gui.cpp.
|
slot |
Creates a new project.
Definition at line 277 of file us_project_gui.cpp.
|
privateslot |
Definition at line 178 of file us_project_gui.cpp.
|
privateslot |
Definition at line 231 of file us_project_gui.cpp.
|
slot |
Updates the description associated with the current project.
Definition at line 513 of file us_project_gui.cpp.
|
slot |
Saves the project information from all tabs to disk or db.
Definition at line 531 of file us_project_gui.cpp.
|
slot |
Handles when project listwidget item is selected.
Definition at line 449 of file us_project_gui.cpp.
|
slot |
Change data source (disk/db)
Definition at line 629 of file us_project_gui.cpp.
|
slot |
Helps to keep track if the text in any tab has changed.
Definition at line 651 of file us_project_gui.cpp.
|
signal |
The signal that is emitted when the user chooses to accept the current choices. This information is passed back to the calling function.
project | A reference to a structure that contains the project information |
|
signal |
A signal to indicate that the current disk/db selection has changed. /param DB True if DB is the new selection
|
private |
Definition at line 421 of file us_project_gui.h.
|
private |
Definition at line 419 of file us_project_gui.h.
QStringList US_ProjectGui::descriptions |
The descriptions in the project list.
Definition at line 379 of file us_project_gui.h.
|
private |
Definition at line 422 of file us_project_gui.h.
|
private |
Definition at line 418 of file us_project_gui.h.
QStringList US_ProjectGui::filenames |
The filenames associated with disk saves.
Definition at line 381 of file us_project_gui.h.
|
private |
Definition at line 414 of file us_project_gui.h.
|
private |
Definition at line 415 of file us_project_gui.h.
QStringList US_ProjectGui::GUIDs |
The GUIDs of the items in the project list.
Definition at line 380 of file us_project_gui.h.
QStringList US_ProjectGui::IDs |
The IDs of the items in the project list.
Definition at line 378 of file us_project_gui.h.
QList< ProjectInfo > US_ProjectGui::info |
Information to populate the project list widget.
Definition at line 374 of file us_project_gui.h.
int US_ProjectGui::investigatorID |
Stores the ID of the current investigator.
Definition at line 375 of file us_project_gui.h.
|
private |
Definition at line 416 of file us_project_gui.h.
|
private |
Definition at line 423 of file us_project_gui.h.
|
private |
Definition at line 425 of file us_project_gui.h.
US_Project US_ProjectGui::project |
Stores all the information about the project.
Definition at line 376 of file us_project_gui.h.
QMap< QListWidgetItem*, int > US_ProjectGui::projectMap |
Maps the IDs with the listwidget items.
Definition at line 383 of file us_project_gui.h.
|
private |
Definition at line 417 of file us_project_gui.h.
|
private |
Definition at line 420 of file us_project_gui.h.
|
private |
Definition at line 410 of file us_project_gui.h.
|
private |
Definition at line 407 of file us_project_gui.h.
|
private |
Definition at line 412 of file us_project_gui.h.
|
private |
Definition at line 408 of file us_project_gui.h.