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

GoFigure2's main window. More...

#include <Main/QGoMainWindow.h>

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

Public Member Functions

 QGoMainWindow (QWidget *iParent=0, Qt::WindowFlags iFlags=0)
 
void SetMaxNumberOfTraces (unsigned int iN)
 
void SetSingleFileName (const QString &iFileName)
 
 ~QGoMainWindow ()
 

Private Types

enum  { MaxRecentFiles = 5 }
 

Private Slots

void AddSetUpDatabaseMenu ()
 add the action 'Set up Database' to the Database menu if it doesn't have been already added. More...
 
void ApplyImageFilter ()
 
void DisplayUpdateResults (QString result, bool noerror)
 
void on_actionAbout_Qt_triggered ()
 
void on_actionAbout_triggered ()
 
void on_actionCheck_For_Updates_triggered ()
 
void on_actionClose_all_triggered ()
 
void on_actionClose_triggered ()
 
void on_actionDeveloper_mailing_list_triggered ()
 
void on_actionExport_LSM_to_MegaFile_triggered ()
 Open dialog window to set the file output path and format. More...
 
void on_actionGoFigure2_Website_triggered ()
 
void on_actionOpen_MegaCapture_Files_triggered ()
 
void on_actionOpen_Single_File_triggered ()
 
void on_actionQuit_triggered ()
 
void on_actionReport_a_bug_triggered ()
 
void on_actionUse_DataBase_triggered ()
 
void on_actionUser_mailing_list_triggered ()
 
void openFilesfromDB ()
 
void openRecentDatabaseFile ()
 
void openRecentFilesfromDB ()
 
void openRecentMultipleFile ()
 
void openRecentSingleFile ()
 
void RemoveSetUpDatabaseMenu ()
 remove the action 'Set up Database' from the Database menu. More...
 
void SetUpDatabase ()
 
void tobedone (std::vector< vtkImageData * >)
 

Private Member Functions

void AddToMenu (QObject *, const QStringList &, QMenu *, const char *, QActionGroup *)
 
bool ComputeFileType (const QString &iFileName, GoFigure::FileType &oFileType)
 Compute GoFigure file type from a given filename. More...
 
QGoTabImageView2DCreateNewTabFor2DImage (vtkImageData *, const QString &)
 
QGoTabImageView3DCreateNewTabFor3DImage (vtkImageData *, const QString &)
 
QGoTabImageView3DwTCreateNewTabFor3DwtImage (const GoFigureFileInfoHelperMultiIndexContainer &iFileList, const GoFigure::FileType &iFileType, const std::string &iHeader, const int &iTimePoint, const bool &iUseDatabase)
 Create a new tab in the TabWidget for a 3DwT image from one megacapture (from the database, or from the filesystem directly). More...
 
QGoTabImageView3DwTCreateNewTabFor3DwtImage (vtkLSMReader *iReader, const QString &iFile)
 Create a new tab in the TabWidget for a 3DwT LSM file. More...
 
void CreateSignalSlotsConnection ()
 
void DisplayFilesfromDB (std::string iFirst_Filename)
 
GoFigureFileInfoHelperMultiIndexContainer GetFileContainerForMultiFiles (std::string &ioHeader_Filename, std::string iFirstFileName)
 get the file container and the header filename for one file part of a megacapture imaging session More...
 
void LoadAllTracesFromDatabaseManager (const int &iT)
 
void LoadContoursFromDatabase (const int &iT)
 
void LoadMeshesFromDatabase (const int &iT)
 
void LoadPlugins ()
 
void LoadTracksFromDatabase (const int &iT)
 
void OpenLSMImage (const QString &iFile, const int &iTimePoint)
 Open LSM image. More...
 
void openRecentFile (const bool &IsSerie)
 
void PopulateMenus (QObject *plugin)
 
 Q_DISABLE_COPY (QGoMainWindow)
 
void ReadSettings ()
 
void SetCurrentDatabaseFile (const QString &fileName)
 
