00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __DD_ChoiceList__
00019 #define __DD_ChoiceList__
00020
00021 #include "DD_API.h"
00022 #include <UT/UT_StringArray.h>
00023
00024 class DD_API DD_ChoiceList {
00025 public:
00026 DD_ChoiceList();
00027 ~DD_ChoiceList();
00028
00029 void clear();
00030 void addChoice(const char *token,
00031 const char *label,
00032 const char *help);
00033
00034 int entries() const { return myTokens.entries(); }
00035 const char *getToken(int i) const { return myTokens(i); }
00036 const char *getLabel(int i) const { return myLabels(i); }
00037 const char *getHelp(int i) const { return myHelp(i); }
00038
00039 private:
00040 UT_StringArray myTokens, myLabels, myHelp;
00041 };
00042
00043 #endif
00044