35 lines
743 B
C++
35 lines
743 B
C++
#include "externals.hh"
|
|
#include "globals.hh"
|
|
|
|
#include "filewatcher.hh"
|
|
#include "opcomp.hh"
|
|
#include "ops.hh"
|
|
#include "profiling.hh"
|
|
#include "sync.hh"
|
|
#include "undo.hh"
|
|
|
|
|
|
T_OwnPtr< T_FilesWatcher > Globals::watcher_;
|
|
T_OwnPtr< T_Profiler > Globals::profiler_;
|
|
T_OwnPtr< T_SyncManager > Globals::sync_;
|
|
T_OwnPtr< T_ScriptManager > Globals::ops_;
|
|
T_OwnPtr< T_UndoManager > Globals::undo_;
|
|
|
|
|
|
void Globals::Init( )
|
|
{
|
|
watcher_ = NewOwned< T_FilesWatcher >( );
|
|
profiler_ = NewOwned< T_Profiler >( );
|
|
sync_ = NewOwned< T_SyncManager >( );
|
|
ops_ = NewOwned< T_ScriptManager >( );
|
|
undo_ = NewOwned< T_UndoManager >( );
|
|
}
|
|
|
|
void Globals::Shutdown( )
|
|
{
|
|
undo_.clear( );
|
|
ops_.clear( );
|
|
sync_.clear( );
|
|
profiler_.clear( );
|
|
watcher_.clear( );
|
|
}
|