 |
Sayonara Player
|
21 #ifndef LIBRARYSEARCHBAR_H
22 #define LIBRARYSEARCHBAR_H
25 #include "Utils/Pimpl.h"
26 #include "Utils/Library/Filter.h"
27 #include "Gui/Utils/Widgets/WidgetTemplate.h"
46 void sigCurrentModeChanged();
47 void sigTextChanged(
const QString& text);
109 void initContextMenu();
112 void currentTextChanged(
const QString& text);
113 void searchShortcutPressed();
115 void livesearchChanged();
116 void livesearchTriggered(
bool b);
119 void keyPressEvent(QKeyEvent* e)
override;
120 void languageChanged()
override;
121 void skinChanged()
override;
125 #endif // LIBRARYSEARCHBAR_H
void setInvalidGenreMode(bool b)
this method does not set the genre mode implicitly. You also have to use set_mode()....
void setModes(const QList< Filter::Mode > &modes)
Sets the supported modes. See Library::Filter::Mode.
void reset()
Clears the input and sets mode back to Fulltext search.
Definition: EngineUtils.h:33
void setPreviousMode()
fast toggling between modes by using arrow up key
QList< Filter::Mode > modes() const
returns supported modes. See Library::Filter::Mode
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
bool hasInvalidGenreMode() const
if the current state is the invalid genre mode
void setNextMode()
fast toggling between modes by using arrow down key
The searchbar has a special context menu which allows to select the search mode. A special search mod...
Definition: Searchbar.h:39
Filter::Mode currentMode() const
current selected mode
void setCurrentMode(Filter::Mode mode)
If mode is Filter::Mode::Genre but the genre should be empty, also use set_invalid_genre_mode()