LibrePCB Developers Documentation
BoardClipboardData Class Referencefinal

The BoardClipboardData class. More...

#include <boardclipboarddata.h>

+ Collaboration diagram for BoardClipboardData:

Classes

struct  Device
 
struct  NetSegment
 
struct  Plane
 

Public Member Functions

 BoardClipboardData ()=delete
 
 BoardClipboardData (const BoardClipboardData &other)=delete
 
 BoardClipboardData (const Uuid &boardUuid, const Point &cursorPos) noexcept
 
 BoardClipboardData (const QByteArray &mimeData)
 
 ~BoardClipboardData () noexcept
 
bool isEmpty () const noexcept
 
std::unique_ptr< TransactionalDirectorygetDirectory (const QString &path="") noexcept
 
const UuidgetBoardUuid () const noexcept
 
const PointgetCursorPos () const noexcept
 
SerializableObjectList< Device, Device > & getDevices () noexcept
 
SerializableObjectList< NetSegment, NetSegment > & getNetSegments () noexcept
 
SerializableObjectList< Plane, Plane > & getPlanes () noexcept
 
QList< BoardZoneData > & getZones () noexcept
 
QList< BoardPolygonData > & getPolygons () noexcept
 
QList< BoardStrokeTextData > & getStrokeTexts () noexcept
 
QList< BoardHoleData > & getHoles () noexcept
 
QMap< std::pair< Uuid, Uuid >, Point > & getPadPositions () noexcept
 
std::unique_ptr< QMimeData > toMimeData () const
 
BoardClipboardDataoperator= (const BoardClipboardData &rhs)=delete
 

Static Public Member Functions

static std::unique_ptr< BoardClipboardDatafromMimeData (const QMimeData *mime)
 

Static Private Member Functions

static QString getMimeType () noexcept
 

Private Attributes

std::shared_ptr< TransactionalFileSystemmFileSystem
 
Uuid mBoardUuid
 
Point mCursorPos
 
SerializableObjectList< Device, DevicemDevices
 
SerializableObjectList< NetSegment, NetSegmentmNetSegments
 
SerializableObjectList< Plane, PlanemPlanes
 
QList< BoardZoneDatamZones
 
QList< BoardPolygonDatamPolygons
 
QList< BoardStrokeTextDatamStrokeTexts
 
QList< BoardHoleDatamHoles
 
QMap< std::pair< Uuid, Uuid >, PointmPadPositions
 

Detailed Description

The BoardClipboardData class.

Constructor & Destructor Documentation

◆ BoardClipboardData() [1/4]

BoardClipboardData ( )
delete
+ Here is the caller graph for this function:

◆ BoardClipboardData() [2/4]

BoardClipboardData ( const BoardClipboardData other)
delete

◆ BoardClipboardData() [3/4]

BoardClipboardData ( const Uuid boardUuid,
const Point cursorPos 
)
noexcept

◆ BoardClipboardData() [4/4]

BoardClipboardData ( const QByteArray &  mimeData)
explicit
+ Here is the call graph for this function:

◆ ~BoardClipboardData()

~BoardClipboardData ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ isEmpty()

bool isEmpty ( ) const
noexcept

◆ getDirectory()

std::unique_ptr< TransactionalDirectory > getDirectory ( const QString &  path = "")
noexcept

◆ getBoardUuid()

const Uuid & getBoardUuid ( ) const
inlinenoexcept

◆ getCursorPos()

const Point & getCursorPos ( ) const
inlinenoexcept

◆ getDevices()

SerializableObjectList< Device, Device > & getDevices ( )
inlinenoexcept

◆ getNetSegments()

SerializableObjectList< NetSegment, NetSegment > & getNetSegments ( )
inlinenoexcept

◆ getPlanes()

SerializableObjectList< Plane, Plane > & getPlanes ( )
inlinenoexcept

◆ getZones()

QList< BoardZoneData > & getZones ( )
inlinenoexcept

◆ getPolygons()

QList< BoardPolygonData > & getPolygons ( )
inlinenoexcept

◆ getStrokeTexts()

QList< BoardStrokeTextData > & getStrokeTexts ( )
inlinenoexcept

◆ getHoles()

QList< BoardHoleData > & getHoles ( )
inlinenoexcept

◆ getPadPositions()

QMap< std::pair< Uuid, Uuid >, Point > & getPadPositions ( )
inlinenoexcept

◆ toMimeData()

std::unique_ptr< QMimeData > toMimeData ( ) const
+ Here is the call graph for this function:

◆ fromMimeData()

std::unique_ptr< BoardClipboardData > fromMimeData ( const QMimeData *  mime)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

BoardClipboardData & operator= ( const BoardClipboardData rhs)
delete

◆ getMimeType()

QString getMimeType ( )
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mFileSystem

std::shared_ptr<TransactionalFileSystem> mFileSystem
private

◆ mBoardUuid

Uuid mBoardUuid
private

◆ mCursorPos

Point mCursorPos
private

◆ mDevices

SerializableObjectList<Device, Device> mDevices
private

◆ mNetSegments

◆ mPlanes

SerializableObjectList<Plane, Plane> mPlanes
private

◆ mZones

QList<BoardZoneData> mZones
private

◆ mPolygons

QList<BoardPolygonData> mPolygons
private

◆ mStrokeTexts

QList<BoardStrokeTextData> mStrokeTexts
private

◆ mHoles

QList<BoardHoleData> mHoles
private

◆ mPadPositions

QMap<std::pair<Uuid, Uuid>, Point> mPadPositions
private

The documentation for this class was generated from the following files: