KiCad PCB EDA Suite
Loading...
Searching...
No Matches
tool_dispatcher.cpp File Reference
#include "tool/tool_dispatcher.h"
#include <bit>
#include <optional>
#include <wx/log.h>
#include <wx/stc/stc.h>
#include <wx/settings.h>
#include <core/ignore.h>
#include <macros.h>
#include <trace_helpers.h>
#include <tool/tool_manager.h>
#include <tool/actions.h>
#include <tool/action_manager.h>
#include <tool/action_menu.h>
#include <view/view.h>
#include <view/wx_view_controls.h>
#include <eda_draw_frame.h>
#include <core/kicad_algo.h>
#include <kiplatform/app.h>
#include <kiplatform/ui.h>

Go to the source code of this file.

Classes

struct  TOOL_DISPATCHER::BUTTON_STATE
 < Stores information about a mouse button state More...
 

Functions

bool isKeySpecialCode (int aKeyCode)
 
static bool isKeyModifierOnly (int aKeyCode)
 
static bool isMouseClick (wxEventType type)
 
int translateSpecialCode (int aKeyCode)
 

Function Documentation

◆ isKeyModifierOnly()

static bool isKeyModifierOnly ( int  aKeyCode)
static

Definition at line 295 of file tool_dispatcher.cpp.

References alg::contains().

Referenced by TOOL_DISPATCHER::GetToolEvent().

◆ isKeySpecialCode()

bool isKeySpecialCode ( int  aKeyCode)

Definition at line 278 of file tool_dispatcher.cpp.

References alg::contains().

Referenced by TOOL_DISPATCHER::GetToolEvent().

◆ isMouseClick()

static bool isMouseClick ( wxEventType  type)
static

Definition at line 306 of file tool_dispatcher.cpp.

Referenced by TOOL_DISPATCHER::DispatchWxEvent().

◆ translateSpecialCode()

int translateSpecialCode ( int  aKeyCode)

Definition at line 328 of file tool_dispatcher.cpp.

Referenced by TOOL_DISPATCHER::GetToolEvent().