ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::widget::detail::cSearchTextWidget Class Reference

#include <search_text_widget.h>

Inherits QFrame.

Signals

void selectedFilterColumnChanged ()
 This signal is emitted when the selected filter column changed.
 
void searchParametersChanged ()
 This signal is emitted when the search parameters changed.
 

Public Member Functions

 cSearchTextWidget (QWidget *pParent=nullptr)
 
 ~cSearchTextWidget ()
 
void SetFilterModel (IFilterModel &oFilterModel)
 
uint64_t GetSelectedFilterColumn () const
 
void SetFilterColumnNames (const std::vector< QString > &vecFilterColumnNames)
 
void SetFilterColumnNamesFromModel (const QAbstractItemModel &oModel)
 
void SetSearchText (const QString &strSearchText)
 
void Clear ()
 
FilterType GetSelectedFilterType () const
 
void SelectFilterType (FilterType oFilterType)
 
bool IsCaseSensitive () const
 Returns whether 'case sensitive' is selected.
 
void SetCaseSensitive (bool bCaseSensitive)
 

Detailed Description

cSearchTextWidget allows to filter a given QSortProxyModel to be filtered by normal text, text with wildcards, regular expressions, fuzzy text. This control can embedded in QWidget based UIs.

Constructor & Destructor Documentation

◆ cSearchTextWidget()

adtf::ui::widget::detail::cSearchTextWidget::cSearchTextWidget ( QWidget * pParent = nullptr)

Constructor.

Parameters
pParentparent widget

◆ ~cSearchTextWidget()

adtf::ui::widget::detail::cSearchTextWidget::~cSearchTextWidget ( )

Destructor.

Member Function Documentation

◆ Clear()

void adtf::ui::widget::detail::cSearchTextWidget::Clear ( )

Clears the search text.

◆ GetSelectedFilterColumn()

uint64_t adtf::ui::widget::detail::cSearchTextWidget::GetSelectedFilterColumn ( ) const

Returns index of selected filter column.

Returns
index

◆ GetSelectedFilterType()

FilterType adtf::ui::widget::detail::cSearchTextWidget::GetSelectedFilterType ( ) const

Returns the selected filter type.

Returns
selected filter type

◆ SelectFilterType()

void adtf::ui::widget::detail::cSearchTextWidget::SelectFilterType ( FilterType oFilterType)

Select the filter type.

Parameters
oFilterTypeThe filter type.

◆ SetCaseSensitive()

void adtf::ui::widget::detail::cSearchTextWidget::SetCaseSensitive ( bool bCaseSensitive)

Set whether 'case sensitive' is set or not.

Parameters
bCaseSensitiveWhether 'case sensitive' should be set.

◆ SetFilterColumnNames()

void adtf::ui::widget::detail::cSearchTextWidget::SetFilterColumnNames ( const std::vector< QString > & vecFilterColumnNames)

Set the names of filter columns which can be single-selected.

Parameters
vecFilterColumnNamesThe column names.

◆ SetFilterColumnNamesFromModel()

void adtf::ui::widget::detail::cSearchTextWidget::SetFilterColumnNamesFromModel ( const QAbstractItemModel & oModel)

Set the names of filter columns which can be single-selected.

Parameters
oModelThe model from which the column names are obtained.

◆ SetFilterModel()

void adtf::ui::widget::detail::cSearchTextWidget::SetFilterModel ( IFilterModel & oFilterModel)

Set the model which is filtered.

Parameters
oFilterModelThe filter model.

◆ SetSearchText()

void adtf::ui::widget::detail::cSearchTextWidget::SetSearchText ( const QString & strSearchText)

Set the search text. strSearchText The text.


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