camenuselect.h

00001 #ifndef CAMENUSELECT_H
00002 #define CAMENUSELECT_H
00003 
00004 #include "camenulabel.h"
00005 #include "castringlist.h"
00006 
00007 
00012 class CAMenuSelect : public CAMenuLabel {
00013 public:
00014     CAMenuSelect( CAMenu* menu, int pos, const char* label, const char* valueList, int* result );
00015     CAMenuSelect( CAMenu* menu, int pos, const char* label, const char* valueList, bool* result );
00016     ~CAMenuSelect();
00017 
00021     virtual int rtti() {
00022         return CA_MI_MENUSELECT;
00023     }
00024 
00025     virtual void display( bool highlight );
00026     virtual void handleKey( const CL_Key &key );
00027     int  getSelectedItem() {
00028         return selectedItem;
00029     }
00030     void setSelectedItem( int index ) {
00031         selectedItem = index;
00032     }
00033 
00034 private:
00036 
00037     CAStringList* valueList;
00039     int           selectedItem;
00040 
00042     int*          intResult;
00044     bool*         boolResult;
00045 };
00046 
00047 #endif
00048 
00049 // EOF

Generated on Tue Nov 28 06:48:28 2006 by  doxygen 1.5.0