multi-channel tool: grid tricks for repeat layout dialog

This allows selecting/unselecting multiple checkboxes at once
by hitting space. And maybe some other tricks I don't know about...
This commit is contained in:
Alexander Boehm
2025-06-10 17:33:26 +00:00
committed by eurofun1
parent 4111140f93
commit 56bd7e4427
2 changed files with 7 additions and 0 deletions
@@ -24,6 +24,7 @@
#include <dialogs/dialog_multichannel_repeat_layout.h>
#include <widgets/wx_grid.h>
#include <grid_tricks.h>
#include <pcb_edit_frame.h>
#include <tools/multichannel_tool.h>
#include <zone.h>
@@ -66,6 +67,7 @@ DIALOG_MULTICHANNEL_REPEAT_LAYOUT::DIALOG_MULTICHANNEL_REPEAT_LAYOUT (
int i = 0;
m_raGrid->PushEventHandler( new GRID_TRICKS( static_cast<WX_GRID*>( m_raGrid ) ) );
m_raGrid->ClearGrid();
m_raGrid->EnableEditing( true );
m_raGrid->HideRowLabels();
@@ -111,6 +113,10 @@ DIALOG_MULTICHANNEL_REPEAT_LAYOUT::DIALOG_MULTICHANNEL_REPEAT_LAYOUT (
finishDialogSettings();
}
DIALOG_MULTICHANNEL_REPEAT_LAYOUT::~DIALOG_MULTICHANNEL_REPEAT_LAYOUT()
{
m_raGrid->PopEventHandler( true );
}
bool DIALOG_MULTICHANNEL_REPEAT_LAYOUT::TransferDataFromWindow()
{
@@ -40,6 +40,7 @@ public:
DIALOG_MULTICHANNEL_REPEAT_LAYOUT(
PCB_BASE_FRAME* aFrame,
MULTICHANNEL_TOOL* aParentTool );
~DIALOG_MULTICHANNEL_REPEAT_LAYOUT();
bool TransferDataFromWindow() override;
bool TransferDataToWindow() override;