KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sheet_synchronization_notifier.cpp
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) 2023 Ethan Chien <
[email protected]
>
5
* Copyright (C) 2023 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, you may find one here:
19
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
20
* or you may search the http://www.gnu.org website for the version 2 license,
21
* or you may write to the Free Software Foundation, Inc.,
22
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
23
*/
24
25
#include "
sheet_synchronization_notifier.h
"
26
#include "
panel_sync_sheet_pins.h
"
27
#include "
sheet_synchronization_model.h
"
28
29
SHEET_SYNCHRONIZATION_NOTIFIER::SHEET_SYNCHRONIZATION_NOTIFIER
(
30
SHEET_SYNCHRONIZATION_MODEL
* aOwner ) :
31
m_owner( aOwner )
32
{
33
}
34
35
36
SHEET_FILE_CHANGE_NOTIFIER::SHEET_FILE_CHANGE_NOTIFIER
(
SHEET_SYNCHRONIZATION_MODEL
* aOwner,
37
PANEL_SYNC_SHEET_PINS
* aPanel ) :
38
SHEET_SYNCHRONIZATION_NOTIFIER
( aOwner ),
39
m_panel( aPanel )
40
{
41
}
42
43
44
bool
SHEET_FILE_CHANGE_NOTIFIER::ShouldIgnore
()
const
45
{
46
return
false
;
47
}
48
49
50
void
SHEET_FILE_CHANGE_NOTIFIER::Sync
()
51
{
52
m_panel
->
UpdateForms
();
53
}
PANEL_SYNC_SHEET_PINS
Definition:
panel_sync_sheet_pins.h:46
PANEL_SYNC_SHEET_PINS::UpdateForms
void UpdateForms()
Definition:
panel_sync_sheet_pins.cpp:97
SHEET_FILE_CHANGE_NOTIFIER::Sync
void Sync() override
Definition:
sheet_synchronization_notifier.cpp:50
SHEET_FILE_CHANGE_NOTIFIER::SHEET_FILE_CHANGE_NOTIFIER
SHEET_FILE_CHANGE_NOTIFIER(SHEET_SYNCHRONIZATION_MODEL *aOwner, PANEL_SYNC_SHEET_PINS *aPanel)
Definition:
sheet_synchronization_notifier.cpp:36
SHEET_FILE_CHANGE_NOTIFIER::m_panel
PANEL_SYNC_SHEET_PINS * m_panel
Definition:
sheet_synchronization_notifier.h:74
SHEET_FILE_CHANGE_NOTIFIER::ShouldIgnore
bool ShouldIgnore() const override
Definition:
sheet_synchronization_notifier.cpp:44
SHEET_SYNCHRONIZATION_MODEL
Definition:
sheet_synchronization_model.h:45
SHEET_SYNCHRONIZATION_NOTIFIER
Definition:
sheet_synchronization_notifier.h:33
SHEET_SYNCHRONIZATION_NOTIFIER::SHEET_SYNCHRONIZATION_NOTIFIER
SHEET_SYNCHRONIZATION_NOTIFIER(SHEET_SYNCHRONIZATION_MODEL *aOwner)
Definition:
sheet_synchronization_notifier.cpp:29
panel_sync_sheet_pins.h
sheet_synchronization_model.h
sheet_synchronization_notifier.h
src
eeschema
sync_sheet_pin
sheet_synchronization_notifier.cpp
Generated on Sun Dec 22 2024 00:05:23 for KiCad PCB EDA Suite by
1.9.6