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

The NewElementWizardContext class. More...

#include <newelementwizardcontext.h>

Inherits QObject.

+ Collaboration diagram for NewElementWizardContext:

Public Types

enum  PageId
 
enum  ElementType
 

Public Member Functions

 NewElementWizardContext ()=delete
 
 NewElementWizardContext (const NewElementWizardContext &other)=delete
 
 NewElementWizardContext (const workspace::Workspace &ws, const Library &lib, const IF_GraphicsLayerProvider &lp, QObject *parent=nullptr) noexcept
 
 ~NewElementWizardContext () noexcept
 
const FilePathgetOutputDirectory () const noexcept
 
const workspace::WorkspacegetWorkspace () const noexcept
 
const IF_GraphicsLayerProvidergetLayerProvider () const noexcept
 
const QStringList & getLibLocaleOrder () const noexcept
 
void reset () noexcept
 
void createLibraryElement ()
 
NewElementWizardContextoperator= (const NewElementWizardContext &rhs)=delete
 

Public Attributes

ElementType mElementType
 
tl::optional< ElementNamemElementName
 
QString mElementDescription
 
QString mElementKeywords
 
QString mElementAuthor
 
tl::optional< VersionmElementVersion
 
tl::optional< UuidmElementCategoryUuid
 
SymbolPinList mSymbolPins
 
PolygonList mSymbolPolygons
 
CircleList mSymbolCircles
 
TextList mSymbolTexts
 
PackagePadList mPackagePads
 
FootprintList mPackageFootprints
 
bool mComponentSchematicOnly
 
AttributeList mComponentAttributes
 
QString mComponentDefaultValue
 
NormDependentPrefixMap mComponentPrefixes
 
ComponentSignalList mComponentSignals
 
ComponentSymbolVariantList mComponentSymbolVariants
 
tl::optional< UuidmDeviceComponentUuid
 
tl::optional< UuidmDevicePackageUuid
 
DevicePadSignalMap mDevicePadSignalMap
 

Private Attributes

const workspace::WorkspacemWorkspace
 
const library::LibrarymLibrary
 
const IF_GraphicsLayerProvidermLayerProvider
 
FilePath mOutputDirectory
 

Detailed Description

The NewElementWizardContext class.

Author
ubruhin
Date
2017-03-22

Member Enumeration Documentation

enum PageId
Enumerator
ID_None 

last page

ID_ChooseType 
ID_CopyFrom 
ID_EnterMetadata 
ID_PackagePads 
ID_ComponentProperties 
ID_ComponentSymbols 
ID_ComponentSignals 
ID_ComponentPinSignalMap 
ID_DeviceProperties 
enum ElementType
strong
Enumerator
None 
ComponentCategory 
PackageCategory 
Symbol 
Package 
Component 
Device 

Constructor & Destructor Documentation

NewElementWizardContext ( const workspace::Workspace ws,
const Library lib,
const IF_GraphicsLayerProvider lp,
QObject *  parent = nullptr 
)
noexcept
~NewElementWizardContext ( )
noexcept

Member Function Documentation

const FilePath& getOutputDirectory ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const workspace::Workspace& getWorkspace ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const IF_GraphicsLayerProvider& getLayerProvider ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

const QStringList & getLibLocaleOrder ( ) const
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void reset ( )
noexcept

+ Here is the call graph for this function:

void createLibraryElement ( )

+ Here is the call graph for this function:

NewElementWizardContext& operator= ( const NewElementWizardContext rhs)
delete

Member Data Documentation

const workspace::Workspace& mWorkspace
private
const library::Library& mLibrary
private
const IF_GraphicsLayerProvider& mLayerProvider
private
FilePath mOutputDirectory
private
ElementType mElementType
tl::optional<ElementName> mElementName
QString mElementDescription
QString mElementKeywords
QString mElementAuthor
tl::optional<Version> mElementVersion
tl::optional<Uuid> mElementCategoryUuid
SymbolPinList mSymbolPins
PolygonList mSymbolPolygons
CircleList mSymbolCircles
TextList mSymbolTexts
PackagePadList mPackagePads
FootprintList mPackageFootprints
bool mComponentSchematicOnly
AttributeList mComponentAttributes
QString mComponentDefaultValue
NormDependentPrefixMap mComponentPrefixes
ComponentSignalList mComponentSignals
ComponentSymbolVariantList mComponentSymbolVariants
tl::optional<Uuid> mDeviceComponentUuid
tl::optional<Uuid> mDevicePackageUuid
DevicePadSignalMap mDevicePadSignalMap

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