KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_group_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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef DIALOG_GROUP_PROPERTIES_H
21#define DIALOG_GROUP_PROPERTIES_H
22
23#include <memory>
25
26class EDA_DRAW_FRAME;
27class TOOL_MANAGER;
28class EDA_GROUP;
29class EDA_ITEM;
30class COMMIT;
31class BASE_SCREEN;
32
33
35{
36public:
37 DIALOG_GROUP_PROPERTIES( EDA_DRAW_FRAME* aParent, EDA_GROUP* aTarget, const std::shared_ptr<COMMIT>& aCommit );
38 ~DIALOG_GROUP_PROPERTIES() override;
39
40 void OnMemberSelected( wxCommandEvent& event ) override;
41 void OnAddMember( wxCommandEvent& event ) override;
42 void OnRemoveMember( wxCommandEvent& event ) override;
43
44 void DoAddMember( EDA_ITEM* aItem );
45
46private:
47 bool TransferDataToWindow() override;
48 bool TransferDataFromWindow() override;
49
53 std::shared_ptr<COMMIT> m_commit;
54};
55
56#endif // DIALOG_GROUP_PROPERTIES_H
Handles how to draw a screen (a board, a schematic ...)
Definition base_screen.h:37
Represent a set of changes (additions, deletions or modifications) of a data model (e....
Definition commit.h:68
DIALOG_GROUP_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Group Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void OnRemoveMember(wxCommandEvent &event) override
void OnAddMember(wxCommandEvent &event) override
void OnMemberSelected(wxCommandEvent &event) override
DIALOG_GROUP_PROPERTIES(EDA_DRAW_FRAME *aParent, EDA_GROUP *aTarget, const std::shared_ptr< COMMIT > &aCommit)
std::shared_ptr< COMMIT > m_commit
The base class for create windows for drawing purpose.
A set of EDA_ITEMs (i.e., without duplicates).
Definition eda_group.h:42
A base class for most all the KiCad significant classes used in schematics and boards.
Definition eda_item.h:96
Master controller class: