KiCad PCB EDA Suite
kicad_clipboard.h
Go to the documentation of this file.
1
30#ifndef KICAD_CLIPBOARD_H
31#define KICAD_CLIPBOARD_H
32
34#include <board_item.h>
35#include <footprint.h>
37#include <memory.h>
38#include <tools/pcb_selection.h>
39
40
42{
43public:
46
47 /*
48 * Saves the entire board to the clipboard formatted using the PCB_PLUGIN formatting
49 */
50 void Save( const wxString& aFileName, BOARD* aBoard,
51 const STRING_UTF8_MAP* aProperties = nullptr ) override;
52
53 /*
54 * Write all the settings of the BOARD* set by setBoard() and then adds all the
55 * BOARD_ITEMs found in selection formatted by PCB_PLUGIN to clipboard as sexpr text
56 */
57 void SaveSelection( const PCB_SELECTION& selected, bool isFootprintEditor );
58
60
61 BOARD* Load( const wxString& aFileName, BOARD* aAppendToMe,
62 const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr,
63 PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
64
65 void SetBoard( BOARD* aBoard );
66
67private:
69};
70
71
72#endif /* KICAD_CLIPBOARD_H */
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Definition: board_item.h:58
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:265
void SaveSelection(const PCB_SELECTION &selected, bool isFootprintEditor)
STRING_FORMATTER m_formatter
BOARD_ITEM * Parse()
BOARD * Load(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties=nullptr, PROJECT *aProject=nullptr, PROGRESS_REPORTER *aProgressReporter=nullptr) override
Load information from some input file format that this PLUGIN implementation knows about into either ...
void SetBoard(BOARD *aBoard)
void Save(const wxString &aFileName, BOARD *aBoard, const STRING_UTF8_MAP *aProperties=nullptr) override
Write aBoard to a storage file in a format that this PLUGIN implementation knows about or it can be u...
A PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.
Definition: pcb_plugin.h:170
A progress reporter interface for use in multi-threaded environments.
Container for project specific data.
Definition: project.h:63
Implement an OUTPUTFORMATTER to a memory buffer.
Definition: richio.h:415
A name/value tuple with unique names and optional values.
Pcbnew s-expression file format parser definition.