LibrePCB Developers Documentation
InitializeWorkspaceWizardContext Class Referencefinal

The InitializeWorkspaceWizardContext class. More...

#include <initializeworkspacewizardcontext.h>

Inherits QObject.

+ Collaboration diagram for InitializeWorkspaceWizardContext:

Public Types

enum  PageId
 

Public Member Functions

 InitializeWorkspaceWizardContext ()=delete
 
 InitializeWorkspaceWizardContext (const InitializeWorkspaceWizardContext &other)=delete
 
 InitializeWorkspaceWizardContext (const FilePath &ws, QObject *parent=nullptr) noexcept
 
 ~InitializeWorkspaceWizardContext () noexcept
 
const FilePathgetWorkspacePath () const noexcept
 
const tl::optional< Version > & getVersionToImport () const noexcept
 
const QString & getAppLocale () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
const QStringList & getLibraryNormOrder () const noexcept
 
const QString & getUserName () const noexcept
 
void setVersionToImport (const tl::optional< Version > &version) noexcept
 
void setAppLocale (const QString &locale) noexcept
 
void setLengthUnit (const LengthUnit &unit) noexcept
 
void setLibraryNormOrder (const QStringList &order) noexcept
 
void setUserName (const QString &name) noexcept
 
std::unique_ptr< AsyncCopyOperationcreateImportCopyOperation () const noexcept
 
void initializeEmptyWorkspace () const
 
InitializeWorkspaceWizardContextoperator= (const InitializeWorkspaceWizardContext &rhs)=delete
 

Private Attributes

FilePath mWorkspacePath
 
tl::optional< VersionmVersionToImport
 
QString mAppLocale
 
LengthUnit mLengthUnit
 
QStringList mLibraryNormOrder
 
QString mUserName
 

Detailed Description

Member Enumeration Documentation

◆ PageId

enum PageId
Enumerator
ID_None 

last page

ID_ChooseImportVersion 
ID_FinalizeImport 
ID_ChooseSettings 

Constructor & Destructor Documentation

◆ InitializeWorkspaceWizardContext() [1/3]

◆ InitializeWorkspaceWizardContext() [2/3]

◆ InitializeWorkspaceWizardContext() [3/3]

InitializeWorkspaceWizardContext ( const FilePath ws,
QObject *  parent = nullptr 
)
noexcept

◆ ~InitializeWorkspaceWizardContext()

Member Function Documentation

◆ getWorkspacePath()

const FilePath& getWorkspacePath ( ) const
inlinenoexcept

◆ getVersionToImport()

const tl::optional<Version>& getVersionToImport ( ) const
inlinenoexcept

◆ getAppLocale()

const QString& getAppLocale ( ) const
inlinenoexcept

◆ getLengthUnit()

const LengthUnit& getLengthUnit ( ) const
inlinenoexcept

◆ getLibraryNormOrder()

const QStringList& getLibraryNormOrder ( ) const
inlinenoexcept

◆ getUserName()

const QString& getUserName ( ) const
inlinenoexcept

◆ setVersionToImport()

void setVersionToImport ( const tl::optional< Version > &  version)
inlinenoexcept

◆ setAppLocale()

void setAppLocale ( const QString &  locale)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setLengthUnit()

void setLengthUnit ( const LengthUnit unit)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setLibraryNormOrder()

void setLibraryNormOrder ( const QStringList &  order)
inlinenoexcept
+ Here is the caller graph for this function:

◆ setUserName()

void setUserName ( const QString &  name)
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createImportCopyOperation()

std::unique_ptr< AsyncCopyOperation > createImportCopyOperation ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initializeEmptyWorkspace()

void initializeEmptyWorkspace ( ) const
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspacePath

FilePath mWorkspacePath
private

◆ mVersionToImport

tl::optional<Version> mVersionToImport
private

◆ mAppLocale

QString mAppLocale
private

◆ mLengthUnit

LengthUnit mLengthUnit
private

◆ mLibraryNormOrder

QStringList mLibraryNormOrder
private

◆ mUserName

QString mUserName
private

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