26#ifndef _DIALOG_BOARD_STATISTICS_H
27#define _DIALOG_BOARD_STATISTICS_H
38#include <wx/datetime.h>
70 FP_LINE_ITEM(
int aAttributeMask,
int aAttributeValue, wxString aTitle ) :
133 static_cast<int>( aRight.
shape ) );
153 return ascending ? aLeft < aRight : aLeft > aRight;
192 bool aUseFirstColAsLabel );
Class DIALOG_BOARD_STATISTICS_BASE.
Dialog to show common board info.
void checkboxClicked(wxCommandEvent &aEvent) override
Save board statistics to a file.
void printGridToStringAsTable(wxGrid *aGrid, wxString &aStr, bool aUseColLabels, bool aUseFirstColAsLabel)
std::deque< FP_LINE_ITEM > m_fpTypes
int m_startLayerColInitialSize
Width of the start layer column as calculated by the wxWidgets autosizing algorithm.
void updateWidets()
Update drills grid.
PCB_EDIT_FRAME * m_parentFrame
void saveReportClicked(wxCommandEvent &aEvent) override
std::deque< LINE_ITEM< PAD_ATTRIB > > m_padTypes
void updateDrillGrid()
Print grid to string in tabular format.
~DIALOG_BOARD_STATISTICS()
Get data from the PCB board and print it to dialog.
int m_stopLayerColInitialSize
Width of the stop layer column.
void drillGridSort(wxGridEvent &aEvent)
void refreshItemsTypes()
< Function to fill up all items types to be shown in the dialog.
void drillGridSize(wxSizeEvent &aEvent) override
bool m_hasOutline
Show if board outline properly defined.
void adjustDrillGridColumns()
bool TransferDataToWindow() override
std::deque< DRILL_LINE_ITEM > m_drillTypes
std::deque< LINE_ITEM< VIATYPE > > m_viaTypes
void getDataFromPCB()
Apply data to dialog widgets.
The main frame for Pcbnew.
PCB_LAYER_ID
A quick note on layer IDs:
PAD_DRILL_SHAPE
The set of pad drill shapes, used with PAD::{Set,Get}DrillShape()
bool compareDrillParameters(int aLeft, int aRight)
bool operator()(const DRILL_LINE_ITEM &aLeft, const DRILL_LINE_ITEM &aRight)
COMPARE(COL_ID aColId, bool aAscending)
DRILL_LINE_ITEM(int aXSize, int aYSize, PAD_DRILL_SHAPE aShape, bool aIsPlated, bool aIsPad, PCB_LAYER_ID aStartLayer, PCB_LAYER_ID aStopLayer)
bool operator==(const DRILL_LINE_ITEM &other) const
Footprint attributes (such as SMD, THT, Virtual and so on), which will be shown in the dialog.
FP_LINE_ITEM(int aAttributeMask, int aAttributeValue, wxString aTitle)
Type information, which will be shown in dialog.
LINE_ITEM(T aAttribute, const wxString &aTitle)