khanat-code-old/code/nel/tools/3d/object_viewer_qt/src/modules.h

81 lines
1.9 KiB
C
Raw Normal View History

/*
Object Viewer Qt
Copyright (C) 2010 Dzmitry Kamiahin <dnk-88@tut.by>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef MODULES_H
#define MODULES_H
#include "configuration.h"
#include "object_viewer.h"
#include "particle_editor.h"
#include "main_window.h"
#include "sound_system.h"
#include "vegetable_editor.h"
2010-11-29 15:18:07 +00:00
#include "extension_system/plugin_manager.h"
/**
@class Modules
@brief Main modules aggregated all parts of the program.
*/
class Modules
{
public:
static void init();
static void release();
2010-11-26 11:54:06 +00:00
static NLQT::CConfiguration &config()
{
return *_configuration;
}
static NLQT::CObjectViewer &objView()
{
return *_objectViewer;
}
static NLQT::CMainWindow &mainWin()
{
return *_mainWindow;
}
static NLQT::CParticleEditor &psEdit()
{
return *_particleEditor;
}
static NLQT::CSoundSystem &sound()
{
return *_soundSystem;
}
static NLQT::CVegetableEditor &veget()
{
return *_vegetableEditor;
}
2010-11-29 15:18:07 +00:00
static NLQT::CPluginManager &plugMan()
{
return *_pluginManager;
}
private:
static NLQT::CConfiguration *_configuration;
static NLQT::CObjectViewer *_objectViewer;
static NLQT::CMainWindow *_mainWindow;
static NLQT::CParticleEditor *_particleEditor;
static NLQT::CSoundSystem *_soundSystem;
static NLQT::CVegetableEditor *_vegetableEditor;
2010-11-29 15:18:07 +00:00
static NLQT::CPluginManager *_pluginManager;
};
#endif // MODULES_H