qTox  Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
Public Types | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
SearchForm Class Referencefinal

#include <searchform.h>

Inheritance diagram for SearchForm:
Inheritance graph
Collaboration diagram for SearchForm:
Collaboration graph

Public Types

enum  ToolButtonState { ToolButtonState::Disabled = 0, ToolButtonState::Common = 1, ToolButtonState::Active = 2 }
 

Public Slots

void showMessageNotFound (SearchDirection direction)
 
void reloadTheme ()
 

Signals

void searchInBegin (const QString &phrase, const ParameterSearch &parameter)
 
void searchUp (const QString &phrase, const ParameterSearch &parameter)
 
void searchDown (const QString &phrase, const ParameterSearch &parameter)
 
void visibleChanged ()
 

Public Member Functions

 SearchForm (QWidget *parent=nullptr)
 
void removeSearchPhrase ()
 
QString getSearchPhrase () const
 
ParameterSearch getParameterSearch ()
 
void setFocusEditor ()
 
void insertEditor (const QString &text)
 

Protected Member Functions

void showEvent (QShowEvent *event) final
 

Private Slots

void changedSearchPhrase (const QString &text)
 
void clickedUp ()
 
void clickedDown ()
 
void clickedHide ()
 
void clickedStart ()
 
void clickedSearch ()
 
void changedState (bool isUpdate)
 

Private Member Functions

QPushButton * createButton (const QString &name, const QString &state)
 
ParameterSearch getAndCheckParametrSearch ()
 
void setStateName (QPushButton *btn, ToolButtonState state)
 
void useBeginState ()
 

Private Attributes

QPushButton * settingsButton
 
QPushButton * upButton
 
QPushButton * downButton
 
QPushButton * hideButton
 
QPushButton * startButton
 
LineEditsearchLine
 
SearchSettingsFormsettings
 
QLabel * messageLabel
 
QString searchPhrase
 
ParameterSearch parameter
 
bool isActiveSettings {false}
 
bool isChangedPhrase {false}
 
bool isSearchInBegin {true}
 
bool isPrevSearch {false}
 

Detailed Description

Definition at line 31 of file searchform.h.

Member Enumeration Documentation

◆ ToolButtonState

Enumerator
Disabled 
Common 
Active 

Definition at line 35 of file searchform.h.

Constructor & Destructor Documentation

◆ SearchForm()

SearchForm::SearchForm ( QWidget *  parent = nullptr)
explicit

Definition at line 39 of file searchform.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ changedSearchPhrase

void SearchForm::changedSearchPhrase ( const QString &  text)
privateslot

Definition at line 185 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ changedState

void SearchForm::changedState ( bool  isUpdate)
privateslot

Definition at line 274 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clickedDown

void SearchForm::clickedDown ( )
privateslot

Definition at line 229 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clickedHide

void SearchForm::clickedHide ( )
privateslot

Definition at line 247 of file searchform.cpp.

Here is the caller graph for this function:

◆ clickedSearch

void SearchForm::clickedSearch ( )
privateslot

Definition at line 260 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clickedStart

void SearchForm::clickedStart ( )
privateslot

Definition at line 253 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clickedUp

void SearchForm::clickedUp ( )
privateslot

Definition at line 211 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ createButton()

QPushButton * SearchForm::createButton ( const QString &  name,
const QString &  state 
)
private

Definition at line 141 of file searchform.cpp.

Here is the caller graph for this function:

◆ getAndCheckParametrSearch()

ParameterSearch SearchForm::getAndCheckParametrSearch ( )
private

Definition at line 152 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getParameterSearch()

ParameterSearch SearchForm::getParameterSearch ( )

Definition at line 109 of file searchform.cpp.

◆ getSearchPhrase()

QString SearchForm::getSearchPhrase ( ) const

Definition at line 104 of file searchform.cpp.

◆ insertEditor()

void SearchForm::insertEditor ( const QString &  text)

Definition at line 119 of file searchform.cpp.

Here is the caller graph for this function:

◆ reloadTheme

void SearchForm::reloadTheme ( )
slot

Definition at line 124 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ removeSearchPhrase()

void SearchForm::removeSearchPhrase ( )

Definition at line 99 of file searchform.cpp.

◆ searchDown

void SearchForm::searchDown ( const QString &  phrase,
const ParameterSearch parameter 
)
signal
Here is the caller graph for this function:

◆ searchInBegin

void SearchForm::searchInBegin ( const QString &  phrase,
const ParameterSearch parameter 
)
signal
Here is the caller graph for this function:

◆ searchUp

void SearchForm::searchUp ( const QString &  phrase,
const ParameterSearch parameter 
)
signal
Here is the caller graph for this function:

◆ setFocusEditor()

void SearchForm::setFocusEditor ( )

Definition at line 114 of file searchform.cpp.

Here is the caller graph for this function:

◆ setStateName()

void SearchForm::setStateName ( QPushButton *  btn,
ToolButtonState  state 
)
private

Definition at line 169 of file searchform.cpp.

Here is the caller graph for this function:

◆ showEvent()

void SearchForm::showEvent ( QShowEvent *  event)
finalprotected

Definition at line 135 of file searchform.cpp.

◆ showMessageNotFound

void SearchForm::showMessageNotFound ( SearchDirection  direction)
slot

Definition at line 289 of file searchform.cpp.

Here is the call graph for this function:

◆ useBeginState()

void SearchForm::useBeginState ( )
private

Definition at line 177 of file searchform.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ visibleChanged

void SearchForm::visibleChanged ( )
signal
Here is the caller graph for this function:

Member Data Documentation

◆ downButton

QPushButton* SearchForm::downButton
private

Definition at line 60 of file searchform.h.

◆ hideButton

QPushButton* SearchForm::hideButton
private

Definition at line 61 of file searchform.h.

◆ isActiveSettings

bool SearchForm::isActiveSettings {false}
private

Definition at line 70 of file searchform.h.

◆ isChangedPhrase

bool SearchForm::isChangedPhrase {false}
private

Definition at line 71 of file searchform.h.

◆ isPrevSearch

bool SearchForm::isPrevSearch {false}
private

Definition at line 73 of file searchform.h.

◆ isSearchInBegin

bool SearchForm::isSearchInBegin {true}
private

Definition at line 72 of file searchform.h.

◆ messageLabel

QLabel* SearchForm::messageLabel
private

Definition at line 65 of file searchform.h.

◆ parameter

ParameterSearch SearchForm::parameter
private

Definition at line 68 of file searchform.h.

◆ searchLine

LineEdit* SearchForm::searchLine
private

Definition at line 63 of file searchform.h.

◆ searchPhrase

QString SearchForm::searchPhrase
private

Definition at line 67 of file searchform.h.

◆ settings

SearchSettingsForm* SearchForm::settings
private

Definition at line 64 of file searchform.h.

◆ settingsButton

QPushButton* SearchForm::settingsButton
private

Definition at line 58 of file searchform.h.

◆ startButton

QPushButton* SearchForm::startButton
private

Definition at line 62 of file searchform.h.

◆ upButton

QPushButton* SearchForm::upButton
private

Definition at line 59 of file searchform.h.


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