API Documentation
Loading...
Searching...
No Matches
ProjectFileManager Class Reference

#include <ProjectFileManager.h>

Inheritance diagram for ProjectFileManager:
[legend]
Collaboration diagram for ProjectFileManager:
[legend]

Public Types

enum  PathChangeMode { e_move , e_copy , e_new }
 

Signals

void projectSavedSignal ()
 
void logPathAboutToChangeSignal (const File &new_path, PathChangeMode mode)
 
void logPathChangedSignal (const File &path)
 
void videoPathAboutToChangeSignal (const File &new_path, PathChangeMode mode)
 
void videoPathChangedSignal (const File &path)
 
void imagePathAboutToChangeSignal (const File &new_path, PathChangeMode mode)
 
void imagePathChangedSignal (const File &path)
 
void exportPathAboutToChangeSignal (const File &new_path, PathChangeMode mode)
 
void exportPathChangedSignal (const File &path)
 

Public Member Functions

 ProjectFileManager (QTModelManager *manager)
 
 ~ProjectFileManager ()
 
virtual bool moveProject (const SaveOptions &options)
 
virtual bool copyProject (const SaveOptions &options)
 
virtual void userDiscardProject (QTModelManager *manager, bool is_blocking)
 
virtual bool userSaveProject (const SaveOptions &options=SaveOptions())
 
virtual bool saveProject (const SaveOptions &options=SaveOptions())
 
void updateLastBackupTime ()
 
File previousBackupFile () const
 
void clearBackupInformation ()
 
void update (Time current_time)
 
void readINIOptions ()
 
void saveINIOptions ()
 
virtual INIFactory getINI ()
 
Time lastSaveTime () const
 
virtual void updateActiveProjectFolder (PathChangeMode mode, Log *log=nullptr)
 
void clearAll ()
 
virtual String projectName () const
 
virtual File projectFile () const
 
virtual File projectDirectory () const
 
virtual File projectParentDirectory () const
 
virtual File activeBackupFile () const
 
virtual File activeLogFolder () const
 
virtual File activeScreenshotFolder () const
 
virtual File activeVideoFolder () const
 
virtual File defaultBrowseDirectory (bool is_project) const
 

Protected Attributes

QTModelManagerm_manager
 
BasicThread * m_auto_save_thread
 
File m_project_parent_directory
 
String m_project_name
 
String m_runtime_log_folder
 
Time m_last_backup_time
 
Time m_last_save_time
 
Time m_last_project_file_check_time
 
File m_last_save_file
 
bool m_is_last_save_backup
 

Member Enumeration Documentation

◆ PathChangeMode

Enumerator
e_move 
e_copy 
e_new 

Constructor & Destructor Documentation

◆ ProjectFileManager()

◆ ~ProjectFileManager()

Member Function Documentation

◆ activeBackupFile()

File activeBackupFile ( ) const
virtual

◆ activeLogFolder()

File activeLogFolder ( ) const
virtual

◆ activeScreenshotFolder()

File activeScreenshotFolder ( ) const
virtual

◆ activeVideoFolder()

File activeVideoFolder ( ) const
virtual

◆ clearAll()

void clearAll ( )

◆ clearBackupInformation()

void clearBackupInformation ( )

◆ copyProject()

bool copyProject ( const SaveOptions & options)
virtual

◆ defaultBrowseDirectory()

File defaultBrowseDirectory ( bool is_project) const
virtual

◆ exportPathAboutToChangeSignal

void exportPathAboutToChangeSignal ( const File & new_path,
PathChangeMode mode )
signal

◆ exportPathChangedSignal

void exportPathChangedSignal ( const File & path)
signal

◆ getINI()

INIFactory getINI ( )
virtual

◆ imagePathAboutToChangeSignal

void imagePathAboutToChangeSignal ( const File & new_path,
PathChangeMode mode )
signal

◆ imagePathChangedSignal

void imagePathChangedSignal ( const File & path)
signal

◆ lastSaveTime()

Time lastSaveTime ( ) const
inline

◆ logPathAboutToChangeSignal

void logPathAboutToChangeSignal ( const File & new_path,
PathChangeMode mode )
signal

◆ logPathChangedSignal

void logPathChangedSignal ( const File & path)
signal

◆ moveProject()

bool moveProject ( const SaveOptions & options)
virtual

◆ previousBackupFile()

File previousBackupFile ( ) const

◆ projectDirectory()

File projectDirectory ( ) const
virtual

◆ projectFile()

File projectFile ( ) const
virtual

◆ projectName()

String projectName ( ) const
virtual

◆ projectParentDirectory()

File projectParentDirectory ( ) const
virtual

◆ projectSavedSignal

void projectSavedSignal ( )
signal

◆ readINIOptions()

void readINIOptions ( )

◆ saveINIOptions()

void saveINIOptions ( )

◆ saveProject()

bool saveProject ( const SaveOptions & options = SaveOptions())
virtual

◆ update()

void update ( Time current_time)

◆ updateActiveProjectFolder()

void updateActiveProjectFolder ( PathChangeMode mode,
Log * log = nullptr )
virtual

◆ updateLastBackupTime()

void updateLastBackupTime ( )

◆ userDiscardProject()

void userDiscardProject ( QTModelManager * manager,
bool is_blocking )
virtual

◆ userSaveProject()

bool userSaveProject ( const SaveOptions & options = SaveOptions())
virtual

◆ videoPathAboutToChangeSignal

void videoPathAboutToChangeSignal ( const File & new_path,
PathChangeMode mode )
signal

◆ videoPathChangedSignal

void videoPathChangedSignal ( const File & path)
signal

Member Data Documentation

◆ m_auto_save_thread

BasicThread* m_auto_save_thread
protected

◆ m_is_last_save_backup

bool m_is_last_save_backup
protected

◆ m_last_backup_time

Time m_last_backup_time
protected

◆ m_last_project_file_check_time

Time m_last_project_file_check_time
protected

◆ m_last_save_file

File m_last_save_file
protected

◆ m_last_save_time

Time m_last_save_time
protected

◆ m_manager

QTModelManager* m_manager
protected

◆ m_project_name

String m_project_name
protected

◆ m_project_parent_directory

File m_project_parent_directory
protected

◆ m_runtime_log_folder

String m_runtime_log_folder
protected

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