#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/app.h>
#include <wx/event.h>
#include <wx/grid.h>
#include <wx/bmpbuttn.h>
#include <algorithm>
#include <hashtables.h>
#include <typeinfo>
Go to the source code of this file.
◆ selectAllInTextCtrls()
static void selectAllInTextCtrls |
( |
wxWindowList & |
children | ) |
|
|
static |
Definition at line 317 of file dialog_shim.cpp.
319 for( wxWindow* child : children )
321 if( wxTextCtrl* childTextCtrl = dynamic_cast<wxTextCtrl*>( child ) )
324 if( childTextCtrl->GetStringSelection().IsEmpty() )
325 childTextCtrl->SelectAll();
330 else if( dynamic_cast<wxBitmapButton*>( child ) !=
nullptr )
333 wxRect rect = child->GetRect();
335 child->ConvertDialogToPixels(
minSize );
337 rect.Inflate( std::max( 0,
minSize.x - rect.GetWidth() ),
338 std::max( 0,
minSize.y - rect.GetHeight() ) );
340 child->SetMinSize( rect.GetSize() );
341 child->SetSize( rect );
const int minSize
Push and Shove router track width and via size dialog.
static void selectAllInTextCtrls(wxWindowList &children)
References minSize.
Referenced by DIALOG_SHIM::OnPaint().
◆ class_map