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
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 SaveBoard( const wxString& aFileName, BOARD* aBoard,
51 const STRING_UTF8_MAP* aProperties = nullptr,
52 PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
53
54 /*
55 * Write all the settings of the BOARD* set by setBoard() and then adds all the
56 * BOARD_ITEMs found in selection formatted by PCB_PLUGIN to clipboard as sexpr text
57 */
58 void SaveSelection( const PCB_SELECTION& selected, bool isFootprintEditor );
59
61
62 BOARD* LoadBoard( const wxString& aFileName, BOARD* aAppendToMe,
63 const STRING_UTF8_MAP* aProperties = nullptr, PROJECT* aProject = nullptr,
64 PROGRESS_REPORTER* aProgressReporter = nullptr ) override;
65
66 void SetBoard( BOARD* aBoard );
67
68private:
70};
71
72
73#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:276
void SaveSelection(const PCB_SELECTION &selected, bool isFootprintEditor)
STRING_FORMATTER m_formatter
BOARD_ITEM * Parse()
BOARD * LoadBoard(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 SaveBoard(const wxString &aFileName, BOARD *aBoard, const STRING_UTF8_MAP *aProperties=nullptr, PROGRESS_REPORTER *aProgressReporter=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:275
A progress reporter interface for use in multi-threaded environments.
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.