14 #ifdef EDITOR_HOOK_PERFORMANCE_MEASURE 16 #endif // EDITOR_HOOK_PERFORMANCE_MEASURE 32 #ifdef EDITOR_HOOK_PERFORMANCE_MEASURE 34 #endif // EDITOR_HOOK_PERFORMANCE_MEASURE 60 if (m_pObj && m_pFunc)
61 (m_pObj->*m_pFunc)(editor, event);
64 #ifdef EDITOR_HOOK_PERFORMANCE_MEASURE 68 return typeid(m_pFunc).name();
70 #endif // EDITOR_HOOK_PERFORMANCE_MEASURE 116 #ifdef EDITOR_HOOK_PERFORMANCE_MEASURE 119 return typeid(m_plugin).name();
121 #endif // EDITOR_HOOK_PERFORMANCE_MEASURE 128 #endif // EDITOR_HOOKS_H Provides static functions to add hooks to the editor modification operations.
DLLIMPORT bool HasRegisteredHooks()
Are there any hooks registered?
cbSmartIndentPlugin * m_plugin
const SQChar * GetTypeName(const SQObjectPtr &obj1)
virtual ~HookFunctorBase()
HookFunctor(T *obj, Func func)
Functor class for use as a editor modification operations hook.
Abstract base hook functor interface.
~cbSmartIndentEditorHookFunctor() override
dtor.
void Call(cbEditor *editor, wxScintillaEvent &event) const override
DLLIMPORT HookFunctorBase * UnregisterHook(int id, bool deleteHook=true)
Unregister a previously registered project loading/saving hook.
Provides a HookFunctor which redirects the Call() of a cbSmartIndentPlugin so only the interface of c...
DLLIMPORT void CallHooks(cbEditor *editor, wxScintillaEvent &event)
Call all registered hooks using the supplied parameters.
DLLIMPORT int RegisterHook(HookFunctorBase *functor)
Register a project loading/saving hook.