20#ifndef LIBREPCB_EDITOR_ORGANIZATIONTAB_H
21#define LIBREPCB_EDITOR_ORGANIZATIONTAB_H
26#include "../libraryeditortab.h"
45class CmdOrganizationEdit;
46class OrganizationPcbDesignRulesModel;
69 std::unique_ptr<Organization> cat,
Mode mode,
70 QObject* parent =
nullptr) noexcept;
75 ui::TabData
getUiData() const noexcept override;
78 void trigger(ui::TabAction a) noexcept override;
88 bool checkOnly) override;
89 template <typename MessageType>
92 template <typename MessageType>
95 bool approved) noexcept override;
102 bool save() noexcept;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The Organization class represents a PCB manufacturer, assembly house etc.
Definition organization.h:47
The Project class represents a whole (opened) project with all its content.
Definition project.h:71
The RuleCheckMessage class.
Definition rulecheckmessage.h:45
The SExpression class.
Definition sexpression.h:69
The Signal class is used to emit signals on non-QObject derived classes.
Definition signalslot.h:65
The Version class represents a version number in the format "1.42.7".
Definition version.h:58
The CmdOrganizationEdit class.
Definition cmdorganizationedit.h:49
The LibraryEditor class.
Definition libraryeditor.h:56
Specialized base class for all library editor tabs.
Definition libraryeditortab.h:55
The OrganizationPcbDesignRulesModel class.
Definition organizationpcbdesignrulesmodel.h:54
The OrganizationTab class.
Definition organizationtab.h:55
slint::SharedString mVersionError
Definition organizationtab.h:121
bool requestClose() noexcept override
Request to close the tab.
Definition organizationtab.cpp:283
std::optional< std::pair< RuleCheckMessageList, QSet< SExpression > > > runChecksImpl() override
Definition organizationtab.cpp:311
bool save() noexcept
Definition organizationtab.cpp:430
std::unique_ptr< Organization > mOrganization
Definition organizationtab.h:110
slint::SharedString mName
Definition organizationtab.h:114
QByteArray mLogo
Definition organizationtab.h:113
slint::SharedString mDescription
Definition organizationtab.h:117
Mode
Definition organizationtab.h:63
int mPriority
Definition organizationtab.h:126
slint::SharedString mVersion
Definition organizationtab.h:120
OrganizationTab(const OrganizationTab &other)=delete
bool mDeprecated
Definition organizationtab.h:123
ui::OrganizationTabData getDerivedUiData() const noexcept
Definition organizationtab.cpp:158
void execOutputJobsDialog(const OutputJobList &jobs, void(CmdOrganizationEdit::*setter)(const OutputJobList &jobs)) noexcept
Definition organizationtab.cpp:464
void messageApprovalChanged(const SExpression &approval, bool approved) noexcept override
Definition organizationtab.cpp:338
bool autoFixImpl(const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly) override
Definition organizationtab.cpp:316
FilePath getDirectoryPath() const noexcept override
Definition organizationtab.cpp:132
bool autoFixHelper(const std::shared_ptr< const RuleCheckMessage > &msg, bool checkOnly)
Definition organizationtab.cpp:324
Version mVersionParsed
Definition organizationtab.h:122
void commitUiData() noexcept
Definition organizationtab.cpp:399
bool autoFix(const MessageType &msg)
Signal< OrganizationTab > onDerivedUiDataChanged
Definition organizationtab.h:60
slint::SharedString mNameError
Definition organizationtab.h:115
slint::SharedString mKeywords
Definition organizationtab.h:118
void setDerivedUiData(const ui::OrganizationTabData &data) noexcept
Definition organizationtab.cpp:189
void trigger(ui::TabAction a) noexcept override
Definition organizationtab.cpp:211
Project & getTmpProject()
Definition organizationtab.cpp:483
void notifyDerivedUiDataChanged() noexcept override
Definition organizationtab.cpp:348
slint::SharedString mUrl
Definition organizationtab.h:124
ElementName mNameParsed
Definition organizationtab.h:116
slint::SharedString mAuthor
Definition organizationtab.h:119
bool isWritable() const noexcept
Definition organizationtab.cpp:375
ui::TabData getUiData() const noexcept override
Definition organizationtab.cpp:136
slint::SharedString mUrlError
Definition organizationtab.h:125
std::shared_ptr< OrganizationPcbDesignRulesModel > mPcbDesignRules
Definition organizationtab.h:127
std::unique_ptr< Project > mTmpProject
Definition organizationtab.h:130
void refreshUiData() noexcept
Definition organizationtab.cpp:379
Definition occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition rulecheckmessage.h:104
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition elementname.h:84