Miam-Player  0.8.0
A nice music player
MainWindow Class Reference

The MainWindow class is the entry point of this audio player. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Ui::MainWindow Ui_MainWindow

Public Slots

void createCustomizeOptionsDialog ()
 
void processArgs (const QStringList &args)
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
void activateLastView ()
 
void dispatchDrop (QDropEvent *event)
 
virtual bool eventFilter (QObject *watched, QEvent *event) override
 
void init ()
 
void loadPlugins ()
 
MediaPlayermediaPlayer () const
 
void openFolder (const QString &dir)
 
void setupActions ()
 
void updateFonts (const QFont &font)
 
- Public Member Functions inherited from Ui_MainWindow
void setupUi (QMainWindow *MainWindow)
 
void retranslateUi (QMainWindow *MainWindow)
 

Public Attributes

QList< MediaButton * > mediaButtons
 
SearchDialogsearchDialog
 
- Public Attributes inherited from Ui_MainWindow
QAction * actionExit
 
QAction * actionOpenFiles
 
QAction * actionAddPlaylist
 
QAction * actionShowCustomize
 
QAction * actionAboutQt
 
QAction * actionOpenPlaylistManager
 
QAction * actionScanLibrary
 
QAction * actionSetLibrary
 
QAction * actionCheckNewRelease
 
QAction * actionShowOptions
 
QAction * actionAboutMiamPlayer
 
QAction * actionDeleteCurrentPlaylist
 
QAction * actionShowHelp
 
QAction * actionSkipBackward
 
QAction * actionSeekBackward
 
QAction * actionPlay
 
QAction * actionSeekForward
 
QAction * actionSkipForward
 
QAction * actionPlaybackLoop
 
QAction * actionPlaybackRandom
 
QAction * actionRemoveSelectedTracks
 
QAction * actionMoveTracksUp
 
QAction * actionMoveTracksDown
 
QAction * actionMute
 
QAction * actionIncreaseVolume
 
QAction * actionDecreaseVolume
 
QAction * actionPlaybackCurrentItemOnce
 
QAction * actionPlaybackSequential
 
QAction * actionPlaybackCurrentItemInLoop
 
QAction * actionViewPlaylists
 
QAction * actionViewUniqueLibrary
 
QAction * actionViewTagEditor
 
QAction * actionOpenFolder
 
QAction * actionShowDebug
 
QAction * actionStopAfterCurrent
 
QAction * actionStop
 
QAction * actionShowEqualizer
 
QAction * actionHideMenuBar
 
QStackedWidget * stackedWidget
 
QSplitter * splitter
 
ExtendedTabWidgetleftTabs
 
QWidget * tabLibrary
 
QVBoxLayout * verticalLayout_7
 
PaintableWidgetwidgetSearchBar
 
QHBoxLayout * horizontalLayout_5
 
LibraryFilterLineEditsearchBar
 
QHBoxLayout * horizontalLayout_2
 
LibraryHeaderlibraryHeader
 
ChangeHierarchyButtonchangeHierarchyButton
 
LibraryTreeViewlibrary
 
QWidget * tabFileExplorer
 
QVBoxLayout * verticalLayout_8
 
AddressBaraddressBar
 
PaintableWidgetpaintableWidget
 
QHBoxLayout * horizontalLayout
 
FileSystemTreeViewfilesystem
 
QStackedWidget * stackedWidgetRight
 
QWidget * tabPlaylistPage
 
QVBoxLayout * verticalLayout
 
TabPlaylisttabPlaylists
 
QHBoxLayout * seekSliderLayout
 
SeekBarseekSlider
 
TimeLabeltimeLabel
 
QHBoxLayout * horizontalLayout_buttons
 
MediaButtonskipBackwardButton
 
MediaButtonseekBackwardButton
 
MediaButtonplayButton
 
StopButtonstopButton
 
MediaButtonseekForwardButton
 
MediaButtonskipForwardButton
 
MediaButtonplaybackModeButton
 
QSpacerItem * horizontalSpacer
 
VolumeSlidervolumeSlider
 
TagEditortagEditor
 
QVBoxLayout * verticalLayout_3
 
QMenuBar * menubar
 
QMenu * menuMenu
 
QMenu * menuPlaylist
 
QMenu * menuOptions
 
QMenu * menuHelp
 
QMenu * menuPlayback
 
QMenu * menuView
 

Protected Member Functions

virtual void changeEvent (QEvent *event) override
 
virtual void closeEvent (QCloseEvent *) override
 
virtual void dragEnterEvent (QDragEnterEvent *event) override
 
virtual void dragMoveEvent (QDragMoveEvent *event) override
 
virtual void dropEvent (QDropEvent *event) override
 
virtual bool event (QEvent *event) override
 
virtual void moveEvent (QMoveEvent *event) override
 
virtual void resizeEvent (QResizeEvent *e) override
 

Detailed Description

The MainWindow class is the entry point of this audio player.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = nullptr)
explicit

XXX

Member Function Documentation

void MainWindow::activateLastView ( )
void MainWindow::changeEvent ( QEvent *  event)
overrideprotectedvirtual

Redefined to be able to retransltate User Interface at runtime.

void MainWindow::closeEvent ( QCloseEvent *  )
overrideprotectedvirtual
void MainWindow::createCustomizeOptionsDialog ( )
slot
void MainWindow::dispatchDrop ( QDropEvent *  event)

Popup shown to one when tracks are dropped from another application to MiamPlayer.

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotectedvirtual
void MainWindow::dragMoveEvent ( QDragMoveEvent *  event)
overrideprotectedvirtual
void MainWindow::dropEvent ( QDropEvent *  event)
overrideprotectedvirtual
bool MainWindow::event ( QEvent *  event)
overrideprotectedvirtual
bool MainWindow::eventFilter ( QObject *  watched,
QEvent *  event 
)
overridevirtual
void MainWindow::init ( )
void MainWindow::loadPlugins ( )

Plugins.

MediaPlayer* MainWindow::mediaPlayer ( ) const
inline
void MainWindow::moveEvent ( QMoveEvent *  event)
overrideprotectedvirtual
void MainWindow::openFolder ( const QString &  dir)

Open a new Dialog where one can add a folder to current playlist.

void MainWindow::processArgs ( const QStringList &  args)
slot
void MainWindow::resizeEvent ( QResizeEvent *  e)
overrideprotectedvirtual
void MainWindow::setupActions ( )

Set up all actions and behaviour.

void MainWindow::updateFonts ( const QFont &  font)

Update fonts for menu and context menus.

Member Data Documentation

QList<MediaButton*> MainWindow::mediaButtons
SearchDialog* MainWindow::searchDialog

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