/* * This program source code file is part of KICAD, a free EDA CAD application. * * Copyright (C) 1992-2021 Kicad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program. If not, see . */ #ifndef PCB_CALCULATOR_H #define PCB_CALCULATOR_H #include "pcb_calculator_frame_base.h" class APP_SETTINGS_BASE; class KIWAY; class PANEL_TRANSLINE; /** * PCB calculator the main frame. */ class PCB_CALCULATOR_FRAME : public PCB_CALCULATOR_FRAME_BASE { public: PCB_CALCULATOR_FRAME( KIWAY* aKiway, wxWindow* aParent ); ~PCB_CALCULATOR_FRAME(); // Pcb calculator doesn't host a tool framework wxWindow* GetToolCanvas() const override { return nullptr; } // Accessor: PANEL_TRANSLINE* GetPanelTransline() { return m_panelTransline; } private: // Event handlers void OnClosePcbCalc( wxCloseEvent& event ) override; void OnUpdateUI( wxUpdateUIEvent& event ) override; // Config read-write, virtual from EDA_BASE_FRAME void LoadSettings( APP_SETTINGS_BASE* aCfg ) override; void SaveSettings( APP_SETTINGS_BASE* aCfg ) override; private: int m_lastNotebookPage; bool m_macHack; }; extern const wxString DataFileNameExt; #endif // PCB_CALCULATOR_H