KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ds_proxy_undo_item.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) 2019 CERN
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
#ifndef DS_PROXY_UNDO_ITEM_H
22
#define DS_PROXY_UNDO_ITEM_H
23
24
#include <
eda_item.h
>
25
#include <
title_block.h
>
26
#include <
page_info.h
>
27
28
29
class
DS_PROXY_UNDO_ITEM
:
public
EDA_ITEM
30
{
31
public
:
32
DS_PROXY_UNDO_ITEM
(
const
EDA_DRAW_FRAME
* aFrame );
33
34
/*
35
* Restores the saved drawing sheet layout to the global drawing sheet record, and the saved
36
* page info and title blocks to the given frame. The WS_DRAW_ITEMs are rehydrated and
37
* installed in aView if it is not null (ie: if we're in the PageLayout Editor).
38
*/
39
void
Restore
(
EDA_DRAW_FRAME
* aFrame,
KIGFX::VIEW
* aView =
nullptr
);
40
41
#if defined(DEBUG)
43
void
Show(
int
x, std::ostream& st )
const override
{ }
44
#endif
45
46
wxString
GetClass
()
const override
47
{
48
return
wxT(
"DS_PROXY_UNDO_ITEM"
);
49
}
50
51
protected
:
52
TITLE_BLOCK
m_titleBlock
;
53
PAGE_INFO
m_pageInfo
;
54
wxString
m_layoutSerialization
;
55
int
m_selectedDataItem
;
56
int
m_selectedDrawItem
;
57
};
58
59
#endif
/* DS_PROXY_UNDO_ITEM_H */
DS_PROXY_UNDO_ITEM::m_pageInfo
PAGE_INFO m_pageInfo
Definition
ds_proxy_undo_item.h:53
DS_PROXY_UNDO_ITEM::Restore
void Restore(EDA_DRAW_FRAME *aFrame, KIGFX::VIEW *aView=nullptr)
Definition
ds_proxy_undo_item.cpp:62
DS_PROXY_UNDO_ITEM::m_selectedDataItem
int m_selectedDataItem
Definition
ds_proxy_undo_item.h:55
DS_PROXY_UNDO_ITEM::m_layoutSerialization
wxString m_layoutSerialization
Definition
ds_proxy_undo_item.h:54
DS_PROXY_UNDO_ITEM::GetClass
wxString GetClass() const override
Return the class name.
Definition
ds_proxy_undo_item.h:46
DS_PROXY_UNDO_ITEM::m_selectedDrawItem
int m_selectedDrawItem
Definition
ds_proxy_undo_item.h:56
DS_PROXY_UNDO_ITEM::DS_PROXY_UNDO_ITEM
DS_PROXY_UNDO_ITEM(const EDA_DRAW_FRAME *aFrame)
Definition
ds_proxy_undo_item.cpp:29
DS_PROXY_UNDO_ITEM::m_titleBlock
TITLE_BLOCK m_titleBlock
Definition
ds_proxy_undo_item.h:52
EDA_DRAW_FRAME
The base class for create windows for drawing purpose.
Definition
eda_draw_frame.h:83
EDA_ITEM::EDA_ITEM
EDA_ITEM(EDA_ITEM *parent, KICAD_T idType, bool isSCH_ITEM=false, bool isBOARD_ITEM=false)
Definition
eda_item.cpp:37
KIGFX::VIEW
Hold a (potentially large) number of VIEW_ITEMs and renders them on a graphics device provided by the...
Definition
view.h:63
PAGE_INFO
Describe the page size and margins of a paper page on which to eventually print or plot.
Definition
page_info.h:75
TITLE_BLOCK
Hold the information shown in the lower right corner of a plot, printout, or editing view.
Definition
title_block.h:37
eda_item.h
page_info.h
title_block.h
src
include
drawing_sheet
ds_proxy_undo_item.h
Generated on Fri Jun 26 2026 00:05:37 for KiCad PCB EDA Suite by
1.13.2