13 #ifndef __BM_SimpleState_H__
14 #define __BM_SimpleState_H__
28 class BM_SceneManager;
31 #define BM_STATE 0x00000000
32 #define BM_HANDLE 0x10000000
34 #define BM_BEGIN_TASK_SCOPE ev_GlobalEvalLock().lockedExecute([&]() {
35 #define BM_END_TASK_SCOPE });
41 BM_OVERLAY_ENTRY = 0x02
47 const char *
const *vnames = 0,
55 virtual const char *getIconName()
const;
56 virtual const char *getLabel()
const;
58 virtual const char *getHotkeyString()
const;
61 virtual UI_Menu *getStateMenu(
int ortho = 0);
64 virtual UI_Menu *getSelectorMenu();
67 virtual UI_Menu *getExtraStateMenu();
83 virtual int enter(BM_EntryType how =
85 virtual void exit() = 0;
114 virtual int getToolboxCount()
const;
115 virtual UI_Feel *getToolbox(
int index)
const;
126 virtual bool isOverlay()
const;
127 virtual int getVolatileToolboxCount()
const;
128 virtual UI_Feel *getVolatileToolbox(
int index)
const;
134 virtual int isHandle()
const = 0;
137 { myVolatileViewport = view; }
139 {
return myVolatileViewport; }
152 { myPrevState = state; }
154 {
return myPrevState; }
156 {
return myPrevState; }
158 virtual const char *replaceCursor(
const char *newcursor);
168 {
return myUndoWorkerFinder; }
177 void beginDistributedUndoBlock(
const char *operation,
179 bool ignore_log=
false);
180 void endDistributedUndoBlock(
bool ignore_log=
false);
181 bool inDistributedUndoBlock();
190 BM_Viewport &viewport);
196 void setCursor(
const char *cursorname);
200 void setDefaultCursor(
const char *cursorname);
208 const char **)
override;
212 virtual void getUIFileName(
UT_String &full_path_and_name)
const;
221 { myViewportMask =
mask; }
225 int getClickInterest();
226 void addClickInterest(
int buttons);
227 void removeClickInterest(
int buttons);
233 void closeOpenUndoBlock();
236 BM_SceneManager &mySceneManager;
237 const char *myCursor;
239 BM_Viewport *myVolatileViewport;
242 UI_Feel *myMenuGadget;
243 UI_Feel *myOrthoMenuGadget;
246 int myDistributedUndoBlockLevel;
248 UI_Feel *mySimpleToolbox;
250 unsigned int myViewportMask;
const BM_SceneManager & sceneManager() const
PXL_API const char * getDescription(const ColorSpace *space)
Return the description of the color space.
const BM_SimpleState * getSavedState() const
const char * className() const override
virtual int isModifier() const
IFDmantra you can see code vm_image_mplay_direction endcode When SOHO starts a render
unsigned int getViewportMask() const
const UT_UndoWorkerFinder< BM_SimpleState > & undoWorkerFinder() const
void setViewportMask(unsigned mask)
const char * getCurrentCursor() const
GLuint const GLchar * name
void setVolatileViewport(BM_Viewport *view)
BM_Viewport * getVolatileViewport() const
virtual void initApplication(UI_Manager *uims, int argc, const char **argv)
virtual void onBeginRMBMenu(UI_Event *)
BM_SceneManager & sceneManager()
void(UI_Object::* UI_EventMethod)(UI_Event *)
void setSavedState(BM_SimpleState *state)
BM_SimpleState * getSavedState()
virtual bool canShowStateMenu() const