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

everything that belongs to the Gui More...

Modules

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

Classes

class  Library::GUI_LibraryInfoBox
 A info box containing library statistics :: More...
 
class  Gui::ContextMenu
 A context menu with some standard actions. More...
 
class  Gui::LibraryContextMenu
 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_DeleteDialog
 The GUI_DeleteDialog class. More...
 
class  GUI_EditLibrary
 The GUI_EditLibrary class. More...
 
class  Library::GUI_EmptyLibrary
 The GUI_EmptyLibrary class. More...
 
class  Gui::MenuButton
 The MenuButton class.
A button that sends a signal when clicked.
This Class is meant for inheritance like MenuToolButton does. 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...
 
class  Gui::RatingLabel
 The RatingLabel class. 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 &icon_name, IconTheme theme_name)
 fetch a icon from resources More...
 
QPixmap Gui::Util::pixmap (const QString &icon_name, IconTheme theme_name)
 fetch a pixmap from resources More...
 
QImage Gui::Util::image (const QString &icon_name, IconTheme theme_name)
 see pixmap() More...
 
void Gui::Util::set_main_window (QMainWindow *window)
 set the applications' main window More...
 
QMainWindow * Gui::Util::main_window ()
 get the applications' main window More...
 

Detailed Description

everything that belongs to the Gui

Function Documentation

◆ icon()

QIcon Gui::Util::icon ( const QString &  icon_name,
IconTheme  theme_name 
)

fetch a icon from resources

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

◆ image()

QImage Gui::Util::image ( const QString &  icon_name,
IconTheme  theme_name 
)

see pixmap()

Parameters
icon_name
theme_name
Returns

◆ main_window()

QMainWindow* Gui::Util::main_window ( )

get the applications' main window

Returns
main window of application

◆ pixmap()

QPixmap Gui::Util::pixmap ( const QString &  icon_name,
IconTheme  theme_name 
)

fetch a pixmap from resources

Parameters
icon_nameif icon_name 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
keep_aspectif true, aspect ratio is kept
Returns
pixmap

◆ set_main_window()

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

set the applications' main window

Parameters
windowthe new main window