25 #ifndef SCH_BASE_FRAME_H_ 26 #define SCH_BASE_FRAME_H_ 40 #include <wx/gdicmn.h> 41 #include <wx/string.h> 48 class SCH_RENDER_SETTINGS;
79 bool aShowErrorMsg =
false );
101 const wxString& aTitle,
102 const wxPoint& aPosition,
const wxSize& aSize,
103 long aStyle,
const wxString & aFrameName );
174 std::vector<PICKED_SYMBOL>& aHistoryList,
178 bool aShowFootprints,
179 const LIB_ID* aHighlight =
nullptr,
180 bool aAllowFields =
true );
192 bool aShowErrorMsg =
false );
211 const LIB_ID& aPreselectedLibId,
212 int aUnit,
int aConvert );
214 virtual void RedrawScreen(
const wxPoint& aCenterPoint,
bool aWarpPointer );
216 virtual void CenterScreen(
const wxPoint& aCenterPoint,
bool aWarpPointer );
274 #endif // SCH_BASE_FRAME_H_ void RefreshSelection()
Mark selected items for refresh.
SCH_BASE_FRAME(KIWAY *aKiway, wxWindow *aParent, FRAME_T aWindowType, const wxString &aTitle, const wxPoint &aPosition, const wxSize &aSize, long aStyle, const wxString &aFrameName)
SCHEMATIC_SETTINGS m_base_frame_defaults
These are only used by symbol_editor. Eeschema should be using the one inside the SCHEMATIC.
void UpdateItem(EDA_ITEM *aItem, bool isAddOrDelete=false)
Mark an item for refresh.
LIB_PART * SchGetLibPart(const LIB_ID &aLibId, SYMBOL_LIB_TABLE *aLibTable, PART_LIB *aCacheLib=NULL, wxWindow *aParent=NULL, bool aShowErrorMsg=false)
Load symbol from symbol library table.
virtual void RedrawScreen(const wxPoint &aCenterPoint, bool aWarpPointer)
The Cairo implementation of the graphics abstraction layer.
void HardRedraw() override
Rebuild the GAL and redraws the screen.
FRAME_T
The set of EDA_BASE_FRAME derivatives, typically stored in EDA_BASE_FRAME::m_Ident.
LIB_PART * GetFlattenedLibPart(const LIB_ID &aLibId, bool aShowErrorMsg=false)
SCH_SCREEN * GetScreen() const override
Return a pointer to a BASE_SCREEN or one of its derivatives.
COLOR4D GetLayerColor(SCH_LAYER_ID aLayer)
Helper to retrieve a layer color from the global color settings.
void RemoveFromScreen(EDA_ITEM *aItem, SCH_SCREEN *aScreen)
Remove an item from the screen (and view) aScreen is the screen the item is located on,...
const wxPoint & GetGridOrigin() const override
Return the absolute coordinates of the origin of the snap grid.
Symbol library viewer main window.
KIGFX::SCH_RENDER_SETTINGS * GetRenderSettings()
LIB_PART * GetLibPart(const LIB_ID &aLibId, bool aUseCacheLib=false, bool aShowErrorMsg=false)
Load symbol from symbol library table.
A logical library item identifier and consists of various portions much like a URI.
The base class for create windows for drawing purpose.
SCHEMATIC_SETTINGS & GetDefaults()
Hold the information shown in the lower right corner of a plot, printout, or editing view.
const wxSize GetPageSizeIU() const override
Works off of GetPageSettings() to return the size of the paper page in the internal units of this par...
void LoadSettings(APP_SETTINGS_BASE *aCfg) override
Load common frame parameters from a configuration file.
EESCHEMA_SETTINGS * eeconfig() const
APP_SETTINGS_BASE is a settings class that should be derived for each standalone KiCad application.
void SetTitleBlock(const TITLE_BLOCK &aTitleBlock) override
virtual void OnModify()
Must be called after a model change in order to set the "modify" flag and do other frame-specific pro...
void SyncView()
Mark all items for refresh.
PICKED_SYMBOL PickSymbolFromLibTree(const SCHLIB_FILTER *aFilter, std::vector< PICKED_SYMBOL > &aHistoryList, bool aUseLibBrowser, int aUnit, int aConvert, bool aShowFootprints, const LIB_ID *aHighlight=nullptr, bool aAllowFields=true)
Function PickSymbolFromLibTree Calls the library viewer to select component to import into schematic.
Describe the page size and margins of a paper page on which to eventually print or plot.
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
Define a library symbol object.
virtual ~SCH_BASE_FRAME()
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
bool saveSymbolLibTables(bool aGlobal, bool aProject)
Saves Symbol Library Tables to disk.
SYMBOL_EDITOR_SETTINGS * libeditconfig() const
SCH_LAYER_ID
Eeschema drawing layers.
SCHEMATIC_SETTINGS * m_defaults
COLOR4D GetDrawBgColor() const override
COLOR_SETTINGS * GetColorSettings() const override
Returns a pointer to the active color theme settings.
void SetPageSettings(const PAGE_INFO &aPageSettings) override
PICKED_SYMBOL PickSymbolFromLibBrowser(wxTopLevelWindow *aParent, const SCHLIB_FILTER *aFilter, const LIB_ID &aPreselectedLibId, int aUnit, int aConvert)
Function PickSymbolFromLibBrowser Calls the library viewer to select component to import into schemat...
const PAGE_INFO & GetPageSettings() const override
void SetGridOrigin(const wxPoint &aPoint) override
void UpdateStatusBar() override
Update the status bar information.
void AddToScreen(EDA_ITEM *aItem, SCH_SCREEN *aScreen)
Add an item to the screen (and view) aScreen is the screen the item is located on,...
virtual bool GetShowAllPins() const
Allow some frames to show/hide hidden pins.
const TITLE_BLOCK & GetTitleBlock() const override
void SaveSettings(APP_SETTINGS_BASE *aCfg) override
Save common frame parameters to a configuration data file.
A base class for most all the KiCad significant classes used in schematics and boards.
void CommonSettingsChanged(bool aEnvVarsChanged, bool aTextVarsChanged) override
Notification event that some of the common (suite-wide) settings have changed.
These settings were stored in SCH_BASE_FRAME previously.
SCH_RENDER_SETTINGS Stores schematic-specific render settings.
Color settings are a bit different than most of the settings objects in that there can be more than o...
virtual void CenterScreen(const wxPoint &aCenterPoint, bool aWarpPointer)
A shim class between EDA_DRAW_FRAME and several derived classes: SYMBOL_EDIT_FRAME,...
Object used to load, save, search, and otherwise manipulate symbol library files.
A color representation with 4 components: red, green, blue, alpha.
The symbol library editor main window.