13 #ifndef __BM_SimpleState_H__
14 #define __BM_SimpleState_H__
29 class BM_SceneManager;
32 #define BM_STATE 0x00000000
33 #define BM_HANDLE 0x10000000
35 #define BM_BEGIN_TASK_SCOPE ev_GlobalEvalLock().lockedExecute([&]() {
36 #define BM_END_TASK_SCOPE });
42 BM_OVERLAY_ENTRY = 0x02
48 const char *
const *vnames = 0,
56 virtual const char *getIconName()
const;
57 virtual const char *getLabel()
const;
59 virtual const char *getHotkeyString()
const;
62 virtual UI_Menu *getStateMenu(
int ortho = 0);
65 virtual UI_Menu *getSelectorMenu();
68 virtual UI_Menu *getExtraStateMenu();
84 virtual int enter(BM_EntryType how =
86 virtual void exit() = 0;
115 virtual int getToolboxCount()
const;
116 virtual UI_Feel *getToolbox(
int index)
const;
127 virtual bool isOverlay()
const;
128 virtual int getVolatileToolboxCount()
const;
129 virtual UI_Feel *getVolatileToolbox(
int index)
const;
135 virtual int isHandle()
const = 0;
138 { myVolatileViewport = view; }
140 {
return myVolatileViewport; }
153 { myPrevState =
state; }
155 {
return myPrevState; }
157 {
return myPrevState; }
159 virtual const char *replaceCursor(
const char *newcursor);
169 {
return myUndoWorkerFinder; }
178 void beginDistributedUndoBlock(
const char *operation,
180 bool ignore_log=
false);
181 void endDistributedUndoBlock(
bool ignore_log=
false);
182 bool inDistributedUndoBlock();
191 BM_Viewport &viewport);
197 void setCursor(
const char *cursorname);
201 void setDefaultCursor(
const char *cursorname);
209 const char **)
override;
213 virtual void getUIFileName(
UT_String &full_path_and_name)
const;
222 { myViewportMask =
mask; }
226 int getClickInterest();
227 void addClickInterest(
int buttons);
228 void removeClickInterest(
int buttons);
234 void closeOpenUndoBlock();
237 BM_SceneManager &mySceneManager;
238 const char *myCursor;
240 BM_Viewport *myVolatileViewport;
243 UI_Feel *myMenuGadget;
244 UI_Feel *myOrthoMenuGadget;
247 int myDistributedUndoBlockLevel;
249 UI_Feel *mySimpleToolbox;
251 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
Temporary container for either a RV_Render and an RE_Render.
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