KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_board_statistics.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) 2019 Alexander Shuklin, [email protected]
5 * Copyright The 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 2
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
18 * along with this program; if not, you may find one here:
19 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20 * or you may search the http://www.gnu.org website for the version 2 license,
21 * or you may write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23 */
24
25
26#ifndef _DIALOG_BOARD_STATISTICS_H
27#define _DIALOG_BOARD_STATISTICS_H
28
29
30#include <board.h>
31#include <footprint.h>
32#include <pcb_track.h>
34#include <board_statistics.h>
36#include <pcb_base_frame.h>
37#include <pcb_edit_frame.h>
38#include <project.h>
39#include <wx/datetime.h>
40
45{
46public:
49
51 bool TransferDataToWindow() override;
52
53private:
55 void refreshItemsTypes();
56
58 void getDataFromPCB();
59
61 void updateWidgets();
62
64 void updateDrillGrid();
65
67
68 void checkboxClicked( wxCommandEvent& aEvent ) override;
69
71 void saveReportClicked( wxCommandEvent& aEvent ) override;
72
73 void drillGridSize( wxSizeEvent& aEvent ) override;
74
75 void drillGridSort( wxGridEvent& aEvent );
76
78
80
84};
85
86#endif // __DIALOG_BOARD_STATISTICS_H
DIALOG_BOARD_STATISTICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Board Statistics"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void checkboxClicked(wxCommandEvent &aEvent) override
Save board statistics to a file.
int m_startLayerColInitialSize
Width of the start layer column as calculated by the wxWidgets autosizing algorithm.
void updateWidgets()
Update drills grid.
void saveReportClicked(wxCommandEvent &aEvent) override
~DIALOG_BOARD_STATISTICS()
Get data from the PCB board and print it to dialog.
int m_stopLayerColInitialSize
Width of the stop layer column.
DIALOG_BOARD_STATISTICS(PCB_EDIT_FRAME *aParentFrame)
void drillGridSort(wxGridEvent &aEvent)
void refreshItemsTypes()
< Function to fill up all items types to be shown in the dialog.
void drillGridSize(wxSizeEvent &aEvent) override
BOARD_STATISTICS_DATA m_statsData
void getDataFromPCB()
Apply data to dialog widgets.
The main frame for Pcbnew.