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 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
#include "
sheet_synchronization_notifier.h
"
22
#include "
panel_sync_sheet_pins.h
"
23
#include "
sheet_synchronization_model.h
"
24
25
SHEET_SYNCHRONIZATION_NOTIFIER::SHEET_SYNCHRONIZATION_NOTIFIER
(
26
SHEET_SYNCHRONIZATION_MODEL
* aOwner ) :
27
m_owner
( aOwner )
28
{
29
}
30
31
32
SHEET_FILE_CHANGE_NOTIFIER::SHEET_FILE_CHANGE_NOTIFIER
(
SHEET_SYNCHRONIZATION_MODEL
* aOwner,
33
PANEL_SYNC_SHEET_PINS
* aPanel ) :
34
SHEET_SYNCHRONIZATION_NOTIFIER
( aOwner ),
35
m_panel
( aPanel )
36
{
37
}
38
39
40
bool
SHEET_FILE_CHANGE_NOTIFIER::ShouldIgnore
()
const
41
{
42
return
false
;
43
}
44
45
46
void
SHEET_FILE_CHANGE_NOTIFIER::Sync
()
47
{
48
m_panel
->UpdateForms();
49
}
PANEL_SYNC_SHEET_PINS
Definition
panel_sync_sheet_pins.h:43
SHEET_FILE_CHANGE_NOTIFIER::Sync
void Sync() override
Definition
sheet_synchronization_notifier.cpp:46
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:32
SHEET_FILE_CHANGE_NOTIFIER::m_panel
PANEL_SYNC_SHEET_PINS * m_panel
Definition
sheet_synchronization_notifier.h:70
SHEET_FILE_CHANGE_NOTIFIER::ShouldIgnore
bool ShouldIgnore() const override
Definition
sheet_synchronization_notifier.cpp:40
SHEET_SYNCHRONIZATION_MODEL
Definition
sheet_synchronization_model.h:41
SHEET_SYNCHRONIZATION_NOTIFIER::SHEET_SYNCHRONIZATION_NOTIFIER
SHEET_SYNCHRONIZATION_NOTIFIER(SHEET_SYNCHRONIZATION_MODEL *aOwner)
Definition
sheet_synchronization_notifier.cpp:25
SHEET_SYNCHRONIZATION_NOTIFIER::m_owner
SHEET_SYNCHRONIZATION_MODEL * m_owner
Definition
sheet_synchronization_notifier.h:50
panel_sync_sheet_pins.h
sheet_synchronization_model.h
sheet_synchronization_notifier.h
src
eeschema
sync_sheet_pin
sheet_synchronization_notifier.cpp
Generated on Fri Jun 26 2026 00:05:36 for KiCad PCB EDA Suite by
1.13.2