GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Slots | Private Member Functions | Private Attributes | List of all members
QGoOpenCreateProjectPage Class Reference

#include <Code/GUI/lib/Wizard/QGoOpenCreateProjectPage.h>

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

Public Member Functions

void cleanupPage ()
 
void initializePage ()
 
int nextId () const
 
 QGoOpenCreateProjectPage (QWidget *parent=0)
 
bool validatePage ()
 

Public Attributes

vtkMySQLDatabase * m_DatabaseConnector
 

Protected Slots

void AddAuthors ()
 
void ChangeToCreateProjectDisplay ()
 hides/shows the related QLabel,QLineEdit...and enables the fields where the user has to enter information to create a project More...
 
void ChangeToOpenProjectDisplay ()
 hides/shows the related QLabel,QLineEdit...and display the related information of the first existing project on the combobox More...
 
void DisplayInfoProject (QString ProjectName)
 display the information related to the given existing project More...
 
void UpdateListAuthors ()
 

Private Member Functions

int AuthorIDForNewProject ()
 return the AuthorID corresponding to the one in the database based on the name selected by the user in the combobox. More...
 
void BackFromNextPage () const
 
void CreateProject ()
 insert the new project in the database with the information filled by the user More...
 
bool DoesProjectHaveExistingImgSession () const
 get the list of the existing imaging session for the selected project and return true if the list is not empty. More...
 
