Linux multi-monitor fullscreen support
[ryzomcore.git] / studio / src / plugins / core / core.h
blob3ea7004a4fb83a8e4974ff7ec83356a0cd9af8e3
1 // Object Viewer Qt - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2011 Dzmitry KAMIAHIN (dnk-88) <dnk-88@tut.by>
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2010 Winch Gate Property Limited
6 // Copyright (C) 2014 Laszlo KIS-ADAM (dfighter) <dfighter1985@gmail.com>
7 //
8 // This program is free software: you can redistribute it and/or modify
9 // it under the terms of the GNU Affero General Public License as
10 // published by the Free Software Foundation, either version 3 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU Affero General Public License for more details.
18 // You should have received a copy of the GNU Affero General Public License
19 // along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef CORE_H
22 #define CORE_H
24 #include "icore.h"
26 namespace Core
28 class MainWindow;
30 class CoreImpl : public ICore
32 Q_OBJECT
34 public:
35 explicit CoreImpl(MainWindow *mainWindow);
36 virtual ~CoreImpl();
38 virtual bool showOptionsDialog(const QString &group = QString(),
39 const QString &page = QString(),
40 QWidget *parent = 0);
42 virtual MenuManager *menuManager() const;
43 virtual ContextManager *contextManager() const;
45 virtual QSettings *settings() const;
46 virtual QMainWindow *mainWindow() const;
48 virtual ExtensionSystem::IPluginManager *pluginManager() const;
49 private:
50 MainWindow *m_mainWindow;
51 friend class MainWindow;
54 } // namespace Core
56 #endif // CORE_H