Added beginnings of ComboBox popup functionality.

This commit is contained in:
Robert Osfield
2014-05-29 10:51:26 +00:00
parent 26a7c30229
commit a45ba05bdd
2 changed files with 45 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
#ifndef OSGUI_COMBOBOX
#define OSGUI_COMBOBOX
#include <osgUI/Widget>
#include <osgUI/Popup>
#include <osg/Switch>
#include <osgText/Text>
@@ -72,7 +72,6 @@ public:
Items& getItems() { return _items; }
const Items& getItems() const { return _items; }
void setCurrentItem(unsigned int i);
unsigned int getCurrentItem() const { return _currentItem; }
@@ -84,11 +83,12 @@ public:
protected:
virtual ~ComboBox() {}
Items _items;
unsigned int _currentItem;
osg::ref_ptr<osg::Switch> _switch;
osg::ref_ptr<osg::Switch> _buttonSwitch;
osg::ref_ptr<osgUI::Popup> _popup;
};
}