Commit b218c109 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Added TA_CONTEXT_MENU_CLOSED tool event.

parent d18ed945
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -611,6 +611,9 @@ void TOOL_MANAGER::dispatchContextMenu( const TOOL_EVENT& aEvent )
                dispatchInternal( evt );
            }

            TOOL_EVENT evt( TC_COMMAND, TA_CONTEXT_MENU_CLOSED );
            dispatchInternal( evt );

            m_viewControls->ForceCursorPosition( forcedCursor, cursorPos );

            break;
+8 −3
Original line number Diff line number Diff line
@@ -88,14 +88,19 @@ enum TOOL_ACTIONS
    // closed it without selecting anything.
    TA_CONTEXT_MENU_CHOICE  = 0x8000,

    // Context menu is closed, no matter whether anything has been chosen or not.
    TA_CONTEXT_MENU_CLOSED  = 0x10000,

    TA_CONTEXT_MENU = TA_CONTEXT_MENU_UPDATE | TA_CONTEXT_MENU_CHOICE | TA_CONTEXT_MENU_CLOSED,

    // This event is sent *before* undo/redo command is performed.
    TA_UNDO_REDO            = 0x10000,
    TA_UNDO_REDO            = 0x20000,

    // Tool action (allows to control tools).
    TA_ACTION               = 0x20000,
    TA_ACTION               = 0x40000,

    // Tool activation event.
    TA_ACTIVATE             = 0x40000,
    TA_ACTIVATE             = 0x80000,

    TA_ANY = 0xffffffff
};