Sayonara Player
Modules | Classes | Typedefs | Enumerations | Functions
Gui

everything that belongs to the Gui More...

Modules

 Event Filter
 Collection of event filters.
 
 Directory View
 All classes involved with the directory view.
 
 Info dialog
 All classes involved with the Info Dialog.
 
 Icons
 
 Mimedata utils
 Everything to handle Mimedata more efficiently.
 
 Preferences
 
 Searchable views and models
 Collection searchable item views and models.
 
 Shortcuts
 Shortcut handling.
 
 Style
 
 Widgets
 Sayonara widgets.
 

Classes

class  Library::GUI_EmptyLibrary
 The GUI_EmptyLibrary class. More...
 
class  GUI_DeleteDialog
 The GUI_DeleteDialog class. More...
 
class  GUI_EditLibrary
 The GUI_EditLibrary class. More...
 
class  Library::GUI_LibraryInfoBox
 A info box containing library statistics :: More...
 
class  Gui::ContextMenu
 A context menu with some standard actions. More...
 
class  Library::ContextMenu
 Context menu used for Library and playlist windows. More...
 
class  Gui::ComboBoxDelegate
 The ComboBoxDelegate class
Set this delegate to ComboBoxes if they should look nice. More...
 
class  Gui::StyledItemDelegate
 The StyledItemDelegate class assures a certain height of rows in a table and tree view. More...
 
class  Gui::ImageSelectionDialog
 A selection dialog that displays an image and also its size. More...
 
class  Gui::LineInputDialog
 Dialog for entering one line. Listen for the sig_closed() signal for the Gui::Dialog class and request the text value afterwards if LineInputDialog::ReturnValue is set to LineInputDialog::ReturnValue::Ok. More...
 
class  Gui::MenuToolButton
 This is the little button you often see near comboboxes
It opens up a menu when clicked. The actions in the menu a configurable. More...
 

Typedefs

using Gui::ContextMenuEntries = uint16_t
 Combination of ContextMenu::Entry values.
 

Enumerations

enum  Gui::Util::IconTheme {
  MintY,
  NoTheme
}
 The IconTheme enum.
 

Functions

QIcon Gui::Util::icon (const QString &iconName, IconTheme themeName)
 fetch a icon from resources More...
 
QPixmap Gui::Util::pixmap (const QString &iconName, IconTheme themeName)
 fetch a pixmap from resources More...
 
QImage Gui::Util::image (const QString &iconName, IconTheme themeName)
 see pixmap() More...
 
void Gui::Util::setMainWindow (QMainWindow *window)
 set the applications' main window More...
 
QMainWindow * Gui::Util::mainWindow ()
 get the applications' main window More...
 

Detailed Description

everything that belongs to the Gui

Function Documentation

◆ icon()

QIcon Gui::Util::icon ( const QString &  iconName,
IconTheme  themeName 
)

fetch a icon from resources

Parameters
iconNameif iconName ends with png the input string is not modified, else a .svg.png is appended
Returns
icon

◆ image()

QImage Gui::Util::image ( const QString &  iconName,
IconTheme  themeName 
)

see pixmap()

Parameters
iconName
themeName
Returns

◆ mainWindow()

QMainWindow* Gui::Util::mainWindow ( )

get the applications' main window

Returns
main window of application

◆ pixmap()

QPixmap Gui::Util::pixmap ( const QString &  iconName,
IconTheme  themeName 
)

fetch a pixmap from resources

Parameters
iconNameif iconName ends with png the input string is not modified, else a .svg.png is appended
themename use the MintY theme or the standard theme
sztarget size of pixmap
keepAspectif true, aspect ratio is kept
Returns
pixmap

◆ setMainWindow()

void Gui::Util::setMainWindow ( QMainWindow *  window)

set the applications' main window

Parameters
windowthe new main window