1 ////////////////////////////////////////////////////////////////////////////////
2 //    Scorched3D (c) 2000-2011
3 //
4 //    This file is part of Scorched3D.
5 //
6 //    Scorched3D is free software; you can redistribute it and/or modify
7 //    it under the terms of the GNU General Public License as published by
8 //    the Free Software Foundation; either version 2 of the License, or
9 //    (at your option) any later version.
10 //
11 //    Scorched3D is distributed in the hope that it will be useful,
12 //    but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //    GNU General Public License for more details.
15 //
16 //    You should have received a copy of the GNU General Public License along
17 //    with this program; if not, write to the Free Software Foundation, Inc.,
18 //    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 ////////////////////////////////////////////////////////////////////////////////
20 
21 #include <GLEXT/GLMenuI.h>
22 
GLMenuItem(const LangString & text,ToolTip * tooltip,bool selected,GLTextureBase * texture,void * userData)23 GLMenuItem::GLMenuItem(const LangString &text,
24 	ToolTip *tooltip,
25 	bool selected,
26 	GLTextureBase *texture,
27 	void *userData) :
28 	menuText_(text), tip_(tooltip),
29 	selected_(selected), texture_(texture),
30 	userData_(userData), seperator_(false)
31 {
32 }
33 
~GLMenuI()34 GLMenuI::~GLMenuI()
35 {
36 
37 }
38 
getMenuText(const char * menuName)39 LangString *GLMenuI::getMenuText(const char* menuName)
40 {
41 	return 0;
42 }
43 
getMenuItems(const char * menuName,std::list<GLMenuItem> & result)44 bool GLMenuI::getMenuItems(const char* menuName, std::list<GLMenuItem> &result)
45 {
46 	return false;
47 }
48 
getEnabled(const char * menuName)49 bool GLMenuI::getEnabled(const char* menuName)
50 {
51 	return true;
52 }
53 
menuSelection(const char * menuName,const int position,GLMenuItem & item)54 void GLMenuI::menuSelection(const char* menuName, const int position, GLMenuItem &item)
55 {
56 
57 }
58 
menuOpened(const char * menuName)59 bool GLMenuI::menuOpened(const char* menuName)
60 {
61 	return true;
62 }
63 
getMenuToolTip(const char * menuName)64 LangStringStorage *GLMenuI::getMenuToolTip(const char* menuName)
65 {
66 	return 0;
67 }
68