void SetCurrentMultiFile (const QString &fileName)
 
void SetCurrentSingleFile (const QString &fileName)
 
void SetUpGeneralMenusToolBars (QGoTabElementBase *iT)
 
void SetUpMenusToolBarsFor3dwtImage (QGoTabImageView3DwT *iT)
 
void SetupPluginsAndDockWidgetFromTab (QGoTabElementBase *iT)
 
QString strippedName (const QString &fullFileName)
 Remove path from a given FileName. More...
 
void UpdateRecentFileActions (QStringList list, QMenu *menu, QAction *recentFileActions[MaxRecentFiles])
 
void WriteSettings ()
 

Private Attributes

QAction * actionSet_Up_Database
 
QGoAboutWidgetm_AboutWidget
 
itk::QtProgressBar m_Bar
 
QString m_CurrentFile
 current file name More...
 
bool m_DatabaseSetUp
 
QGoDBInitializationWizardm_DBInitializationWizard
 
QGoWizardDBm_DBWizard
 
QMenu * m_FilteringMenu
 
std::list< vtkLSMReader * > m_LSMReader
 
bool m_ManualUpdate
 
unsigned int m_MaxNumberOfTraces
 
QToolBar * m_ModeToolBar
 
QGoNetworkUtilitiesm_NetworkUtilities
 
QStringList m_PluginFileNames
 
QDir m_PluginsDir
 
QStringList m_RecentDatabaseFiles
 
QStringList m_RecentMultipleFiles
 
QStringList m_RecentSingleFiles
 list of recent files More...
 
itk::QtSignalAdaptor m_SignalAdaptor
 
std::map
< GoFigure::TabDimensionType,
std::list< QAction * > > 
m_TabDimPluginActionMap
 
QGoTabManagerm_TabManager
 
QToolBar * m_TraceSettingsToolBar
 
QToolBar * m_TracesToolBar
 
QToolBar * m_ViewToolBar
 
QAction * recentDatabaseFileActions [MaxRecentFiles]
 
QAction * recentMultipleFileActions [MaxRecentFiles]
 
QAction * recentSingleFileActions [MaxRecentFiles]
 

Friends

class QGoTabManager
 

Detailed Description

GoFigure2's main window.

QGoMainWindow.png

Definition at line 71 of file QGoMainWindow.h.

Member Enumeration Documentation

anonymous enum
private
Enumerator
MaxRecentFiles 

Definition at line 171 of file QGoMainWindow.h.

Constructor & Destructor Documentation

QGoMainWindow::QGoMainWindow ( QWidget *  iParent = 0,
Qt::WindowFlags  iFlags = 0 
)
explicit

Definition at line 90 of file QGoMainWindow.cxx.

QGoMainWindow::~QGoMainWindow ( )

Definition at line 188 of file QGoMainWindow.cxx.

Member Function Documentation

void QGoMainWindow::AddSetUpDatabaseMenu ( )
privateslot

add the action 'Set up Database' to the Database menu if it doesn't have been already added.

Definition at line 1351 of file QGoMainWindow.cxx.

void QGoMainWindow::AddToMenu ( QObject *  plugin,
const QStringList &  texts,
QMenu *  menu,
const char *  member,
QActionGroup *  actionGroup 
)
private

Definition at line 1127 of file QGoMainWindow.cxx.

void QGoMainWindow::ApplyImageFilter ( )
privateslot

Definition at line 1182 of file QGoMainWindow.cxx.

bool QGoMainWindow::ComputeFileType ( const QString &  iFileName,
GoFigure::FileType oFileType 
)
private

Compute GoFigure file type from a given filename.

Parameters
[in]iFileNamefilename
[out]oFileTypefile type
Returns
true if (png, jpeg or tiff)
false else

Definition at line 328 of file QGoMainWindow.cxx.

QGoTabImageView2D * QGoMainWindow::CreateNewTabFor2DImage ( vtkImageData *  iInput,
const QString &  iFile 
)
private

