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

The SearchContext class. More...

#include <searchcontext.h>

Inherits QObject.

+ Collaboration diagram for SearchContext:

Signals

void goToTriggered (const QString &name, int index=0)
 

Public Member Functions

 SearchContext (const SearchContext &other)=delete
 
 SearchContext (QObject *parent=nullptr) noexcept
 
 ~SearchContext () noexcept
 
void init () noexcept
 
void deinit () noexcept
 
void setTerm (const QString &term) noexcept
 
const QString & getTerm () const noexcept
 
void setSuggestions (const QStringList &list) noexcept
 
const std::shared_ptr< slint::FilterModel< slint::SharedString > > & getSuggestions () const noexcept
 
void findNext () noexcept
 
void findPrevious () noexcept
 
SearchContextoperator= (const SearchContext &rhs)=delete
 

Private Attributes

QString mTerm
 
bool mForward
 Current search direction (forward or backward)
 
int mIndex
 Number of searches with the current search term.
 
std::shared_ptr< slint::VectorModel< slint::SharedString > > mSuggestions
 
std::shared_ptr< slint::FilterModel< slint::SharedString > > mSuggestionsFiltered
 

Detailed Description

The SearchContext class.

Constructor & Destructor Documentation

◆ SearchContext() [1/2]

SearchContext ( const SearchContext other)
delete

◆ SearchContext() [2/2]

SearchContext ( QObject *  parent = nullptr)
explicitnoexcept

◆ ~SearchContext()

~SearchContext ( )
noexcept

Member Function Documentation

◆ init()

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

◆ deinit()

void deinit ( )
noexcept
+ Here is the caller graph for this function:

◆ setTerm()

void setTerm ( const QString &  term)
noexcept

◆ getTerm()

const QString & getTerm ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setSuggestions()

void setSuggestions ( const QStringList &  list)
noexcept
+ Here is the call graph for this function:

◆ getSuggestions()

const std::shared_ptr< slint::FilterModel< slint::SharedString > > & getSuggestions ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ findNext()

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

◆ findPrevious()

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

◆ operator=()

SearchContext & operator= ( const SearchContext rhs)
delete

◆ goToTriggered

void goToTriggered ( const QString &  name,
int  index = 0 
)
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ mTerm

QString mTerm
private

◆ mForward

bool mForward
private

Current search direction (forward or backward)

◆ mIndex

int mIndex
private

Number of searches with the current search term.

◆ mSuggestions

std::shared_ptr<slint::VectorModel<slint::SharedString> > mSuggestions
private

◆ mSuggestionsFiltered

std::shared_ptr<slint::FilterModel<slint::SharedString> > mSuggestionsFiltered
private

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