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 <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 255 of file dialog_shim.cpp.

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

Referenced by DIALOG_SHIM::OnPaint().

Variable Documentation

◆ class_map

RECT_MAP class_map
static

Definition at line 177 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::Show().