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

The FootprintClipboardData class. More...

#include <footprintclipboarddata.h>

+ Inheritance diagram for FootprintClipboardData:
+ Collaboration diagram for FootprintClipboardData:

Public Member Functions

 FootprintClipboardData ()=delete
 
 FootprintClipboardData (const FootprintClipboardData &other)=delete
 
 FootprintClipboardData (const Uuid &footprintUuid, const PackagePadList &packagePads, const Point &cursorPos) noexcept
 
 FootprintClipboardData (const SExpression &node)
 
 ~FootprintClipboardData () noexcept
 
bool getItemCount () const noexcept
 
const UuidgetFootprintUuid () const noexcept
 
const PointgetCursorPos () const noexcept
 
PackagePadListgetPackagePads () noexcept
 
const PackagePadListgetPackagePads () const noexcept
 
FootprintPadListgetFootprintPads () noexcept
 
const FootprintPadListgetFootprintPads () const noexcept
 
PolygonListgetPolygons () noexcept
 
const PolygonListgetPolygons () const noexcept
 
CircleListgetCircles () noexcept
 
const CircleListgetCircles () const noexcept
 
StrokeTextListgetStrokeTexts () noexcept
 
const StrokeTextListgetStrokeTexts () const noexcept
 
HoleListgetHoles () noexcept
 
const HoleListgetHoles () const noexcept
 
std::unique_ptr< QMimeData > toMimeData (const IF_GraphicsLayerProvider &lp)
 
FootprintClipboardDataoperator= (const FootprintClipboardData &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
< FootprintClipboardData
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 mFootprintUuid
 
PackagePadList mPackagePads
 
Point mCursorPos
 
FootprintPadList mFootprintPads
 
PolygonList mPolygons
 
CircleList mCircles
 
StrokeTextList mStrokeTexts
 
HoleList mHoles
 

Detailed Description

Constructor & Destructor Documentation

+ Here is the caller graph for this function:

FootprintClipboardData ( const Uuid footprintUuid,
const PackagePadList packagePads,
const Point cursorPos 
)
noexcept
FootprintClipboardData ( const SExpression node)
explicit
~FootprintClipboardData ( )
noexcept

Member Function Documentation

bool getItemCount ( ) const
inlinenoexcept

+ Here is the call graph for this function:

const Uuid& getFootprintUuid ( ) const
inlinenoexcept
const Point& getCursorPos ( ) const
inlinenoexcept
PackagePadList& getPackagePads ( )
inlinenoexcept
const PackagePadList& getPackagePads ( ) const
inlinenoexcept
FootprintPadList& getFootprintPads ( )
inlinenoexcept
const FootprintPadList& getFootprintPads ( ) const
inlinenoexcept
PolygonList& getPolygons ( )
inlinenoexcept
const PolygonList& getPolygons ( ) const
inlinenoexcept
CircleList& getCircles ( )
inlinenoexcept
const CircleList& getCircles ( ) const
inlinenoexcept
StrokeTextList& getStrokeTexts ( )
inlinenoexcept
const StrokeTextList& getStrokeTexts ( ) const
inlinenoexcept
HoleList& getHoles ( )
inlinenoexcept
const HoleList& getHoles ( ) const
inlinenoexcept
std::unique_ptr< QMimeData > toMimeData ( const IF_GraphicsLayerProvider lp)

+ Here is the call graph for this function:

std::unique_ptr< FootprintClipboardData > fromMimeData ( const QMimeData *  mime)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

FootprintClipboardData& operator= ( const FootprintClipboardData 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 mFootprintUuid
private
PackagePadList mPackagePads
private
Point mCursorPos
private
FootprintPadList mFootprintPads
private
PolygonList mPolygons
private
CircleList mCircles
private
StrokeTextList mStrokeTexts
private
HoleList mHoles
private

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