KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_sheet_properties.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) 2009 Wayne Stambaugh <[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, see <https://www.gnu.org/licenses/>.
19 */
20
21#pragma once
22
23#include <fields_grid_table.h>
24#include <widgets/unit_binder.h>
26#include <sch_sheet.h>
27
28class SCH_SHEET;
29class SCH_EDIT_FRAME;
30
31
33{
34public:
35 DIALOG_SHEET_PROPERTIES( SCH_EDIT_FRAME* aParent, SCH_SHEET* aSheet, bool* aIsUndoable,
36 bool* aClearAnnotationNewItems, bool* aUpdateHierarchyNavigator,
37 wxString* aSourceSheetFilename );
38
39 ~DIALOG_SHEET_PROPERTIES() override;
40
41private:
42 bool onSheetFilenameChanged( const wxString& aNewFilename );
43
44 bool TransferDataToWindow() override;
45 bool TransferDataFromWindow() override;
46
47 bool Validate() override;
48
49 // event handlers
50 void OnAddField( wxCommandEvent& event ) override;
51 void OnDeleteField( wxCommandEvent& event ) override;
52 void OnMoveUp( wxCommandEvent& event ) override;
53 void OnMoveDown( wxCommandEvent& event ) override;
54 void OnGridCellChanging( wxGridEvent& event );
55 void OnUpdateUI( wxUpdateUIEvent& event ) override;
56
57private:
64
67 std::bitset<64> m_shownColumns;
68
71
74};
DIALOG_SHEET_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Sheet Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU)
void OnAddField(wxCommandEvent &event) override
void OnMoveDown(wxCommandEvent &event) override
void OnGridCellChanging(wxGridEvent &event)
void OnDeleteField(wxCommandEvent &event) override
bool onSheetFilenameChanged(const wxString &aNewFilename)
void OnUpdateUI(wxUpdateUIEvent &event) override
void OnMoveUp(wxCommandEvent &event) override
DIALOG_SHEET_PROPERTIES(SCH_EDIT_FRAME *aParent, SCH_SHEET *aSheet, bool *aIsUndoable, bool *aClearAnnotationNewItems, bool *aUpdateHierarchyNavigator, wxString *aSourceSheetFilename)
Schematic editor (Eeschema) main window.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
Definition sch_sheet.h:44