LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SymbolClipboardData Class Referencefinal

The SymbolClipboardData class. More...

#include <symbolclipboarddata.h>

+ Inheritance diagram for SymbolClipboardData:
+ 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
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Static Public Member Functions

static std::unique_ptr
< SymbolClipboardData
fromMimeData (const QMimeData *mime)
 
- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

Private Member Functions

void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
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 ( )
delete

+ Here is the caller graph for this function:

SymbolClipboardData ( const SymbolClipboardData other)
delete
SymbolClipboardData ( const Uuid symbolUuid,
const Point cursorPos 
)
noexcept
SymbolClipboardData ( const SExpression node)
explicit
~SymbolClipboardData ( )
noexcept

Member Function Documentation

bool getItemCount ( ) const
inlinenoexcept

+ Here is the call graph for this function:

const Uuid& getSymbolUuid ( ) const
inlinenoexcept
const Point& getCursorPos ( ) const
inlinenoexcept
SymbolPinList& getPins ( )
inlinenoexcept
const SymbolPinList& getPins ( ) const
inlinenoexcept
PolygonList& getPolygons ( )
inlinenoexcept
const PolygonList& getPolygons ( ) const
inlinenoexcept
CircleList& getCircles ( )
inlinenoexcept
const CircleList& getCircles ( ) const
inlinenoexcept
TextList& getTexts ( )
inlinenoexcept
const TextList& getTexts ( ) const
inlinenoexcept
std::unique_ptr< QMimeData > toMimeData ( const IF_GraphicsLayerProvider lp)

+ Here is the call graph for this function:

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:

SymbolClipboardData& operator= ( const SymbolClipboardData rhs)
delete
void serialize ( SExpression root) const
overrideprivatevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ Here is the call graph for this function:

QPixmap generatePixmap ( const IF_GraphicsLayerProvider lp)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString getMimeType ( )
staticprivatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

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

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