KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_drc_group_header.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) 2024 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef PANEL_DRC_GROUP_HEADER_H
21#define PANEL_DRC_GROUP_HEADER_H
22
23#include <wx/wx.h>
24#include <wx/combo.h>
25#include <wx/popupwin.h>
26
27#include <lset.h>
28#include <lseq.h>
29
34
35
37{
38 wxString m_ruleType;
39 wxString m_ruleName;
40 wxString m_comment;
41};
42
44{
45public:
46 PANEL_DRC_GROUP_HEADER( wxWindow* aParent, const std::vector<DRC_RULE_ROW>& aRows );
47
48 ~PANEL_DRC_GROUP_HEADER() override;
49
50 bool TransferDataToWindow() override;
51
52 bool TransferDataFromWindow() override;
53
54protected:
55 void OnGridSize( wxGridSizeEvent& event ) override;
56 void OnSize( wxSizeEvent& event ) override;
57
58private:
60 std::vector<DRC_RULE_ROW> m_rows;
61};
62
63#endif // PANEL_DRC_GROUP_HEADER_H
PANEL_DRC_GROUP_HEADER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
void OnSize(wxSizeEvent &event) override
void OnGridSize(wxGridSizeEvent &event) override
PANEL_DRC_GROUP_HEADER(wxWindow *aParent, const std::vector< DRC_RULE_ROW > &aRows)
std::vector< DRC_RULE_ROW > m_rows