KiCad PCB EDA Suite
eda_base_frame.cpp File Reference
#include <bitmaps.h>
#include <bitmap_store.h>
#include <dialog_shim.h>
#include <dialogs/panel_common_settings.h>
#include <dialogs/panel_mouse_settings.h>
#include <eda_dde.h>
#include <filehistory.h>
#include <id.h>
#include <kiface_base.h>
#include <menus_helpers.h>
#include <panel_hotkeys_editor.h>
#include <paths.h>
#include <confirm.h>
#include <pgm_base.h>
#include <settings/app_settings.h>
#include <settings/common_settings.h>
#include <settings/settings_manager.h>
#include <project/project_local_settings.h>
#include <tool/action_manager.h>
#include <tool/action_menu.h>
#include <tool/action_toolbar.h>
#include <tool/actions.h>
#include <tool/common_control.h>
#include <tool/tool_manager.h>
#include <tool/tool_dispatcher.h>
#include <trace_helpers.h>
#include <widgets/paged_dialog.h>
#include <widgets/infobar.h>
#include <widgets/wx_aui_art_providers.h>
#include <wx/app.h>
#include <wx/config.h>
#include <wx/display.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <wx/treebook.h>
#include <kiplatform/app.h>
#include <kiplatform/ui.h>
#include <functional>

Go to the source code of this file.

Functions

 wxDEFINE_EVENT (UNITS_CHANGED, wxCommandEvent)
 
static const wxSize minSize (FRAME_T aFrameType)
 
static const wxSize defaultSize (FRAME_T aFrameType)
 

Function Documentation

◆ defaultSize()

static const wxSize defaultSize ( FRAME_T  aFrameType)
static

Definition at line 83 of file eda_base_frame.cpp.

84 {
85  switch( aFrameType )
86  {
87  case KICAD_MAIN_FRAME_T:
88  return wxSize( 850, 540 );
89 
90  default:
91  return wxSize( 1280, 720 );
92  }
93 }

References KICAD_MAIN_FRAME_T.

Referenced by EDA_BASE_FRAME::commonInit(), EDA_BASE_FRAME::LoadWindowState(), and SPLIT_BUTTON::SPLIT_BUTTON().

◆ minSize()

static const wxSize minSize ( FRAME_T  aFrameType)
static

Definition at line 70 of file eda_base_frame.cpp.

71 {
72  switch( aFrameType )
73  {
74  case KICAD_MAIN_FRAME_T:
75  return wxSize( 406, 354 );
76 
77  default:
78  return wxSize( 500, 400 );
79  }
80 }

References KICAD_MAIN_FRAME_T.

Referenced by EDA_BASE_FRAME::commonInit(), and EDA_BASE_FRAME::LoadWindowState().

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( UNITS_CHANGED  ,
wxCommandEvent   
)