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

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

Referenced by DIALOG_SHIM::OnPaint().

Variable Documentation

◆ class_map

RECT_MAP class_map
static

Definition at line 176 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::Show().