00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef DROPDOWNSELECTOR_H
00018 #define DROPDOWNSELECTOR_H
00019
00020 #include <vector>
00021 #include <pgdropdown.h>
00022 #include "../ascstring.h"
00023
00024 class DropDownSelector: public PG_DropDown {
00025 bool first;
00026 protected:
00027 bool itemSelected( );
00028 public:
00029 DropDownSelector( PG_Widget *parent, const PG_Rect &r=PG_Rect::null, int id=-1, const std::string &style="DropDown");
00030 DropDownSelector( PG_Widget *parent, const PG_Rect &r, int itemnum, const char** items, const std::string &style="DropDown" );
00031 DropDownSelector( PG_Widget *parent, const PG_Rect &r, const std::vector<ASCString>& names, const std::string &style="DropDown" );
00032 void AddItem (const std::string &text, void *userdata=NULL, Uint16 height=0);
00033 SigC::Signal1<void, int> selectionSignal;
00034 };
00035
00036 #endif