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

The RuleCheckListWidget class. More...

#include <rulechecklistwidget.h>

+ Inheritance diagram for RuleCheckListWidget:
+ Collaboration diagram for RuleCheckListWidget:

Public Member Functions

 RuleCheckListWidget (QWidget *parent=nullptr) noexcept
 
 RuleCheckListWidget (const RuleCheckListWidget &other)=delete
 
 ~RuleCheckListWidget () noexcept
 
const std::optional< int > & getUnapprovedMessageCount () const noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setHandler (IF_RuleCheckHandler *handler) noexcept
 
void setMessages (const std::optional< RuleCheckMessageList > &messages) noexcept
 
void setApprovals (const QSet< SExpression > &approvals) noexcept
 
RuleCheckListWidgetoperator= (const RuleCheckListWidget &rhs)=delete
 

Private Member Functions

void updateList () noexcept
 
void currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void itemDoubleClicked (QListWidgetItem *item) noexcept
 
bool ruleCheckFixAvailable (std::shared_ptr< const RuleCheckMessage > msg) noexcept override
 
void ruleCheckFixRequested (std::shared_ptr< const RuleCheckMessage > msg) noexcept override
 
void ruleCheckDescriptionRequested (std::shared_ptr< const RuleCheckMessage > msg) noexcept override
 
void ruleCheckApproveRequested (std::shared_ptr< const RuleCheckMessage > msg, bool approve) noexcept override
 
void ruleCheckMessageSelected (std::shared_ptr< const RuleCheckMessage > msg) noexcept override
 
void ruleCheckMessageDoubleClicked (std::shared_ptr< const RuleCheckMessage > msg) noexcept override
 
 IF_RuleCheckHandler () noexcept
 
 IF_RuleCheckHandler (const IF_RuleCheckHandler &) noexcept
 
virtual ~IF_RuleCheckHandler () noexcept
 

Private Attributes

QScopedPointer< QListWidget > mListWidget
 
bool mReadOnly
 
IF_RuleCheckHandlermHandler
 
std::optional< RuleCheckMessageListmMessages
 
RuleCheckMessageList mDisplayedMessages
 
QSet< SExpressionmApprovals
 
std::optional< int > mUnapprovedMessageCount
 

Detailed Description

Constructor & Destructor Documentation

◆ RuleCheckListWidget() [1/2]

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

◆ RuleCheckListWidget() [2/2]

RuleCheckListWidget ( const RuleCheckListWidget other)
delete

◆ ~RuleCheckListWidget()

~RuleCheckListWidget ( )
noexcept

Member Function Documentation

◆ getUnapprovedMessageCount()

const std::optional< int > & getUnapprovedMessageCount ( ) const
inlinenoexcept

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept

◆ setHandler()

void setHandler ( IF_RuleCheckHandler handler)
noexcept

◆ setMessages()

void setMessages ( const std::optional< RuleCheckMessageList > &  messages)
noexcept

◆ setApprovals()

void setApprovals ( const QSet< SExpression > &  approvals)
noexcept

◆ operator=()

RuleCheckListWidget & operator= ( const RuleCheckListWidget rhs)
delete

◆ updateList()

void updateList ( )
privatenoexcept
+ Here is the call graph for this function:

◆ currentItemChanged()

void currentItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept
+ Here is the caller graph for this function:

◆ itemDoubleClicked()

void itemDoubleClicked ( QListWidgetItem *  item)
privatenoexcept
+ Here is the caller graph for this function:

◆ ruleCheckFixAvailable()

bool ruleCheckFixAvailable ( std::shared_ptr< const RuleCheckMessage msg)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

◆ ruleCheckFixRequested()

void ruleCheckFixRequested ( std::shared_ptr< const RuleCheckMessage msg)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

◆ ruleCheckDescriptionRequested()

void ruleCheckDescriptionRequested ( std::shared_ptr< const RuleCheckMessage msg)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

◆ ruleCheckApproveRequested()

void ruleCheckApproveRequested ( std::shared_ptr< const RuleCheckMessage msg,
bool  approve 
)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

◆ ruleCheckMessageSelected()

void ruleCheckMessageSelected ( std::shared_ptr< const RuleCheckMessage msg)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

◆ ruleCheckMessageDoubleClicked()

void ruleCheckMessageDoubleClicked ( std::shared_ptr< const RuleCheckMessage msg)
overrideprivatevirtualnoexcept

Implements IF_RuleCheckHandler.

Member Data Documentation

◆ mListWidget

QScopedPointer<QListWidget> mListWidget
private

◆ mReadOnly

bool mReadOnly
private

◆ mHandler

IF_RuleCheckHandler* mHandler
private

◆ mMessages

std::optional<RuleCheckMessageList> mMessages
private

◆ mDisplayedMessages

RuleCheckMessageList mDisplayedMessages
private

◆ mApprovals

QSet<SExpression> mApprovals
private

◆ mUnapprovedMessageCount

std::optional<int> mUnapprovedMessageCount
private

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