Miam-Player  0.8.0
A nice music player
SearchDialog Class Reference

The SearchDialog class is a popup dialog which opens when one is typing text. More...

#include <searchdialog.h>

Inheritance diagram for SearchDialog:
AbstractSearchDialog Ui::SearchDialog Ui_SearchDialog

Public Slots

virtual void aboutToProcessRemoteTracks (const std::list< TrackDAO > &tracks) override
 
void clear ()
 
void moveSearchDialog (int=-1, int=-1)
 
virtual void processResults (Request type, const QStandardItemList &results) override
 
- Public Slots inherited from AbstractSearchDialog
virtual void processResults (Request type, const QStandardItemList &results)=0
 
virtual void aboutToProcessRemoteTracks (const std::list< TrackDAO > &tracks)=0
 

Public Member Functions

 SearchDialog (MainWindow *mainWindow)
 
virtual void addSource (QCheckBox *checkBox) override
 
virtual QListView * albums () const override
 
virtual QListView * artists () const override
 
virtual bool eventFilter (QObject *obj, QEvent *event) override
 
void setSearchExpression (const QString &text)
 
virtual QListView * tracks () const override
 
- Public Member Functions inherited from AbstractSearchDialog
 AbstractSearchDialog (QWidget *parent=nullptr, Qt::WindowFlags f=0)
 
virtual ~AbstractSearchDialog ()
 
- Public Member Functions inherited from Ui_SearchDialog
void setupUi (QWidget *SearchDialog)
 
void retranslateUi (QWidget *SearchDialog)
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *) override
 

Additional Inherited Members

- Public Types inherited from AbstractSearchDialog
enum  Request { Artist = 0, Album = 1, Track = 2 }
 
enum  DataType { DT_Origin = Qt::UserRole + 1, DT_Identifier = Qt::UserRole + 2 }
 
- Signals inherited from AbstractSearchDialog
void aboutToSearch (const QString &text)
 
- Public Attributes inherited from Ui_SearchDialog
QVBoxLayout * verticalLayout_4
 
QHBoxLayout * hl_searchMore
 
QSpacerItem * hs_left_searchMore
 
QLabel * iconSearchMore
 
QLabel * labelSearchMore
 
QSpacerItem * hs_right_searchMore
 
QPushButton * closeButton
 
QHBoxLayout * horizontalLayout
 
QVBoxLayout * verticalLayout_2
 
QLabel * iconArtists
 
QSpacerItem * verticalSpacer_4
 
QListView * _artists
 
QHBoxLayout * horizontalLayout_2
 
QVBoxLayout * verticalLayout_3
 
QLabel * iconAlbums
 
QSpacerItem * verticalSpacer_3
 
QListView * _albums
 
QHBoxLayout * horizontalLayout_4
 
QVBoxLayout * verticalLayout
 
QLabel * iconTracks
 
QSpacerItem * verticalSpacer
 
QListView * _tracks
 
QWidget * aggregated
 
QVBoxLayout * verticalLayout_5
 
QLabel * labelAggregated
 
QHBoxLayout * sources_layout
 
QSpacerItem * aggregatedRightSpacer
 

Detailed Description

The SearchDialog class is a popup dialog which opens when one is typing text.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

SearchDialog::SearchDialog ( MainWindow mainWindow)
explicit

Constructor.

Member Function Documentation

void SearchDialog::aboutToProcessRemoteTracks ( const std::list< TrackDAO > &  tracks)
overridevirtualslot
void SearchDialog::addSource ( QCheckBox *  checkBox)
overridevirtual

Required interface from AbstractSearchDialog class.

Implements AbstractSearchDialog.

virtual QListView* SearchDialog::albums ( ) const
inlineoverridevirtual

Required interface from AbstractSearchDialog class.

Implements AbstractSearchDialog.

virtual QListView* SearchDialog::artists ( ) const
inlineoverridevirtual

Required interface from AbstractSearchDialog class.

Implements AbstractSearchDialog.

void SearchDialog::clear ( )
slot
bool SearchDialog::eventFilter ( QObject *  obj,
QEvent *  event 
)
overridevirtual
void SearchDialog::moveSearchDialog ( int  = -1,
int  = -1 
)
slot
void SearchDialog::paintEvent ( QPaintEvent *  )
overrideprotectedvirtual

Custom rendering.

void SearchDialog::processResults ( Request  type,
const QStandardItemList results 
)
overridevirtualslot

Process results sent back from various search engines (local, remote).

void SearchDialog::setSearchExpression ( const QString &  text)

String to look for on every registered search engines.

virtual QListView* SearchDialog::tracks ( ) const
inlineoverridevirtual

Required interface from AbstractSearchDialog class.

Implements AbstractSearchDialog.


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