2017-11-23 23:05:14 +01:00
|
|
|
#pragma once
|
|
|
|
#ifndef REAL_BUILD
|
|
|
|
# include "externals.hh"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2017-11-24 14:52:56 +01:00
|
|
|
struct T_Project;
|
2017-11-23 23:05:14 +01:00
|
|
|
struct T_FilesWatcher;
|
|
|
|
struct T_SyncManager;
|
|
|
|
struct T_ScriptManager;
|
|
|
|
class T_UndoManager;
|
|
|
|
|
|
|
|
|
|
|
|
struct Common
|
|
|
|
{
|
2017-12-28 10:27:23 +01:00
|
|
|
explicit Common( T_FSPath const& path = {} ) noexcept;
|
|
|
|
~Common( ) noexcept;
|
2017-11-23 23:05:14 +01:00
|
|
|
|
2017-12-28 17:15:00 +01:00
|
|
|
static void SetInteractiveMode( ) noexcept;
|
|
|
|
|
2017-11-24 14:52:56 +01:00
|
|
|
static T_Project& Project( ) noexcept;
|
2017-11-23 23:05:14 +01:00
|
|
|
static T_FilesWatcher& Watcher( ) noexcept;
|
|
|
|
static T_SyncManager& Sync( ) noexcept;
|
|
|
|
static T_ScriptManager& Ops( ) noexcept;
|
|
|
|
static T_UndoManager& Undo( ) noexcept;
|
|
|
|
|
|
|
|
private:
|
|
|
|
Common( ) = delete;
|
|
|
|
NO_COPY( Common );
|
|
|
|
NO_MOVE( Common );
|
|
|
|
};
|