| 
    KiCad PCB EDA Suite
    
   | 
 
#include <cstdio>#include <deque>#include <iterator>#include <ki_any.h>#include <math/vector2d.h>#include <optional>#include <atomic>#include <tool/tool_action.h>#include <wx/debug.h>Go to the source code of this file.
Classes | |
| class | TOOL_EVENT | 
| Generic, UI-independent tool event.  More... | |
| class | TOOL_EVENT_LIST | 
| A list of TOOL_EVENTs, with overloaded || operators allowing for concatenating TOOL_EVENTs with little code.  More... | |
Typedefs | |
| typedef std::optional< TOOL_EVENT > | OPT_TOOL_EVENT | 
Enumerations | |
| enum | TOOL_EVENT_CATEGORY {  TC_NONE = 0x00 , TC_MOUSE = 0x01 , TC_KEYBOARD = 0x02 , TC_COMMAND = 0x04 , TC_MESSAGE = 0x08 , TC_VIEW = 0x10 , TC_ANY = 0xffffffff }  | 
| Internal (GUI-independent) event definitions.  More... | |
| enum | TOOL_ACTIONS {  TA_NONE = 0x0000 , TA_MOUSE_CLICK = 0x0001 , TA_MOUSE_DBLCLICK = 0x0002 , TA_MOUSE_UP = 0x0004 , TA_MOUSE_DOWN = 0x0008 , TA_MOUSE_DRAG = 0x0010 , TA_MOUSE_MOTION = 0x0020 , TA_MOUSE_WHEEL = 0x0040 , TA_MOUSE = 0x007f , TA_KEY_PRESSED = 0x0080 , TA_KEYBOARD = TA_KEY_PRESSED , TA_VIEW_REFRESH = 0x0100 , TA_VIEW_ZOOM = 0x0200 , TA_VIEW_PAN = 0x0400 , TA_VIEW_DIRTY = 0x0800 , TA_VIEW = 0x0f00 , TA_CHANGE_LAYER = 0x1000 , TA_CANCEL_TOOL = 0x2000 , TA_CHOICE_MENU_UPDATE = 0x4000 , TA_CHOICE_MENU_CHOICE = 0x8000 , TA_CHOICE_MENU_CLOSED = 0x10000 , TA_CHOICE_MENU = TA_CHOICE_MENU_UPDATE | TA_CHOICE_MENU_CHOICE | TA_CHOICE_MENU_CLOSED , TA_UNDO_REDO_PRE = 0x20000 , TA_UNDO_REDO_POST = 0x40000 , TA_ACTION = 0x80000 , TA_ACTIVATE = 0x100000 , TA_REACTIVATE = 0x200000 , TA_MODEL_CHANGE = 0x400000 , TA_PRIME = 0x800001 , TA_ANY = 0xffffffff }  | 
| enum | TOOL_MOUSE_BUTTONS {  BUT_NONE = 0x0 , BUT_LEFT = 0x1 , BUT_RIGHT = 0x2 , BUT_MIDDLE = 0x4 , BUT_AUX1 = 0x8 , BUT_AUX2 = 0x10 , BUT_BUTTON_MASK = BUT_LEFT | BUT_RIGHT | BUT_MIDDLE | BUT_AUX1 | BUT_AUX2 , BUT_ANY = 0xffffffff }  | 
| enum | TOOL_MODIFIERS {  MD_SHIFT = 0x1000 , MD_CTRL = 0x2000 , MD_ALT = 0x4000 , MD_SUPER = 0x8000 , MD_META = 0x10000 , MD_ALTGR = 0x20000 , MD_MODIFIER_MASK = MD_SHIFT | MD_CTRL | MD_ALT | MD_SUPER | MD_META | MD_ALTGR }  | 
| enum | CONTEXT_MENU_TRIGGER { CMENU_BUTTON = 0 , CMENU_NOW , CMENU_OFF } | 
| Defines when a context menu is opened.  More... | |
| enum | SYNCRONOUS_TOOL_STATE { STS_RUNNING , STS_FINISHED , STS_CANCELLED } | 
Functions | |
| const TOOL_EVENT_LIST | operator|| (const TOOL_EVENT &aEventA, const TOOL_EVENT &aEventB) | 
| const TOOL_EVENT_LIST | operator|| (const TOOL_EVENT &aEvent, const TOOL_EVENT_LIST &aEventList) | 
| typedef std::optional<TOOL_EVENT> OPT_TOOL_EVENT | 
Definition at line 641 of file tool_event.h.
| enum CONTEXT_MENU_TRIGGER | 
Defines when a context menu is opened.
| Enumerator | |
|---|---|
| CMENU_BUTTON | On the right button.  | 
| CMENU_NOW | Right now (after TOOL_INTERACTIVE::SetContextMenu).  | 
| CMENU_OFF | Never.  | 
Definition at line 153 of file tool_event.h.
| Enumerator | |
|---|---|
| STS_RUNNING | |
| STS_FINISHED | |
| STS_CANCELLED | |
Definition at line 160 of file tool_event.h.
| enum TOOL_ACTIONS | 
Definition at line 63 of file tool_event.h.
| enum TOOL_EVENT_CATEGORY | 
Internal (GUI-independent) event definitions.
| Enumerator | |
|---|---|
| TC_NONE | |
| TC_MOUSE | |
| TC_KEYBOARD | |
| TC_COMMAND | |
| TC_MESSAGE | |
| TC_VIEW | |
| TC_ANY | |
Definition at line 52 of file tool_event.h.
| enum TOOL_MODIFIERS | 
| Enumerator | |
|---|---|
| MD_SHIFT | |
| MD_CTRL | |
| MD_ALT | |
| MD_SUPER | |
| MD_META | |
| MD_ALTGR | |
| MD_MODIFIER_MASK | |
Definition at line 141 of file tool_event.h.
| enum TOOL_MOUSE_BUTTONS | 
| Enumerator | |
|---|---|
| BUT_NONE | |
| BUT_LEFT | |
| BUT_RIGHT | |
| BUT_MIDDLE | |
| BUT_AUX1 | |
| BUT_AUX2 | |
| BUT_BUTTON_MASK | |
| BUT_ANY | |
Definition at line 129 of file tool_event.h.
      
  | 
  inline | 
Definition at line 783 of file tool_event.h.
References TOOL_EVENT_LIST::Add().
      
  | 
  inline | 
Definition at line 772 of file tool_event.h.
References TOOL_EVENT_LIST::Add().