KiCad PCB EDA Suite
|
Common routines for managing on block commands. More...
#include <fctsys.h>
#include <gr_basic.h>
#include <draw_frame.h>
#include <common.h>
#include <macros.h>
#include <base_struct.h>
#include <base_screen.h>
#include <class_drawpanel.h>
#include <confirm.h>
#include <block_commande.h>
Go to the source code of this file.
Functions | |
void | DrawAndSizingBlockOutlines (EDA_DRAW_PANEL *aPanel, wxDC *aDC, const wxPoint &aPosition, bool aErase) |
Function DrawAndSizingBlockOutlines redraws the outlines of the block which shows the search area for block commands. More... | |
void | AbortBlockCurrentCommand (EDA_DRAW_PANEL *aPanel, wxDC *aDC) |
Function AbortBlockCurrentCommand cancels the current block operation. More... | |
Common routines for managing on block commands.
Definition in file block_commande.cpp.
void AbortBlockCurrentCommand | ( | EDA_DRAW_PANEL * | aPanel, |
wxDC * | aDC | ||
) |
Function AbortBlockCurrentCommand cancels the current block operation.
Definition at line 211 of file block_commande.cpp.
References BLOCK_ABORT, BLOCK_IDLE, EDA_DRAW_PANEL::CallMouseCapture(), BLOCK_SELECTOR::ClearItemsList(), EDA_DRAW_FRAME::DisplayToolMsg(), EDA_DRAW_PANEL::GetCurrentCursor(), EDA_DRAW_PANEL::GetParent(), EDA_DRAW_PANEL::GetScreen(), EDA_DRAW_FRAME::HandleBlockEnd(), EDA_DRAW_PANEL::IsMouseCaptured(), BASE_SCREEN::m_BlockLocate, BLOCK_SELECTOR::SetCommand(), BASE_SCREEN::SetCurItem(), EDA_DRAW_PANEL::SetMouseCapture(), BLOCK_SELECTOR::SetState(), and STATE_NO_BLOCK.
Referenced by LIB_EDIT_FRAME::HandleBlockEnd(), SCH_EDIT_FRAME::HandleBlockEnd(), BLOCK_SELECTOR::InitData(), and BLOCK_SELECTOR::IsIdle().
void DrawAndSizingBlockOutlines | ( | EDA_DRAW_PANEL * | aPanel, |
wxDC * | aDC, | ||
const wxPoint & | aPosition, | ||
bool | aErase | ||
) |
Function DrawAndSizingBlockOutlines redraws the outlines of the block which shows the search area for block commands.
The first point of the rectangle showing the area is initialized by InitBlockLocateDatas(). The other point of the rectangle is the mouse cursor position.
Definition at line 184 of file block_commande.cpp.
References BLOCK_SELECTOR::Draw(), g_XorMode, BLOCK_SELECTOR::GetColor(), EDA_DRAW_FRAME::GetCrossHairPosition(), EDA_RECT::GetHeight(), EDA_DRAW_PANEL::GetParent(), EDA_DRAW_PANEL::GetScreen(), BLOCK_SELECTOR::GetState(), EDA_RECT::GetWidth(), BASE_SCREEN::m_BlockLocate, EDA_RECT::SetEnd(), BLOCK_SELECTOR::SetLastCursorPosition(), BLOCK_SELECTOR::SetMoveVector(), BLOCK_SELECTOR::SetState(), STATE_BLOCK_END, and STATE_BLOCK_INIT.
Referenced by LIB_EDIT_FRAME::HandleBlockEnd(), PCB_EDIT_FRAME::HandleBlockEnd(), SCH_EDIT_FRAME::HandleBlockEnd(), BLOCK_SELECTOR::InitData(), and BLOCK_SELECTOR::IsIdle().