QStringList GetListAuthors ()
 return the QStringList of the authors to be visualized by the user (concatenation of the firstname, middle name and last name and fill the map mapping the concatenated names with the AuthorID. More...
 
bool GetListProject () const
 update the m_ListProject and return true if the list is not empty, false if there is no existing project. More...
 
void OpenDBConnection () const
 open a connection to the database. More...
 

Private Attributes

QComboBox * ChoiceAuthor
 
QComboBox * ChoiceProject
 
QRadioButton * CreateProjectRadioButton
 
bool ExistingImgSession
 
bool LeavingPage
 
QLineEdit * lineAuthor
 
QTextEditChildlineDescription
 
QLineEdit * lineNewProjectName
 
std::string m_DatabaseVersion
 
QStringList m_ListProject
 
std::map< std::string, int > m_MapAuthorIDName
 
QPushButton * NewAuthorButton
 
QString OpenOrCreateProject
 
QRadioButton * OpenProjectRadioButton
 
QLabel * textAuthor
 
QLabel * textChoiceAuthor
 
QLabel * textChoiceProject
 
QLabel * textDescription
 
QLabel * textNewProjectName
 

Detailed Description

Definition at line 49 of file QGoOpenCreateProjectPage.h.

Constructor & Destructor Documentation

QGoOpenCreateProjectPage::QGoOpenCreateProjectPage ( QWidget *  parent = 0)

Definition at line 50 of file QGoOpenCreateProjectPage.cxx.

Member Function Documentation

void QGoOpenCreateProjectPage::AddAuthors ( )
protectedslot

Definition at line 526 of file QGoOpenCreateProjectPage.cxx.

int QGoOpenCreateProjectPage::AuthorIDForNewProject ( )
private

return the AuthorID corresponding to the one in the database based on the name selected by the user in the combobox.

Definition at line 212 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::BackFromNextPage ( ) const
private

Definition at line 517 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::ChangeToCreateProjectDisplay ( )
protectedslot

hides/shows the related QLabel,QLineEdit...and enables the fields where the user has to enter information to create a project

Definition at line 294 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::ChangeToOpenProjectDisplay ( )
protectedslot

hides/shows the related QLabel,QLineEdit...and display the related information of the first existing project on the combobox

Definition at line 326 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::cleanupPage ( )

Definition at line 457 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::CreateProject ( )
private

insert the new project in the database with the information filled by the user

Definition at line 188 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::DisplayInfoProject ( QString  ProjectName)
protectedslot

display the information related to the given existing project

Definition at line 352 of file QGoOpenCreateProjectPage.cxx.

bool QGoOpenCreateProjectPage::DoesProjectHaveExistingImgSession ( ) const
private

get the list of the existing imaging session for the selected project and return true if the list is not empty.

Definition at line 500 of file QGoOpenCreateProjectPage.cxx.

QStringList QGoOpenCreateProjectPage::GetListAuthors ( )
private

return the QStringList of the authors to be visualized by the user (concatenation of the firstname, middle name and last name and fill the map mapping the concatenated names with the AuthorID.

Definition at line 229 of file QGoOpenCreateProjectPage.cxx.

bool QGoOpenCreateProjectPage::GetListProject ( ) const
private

update the m_ListProject and return true if the list is not empty, false if there is no existing project.

Definition at line 162 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::initializePage ( )

Definition at line 121 of file QGoOpenCreateProjectPage.cxx.

int QGoOpenCreateProjectPage::nextId ( ) const

Definition at line 468 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::OpenDBConnection ( ) const
private

open a connection to the database.

Definition at line 486 of file QGoOpenCreateProjectPage.cxx.

void QGoOpenCreateProjectPage::UpdateListAuthors ( )
protectedslot

Definition at line 541 of file QGoOpenCreateProjectPage.cxx.

bool QGoOpenCreateProjectPage::validatePage ( )

Definition at line 408 of file QGoOpenCreateProjectPage.cxx.

Member Data Documentation

QComboBox* QGoOpenCreateProjectPage::ChoiceAuthor
private

Definition at line 101 of file QGoOpenCreateProjectPage.h.

QComboBox* QGoOpenCreateProjectPage::ChoiceProject
private

Definition at line 98 of file QGoOpenCreateProjectPage.h.

QRadioButton* QGoOpenCreateProjectPage::CreateProjectRadioButton
private

Definition at line 106 of file QGoOpenCreateProjectPage.h.

bool QGoOpenCreateProjectPage::ExistingImgSession
private

Definition at line 110 of file QGoOpenCreateProjectPage.h.

bool QGoOpenCreateProjectPage::LeavingPage
mutableprivate

Definition at line 111 of file QGoOpenCreateProjectPage.h.

QLineEdit* QGoOpenCreateProjectPage::lineAuthor
private

Definition at line 103 of file QGoOpenCreateProjectPage.h.

QTextEditChild* QGoOpenCreateProjectPage::lineDescription
private

Definition at line 96 of file QGoOpenCreateProjectPage.h.

QLineEdit* QGoOpenCreateProjectPage::lineNewProjectName
private

Definition at line 94 of file QGoOpenCreateProjectPage.h.

vtkMySQLDatabase* QGoOpenCreateProjectPage::m_DatabaseConnector
mutable

Definition at line 54 of file QGoOpenCreateProjectPage.h.

std::string QGoOpenCreateProjectPage::m_DatabaseVersion
private

Definition at line 92 of file QGoOpenCreateProjectPage.h.

QStringList QGoOpenCreateProjectPage::m_ListProject
mutableprivate

Definition at line 108 of file QGoOpenCreateProjectPage.h.

std::map< std::string, int > QGoOpenCreateProjectPage::m_MapAuthorIDName
private

Definition at line 109 of file QGoOpenCreateProjectPage.h.

QPushButton* QGoOpenCreateProjectPage::NewAuthorButton
private

Definition at line 100 of file QGoOpenCreateProjectPage.h.

QString QGoOpenCreateProjectPage::OpenOrCreateProject
private

Definition at line 104 of file QGoOpenCreateProjectPage.h.

QRadioButton* QGoOpenCreateProjectPage::OpenProjectRadioButton
private

Definition at line 105 of file QGoOpenCreateProjectPage.h.

QLabel* QGoOpenCreateProjectPage::textAuthor
private

Definition at line 102 of file QGoOpenCreateProjectPage.h.

QLabel* QGoOpenCreateProjectPage::textChoiceAuthor
private

Definition at line 99 of file QGoOpenCreateProjectPage.h.

QLabel* QGoOpenCreateProjectPage::textChoiceProject
private

Definition at line 97 of file QGoOpenCreateProjectPage.h.

QLabel* QGoOpenCreateProjectPage::textDescription
private

Definition at line 95 of file QGoOpenCreateProjectPage.h.

QLabel* QGoOpenCreateProjectPage::textNewProjectName
private

Definition at line 93 of file QGoOpenCreateProjectPage.h.


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