LibrePCB Developers Documentation
SymbolClipboardData Class Referencefinal

The SymbolClipboardData class. More...

#include <symbolclipboarddata.h>

+ Collaboration diagram for SymbolClipboardData:

Public Member Functions

 SymbolClipboardData ()=delete
 
 SymbolClipboardData (const SymbolClipboardData &other)=delete
 
 SymbolClipboardData (const Uuid &symbolUuid, const Point &cursorPos) noexcept
 
 SymbolClipboardData (const SExpression &node)
 
 ~SymbolClipboardData () noexcept
 
bool getItemCount () const noexcept
 
const UuidgetSymbolUuid () const noexcept
 
const PointgetCursorPos () const noexcept
 
SymbolPinListgetPins () noexcept
 
const SymbolPinListgetPins () const noexcept
 
PolygonListgetPolygons () noexcept
 
const PolygonListgetPolygons () const noexcept
 
CircleListgetCircles () noexcept
 
const CircleListgetCircles () const noexcept
 
TextListgetTexts () noexcept
 
const TextListgetTexts () const noexcept
 
std::unique_ptr< QMimeData > toMimeData (const IF_GraphicsLayerProvider &lp)
 
SymbolClipboardDataoperator= (const SymbolClipboardData &rhs)=delete
 

Static Public Member Functions

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

Private Member Functions

QPixmap generatePixmap (const IF_GraphicsLayerProvider &lp) noexcept
 

Static Private Member Functions

static QString getMimeType () noexcept
 

Private Attributes

Uuid mSymbolUuid
 
Point mCursorPos
 
SymbolPinList mPins
 
PolygonList mPolygons
 
CircleList mCircles
 
TextList mTexts
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolClipboardData() [1/4]

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

◆ SymbolClipboardData() [2/4]

SymbolClipboardData ( const SymbolClipboardData other)
delete

◆ SymbolClipboardData() [3/4]

SymbolClipboardData ( const Uuid symbolUuid,
const Point cursorPos 
)
noexcept

◆ SymbolClipboardData() [4/4]

SymbolClipboardData ( const SExpression node)
explicit

◆ ~SymbolClipboardData()

~SymbolClipboardData ( )
noexcept

Member Function Documentation

◆ getItemCount()

bool getItemCount ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSymbolUuid()

const Uuid & getSymbolUuid ( ) const
inlinenoexcept

◆ getCursorPos()

const Point & getCursorPos ( ) const
inlinenoexcept

◆ getPins() [1/2]

SymbolPinList & getPins ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPins() [2/2]

const SymbolPinList & getPins ( ) const
inlinenoexcept

◆ getPolygons() [1/2]

PolygonList & getPolygons ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPolygons() [2/2]

const PolygonList & getPolygons ( ) const
inlinenoexcept

◆ getCircles() [1/2]

CircleList & getCircles ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getCircles() [2/2]

const CircleList & getCircles ( ) const
inlinenoexcept

◆ getTexts() [1/2]

TextList & getTexts ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getTexts() [2/2]

const TextList & getTexts ( ) const
inlinenoexcept

◆ toMimeData()

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

◆ fromMimeData()

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

◆ operator=()

SymbolClipboardData & operator= ( const SymbolClipboardData rhs)
delete

◆ generatePixmap()

QPixmap generatePixmap ( const IF_GraphicsLayerProvider lp)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMimeType()

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

Member Data Documentation

◆ mSymbolUuid

Uuid mSymbolUuid
private

◆ mCursorPos

Point mCursorPos
private

◆ mPins

SymbolPinList mPins
private

◆ mPolygons

PolygonList mPolygons
private

◆ mCircles

CircleList mCircles
private

◆ mTexts

TextList mTexts
private

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