KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_fields_table.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) Mike Williams
5 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * 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, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
24
26{
27public:
29
30 void ShowEditTab();
31 void ShowExportTab();
32
38 static wxString GetDefaultBomFileName( const wxString& aInputFileName );
39
40protected:
41 // Set bitmap and tooltip according to left panel visibility
42 void setSideBarButtonLook( bool aIsLeftPanelCollapsed );
43
44 void OnTableValueChanged( wxGridEvent& event ) override;
45 void OnTableColSize( wxGridSizeEvent& event ) override;
46 void OnSizeViewControlsGrid( wxSizeEvent& event ) override;
47
48 void OnFilterMouseMoved( wxMouseEvent& event ) override;
49};
virtual void OnFilterMouseMoved(wxMouseEvent &event)
DIALOG_FIELDS_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Fields Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER)
virtual void OnTableValueChanged(wxGridEvent &event)
virtual void OnSizeViewControlsGrid(wxSizeEvent &event)
virtual void OnTableColSize(wxGridSizeEvent &event)
DIALOG_FIELDS_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Fields Table"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxRESIZE_BORDER)
static wxString GetDefaultBomFileName(const wxString &aInputFileName)
Derive the default BOM output file name from the input file name by swapping the extension to CSV.
void setSideBarButtonLook(bool aIsLeftPanelCollapsed)
#define KICOMMON_API
Definition kicommon.h:27