27 #ifndef LIB_VIEW_FRAME_H__ 28 #define LIB_VIEW_FRAME_H__ 55 const wxString& aLibraryName = wxEmptyString );
66 bool ShowModal( wxString* aSymbol, wxWindow* aParent )
override;
73 void OnSize( wxSizeEvent& event )
override;
200 DECLARE_EVENT_TABLE()
203 #endif // LIB_VIEW_FRAME_H__ void OnSize(wxSizeEvent &event) override
Recalculate the size of toolbars and display panel when the frame size changes.
void ReCreateMenuBar() override
Recreates the menu bar.
Hold a record identifying a symbol library accessed by the appropriate symbol library SCH_PLUGIN obje...
void ReCreateOptToolbar() override
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
void ClickOnCmpList(wxCommandEvent &event)
void SetSelectedComponent(const wxString &aComponentName)
Set the selected component.
wxArrayString m_allowedLibs
Symbol library viewer main window.
static wxString m_entryName
const BOX2I GetDocumentExtents(bool aIncludeAllVisible=true) const override
Returns bbox of document with option to not include some items.
void onUpdateUnitChoice(wxUpdateUIEvent &aEvent)
void OnSelectSymbol(wxCommandEvent &aEvent)
void CloseLibraryViewer(wxCommandEvent &event)
void onSelectNextSymbol(wxCommandEvent &aEvent)
void onSelectPreviousSymbol(wxCommandEvent &aEvent)
void onSelectSymbolUnit(wxCommandEvent &aEvent)
Stores the common settings that are saved and loaded for each window / frame.
void ReCreateHToolbar() override
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification event that some of the common (suite-wide) settings have changed.
WINDOW_SETTINGS * GetWindowSettings(APP_SETTINGS_BASE *aCfg) override
Return a pointer to the window settings for this frame.
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
void setupUIConditions() override
Setup the UI conditions for the various actions and their controls in this frame.
Define a library symbol object.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
void SetUnitAndConvert(int aUnit, int aConvert)
Set unit and convert, and set flag preventing them from automatically resetting to 1.
bool ReCreateLibList()
Creates or recreates a sorted list of currently loaded libraries.
void ReCreateVToolbar() override
void updatePreviewSymbol()
LIB_PART * GetSelectedSymbol() const
bool m_selection_changed
Updated to true if a list rewrite on GUI activation resulted in the component selection changing,...
void SetFilter(const SCHLIB_FILTER *aFilter)
Set a filter to display only libraries and/or components which match the filter.
void OnActivate(wxActivateEvent &event)
Called when the frame is activated to reload the libraries and component lists that can be changed by...
void SetSelectedLibrary(const wxString &aLibName)
Set the selected library in the library window.
void DClickOnCmpList(wxCommandEvent &event)
void ClickOnLibList(wxCommandEvent &event)
bool ShowModal(wxString *aSymbol, wxWindow *aParent) override
Function ShowModal.
void doCloseWindow() override
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
static wxString m_libraryName
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
SYMBOL_VIEWER_FRAME(KIWAY *aKiway, wxWindow *aParent, FRAME_T aFrameType, const wxString &aLibraryName=wxEmptyString)
Constructor.
void FinishModal()
Send the selected symbol back to the caller.
SELECTION & GetCurrentSelection() override
Get the current selection from the canvas area.
bool ReCreateSymbolList()
Create or recreate the list of components in the currently selected library.