Definition at line 952 of file QGoMainWindow.cxx.

QGoTabImageView3D * QGoMainWindow::CreateNewTabFor3DImage ( vtkImageData *  iInput,
const QString &  iFile 
)
private

Definition at line 933 of file QGoMainWindow.cxx.

QGoTabImageView3DwT * QGoMainWindow::CreateNewTabFor3DwtImage ( const GoFigureFileInfoHelperMultiIndexContainer iFileList,
const GoFigure::FileType iFileType,
const std::string &  iHeader,
const int &  iTimePoint,
const bool &  iUseDatabase 
)
private

Create a new tab in the TabWidget for a 3DwT image from one megacapture (from the database, or from the filesystem directly).

Parameters
[in]iFileListMegacapture files Container
[in]iFileTypeType of images
[in]iHeaderMegacapture header (*.meg)
[in]iTimePointTime point to show
[in]iUseDatabaseUse the database

Definition at line 760 of file QGoMainWindow.cxx.

QGoTabImageView3DwT * QGoMainWindow::CreateNewTabFor3DwtImage ( vtkLSMReader iReader,
const QString &  iFile 
)
private

Create a new tab in the TabWidget for a 3DwT LSM file.

Parameters
[in]iReaderthe vtkLSMReader to be duplicated
[in]iFilefilename

Definition at line 911 of file QGoMainWindow.cxx.

void QGoMainWindow::CreateSignalSlotsConnection ( )
private

Definition at line 218 of file QGoMainWindow.cxx.

void QGoMainWindow::DisplayFilesfromDB ( std::string  iFirst_Filename)
private

Definition at line 383 of file QGoMainWindow.cxx.

void QGoMainWindow::DisplayUpdateResults ( QString  result,
bool  noerror 
)
privateslot

Definition at line 1460 of file QGoMainWindow.cxx.

GoFigureFileInfoHelperMultiIndexContainer QGoMainWindow::GetFileContainerForMultiFiles ( std::string &  ioHeader_Filename,
std::string  iFirstFileName 
)
private

get the file container and the header filename for one file part of a megacapture imaging session

Parameters
[in,out]ioHeader_Filenamedetected *.meg file
[in]iFirstFileNameone file part of a megacapture imaging session
Returns
multi index container with all file names

Definition at line 560 of file QGoMainWindow.cxx.

void QGoMainWindow::LoadAllTracesFromDatabaseManager ( const int &  iT)
private

Definition at line 434 of file QGoMainWindow.cxx.

void QGoMainWindow::LoadContoursFromDatabase ( const int &  iT)
private

Definition at line 472 of file QGoMainWindow.cxx.

void QGoMainWindow::LoadMeshesFromDatabase ( const int &  iT)
private

Definition at line 487 of file QGoMainWindow.cxx.

void QGoMainWindow::LoadPlugins ( )
private

Definition at line 1083 of file QGoMainWindow.cxx.

void QGoMainWindow::LoadTracksFromDatabase ( const int &  iT)
private
Note
let's keep for the time being iT parameter in the case where we would only load traces for a given time point (that could be usefule somehow).

Definition at line 502 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionAbout_Qt_triggered ( )
privateslot

Definition at line 978 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionAbout_triggered ( )
privateslot

Definition at line 970 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionCheck_For_Updates_triggered ( )
privateslot

Definition at line 1452 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionClose_all_triggered ( )
privateslot

Definition at line 619 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionClose_triggered ( )
privateslot

Definition at line 627 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionDeveloper_mailing_list_triggered ( )
privateslot

Definition at line 1042 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionExport_LSM_to_MegaFile_triggered ( )
privateslot

Open dialog window to set the file output path and format.

Definition at line 607 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionGoFigure2_Website_triggered ( )
privateslot

Definition at line 986 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionOpen_MegaCapture_Files_triggered ( )
privateslot

