Sayonara Player
Loading...
Searching...
No Matches
SomaFMStationView Class Reference
Inheritance diagram for SomaFMStationView:
Gui::WidgetTemplate< SearchableView< QTableView, SearchableTableModel > > SearchableView< View, Model > Gui::WidgetTemplateParent SearchableViewInterface SelectionViewInterface

Public Types

enum class  SelectionType {
  Rows = 0 ,
  Items
}
 

Public Member Functions

 SomaFMStationView (QWidget *parent=nullptr)
 
int mapModelIndexToIndex (const QModelIndex &idx) const override
 
ModelIndexRange mapIndexToModelIndexes (int idx) const override
 
int viewportHeight () const override
 
virtual void setSearchableModel (Model *model)
 
int rowCount () const
 
QAbstractItemView * view () const
 
virtual int viewportWidth () const
 
int setSearchstring (const QString &str)
 
void selectNextMatch (const QString &str)
 
void selectPreviousMatch (const QString &str)
 
virtual void searchDone ()
 
virtual IndexSet selectedItems () const
 

Protected Types

enum class  SearchDirection : unsigned char {
  First ,
  Next ,
  Prev
}
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void showEvent (QShowEvent *e) override
 
virtual QModelIndex matchIndex (const QString &str, SearchDirection direction) const
 
virtual void selectMatch (const QString &str, SearchDirection direction)
 
bool handleKeyPress (QKeyEvent *e) override
 
void selectRows (const IndexSet &rows, int minimumColumn=-1, int maximumColumn=-1)
 
void selectItems (const IndexSet &indexes)
 
void selectAll ()
 
virtual SelectionViewInterface::SelectionType selectionType () const
 
virtual void languageChanged ()
 
virtual void languageChanged ()
 
virtual void skinChanged ()
 
virtual void skinChanged ()
 

Member Function Documentation

◆ handleKeyPress()

bool SearchableViewInterface::handleKeyPress ( QKeyEvent * e)
overrideprotectedvirtualinherited

Reimplemented from SelectionViewInterface.

◆ mapIndexToModelIndexes()

ModelIndexRange SomaFMStationView::mapIndexToModelIndexes ( int idx) const
overridevirtual

◆ mapModelIndexToIndex()

int SomaFMStationView::mapModelIndexToIndex ( const QModelIndex & idx) const
overridevirtual

◆ showEvent()

void SomaFMStationView::showEvent ( QShowEvent * e)
overrideprotectedvirtual

◆ viewportHeight()

int SomaFMStationView::viewportHeight ( ) const
overridevirtual

Reimplemented from SearchableViewInterface.