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

#include "us_project_gui.h"

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

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< ProjectInfoinfo
 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_ProjectGuiGeneralgeneralTab
 
US_ProjectGuiGoalsgoalsTab
 
US_ProjectGuiMoleculesmoleculesTab
 
US_ProjectGuiPuritypurityTab
 
US_ProjectGuiExpenseexpenseTab
 
US_ProjectGuiBufferComponentsbufferComponentsTab
 
US_ProjectGuiSaltInformationsaltInformationTab
 
US_ProjectGuiAUC_questionsauc_questionsTab
 
US_ProjectGuiExpDesignexpDesignTab
 
US_ProjectGuiNotesnotesTab
 
QPushButton * pb_accept
 

Detailed Description

This class provides the ability to enter/edit the project parameters.

Definition at line 338 of file us_project_gui.h.

Constructor & Destructor Documentation

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.

Parameters
signal_wantedA boolean value indicating whether the caller wants a signal to be emitted
select_db_diskIndicates whether the default search is on the local disk or in the DB
dataInA 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.

Member Function Documentation

void US_ProjectGui::accept ( void  )
privateslot

Definition at line 248 of file us_project_gui.cpp.

void US_ProjectGui::cancel ( void  )
privateslot

Definition at line 268 of file us_project_gui.cpp.

void US_ProjectGui::cancelProjectGuiSelection ( void  )
signal

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

void US_ProjectGui::db_error ( const QString &  error)
privateslot

Definition at line 658 of file us_project_gui.cpp.

void US_ProjectGui::deleteProject ( void  )
slot

Deletes the currently selected project from disk or db.

Definition at line 599 of file us_project_gui.cpp.

void US_ProjectGui::enableButtons ( void  )
privateslot

Definition at line 200 of file us_project_gui.cpp.

void US_ProjectGui::help ( void  )
inlineprivateslot

Definition at line 462 of file us_project_gui.h.

void US_ProjectGui::load ( void  )
slot

Loads projects into the projects list widget.

Definition at line 317 of file us_project_gui.cpp.

void US_ProjectGui::loadDB ( void  )
privateslot

Definition at line 386 of file us_project_gui.cpp.

void US_ProjectGui::loadDisk ( void  )
privateslot

Definition at line 331 of file us_project_gui.cpp.

void US_ProjectGui::loadProjects ( void  )
privateslot

Definition at line 424 of file us_project_gui.cpp.

void US_ProjectGui::newProject ( void  )
slot

Creates a new project.

Definition at line 277 of file us_project_gui.cpp.

void US_ProjectGui::reset ( void  )
privateslot

Definition at line 178 of file us_project_gui.cpp.

void US_ProjectGui::resetAll ( void  )
privateslot

Definition at line 231 of file us_project_gui.cpp.

void US_ProjectGui::saveDescription ( const QString &  )
slot

Updates the description associated with the current project.

Definition at line 513 of file us_project_gui.cpp.

void US_ProjectGui::saveProject ( void  )
slot

Saves the project information from all tabs to disk or db.

Definition at line 531 of file us_project_gui.cpp.

void US_ProjectGui::selectProject ( QListWidgetItem *  item)
slot

Handles when project listwidget item is selected.

Definition at line 449 of file us_project_gui.cpp.

void US_ProjectGui::source_changed ( bool  db)
slot

Change data source (disk/db)

Definition at line 629 of file us_project_gui.cpp.

void US_ProjectGui::tabTextChanged ( const QString &  = "")
slot

Helps to keep track if the text in any tab has changed.

Definition at line 651 of file us_project_gui.cpp.

void US_ProjectGui::updateProjectGuiSelection ( US_Project project)
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
projectA reference to a structure that contains the project information
void US_ProjectGui::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

US_ProjectGuiAUC_questions* US_ProjectGui::auc_questionsTab
private

Definition at line 421 of file us_project_gui.h.

US_ProjectGuiBufferComponents* US_ProjectGui::bufferComponentsTab
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.

US_ProjectGuiExpDesign* US_ProjectGui::expDesignTab
private

Definition at line 422 of file us_project_gui.h.

US_ProjectGuiExpense* US_ProjectGui::expenseTab
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.

US_ProjectGuiGeneral* US_ProjectGui::generalTab
private

Definition at line 414 of file us_project_gui.h.

US_ProjectGuiGoals* US_ProjectGui::goalsTab
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.

US_ProjectGuiMolecules* US_ProjectGui::moleculesTab
private

Definition at line 416 of file us_project_gui.h.

US_ProjectGuiNotes* US_ProjectGui::notesTab
private

Definition at line 423 of file us_project_gui.h.

QPushButton* US_ProjectGui::pb_accept
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.

US_ProjectGuiPurity* US_ProjectGui::purityTab
private

Definition at line 417 of file us_project_gui.h.

US_ProjectGuiSaltInformation* US_ProjectGui::saltInformationTab
private

Definition at line 420 of file us_project_gui.h.

US_Help US_ProjectGui::showHelp
private

Definition at line 410 of file us_project_gui.h.

bool US_ProjectGui::signal
private

Definition at line 407 of file us_project_gui.h.

QTabWidget* US_ProjectGui::tabWidget
private

Definition at line 412 of file us_project_gui.h.

bool US_ProjectGui::text_changed
private

Definition at line 408 of file us_project_gui.h.


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