Sayonara Player
Signals | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Library::FileExtensionBar Class Reference

The FileExtensionBar class. More...

#include <LibraryFileExtensionBar.h>

Inheritance diagram for Library::FileExtensionBar:
Gui::Widget Gui::WidgetTemplate< QWidget > Gui::WidgetTemplateParent

Signals

void sig_close_clicked ()
 
void sig_shown ()
 
void sig_closed ()
 

Public Member Functions

 FileExtensionBar (QWidget *parent=nullptr)
 
void init (AbstractLibrary *library)
 This method needs to be called before any other operation. More...
 
void refresh ()
 refetches all tracks with extensions, clears the layout, adds new buttons
 
void clear ()
 clears all buttons and the layout
 
bool has_extensions () const
 has_extensions More...
 
Dialog * box_into_dialog ()
 

Protected Member Functions

void language_changed () override
 
virtual void showEvent (QShowEvent *e)
 
virtual void closeEvent (QCloseEvent *e)
 
virtual void skin_changed ()
 

Protected Attributes

Dialog * _boxed_dialog =nullptr
 

Detailed Description

The FileExtensionBar class.

Member Function Documentation

◆ has_extensions()

bool Library::FileExtensionBar::has_extensions ( ) const

has_extensions

Returns
true, if there's more than one extension. false else

◆ init()

void Library::FileExtensionBar::init ( AbstractLibrary library)

This method needs to be called before any other operation.

Parameters
library