KiCad PCB EDA Suite
dialog_shim.cpp File Reference
#include <dialog_shim.h>
#include <kiway_player.h>
#include <wx/evtloop.h>
#include <pgm_base.h>
#include <tool/tool_manager.h>
#include <eda_rect.h>
#include <wx/display.h>
#include <wx/grid.h>
#include <hashtables.h>
#include <base_struct.h>
#include <typeinfo>

Go to the source code of this file.

Classes

class  WDO_ENABLE_DISABLE
 Toggle a window's "enable" status to disabled, then enabled on destruction. More...
 

Functions

static void selectAllInTextCtrls (wxWindowList &children)
 

Variables

static RECT_MAP class_map
 

Function Documentation

◆ selectAllInTextCtrls()

static void selectAllInTextCtrls ( wxWindowList &  children)
static

Definition at line 256 of file dialog_shim.cpp.

257 {
258  for( wxWindow* child : children )
259  {
260  wxTextCtrl* childTextCtrl = dynamic_cast<wxTextCtrl*>( child );
261  if( childTextCtrl )
262  {
263  wxTextEntry* asTextEntry = dynamic_cast<wxTextEntry*>( childTextCtrl );
264 
265  // Respect an existing selection
266  if( asTextEntry->GetStringSelection().IsEmpty() )
267  asTextEntry->SelectAll();
268  }
269  else
270  selectAllInTextCtrls( child->GetChildren() );
271  }
272 }
static void selectAllInTextCtrls(wxWindowList &children)

Referenced by DIALOG_SHIM::OnPaint().

Variable Documentation

◆ class_map

RECT_MAP class_map
static

Definition at line 178 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::Show().