LibrePCB Developers Documentation
SchematicClipboardData Class Referencefinal

The SchematicClipboardData class. More...

#include <schematicclipboarddata.h>

+ Collaboration diagram for SchematicClipboardData:

Classes

struct  ComponentInstance
 
struct  NetSegment
 
struct  SymbolInstance
 

Public Member Functions

 SchematicClipboardData ()=delete
 
 SchematicClipboardData (const SchematicClipboardData &other)=delete
 
 SchematicClipboardData (const Uuid &schematicUuid, const Point &cursorPos, const AssemblyVariantList &assemblyVariants) noexcept
 
 SchematicClipboardData (const QByteArray &mimeData)
 
 ~SchematicClipboardData () noexcept
 
std::unique_ptr< TransactionalDirectorygetDirectory (const QString &path="") noexcept
 
const UuidgetSchematicUuid () const noexcept
 
const PointgetCursorPos () const noexcept
 
const AssemblyVariantListgetAssemblyVariants () noexcept
 
SerializableObjectList< ComponentInstance, ComponentInstance > & getComponentInstances () noexcept
 
SerializableObjectList< SymbolInstance, SymbolInstance > & getSymbolInstances () noexcept
 
SerializableObjectList< NetSegment, NetSegment > & getNetSegments () noexcept
 
PolygonListgetPolygons () noexcept
 
TextListgetTexts () noexcept
 
std::unique_ptr< QMimeData > toMimeData () const
 
SchematicClipboardDataoperator= (const SchematicClipboardData &rhs)=delete
 

Static Public Member Functions

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

Static Private Member Functions

static QString getMimeType () noexcept
 

Private Attributes

std::shared_ptr< TransactionalFileSystemmFileSystem
 
Uuid mSchematicUuid
 
Point mCursorPos
 
AssemblyVariantList mAssemblyVariants
 
SerializableObjectList< ComponentInstance, ComponentInstancemComponentInstances
 
SerializableObjectList< SymbolInstance, SymbolInstancemSymbolInstances
 
SerializableObjectList< NetSegment, NetSegmentmNetSegments
 
PolygonList mPolygons
 
TextList mTexts
 

Detailed Description

Constructor & Destructor Documentation

◆ SchematicClipboardData() [1/4]

+ Here is the caller graph for this function:

◆ SchematicClipboardData() [2/4]

◆ SchematicClipboardData() [3/4]

SchematicClipboardData ( const Uuid schematicUuid,
const Point cursorPos,
const AssemblyVariantList assemblyVariants 
)
noexcept

◆ SchematicClipboardData() [4/4]

SchematicClipboardData ( const QByteArray &  mimeData)
explicit

◆ ~SchematicClipboardData()

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

Member Function Documentation

◆ getDirectory()

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

◆ getSchematicUuid()

const Uuid & getSchematicUuid ( ) const
inlinenoexcept

◆ getCursorPos()

const Point & getCursorPos ( ) const
inlinenoexcept

◆ getAssemblyVariants()

const AssemblyVariantList & getAssemblyVariants ( )
inlinenoexcept

◆ getComponentInstances()

SerializableObjectList< ComponentInstance, ComponentInstance > & getComponentInstances ( )
inlinenoexcept

◆ getSymbolInstances()

SerializableObjectList< SymbolInstance, SymbolInstance > & getSymbolInstances ( )
inlinenoexcept

◆ getNetSegments()

SerializableObjectList< NetSegment, NetSegment > & getNetSegments ( )
inlinenoexcept

◆ getPolygons()

PolygonList & getPolygons ( )
inlinenoexcept

◆ getTexts()

TextList & getTexts ( )
inlinenoexcept

◆ toMimeData()

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

◆ fromMimeData()

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

◆ operator=()

SchematicClipboardData & operator= ( const SchematicClipboardData 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

◆ mSchematicUuid

Uuid mSchematicUuid
private

◆ mCursorPos

Point mCursorPos
private

◆ mAssemblyVariants

AssemblyVariantList mAssemblyVariants
private

◆ mComponentInstances

◆ mSymbolInstances

◆ mNetSegments

◆ mPolygons

PolygonList mPolygons
private

◆ mTexts

TextList mTexts
private

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