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_i.h>
#include <menus_helpers.h>
#include <panel_hotkeys_editor.h>
#include <paths.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/display.h>
#include <wx/stdpaths.h>
#include <wx/string.h>
#include <kiplatform/app.h>
#include <kiplatform/ui.h>
#include <functional>

Go to the source code of this file.

Macros

#define SCREEN_BORDER_REGION   0.10
 

Functions

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

Macro Definition Documentation

◆ SCREEN_BORDER_REGION

#define SCREEN_BORDER_REGION   0.10

Function Documentation

◆ defaultSize()

static const wxSize defaultSize ( FRAME_T  aFrameType)
static

Definition at line 79 of file eda_base_frame.cpp.

80 {
81  switch( aFrameType )
82  {
83  case KICAD_MAIN_FRAME_T:
84  return wxSize( 850, 540 );
85 
86  default:
87  return wxSize( 1280, 720 );
88  }
89 }

References KICAD_MAIN_FRAME_T.

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

◆ minSize()

static const wxSize minSize ( FRAME_T  aFrameType)
static

Definition at line 67 of file eda_base_frame.cpp.

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

References KICAD_MAIN_FRAME_T.

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

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( UNITS_CHANGED  ,
wxCommandEvent   
)