Definition at line 273 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionOpen_Single_File_triggered ( )
privateslot

Definition at line 256 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionQuit_triggered ( )
privateslot

Definition at line 637 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionReport_a_bug_triggered ( )
privateslot

Definition at line 1002 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionUse_DataBase_triggered ( )
privateslot

Definition at line 315 of file QGoMainWindow.cxx.

void QGoMainWindow::on_actionUser_mailing_list_triggered ( )
privateslot

Definition at line 994 of file QGoMainWindow.cxx.

void QGoMainWindow::openFilesfromDB ( )
privateslot

Definition at line 365 of file QGoMainWindow.cxx.

void QGoMainWindow::OpenLSMImage ( const QString &  iFile,
const int &  iTimePoint 
)
private

Open LSM image.

Parameters
[in]iFilefilename
[in]iTimePointtime point

Definition at line 698 of file QGoMainWindow.cxx.

void QGoMainWindow::openRecentDatabaseFile ( )
privateslot

Definition at line 1317 of file QGoMainWindow.cxx.

void QGoMainWindow::openRecentFile ( const bool &  IsSerie)
private
void QGoMainWindow::openRecentFilesfromDB ( )
privateslot

Definition at line 1334 of file QGoMainWindow.cxx.

void QGoMainWindow::openRecentMultipleFile ( )
privateslot

Definition at line 1304 of file QGoMainWindow.cxx.

void QGoMainWindow::openRecentSingleFile ( )
privateslot

Definition at line 1291 of file QGoMainWindow.cxx.

void QGoMainWindow::PopulateMenus ( QObject *  plugin)
private

Definition at line 1108 of file QGoMainWindow.cxx.

QGoMainWindow::Q_DISABLE_COPY ( QGoMainWindow  )
private
void QGoMainWindow::ReadSettings ( )
private

Definition at line 1379 of file QGoMainWindow.cxx.

void QGoMainWindow::RemoveSetUpDatabaseMenu ( )
privateslot

remove the action 'Set up Database' from the Database menu.

Definition at line 1342 of file QGoMainWindow.cxx.

void QGoMainWindow::SetCurrentDatabaseFile ( const QString &  fileName)
private

Definition at line 1222 of file QGoMainWindow.cxx.

void QGoMainWindow::SetCurrentMultiFile ( const QString &  fileName)
private

Definition at line 1203 of file QGoMainWindow.cxx.

void QGoMainWindow::SetCurrentSingleFile ( const QString &  fileName)
private

Definition at line 1065 of file QGoMainWindow.cxx.

void QGoMainWindow::SetMaxNumberOfTraces ( unsigned int  iN)

Definition at line 204 of file QGoMainWindow.cxx.

void QGoMainWindow::SetSingleFileName ( const QString &  iFileName)

Definition at line 646 of file QGoMainWindow.cxx.

void QGoMainWindow::SetUpDatabase ( )
privateslot

Definition at line 1049 of file QGoMainWindow.cxx.

void QGoMainWindow::SetUpGeneralMenusToolBars ( QGoTabElementBase iT)
private

Definition at line 858 of file QGoMainWindow.cxx.

void QGoMainWindow::SetUpMenusToolBarsFor3dwtImage ( QGoTabImageView3DwT iT)
private

Definition at line 885 of file QGoMainWindow.cxx.

void QGoMainWindow::SetupPluginsAndDockWidgetFromTab ( QGoTabElementBase iT)
private

Definition at line 817 of file QGoMainWindow.cxx.

QString QGoMainWindow::strippedName ( const QString &  fullFileName)
private

Remove path from a given FileName.

Definition at line 1239 of file QGoMainWindow.cxx.

void QGoMainWindow::tobedone ( std::vector< vtkImageData * >  iImages)
privateslot

Definition at line 1169 of file QGoMainWindow.cxx.

void QGoMainWindow::UpdateRecentFileActions ( QStringList  list,
QMenu *  menu,
QAction *  recentFileActions[MaxRecentFiles] 
)
private

