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

The OrganizationPcbDesignRulesModel class. More...

#include <organizationpcbdesignrulesmodel.h>

Inherits QObject, and Model< ui::OrganizationPcbDesignRulesData >.

+ Collaboration diagram for OrganizationPcbDesignRulesModel:

Public Member Functions

 OrganizationPcbDesignRulesModel (const OrganizationPcbDesignRulesModel &other)=delete
 
 OrganizationPcbDesignRulesModel (QObject *parent=nullptr) noexcept
 
 ~OrganizationPcbDesignRulesModel () noexcept
 
void setReferences (Organization *organization, UndoStack *stack, std::function< void(OrganizationPcbDesignRules &)> editCallback) noexcept
 
void addItem () noexcept
 
std::size_t row_count () const override
 
std::optional< ui::OrganizationPcbDesignRulesData > row_data (std::size_t i) const override
 
void set_row_data (std::size_t i, const ui::OrganizationPcbDesignRulesData &data) noexcept override
 
OrganizationPcbDesignRulesModeloperator= (const OrganizationPcbDesignRulesModel &rhs)=delete
 

Private Member Functions

void refresh () noexcept
 
void trigger (int index, const Uuid &uuid, ui::OrganizationPcbDesignRulesAction a) noexcept
 
void setList (const QVector< OrganizationPcbDesignRules > &list)
 
QString askForName (const QString &defaultValue) const
 

Private Attributes

QPointer< OrganizationmOrganization
 
QPointer< UndoStackmUndoStack
 
std::function< void(OrganizationPcbDesignRules &)> mEditCallback
 

Detailed Description

Constructor & Destructor Documentation

◆ OrganizationPcbDesignRulesModel() [1/2]

◆ OrganizationPcbDesignRulesModel() [2/2]

OrganizationPcbDesignRulesModel ( QObject *  parent = nullptr)
explicitnoexcept

◆ ~OrganizationPcbDesignRulesModel()

Member Function Documentation

◆ setReferences()

void setReferences ( Organization organization,
UndoStack stack,
std::function< void(OrganizationPcbDesignRules &)>  editCallback 
)
noexcept
+ Here is the call graph for this function:

◆ addItem()

void addItem ( )
noexcept
+ Here is the call graph for this function:

◆ row_count()

std::size_t row_count ( ) const
override

◆ row_data()

std::optional< ui::OrganizationPcbDesignRulesData > row_data ( std::size_t  i) const
override
+ Here is the call graph for this function:

◆ set_row_data()

void set_row_data ( std::size_t  i,
const ui::OrganizationPcbDesignRulesData &  data 
)
overridenoexcept

◆ operator=()

◆ refresh()

void refresh ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ trigger()

void trigger ( int  index,
const Uuid uuid,
ui::OrganizationPcbDesignRulesAction  a 
)
privatenoexcept
+ Here is the call graph for this function:

◆ setList()

void setList ( const QVector< OrganizationPcbDesignRules > &  list)
private
+ Here is the caller graph for this function:

◆ askForName()

QString askForName ( const QString &  defaultValue) const
private
+ Here is the caller graph for this function:

Member Data Documentation

◆ mOrganization

QPointer<Organization> mOrganization
private

◆ mUndoStack

QPointer<UndoStack> mUndoStack
private

◆ mEditCallback

std::function<void(OrganizationPcbDesignRules&)> mEditCallback
private

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