Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

dropdownselector.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                              dropdownselector
00003                              -------------------
00004     copyright            : (C)  2006 by Martin Bickel
00005     email                : <bickel@asc-hq.org>
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009  *                                                                         *
00010  *   This program is free software; you can redistribute it and/or modify  *
00011  *   it under the terms of the GNU General Public License as published by  *
00012  *   the Free Software Foundation; either version 2 of the License, or     *
00013  *   (at your option) any later version.                                   *
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( ); // PG_ListBoxBaseItem* i, void* p );
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

Generated on Tue Jun 24 01:27:39 2008 for Advanced Strategic Command by  doxygen 1.4.2