KiCad PCB EDA Suite
dialog_shim.cpp File Reference
#include <dialog_shim.h>
#include <eda_rect.h>
#include <kiway_player.h>
#include <pgm_base.h>
#include <tool/tool_manager.h>
#include <kiplatform/ui.h>
#include <wx/display.h>
#include <wx/evtloop.h>
#include <wx/grid.h>
#include <algorithm>
#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 279 of file dialog_shim.cpp.

280 {
281  for( wxWindow* child : children )
282  {
283  if( auto childTextCtrl = dynamic_cast<wxTextCtrl*>( child ) )
284  {
285  // Respect an existing selection
286  if( childTextCtrl->GetStringSelection().IsEmpty() )
287  childTextCtrl->SelectAll();
288  }
289  else
290  selectAllInTextCtrls( child->GetChildren() );
291  }
292 }
static void selectAllInTextCtrls(wxWindowList &children)

Referenced by DIALOG_SHIM::OnPaint().

Variable Documentation

◆ class_map

RECT_MAP class_map
static

Definition at line 183 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::ResetSize(), and DIALOG_SHIM::Show().