Definition at line 1247 of file QGoMainWindow.cxx.

void QGoMainWindow::WriteSettings ( )
private

Definition at line 1431 of file QGoMainWindow.cxx.

Friends And Related Function Documentation

friend class QGoTabManager
friend

Definition at line 76 of file QGoMainWindow.h.

Member Data Documentation

QAction* QGoMainWindow::actionSet_Up_Database
private

Definition at line 297 of file QGoMainWindow.h.

QGoAboutWidget* QGoMainWindow::m_AboutWidget
private

Definition at line 274 of file QGoMainWindow.h.

itk::QtProgressBar QGoMainWindow::m_Bar
private

Definition at line 290 of file QGoMainWindow.h.

QString QGoMainWindow::m_CurrentFile
private

current file name

Definition at line 300 of file QGoMainWindow.h.

bool QGoMainWindow::m_DatabaseSetUp
private

Definition at line 296 of file QGoMainWindow.h.

QGoDBInitializationWizard* QGoMainWindow::m_DBInitializationWizard
private

Definition at line 275 of file QGoMainWindow.h.

QGoWizardDB* QGoMainWindow::m_DBWizard
private

Definition at line 273 of file QGoMainWindow.h.

QMenu* QGoMainWindow::m_FilteringMenu
private

Definition at line 264 of file QGoMainWindow.h.

std::list< vtkLSMReader * > QGoMainWindow::m_LSMReader
private

Definition at line 272 of file QGoMainWindow.h.

bool QGoMainWindow::m_ManualUpdate
private

Definition at line 278 of file QGoMainWindow.h.

unsigned int QGoMainWindow::m_MaxNumberOfTraces
private

Definition at line 306 of file QGoMainWindow.h.

QToolBar* QGoMainWindow::m_ModeToolBar
private

Definition at line 269 of file QGoMainWindow.h.

QGoNetworkUtilities* QGoMainWindow::m_NetworkUtilities
private

Definition at line 277 of file QGoMainWindow.h.

QStringList QGoMainWindow::m_PluginFileNames
private

Definition at line 266 of file QGoMainWindow.h.

QDir QGoMainWindow::m_PluginsDir
private

Definition at line 265 of file QGoMainWindow.h.

QStringList QGoMainWindow::m_RecentDatabaseFiles
private

Definition at line 295 of file QGoMainWindow.h.

QStringList QGoMainWindow::m_RecentMultipleFiles
private

Definition at line 294 of file QGoMainWindow.h.

QStringList QGoMainWindow::m_RecentSingleFiles
private

list of recent files

Definition at line 293 of file QGoMainWindow.h.

itk::QtSignalAdaptor QGoMainWindow::m_SignalAdaptor
private

Definition at line 289 of file QGoMainWindow.h.

std::map< GoFigure::TabDimensionType, std::list< QAction * > > QGoMainWindow::m_TabDimPluginActionMap
private

Definition at line 156 of file QGoMainWindow.h.

QGoTabManager* QGoMainWindow::m_TabManager
private

Definition at line 267 of file QGoMainWindow.h.

QToolBar* QGoMainWindow::m_TraceSettingsToolBar
private

Definition at line 271 of file QGoMainWindow.h.

QToolBar* QGoMainWindow::m_TracesToolBar
private

Definition at line 270 of file QGoMainWindow.h.

QToolBar* QGoMainWindow::m_ViewToolBar
private

Definition at line 268 of file QGoMainWindow.h.

QAction* QGoMainWindow::recentDatabaseFileActions[MaxRecentFiles]
private

Definition at line 174 of file QGoMainWindow.h.

QAction* QGoMainWindow::recentMultipleFileActions[MaxRecentFiles]
private

Definition at line 173 of file QGoMainWindow.h.

QAction* QGoMainWindow::recentSingleFileActions[MaxRecentFiles]
private

Definition at line 172 of file QGoMainWindow.h.


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