Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CPanelChannelsFilterChannels Class Reference

#include <CPanelChannelsFilterChannels.hpp>

Public Member Functions

 CPanelChannelsFilterChannels ()=delete
 
 CPanelChannelsFilterChannels (const CPanelChannelsFilterChannels &other)=delete
 
CPanelChannelsFilterChannelsoperator= (const CPanelChannelsFilterChannels &other)=delete
 
 CPanelChannelsFilterChannels (CPanelChannelsFilterChannels &&other)=delete
 
CPanelChannelsFilterChannelsoperator= (CPanelChannelsFilterChannels &&other)=delete
 
 CPanelChannelsFilterChannels (const std::shared_ptr< AbstractSheetModel > &sheetModel)
 
 ~CPanelChannelsFilterChannels ()=default
 
AbstractComponentGUIbuildPanel ()
 
void applyFilters ()
 
bool hasActiveFilters () const
 
const iv::gui::sheets::RowsDefinitionsgetRowDefinitionsModified () const
 

Static Public Attributes

static constexpr int32_t kMaxFilters = 5
 
static constexpr int32_t kNumGridLayoutColumns = 4
 
static constexpr int32_t kNumGridLayoutRows = kMaxFilters + 1
 
static const std::string kStringErrorNoFilters = _("No filters added")
 
static const std::string kStringErrorOverExistingFilters
 

Private Member Functions

bool filterText (const CFilterChannel &filter, const std::string &strValue) const
 
bool filterChannel (const CFilterChannel &filter, const std::shared_ptr< iv::channels::AbstractChannel > &channel, const std::shared_ptr< iv::units::Unit > &unit) const
 
void resetFilters ()
 
void applySingleFilterWithOperator (const CFilterChannel &filter, CFilterChannel::EFilterOperator filterOperator)
 
void applyAllFilters ()
 

Static Private Member Functions

static bool filterNumber (const CFilterChannel &filter, int32_t value)
 

Private Attributes

std::shared_ptr< AbstractSheetModelm_sheetModelRef
 
std::array< CFilterChannel, kMaxFiltersm_filtersModel
 
bool m_caseSensitive
 
iv::gui::sheets::RowsDefinitions m_rowDefinitionsModified
 

Constructor & Destructor Documentation

◆ CPanelChannelsFilterChannels() [1/4]

CPanelChannelsFilterChannels::CPanelChannelsFilterChannels ( )
delete

◆ CPanelChannelsFilterChannels() [2/4]

CPanelChannelsFilterChannels::CPanelChannelsFilterChannels ( const CPanelChannelsFilterChannels & other)
delete

◆ CPanelChannelsFilterChannels() [3/4]

CPanelChannelsFilterChannels::CPanelChannelsFilterChannels ( CPanelChannelsFilterChannels && other)
delete

◆ CPanelChannelsFilterChannels() [4/4]

CPanelChannelsFilterChannels::CPanelChannelsFilterChannels ( const std::shared_ptr< AbstractSheetModel > & sheetModel)
explicit

◆ ~CPanelChannelsFilterChannels()

CPanelChannelsFilterChannels::~CPanelChannelsFilterChannels ( )
default

Member Function Documentation

◆ applyAllFilters()

void CPanelChannelsFilterChannels::applyAllFilters ( )
private

Funcionamiento del filtro:

Se evaluan los operadores desde el primero al Ășltimo.

◆ applyFilters()

void CPanelChannelsFilterChannels::applyFilters ( )

◆ applySingleFilterWithOperator()

void CPanelChannelsFilterChannels::applySingleFilterWithOperator ( const CFilterChannel & filter,
CFilterChannel::EFilterOperator filterOperator )
private

◆ buildPanel()

AbstractComponentGUI * CPanelChannelsFilterChannels::buildPanel ( )

◆ filterChannel()

bool CPanelChannelsFilterChannels::filterChannel ( const CFilterChannel & filter,
const std::shared_ptr< iv::channels::AbstractChannel > & channel,
const std::shared_ptr< iv::units::Unit > & unit ) const
nodiscardprivate

◆ filterNumber()

bool CPanelChannelsFilterChannels::filterNumber ( const CFilterChannel & filter,
int32_t value )
staticprivate

◆ filterText()

bool CPanelChannelsFilterChannels::filterText ( const CFilterChannel & filter,
const std::string & strValue ) const
nodiscardprivate

◆ getRowDefinitionsModified()

const iv::gui::sheets::RowsDefinitions & CPanelChannelsFilterChannels::getRowDefinitionsModified ( ) const
nodiscard

◆ hasActiveFilters()

bool CPanelChannelsFilterChannels::hasActiveFilters ( ) const
nodiscard

◆ operator=() [1/2]

CPanelChannelsFilterChannels & CPanelChannelsFilterChannels::operator= ( const CPanelChannelsFilterChannels & other)
delete

◆ operator=() [2/2]

CPanelChannelsFilterChannels & CPanelChannelsFilterChannels::operator= ( CPanelChannelsFilterChannels && other)
delete

◆ resetFilters()

void CPanelChannelsFilterChannels::resetFilters ( )
private

Member Data Documentation

◆ kMaxFilters

int32_t CPanelChannelsFilterChannels::kMaxFilters = 5
staticconstexpr

◆ kNumGridLayoutColumns

int32_t CPanelChannelsFilterChannels::kNumGridLayoutColumns = 4
staticconstexpr

◆ kNumGridLayoutRows

int32_t CPanelChannelsFilterChannels::kNumGridLayoutRows = kMaxFilters + 1
staticconstexpr

◆ kStringErrorNoFilters

const std::string CPanelChannelsFilterChannels::kStringErrorNoFilters = _("No filters added")
inlinestatic

◆ kStringErrorOverExistingFilters

const std::string CPanelChannelsFilterChannels::kStringErrorOverExistingFilters
inlinestatic
Initial value:
=
_("filter is over the number of existing filters")
#define _(string)
Definition defines.hpp:169

◆ m_caseSensitive

bool CPanelChannelsFilterChannels::m_caseSensitive
private

◆ m_filtersModel

std::array<CFilterChannel, kMaxFilters> CPanelChannelsFilterChannels::m_filtersModel
private

◆ m_rowDefinitionsModified

iv::gui::sheets::RowsDefinitions CPanelChannelsFilterChannels::m_rowDefinitionsModified
private

◆ m_sheetModelRef

std::shared_ptr<AbstractSheetModel> CPanelChannelsFilterChannels::m_sheetModelRef
private

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