3 * Declares the PluginUI class.
8 * Copyright 2012 Joel Baxter
10 * This file is part of MeshTex.
12 * MeshTex is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 2 of the License, or
15 * (at your option) any later version.
17 * MeshTex is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with MeshTex. If not, see <http://www.gnu.org/licenses/>.
26 #if !defined(INCLUDED_PLUGINUI_H)
27 #define INCLUDED_PLUGINUI_H
29 #include "GenericPluginUI.h"
32 * Subclass of GenericPluginUI that instantiates and registers the UI
33 * elements (main menu and dialogs).
37 class PluginUI : public GenericPluginUI
39 private: // private methods
41 /// @name Private to prevent external instantiation
48 // Dont forget to declare these two. You want to make sure they
49 // are unacceptable otherwise you may accidentally get copies of
50 // your singleton appearing.
51 PluginUI(PluginUI const&); // Don't Implement
52 void operator=(PluginUI const&); // Don't implement
54 static PluginUI* singleton;
56 public: // public methods
58 static PluginUI& Instance();
61 #endif // #if !defined(INCLUDED_PLUGINUI_H)