19 :
20 * http:
21 * or you may search the http:
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
34#include <wx/snglinst.h>
59#include <python_scripting.h>
60
64
65#include <wx/crt.h>
66
67
68
70
72
74{
75
76
80 {}
81
83
85
87 int aCtlBits = 0 ) override
88 {
89 switch( aClassId )
90 {
92 {
94
95
97
99 {
100
102 }
103
104 return frame;
105 }
106
109
113
116
119
121 {
123
124
125
126
127 dlg.SetKiway( &dlg, aKiway );
128
129
130 if( dlg.ShowQuasiModal() == wxID_OK )
132
133
134 return nullptr;
135 }
136
139
140 return nullptr;
141
143 {
146
148 }
149
151 {
153
154 if( !frame )
156
157 if( !frame )
159
160 if( frame )
162 else
164 }
165
constexpr EDA_IU_SCALE pcbIUScale
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
The base frame for deriving all KiCad main window classes.
bool IsSingle() const
Is this KIFACE running under single_top?
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
virtual void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged)
Call CommonSettingsChanged() on all KIWAY_PLAYERs.
virtual KIWAY_PLAYER * Player(FRAME_T aFrameType, bool doCreate=true, wxTopLevelWindow *aParent=nullptr)
Return the KIWAY_PLAYER* given a FRAME_T.
FACE_T
Known KIFACE implementations.
The main frame for Pcbnew.
Container for data for KiCad programs.
T * GetAppSettings(bool aLoadNow=true)
Returns a handle to the a given settings by type If the settings have already been loaded,...
This file is part of the common library.
#define KICAD_PCB_PORT_SERVICE_NUMBER
< Pcbnew listens on this port for commands from Eeschema
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
@ FRAME_FOOTPRINT_VIEWER_MODAL
@ PANEL_FP_DISPLAY_OPTIONS
@ DIALOG_PCB_LIBRARY_TABLE
@ FRAME_FOOTPRINT_PREVIEW
@ PANEL_FP_DEFAULT_VALUES
This file contains miscellaneous commonly used macros and functions.
void InvokePcbLibTableEditor(KIWAY *aKiway, wxWindow *aCaller)
Function InvokePcbLibTableEditor shows the modal DIALOG_FP_LIB_TABLE for purposes of editing the glob...
PyObject * PyInit__pcbnew(void)
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
void ScriptingSetPcbEditFrame(PCB_EDIT_FRAME *aPcbEditFrame)
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits) override
Typically start_common() is called from here.
wxWindow * CreateKiWindow(wxWindow *aParent, int aClassId, KIWAY *aKiway, int aCtlBits=0) override
Create a wxWindow for the current project.
IFACE(const char *aName, KIWAY::FACE_T aType)
void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.
Definition of file extensions used in Kicad.