LibrePCB Developers Documentation
Loading...
Searching...
No Matches
CmdOrganizationEdit Class Referencefinal

The CmdOrganizationEdit class. More...

#include <cmdorganizationedit.h>

+ Inheritance diagram for CmdOrganizationEdit:
+ Collaboration diagram for CmdOrganizationEdit:

Public Member Functions

 CmdOrganizationEdit ()=delete
 
 CmdOrganizationEdit (const CmdOrganizationEdit &other)=delete
 
 CmdOrganizationEdit (Organization &organization) noexcept
 
 ~CmdOrganizationEdit () noexcept
 
void setLogoPng (const QByteArray &png) noexcept
 
void setUrl (const QUrl &url) noexcept
 
void setPriority (int priority) noexcept
 
void setPcbDesignRules (const QVector< OrganizationPcbDesignRules > &list) noexcept
 
void setPcbOutputJobs (const OutputJobList &jobs) noexcept
 
void setAssemblyOutputJobs (const OutputJobList &jobs) noexcept
 
CmdOrganizationEditoperator= (const CmdOrganizationEdit &rhs)=delete
 
- Public Member Functions inherited from CmdLibraryBaseElementEdit
 CmdLibraryBaseElementEdit ()=delete
 
 CmdLibraryBaseElementEdit (const CmdLibraryBaseElementEdit &other)=delete
 
 CmdLibraryBaseElementEdit (LibraryBaseElement &element, const QString &text) noexcept
 
virtual ~CmdLibraryBaseElementEdit () noexcept
 
void setName (const QString &locale, const ElementName &name) noexcept
 
void setNames (const LocalizedNameMap &names) noexcept
 
void setDescription (const QString &locale, const QString &desc) noexcept
 
void setDescriptions (const LocalizedDescriptionMap &descriptions) noexcept
 
void setKeywords (const QString &locale, const QString &keywords) noexcept
 
void setKeywords (const LocalizedKeywordsMap &keywords) noexcept
 
void setVersion (const Version &version) noexcept
 
void setAuthor (const QString &author) noexcept
 
void setCreated (const QDateTime &created) noexcept
 
void setDeprecated (bool deprecated) noexcept
 
CmdLibraryBaseElementEditoperator= (const CmdLibraryBaseElementEdit &rhs)=delete
 
- Public Member Functions inherited from UndoCommand
 UndoCommand ()=delete
 
 UndoCommand (const UndoCommand &other)=delete
 
 UndoCommand (const QString &text) noexcept
 
virtual ~UndoCommand () noexcept
 
const QString & getText () const noexcept
 
bool wasEverExecuted () const noexcept
 This method shows whether that command was ever executed (execute() called successfully)
 
bool wasEverReverted () const noexcept
 This method shows whether that command was ever reverted (undo() called at least one time)
 
bool isCurrentlyExecuted () const noexcept
 This method shows whether that command is currently executed (redo() called one time more than undo())
 
virtual bool execute () final
 Execute the command (must only be called once)
 
virtual void undo () final
 Undo the command.
 
virtual void redo () final
 Redo the command.
 
UndoCommandoperator= (const UndoCommand &rhs)=delete
 

Private Member Functions

bool performExecute () override
 Execute the command the first time.
 
void performUndo () override
 Undo the command.
 
void performRedo () override
 Redo the command.
 

Private Attributes

OrganizationmOrganization
 
QByteArray mOldLogo
 
QByteArray mNewLogo
 
QUrl mOldUrl
 
QUrl mNewUrl
 
int mOldPriority
 
int mNewPriority
 
QVector< OrganizationPcbDesignRulesmOldPcbDesignRules
 
QVector< OrganizationPcbDesignRulesmNewPcbDesignRules
 
OutputJobList mOldPcbOutputJobs
 
OutputJobList mNewPcbOutputJobs
 
OutputJobList mOldAssemblyOutputJobs
 
OutputJobList mNewAssemblyOutputJobs
 

Additional Inherited Members

- Protected Attributes inherited from UndoCommand
QString mText
 

Detailed Description

Constructor & Destructor Documentation

◆ CmdOrganizationEdit() [1/3]

CmdOrganizationEdit ( )
delete

◆ CmdOrganizationEdit() [2/3]

CmdOrganizationEdit ( const CmdOrganizationEdit other)
delete

◆ CmdOrganizationEdit() [3/3]

CmdOrganizationEdit ( Organization organization)
explicitnoexcept

◆ ~CmdOrganizationEdit()

~CmdOrganizationEdit ( )
noexcept

Member Function Documentation

◆ setLogoPng()

void setLogoPng ( const QByteArray &  png)
noexcept

◆ setUrl()

void setUrl ( const QUrl &  url)
noexcept

◆ setPriority()

void setPriority ( int  priority)
noexcept

◆ setPcbDesignRules()

void setPcbDesignRules ( const QVector< OrganizationPcbDesignRules > &  list)
noexcept

◆ setPcbOutputJobs()

void setPcbOutputJobs ( const OutputJobList jobs)
noexcept

◆ setAssemblyOutputJobs()

void setAssemblyOutputJobs ( const OutputJobList jobs)
noexcept

◆ operator=()

CmdOrganizationEdit & operator= ( const CmdOrganizationEdit rhs)
delete

◆ performExecute()

bool performExecute ( )
overrideprivatevirtual

Execute the command the first time.

Note
This method must be implemented in all derived classes. If the first time execution is exactly identical to an "redo" action, you can simple call librepcb::editor::UndoCommand::performRedo() in the implementation of this method.
Return values
trueIf the command has done some changes
falseIf the command has done nothing (the command can be deleted)

Reimplemented from CmdLibraryBaseElementEdit.

+ Here is the call graph for this function:

◆ performUndo()

void performUndo ( )
overrideprivatevirtual

Undo the command.

Note
This method must be implemented in all derived classes.

Reimplemented from CmdLibraryBaseElementEdit.

+ Here is the call graph for this function:

◆ performRedo()

void performRedo ( )
overrideprivatevirtual

Redo the command.

Note
This method must be implemented in all derived classes.

Reimplemented from CmdLibraryBaseElementEdit.

+ Here is the call graph for this function:

Member Data Documentation

◆ mOrganization

Organization& mOrganization
private

◆ mOldLogo

QByteArray mOldLogo
private

◆ mNewLogo

QByteArray mNewLogo
private

◆ mOldUrl

QUrl mOldUrl
private

◆ mNewUrl

QUrl mNewUrl
private

◆ mOldPriority

int mOldPriority
private

◆ mNewPriority

int mNewPriority
private

◆ mOldPcbDesignRules

QVector<OrganizationPcbDesignRules> mOldPcbDesignRules
private

◆ mNewPcbDesignRules

QVector<OrganizationPcbDesignRules> mNewPcbDesignRules
private

◆ mOldPcbOutputJobs

OutputJobList mOldPcbOutputJobs
private

◆ mNewPcbOutputJobs

OutputJobList mNewPcbOutputJobs
private

◆ mOldAssemblyOutputJobs

OutputJobList mOldAssemblyOutputJobs
private

◆ mNewAssemblyOutputJobs

OutputJobList mNewAssemblyOutputJobs
private

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