Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MantidQt::MantidWidgets::ProjectSavePresenter Class Reference

Implements a presenter for the project saving dialog. More...

#include <ProjectSavePresenter.h>

Public Types

enum class  Notification { UncheckWorkspace , CheckWorkspace , PrepareProjectFolder }
 

Public Member Functions

bool needsSizeWarning (const std::vector< std::string > &wsNames)
 Find out if a project needs a save warning.
 
void notify (Notification notification)
 Notify the presenter to do something.
 
 ProjectSavePresenter (IProjectSaveView *view)
 Construct a new presenter with a view.
 

Private Member Functions

void excludeWindowsForUncheckedWorkspace ()
 Update the view to add excluded windows for a workspace.
 
void includeWindowsForCheckedWorkspace ()
 Update the view to add included windows for a workspace.
 
void prepareProjectFolder ()
 Prepare a project folder given the path.
 

Private Attributes

ProjectSaveModel m_model
 Hold an instance of the model.
 
IProjectSaveViewm_view
 Handle to the view for this presenter.
 

Detailed Description

Implements a presenter for the project saving dialog.

Definition at line 25 of file ProjectSavePresenter.h.

Member Enumeration Documentation

◆ Notification

Enumerator
UncheckWorkspace 
CheckWorkspace 
PrepareProjectFolder 

Definition at line 27 of file ProjectSavePresenter.h.

Constructor & Destructor Documentation

◆ ProjectSavePresenter()

MantidQt::MantidWidgets::ProjectSavePresenter::ProjectSavePresenter ( IProjectSaveView view)

Construct a new presenter with a view.

Member Function Documentation

◆ excludeWindowsForUncheckedWorkspace()

void MantidQt::MantidWidgets::ProjectSavePresenter::excludeWindowsForUncheckedWorkspace ( )
private

Update the view to add excluded windows for a workspace.

◆ includeWindowsForCheckedWorkspace()

void MantidQt::MantidWidgets::ProjectSavePresenter::includeWindowsForCheckedWorkspace ( )
private

Update the view to add included windows for a workspace.

◆ needsSizeWarning()

bool MantidQt::MantidWidgets::ProjectSavePresenter::needsSizeWarning ( const std::vector< std::string > &  wsNames)

Find out if a project needs a save warning.

◆ notify()

void MantidQt::MantidWidgets::ProjectSavePresenter::notify ( Notification  notification)

Notify the presenter to do something.

◆ prepareProjectFolder()

void MantidQt::MantidWidgets::ProjectSavePresenter::prepareProjectFolder ( )
private

Prepare a project folder given the path.

Member Data Documentation

◆ m_model

ProjectSaveModel MantidQt::MantidWidgets::ProjectSavePresenter::m_model
private

Hold an instance of the model.

Definition at line 49 of file ProjectSavePresenter.h.

◆ m_view

IProjectSaveView* MantidQt::MantidWidgets::ProjectSavePresenter::m_view
private

Handle to the view for this presenter.

Definition at line 47 of file ProjectSavePresenter.h.


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