HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DD_ChoiceList.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: DD_ChoiceList.h ( DD Library, C++)
7  *
8  * COMMENTS: Contains a list of all the drag/drop choices.
9  */
10 
11 #ifndef __DD_ChoiceList__
12 #define __DD_ChoiceList__
13 
14 #include "DD_API.h"
15 #include <UT/UT_StringArray.h>
16 
18 public:
19  DD_ChoiceList();
20  ~DD_ChoiceList();
21 
22  void clear();
23  void addChoice(const char *token,
24  const char *label,
25  const char *help);
26 
27  int entries() const { return myTokens.entries(); }
28  const char *getToken(int i) const { return myTokens(i); }
29  const char *getLabel(int i) const { return myLabels(i); }
30  const char *getHelp(int i) const { return myHelp(i); }
31 
32 private:
33  UT_StringArray myTokens, myLabels, myHelp;
34 };
35 
36 #endif
37 
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
const char * getHelp(int i) const
Definition: DD_ChoiceList.h:30
png_uint_32 i
Definition: png.h:2877
int entries() const
Definition: DD_ChoiceList.h:27
#define DD_API
Definition: DD_API.h:10
const char * getToken(int i) const
Definition: DD_ChoiceList.h:28
const char * getLabel(int i) const
Definition: DD_ChoiceList.h:29