HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPUI_GraphBadge.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: OPUI_GraphBadge.h (User Interface Library, C++)
7  *
8  * COMMENTS:
9  * A class to describe a node badge.
10  *
11  */
12 
13 #ifndef __OPUI_GraphBadge__
14 #define __OPUI_GraphBadge__
15 
16 #include "OPUI_API.h"
17 #include <UT/UT_Array.h>
18 #include <UT/UT_Color.h>
19 #include <UT/UT_StringHolder.h>
20 #include <UT/UT_Error.h>
21 
22 class OPUI_GraphBadge;
23 class OP_Context;
24 class OP_Node;
25 
31 };
32 
36 };
37 
39 {
40 public:
44  bool myCurrent;
45  bool myPicked;
46 };
47 
48 typedef bool (*OPUI_GraphBadgeTest)(const OPUI_GraphBadgeInfo &info,
49  OPUI_GraphBadgeVisibility visibility,
50  OP_Context &context,
51  UT_StringHolder &icon,
52  UT_Color &clr);
54 
56 {
57 public:
58  OPUI_GraphBadge(const UT_StringHolder &pref,
59  const UT_StringHolder &category,
60  const UT_StringHolder &description,
61  const UT_StringHolder &icon,
64  OPUI_GraphBadgeThreading threading);
65  ~OPUI_GraphBadge();
66 
68  { return myPreferenceName; }
70  { return myPreferenceCategory; }
72  { return myDescription; }
73  const UT_StringHolder &getIcon() const
74  { return myIcon; }
76  { return myDefaultVisibility; }
78  { return myBadgeTest; }
79  bool getThreadSafe() const
80  { return myThreadSafe; }
81 
83  { return myVisibility; }
85  { myVisibility = vis; }
86 
87  static void addBadges(OPUI_GraphBadgeArray &add_badges);
88 
104 
112 
116 
119 
123 
124 private:
125  UT_StringHolder myPreferenceName;
126  UT_StringHolder myPreferenceCategory;
127  UT_StringHolder myDescription;
128  UT_StringHolder myIcon;
129  OPUI_GraphBadgeVisibility myDefaultVisibility;
130  OPUI_GraphBadgeVisibility myVisibility;
131  OPUI_GraphBadgeTest myBadgeTest;
132  bool myThreadSafe;
133 };
134 
135 #endif
136 
static const UT_StringHolder theCommentPref
OPUI_GraphBadgeVisibility getVisibility() const
static const UT_StringHolder theNodeDiveablePref
bool getThreadSafe() const
static const UT_StringHolder the64bitPref
cvex test(vector P=0;int unbound=3;export float s=0;export vector Cf=0;)
Definition: test.vfl:11
static const UT_StringHolder theParametersBadgeCategory
static const UT_StringHolder theLopDebugPref
#define OPUI_API
Definition: OPUI_API.h:10
static const UT_StringHolder theKinematicsPref
static const UT_StringHolder theLoadFromDiskPref
static const UT_StringHolder theHDALockedPref
UT_ErrorSeverity myErrorSeverity
static const UT_StringHolder theLopUnloadedPayloadsPref
UT_ErrorSeverity
Definition: UT_Error.h:25
static const UT_StringHolder theConstraintsPref
const UT_StringHolder & getPreferenceName() const
static const UT_StringHolder theNodeHasDataPref
OPUI_GraphBadgeVisibility getDefaultVisibility() const
const UT_StringHolder & getDescription() const
UT_Array< OPUI_GraphBadge > OPUI_GraphBadgeArray
static const UT_StringHolder theNotCompilablePref
static const UT_StringHolder theErrorPref
static const UT_StringHolder theHasTakeDataPref
static const UT_StringHolder theLopPopulationMaskPref
OPUI_GraphBadgeTest getBadgeTest() const
void setVisibility(OPUI_GraphBadgeVisibility vis)
static const UT_StringHolder theMainBadgeCategory
static const UT_StringHolder theChildErrorPref
OPUI_GraphBadgeVisibility
const UT_StringHolder & getIcon() const
static const UT_StringHolder theNodeUnloadPref
static const UT_StringHolder theNeedsCookPref
static const UT_StringHolder theMessagePref
static const UT_StringHolder theDynamicTOPPref
static const UT_StringHolder theTimeDepPref
static const UT_StringHolder theMQClientsAuthPref
const UT_StringHolder & getPreferenceCategory() const
OPUI_GraphBadgeThreading
static const UT_StringHolder theContextSpecificBadgeCategory
static const UT_StringHolder theHDAUnlockedPref
static const UT_StringHolder theMQServerAuthPref
static const UT_StringHolder theHDADelaySyncPref
static const UT_StringHolder theVexCachePref
static const UT_StringHolder theWarningPref
bool(* OPUI_GraphBadgeTest)(const OPUI_GraphBadgeInfo &info, OPUI_GraphBadgeVisibility visibility, OP_Context &context, UT_StringHolder &icon, UT_Color &clr)
static const UT_StringHolder theNodeLockedPref