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 (const InitializeWorkspaceWizardContext &other)=delete
 
 InitializeWorkspaceWizardContext (QObject *parent=nullptr) noexcept
 
 ~InitializeWorkspaceWizardContext () noexcept
 
const FilePathgetWorkspacePath () const noexcept
 
bool isWorkspacePathValid () const noexcept
 
bool getWorkspaceExists () const noexcept
 
const QString & getDataDir () const noexcept
 
const std::pair< QString, QString > & getUpgradeCopyDirs () const noexcept
 
bool getNeedsInitialization () const noexcept
 
bool getNeedsUpgrade () const noexcept
 
bool getWorkspaceContainsNewerFileFormats () const noexcept
 
void setWorkspacePath (const FilePath &fp)
 
void setAppLocale (const QString &locale) noexcept
 
void setLengthUnit (const LengthUnit &unit) noexcept
 
void setLibraryNormOrder (const QStringList &order) noexcept
 
void setUserName (const QString &name) noexcept
 
void initializeEmptyWorkspace () const
 
void installExampleProjects () const noexcept
 
InitializeWorkspaceWizardContextoperator= (const InitializeWorkspaceWizardContext &rhs)=delete
 

Private Attributes

FilePath mWorkspacePath
 
bool mWorkspacePathValid
 
bool mWorkspaceExists
 
QMap< QString, VersionmDataDirs
 
QString mDataDir
 
std::pair< QString, QString > mUpgradeCopyDirs
 
QString mAppLocale
 
LengthUnit mLengthUnit
 
QStringList mLibraryNormOrder
 
QString mUserName
 

Detailed Description

Member Enumeration Documentation

◆ PageId

enum PageId
Enumerator
ID_None 

last page

ID_Welcome 
ID_ChooseWorkspace 
ID_Upgrade 
ID_ChooseSettings 

Constructor & Destructor Documentation

◆ InitializeWorkspaceWizardContext() [1/2]

◆ InitializeWorkspaceWizardContext() [2/2]

InitializeWorkspaceWizardContext ( QObject *  parent = nullptr)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~InitializeWorkspaceWizardContext()

Member Function Documentation

◆ getWorkspacePath()

const FilePath & getWorkspacePath ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isWorkspacePathValid()

bool isWorkspacePathValid ( ) const
inlinenoexcept

◆ getWorkspaceExists()

bool getWorkspaceExists ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getDataDir()

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

◆ getUpgradeCopyDirs()

const std::pair< QString, QString > & getUpgradeCopyDirs ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNeedsInitialization()

bool getNeedsInitialization ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getNeedsUpgrade()

bool getNeedsUpgrade ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getWorkspaceContainsNewerFileFormats()

bool getWorkspaceContainsNewerFileFormats ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setWorkspacePath()

void setWorkspacePath ( const FilePath fp)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ 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 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:

◆ installExampleProjects()

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

◆ operator=()

Member Data Documentation

◆ mWorkspacePath

FilePath mWorkspacePath
private

◆ mWorkspacePathValid

bool mWorkspacePathValid
private

◆ mWorkspaceExists

bool mWorkspaceExists
private

◆ mDataDirs

QMap<QString, Version> mDataDirs
private

◆ mDataDir

QString mDataDir
private

◆ mUpgradeCopyDirs

std::pair<QString, QString> mUpgradeCopyDirs
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: