Omnidome
Fulldome Mapping Software Toolkit
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PluginList.h
Go to the documentation of this file.
1 /* Copyright (c) 2014-2016 "Omnidome" by cr8tr
2  * Dome Mapping Projection Software (http://omnido.me).
3  * Omnidome was created by Michael Winkelmann aka Wilston Oreo (@WilstonOreo)
4  *
5  * This file is part of Omnidome.
6  *
7  * Omnidome is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU Affero General Public License for more details.
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef OMNI_UI_PLUGINLIST_H_
21 #define OMNI_UI_PLUGINLIST_H_
22 
23 #include <memory>
24 #include <QTreeView>
25 #include <QStandardItemModel>
26 #include <omni/PluginInfo.h>
27 
28 namespace omni {
29  namespace ui {
30  /// List view to show all loaded plugins
31  class PluginList : public QTreeView {
32  Q_OBJECT
33 
34  public:
35  PluginList(QWidget * = nullptr);
36  ~PluginList();
37 
38  private:
39  void prepareModel();
40  void addItem(PluginInfo const&);
41  std::unique_ptr<QStandardItemModel> model_;
42  };
43  }
44 }
45 
46 #endif /* OMNI_UI_PLUGINLIST_H_ */
void prepareModel()
Definition: PluginList.cpp:40
void addItem(PluginInfo const &)
Definition: PluginList.cpp:55
PluginList(QWidget *=nullptr)
Definition: PluginList.cpp:25
List view to show all loaded plugins.
Definition: PluginList.h:31
Holds meta information about a plugins Only plugin loader can construct a plugin info...
Definition: PluginInfo.h:33
~PluginList()
Definition: PluginList.cpp:38
std::unique_ptr< QStandardItemModel > model_
Definition: PluginList.h:41