KiCad PCB EDA Suite
|
SCH_TABLE_EDIT_TOOL and PCB_TABLE_EDIT_TOOL share most of their algorithms, which are implemented here. More...
#include <edit_table_tool_base.h>
Protected Member Functions | |
void | addMenus (CONDITIONAL_MENU &selToolMenu) |
int | doAddRowAbove (const TOOL_EVENT &aEvent) |
int | doAddRowBelow (const TOOL_EVENT &aEvent) |
int | doAddColumnBefore (const TOOL_EVENT &aEvent) |
int | doAddColumnAfter (const TOOL_EVENT &aEvent) |
int | doDeleteRows (const TOOL_EVENT &aEvent) |
int | doDeleteColumns (const TOOL_EVENT &aEvent) |
int | doMergeCells (const TOOL_EVENT &aEvent) |
int | doUnmergeCells (const TOOL_EVENT &aEvent) |
virtual TOOL_MANAGER * | getToolMgr ()=0 |
virtual BASE_SCREEN * | getScreen ()=0 |
virtual const SELECTION & | getTableCellSelection ()=0 |
virtual void | clearSelection ()=0 |
virtual T_TABLECELL * | copyCell (T_TABLECELL *aSource)=0 |
SCH_TABLE_EDIT_TOOL and PCB_TABLE_EDIT_TOOL share most of their algorithms, which are implemented here.
Definition at line 42 of file edit_table_tool_base.h.
|
inlineprotected |
Definition at line 45 of file edit_table_tool_base.h.
References ACTIONS::addColAfter, ACTIONS::addColBefore, CONDITIONAL_MENU::AddItem(), ACTIONS::addRowAbove, ACTIONS::addRowBelow, CONDITIONAL_MENU::AddSeparator(), ACTIONS::deleteColumns, ACTIONS::deleteRows, ACTIONS::editTable, SELECTION_CONDITIONS::Idle(), ACTIONS::mergeCells, SELECTION_CONDITIONS::MoreThan(), SELECTION_CONDITIONS::OnlyTypes(), PCB_TABLECELL_T, SCH_TABLECELL_T, and ACTIONS::unmergeCells.
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in PCB_EDIT_TABLE_TOOL, and SCH_EDIT_TABLE_TOOL.
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnAfter(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnBefore(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowAbove(), and EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowBelow().
|
inlineprotected |
Definition at line 269 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::copyCell(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), and EVENTS::SelectedEvent.
|
inlineprotected |
Definition at line 218 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::copyCell(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), and EVENTS::SelectedEvent.
|
inlineprotected |
Definition at line 117 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::copyCell(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), and EVENTS::SelectedEvent.
|
inlineprotected |
Definition at line 166 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::copyCell(), SELECTION::Empty(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), and EVENTS::SelectedEvent.
|
inlineprotected |
Definition at line 397 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::clearSelection(), SELECTION::Empty(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), EVENTS::SelectedEvent, and STRUCT_DELETED.
|
inlineprotected |
Definition at line 320 of file edit_table_tool_base.h.
References _, EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::clearSelection(), SELECTION::Empty(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), EVENTS::SelectedEvent, and STRUCT_DELETED.
|
inlineprotected |
Definition at line 475 of file edit_table_tool_base.h.
References _, SELECTION::Empty(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), EVENTS::SelectedEvent, VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineprotected |
Definition at line 544 of file edit_table_tool_base.h.
References _, SELECTION::Empty(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getScreen(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getTableCellSelection(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::getToolMgr(), TOOL_MANAGER::PostEvent(), and EVENTS::SelectedEvent.
|
protectedpure virtual |
Implemented in SCH_EDIT_TABLE_TOOL, and PCB_EDIT_TABLE_TOOL.
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnAfter(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnBefore(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowAbove(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowBelow(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteColumns(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteRows(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doMergeCells(), and EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doUnmergeCells().
|
protectedpure virtual |
Implemented in SCH_EDIT_TABLE_TOOL, and PCB_EDIT_TABLE_TOOL.
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnAfter(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnBefore(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowAbove(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowBelow(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteColumns(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteRows(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doMergeCells(), and EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doUnmergeCells().
|
protectedpure virtual |
Implemented in SCH_EDIT_TABLE_TOOL, and PCB_EDIT_TABLE_TOOL.
Referenced by EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnAfter(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddColumnBefore(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowAbove(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doAddRowBelow(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteColumns(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doDeleteRows(), EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doMergeCells(), and EDIT_TABLE_TOOL_BASE< T_TABLE, T_TABLECELL, T_COMMIT >::doUnmergeCells().