Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

DropDownStringSelector.h

Go to the documentation of this file.
00001 //345678901234567890123456789012345678901234567890123456789012345678901234567890
00002 // DropDownStringSelector.h
00003 //
00004 // Author: Richard van Balen
00005 
00006 #ifndef OglGui_DropDownStringSelector_h
00007 #define OglGui_DropDownStringSelector_h
00008 
00009 #ifndef OglGui_DropDownWindow_h
00010 #include "OglGui/DropDownWindow.h"
00011 #endif
00012 
00013 #ifndef OglGui_StringSelector_h
00014 #include "OglGui/StringSelector.h"
00015 #endif
00016 
00017 namespace OglGui
00018 {
00019 
00020 class DropDownStringSelector : public DropDownWindow
00021 {
00022 public:
00023     DropDownStringSelector(Window* parent, int x, int y, int w, strconst txt="",
00024                            int dropW=200, int dropH=100, int options=PlusMinus):
00025         DropDownWindow(parent, x, y, w, 20, txt, options)
00026     {
00027         Init(dropW, dropH);
00028     }
00029 
00030     DropDownStringSelector(Window* parent, int w, strconst txt="",
00031                            int dropW=200, int dropH=100, int options=PlusMinus):
00032         DropDownWindow(parent, w, 20, txt, options)
00033     {
00034         Init(dropW, dropH);
00035     }
00036 
00037     StringSelector* StrSelector()
00038     {
00039         return mStrSelector;
00040     }
00041 
00042 protected:
00043     StringSelector* mStrSelector;
00044 
00045 private:
00046     void Init(int dropW, int dropH)
00047     {
00048         mStrSelector = new StringSelector(this, dropW, dropH);
00049         AddWindow(mStrSelector,0);
00050     }
00051 };
00052 
00053 } // Namespace OglGui
00054 #endif
00055 

Generated on Fri Mar 19 09:31:35 2010 for ImpalaSrc by  doxygen 1.5.1