53 int aCtlBits = 0 )
override = 0;
55 virtual void Reset()
override{};
118 void GetActions( std::vector<TOOL_ACTION*>& aActions )
const override
121 aActions.push_back( action );
static std::list< TOOL_ACTION * > & GetActionList()
Return list of TOOL_ACTIONs.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
KIFACE_BASE(const char *aKifaceName, KIWAY::FACE_T aId)
void InitSettings(APP_SETTINGS_BASE *aSettings)
SEARCH_STACK & KifaceSearch()
Only for DSO specific 'non-library' files.
void end_common()
Common things to do for a top program module, during OnKifaceEnd();.
virtual void OnKifaceEnd() override
Called just once just before the DSO is to be unloaded.
APP_SETTINGS_BASE * KifaceSettings() const
bool start_common(int aCtlBits)
Common things to do for a top program module, during OnKifaceStart().
virtual bool OnKifaceStart(PGM_BASE *aProgram, int aCtlBits, KIWAY *aKiway) override=0
Typically start_common() is called from here.
virtual wxWindow * CreateKiWindow(wxWindow *aParent, int aClassId, KIWAY *aKIWAY, int aCtlBits=0) override=0
Create a wxWindow for the current project.
void GetActions(std::vector< TOOL_ACTION * > &aActions) const override
Append this Kiface's registered actions to the given list.
int m_start_flags
flags provided in OnKifaceStart()
int StartFlags() const
Return whatever was passed as aCtlBits to OnKifaceStart().
bool IsSingle() const
Is this KIFACE running under single_top?
virtual void * IfaceOrAddress(int aDataId) override=0
Return pointer to the requested object.
const wxString & GetHelpFileName() const
Return just the basename portion of the current help file.
virtual void Reset() override
Reloads global state.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
FACE_T
Known KIFACE implementations.
Container for data for KiCad programs.
Look for files in a number of paths.
KIFACE_BASE & Kiface()
Global KIFACE_BASE "get" accessor.
#define KFCTL_STANDALONE
Running as a standalone Top.
Pertains to a single program module, either an EXE or a DSO/DLL ("bin_mod").
APP_SETTINGS_BASE * m_config
maybe from $HOME/.${m_name}
const char * m_name
name of this binary module, static C string.
void InitSettings(APP_SETTINGS_BASE *aPtr)
Takes ownership of a new application settings object.
Implement a participant in the KIWAY alchemy.