00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __MSS_ReusableSelector_h__
00022 #define __MSS_ReusableSelector_h__
00023
00024 #include "MSS_API.h"
00025 #include <UT/UT_String.h>
00026 #include <OP3D/OP3D_GenericSelector.h>
00027
00028 class MSS_API MSS_ReusableSelector : public OP3D_GenericSelector
00029 {
00030 public:
00031 MSS_ReusableSelector(OP3D_View &viewer,
00032 PI_SelectorTemplate &templ,
00033 const char *sopname,
00034 const char *groupparm = 0,
00035 const char *grouptypeparm = 0,
00036 bool allowblankgroup = false);
00037 virtual ~MSS_ReusableSelector();
00038
00039 virtual const char *className() const;
00040
00041
00042
00043
00044 virtual bool connectSops(bool update_sel_buttons,
00045 bool branch_off, OP_Node *&edit_node);
00046
00047
00048
00049 void setInlineSelection(bool set_inline)
00050 { myInlineSelection = set_inline; }
00051 bool getInlineSelection(bool set_inline)
00052 { return myInlineSelection; }
00053
00054 protected:
00055 virtual void setGroupParm(OP_Node *node, const char *value);
00056 virtual void setGroupTypeParm(OP_Node *node, int value);
00057
00058
00059 UT_String getSopName()
00060 { return mySopName; }
00061
00062 private:
00063 UT_String mySopName;
00064 UT_String myGroupParm;
00065 UT_String myGroupTypeParm;
00066 bool myAllowBlankGroup;
00067 bool myInlineSelection;
00068 };
00069
00070 #endif