#include <dialog_shim.h>
#include <ignore.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 <wx/textctrl.h>
#include <wx/stc/stc.h>
#include <algorithm>
#include <hashtables.h>
#include <typeinfo>
Go to the source code of this file.
|
static std::unordered_map< std::string, wxRect > | class_map |
|
◆ selectAllInTextCtrls()
static void selectAllInTextCtrls |
( |
wxWindowList & |
children | ) |
|
|
static |
Definition at line 322 of file dialog_shim.cpp.
324 for( wxWindow* child : children )
326 if( wxTextCtrl* childTextCtrl = dynamic_cast<wxTextCtrl*>( child ) )
331 #if defined( __WXMAC__ ) || defined( __WXMSW__ ) 332 if( !childTextCtrl->GetStringSelection().IsEmpty() )
338 childTextCtrl->SelectAll();
344 else if( wxStyledTextCtrl* scintilla = dynamic_cast<wxStyledTextCtrl*>( child ) )
346 if( !scintilla->GetSelectedText().IsEmpty() )
352 scintilla->SelectAll();
358 else if( dynamic_cast<wxBitmapButton*>( child ) !=
nullptr )
361 wxRect rect = child->GetRect();
363 child->ConvertDialogToPixels(
minSize );
365 rect.Inflate( std::max( 0,
minSize.x - rect.GetWidth() ),
366 std::max( 0,
minSize.y - rect.GetHeight() ) );
368 child->SetMinSize( rect.GetSize() );
369 child->SetSize( rect );
const int minSize
Push and Shove router track width and via size dialog.
void ignore_unused(const T &)
static void selectAllInTextCtrls(wxWindowList &children)
References ignore_unused(), and minSize.
Referenced by DIALOG_SHIM::OnPaint().
◆ class_map
std::unordered_map<std::string, wxRect> class_map |
|
static |