KiCad PCB EDA Suite
Loading...
Searching...
No Matches
kicad_clipboard.h
Go to the documentation of this file.
1
30#ifndef KICAD_CLIPBOARD_H
31#define KICAD_CLIPBOARD_H
32
33#include <board_item.h>
34#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_IO_KICAD_SEXPR formatting
49 */
50 void SaveBoard( 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_IO_KICAD_SEXPR to clipboard as sexpr text
56 */
57 void SaveSelection( const PCB_SELECTION& selected, bool isFootprintEditor );
58
60
61 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
62 const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr ) override;
63
64 void SetBoard( BOARD* aBoard );
65
66private:
68};
69
70
71#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:77
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:281
void SaveSelection(const PCB_SELECTION &selected, bool isFootprintEditor)
STRING_FORMATTER m_formatter
BOARD * LoadBoard(const wxString &aFileName, BOARD *aAppendToMe, const STRING_UTF8_MAP *aProperties=nullptr, PROJECT *aProject=nullptr) override
Load information from some input file format that this PCB_IO implementation knows about into either ...
BOARD_ITEM * Parse()
void SaveBoard(const wxString &aFileName, BOARD *aBoard, const STRING_UTF8_MAP *aProperties=nullptr) override
Write aBoard to a storage file in a format that this PCB_IO implementation knows about or it can be u...
void SetBoard(BOARD *aBoard)
A #PLUGIN derivation for saving and loading Pcbnew s-expression formatted files.
Container for project specific data.
Definition: project.h:62
Implement an OUTPUTFORMATTER to a memory buffer.
Definition: richio.h:433
A name/value tuple with unique names and optional values.
Pcbnew s-expression file format parser definition.