X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=contrib%2Fmeshtex%2FPluginUI.h;fp=contrib%2Fmeshtex%2FPluginUI.h;h=6d9e08f1a62267a94d97089377d0820775dd9f65;hb=bdd92181b3b41baf91319b5632a5ee85295b3e04;hp=0000000000000000000000000000000000000000;hpb=db0e95d2c3d6f175fcdfec306676c735a128c26f;p=xonotic%2Fnetradiant.git diff --git a/contrib/meshtex/PluginUI.h b/contrib/meshtex/PluginUI.h new file mode 100644 index 00000000..6d9e08f1 --- /dev/null +++ b/contrib/meshtex/PluginUI.h @@ -0,0 +1,52 @@ +/** + * @file PluginUI.h + * Declares the PluginUI class. + * @ingroup meshtex-ui + */ + +/* + * Copyright 2012 Joel Baxter + * + * This file is part of MeshTex. + * + * MeshTex 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 2 of the License, or + * (at your option) any later version. + * + * MeshTex 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 MeshTex. If not, see . + */ + +#if !defined(INCLUDED_PLUGINUI_H) +#define INCLUDED_PLUGINUI_H + +#include "GenericPluginUI.h" + +/** + * Subclass of GenericPluginUI that instantiates and registers the UI + * elements (main menu and dialogs). + * + * @ingroup meshtex-ui + */ +class PluginUI : public GenericPluginUI +{ +private: // private methods + + /// @name Private to prevent external instantiation + //@{ + PluginUI(); + ~PluginUI(); + //@} + +public: // public methods + + static PluginUI& Instance(); +}; + +#endif // #if !defined(INCLUDED_PLUGINUI_H) \ No newline at end of file