KiCad PCB EDA Suite
Loading...
Searching...
No Matches
calculator_panel.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KICAD, a free EDA CAD application.
3 *
4 * Copyright (C) 2021 Ian McInerney
5 * Copyright (C) 2021 Kicad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 3
10 * of the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21#ifndef CALCULATOR_PANEL_H_
22#define CALCULATOR_PANEL_H_
23
24#include <wx/panel.h>
25
27
28class CALCULATOR_PANEL : public wxPanel
29{
30public:
31 CALCULATOR_PANEL( wxWindow* aParent, wxWindowID aId, const wxPoint& aPos, const wxSize& aSize,
32 long aStyle, const wxString& aName )
33 : wxPanel( aParent, aId, aPos, aSize, aStyle, aName )
34 {}
35
36 virtual ~CALCULATOR_PANEL() {}
37
43 virtual void LoadSettings( PCB_CALCULATOR_SETTINGS* aCfg ) = 0;
44
50 virtual void SaveSettings( PCB_CALCULATOR_SETTINGS* aCfg ) = 0;
51
56 virtual void ThemeChanged() = 0;
57};
58
59#endif
virtual void SaveSettings(PCB_CALCULATOR_SETTINGS *aCfg)=0
Save the settings from the panel.
virtual void LoadSettings(PCB_CALCULATOR_SETTINGS *aCfg)=0
Load the settings into the panel.
virtual void ThemeChanged()=0
Update UI elements of the panel when the theme changes to ensure the images and fonts/colors are appr...
virtual ~CALCULATOR_PANEL()
CALCULATOR_PANEL(wxWindow *aParent, wxWindowID aId, const wxPoint &aPos, const wxSize &aSize, long aStyle, const wxString &aName)