New lua versions
[ryzomcore.git] / studio / src / plugins / core / plugin_view_dialog.h
blob6039f9a294a5cf3cb4a7837368e37a169414d074
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 PLUGIN_VIEW_H
22 #define PLUGIN_VIEW_H
24 #include "ui_plugin_view_dialog.h"
26 #include <QtCore/QMap>
27 #include <QtCore/QStringList>
29 namespace ExtensionSystem
31 class IPluginManager;
32 class IPluginSpec;
35 namespace Core
38 class PluginView: public QDialog
40 Q_OBJECT
42 public:
43 PluginView(ExtensionSystem::IPluginManager *pluginManager, QWidget *parent = 0);
44 ~PluginView();
46 private Q_SLOTS:
47 void updateList();
48 void updateSettings();
50 void onItemClicked();
51 void onUnloadClicked();
52 void onLoadClicked();
54 private:
56 const int m_checkStateColumn;
57 QMap<ExtensionSystem::IPluginSpec *, QTreeWidgetItem *> m_specToItem;
58 QMap<QTreeWidgetItem*, ExtensionSystem::IPluginSpec*> m_itemToSpec;
59 QStringList m_whiteList;
60 ExtensionSystem::IPluginManager *m_pluginManager;
61 Ui::PluginView m_ui;
62 }; /* class PluginView */
64 } /* namespace Core */
66 #endif // PLUGIN_VIEW_H