hydrogen 1.2.3
PlaylistDialog Class Reference

This dialog is used to use the H2PlayList. More...

#include <PlaylistDialog.h>

Inheritance diagram for PlaylistDialog:
WidgetWithScalableFont< 8, 10, 12 > Object< PlaylistDialog > Base

Public Slots

void onPreferencesChanged (H2Core::Preferences::Changes changes)
 

Public Member Functions

 PlaylistDialog (QWidget *pParent)
 
 ~PlaylistDialog ()
 
bool loadListByFileName (QString filename)
 
- Public Member Functions inherited from Object< PlaylistDialog >
 Object ()
 
 Object (const Object< PlaylistDialog > &other)
 
- Public Member Functions inherited from Base
 Base ()
 
 Base (const Base &other)
 
virtual const char * class_name () const
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG.
 
virtual QString toQString (const QString &sPrefix="", bool bShort=true) const
 Formatted string version for debugging purposes.
 

Private Slots

void addCurrentSong ()
 
void addSong ()
 
void clearPlaylist ()
 
virtual void closeEvent (QCloseEvent *ev) override
 
void editScript ()
 
virtual bool eventFilter (QObject *o, QEvent *e) override
 
void ffWDBtnClicked ()
 
virtual void keyPressEvent (QKeyEvent *ev) override
 
void loadList ()
 
void loadScript ()
 
void newScript ()
 
void nodePlayBTN ()
 
void nodeStopBTN ()
 
void o_downBClicked ()
 
void o_upBClicked ()
 
void on_m_pPlaylistTree_itemClicked (QTreeWidgetItem *item, int column)
 
void on_m_pPlaylistTree_itemDoubleClicked ()
 
void removeFromList ()
 
void removeScript ()
 
void rewindBtnClicked ()
 
void saveList ()
 
void saveListAs ()
 
void updateActiveSongNumber ()
 

Private Member Functions

void setFirstItemCurrent ()
 
void updatePlayListNode (QString file)
 
void updatePlayListVector ()
 

Private Attributes

Buttonm_pFfwdBtn
 
QMenuBar * m_pMenubar
 
Buttonm_pPlayBtn
 
QMenu * m_pPlaylistMenu
 
Buttonm_pRwdBtn
 
QMenu * m_pScriptMenu
 
Buttonm_pStopBtn
 
QTimer * m_pTimer
 
Buttonzoom_in_btn
 

Additional Inherited Members

- Static Public Member Functions inherited from Base
static const char * _class_name ()
 return the class name
 
static QString base_clock (const QString &sMsg)
 Measures the current time and stores it in __last_clock.
 
static QString base_clock_in (const QString &sMsg)
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation !
 
static bool count_active ()
 
static int getAliveObjectCount ()
 
static object_map_t getObjectMap ()
 
static Loggerlogger ()
 return the logger instance
 
static int objects_count ()
 
static void printObjectMapDiff (object_map_t map)
 Creates the difference between a snapshot of the object map and its current state and prints it to std::cout.
 
static void set_count (bool flag)
 enable/disable class instances counting
 
static void write_objects_map_to (std::ostream &out, object_map_t *map=nullptr)
 output the full objects map to a given ostream
 
static void write_objects_map_to_cerr ()
 output objects map to stderr
 
- Static Public Attributes inherited from Base
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 
- Protected Member Functions inherited from WidgetWithScalableFont< 8, 10, 12 >
constexpr int getPointSize (H2Core::FontTheme::FontSize fontSize) const
 
- Protected Member Functions inherited from Object< PlaylistDialog >
 ~Object ()
 
 Object ()
 
 Object (const Object< PlaylistDialog > &other)
 
- Protected Member Functions inherited from Base
 ~Base ()
 
 Base ()
 
 Base (const Base &other)
 
virtual const char * class_name () const
 
void Print (bool bShort=true) const
 Prints content of toQString() via DEBUGLOG.
 
virtual QString toQString (const QString &sPrefix="", bool bShort=true) const
 Formatted string version for debugging purposes.
 
- Static Protected Member Functions inherited from Base
static void registerClass (const char *name, const atomic_obj_cpt_t *counters)
 
static const char * _class_name ()
 return the class name
 
static QString base_clock (const QString &sMsg)
 Measures the current time and stores it in __last_clock.
 
static QString base_clock_in (const QString &sMsg)
 
static int bootstrap (Logger *logger, bool count=false)
 must be called before any Object instantiation !
 
static bool count_active ()
 
static int getAliveObjectCount ()
 
static object_map_t getObjectMap ()
 
static Loggerlogger ()
 return the logger instance
 
static int objects_count ()
 
static void printObjectMapDiff (object_map_t map)
 Creates the difference between a snapshot of the object map and its current state and prints it to std::cout.
 
static void set_count (bool flag)
 enable/disable class instances counting
 
static void write_objects_map_to (std::ostream &out, object_map_t *map=nullptr)
 output the full objects map to a given ostream
 
static void write_objects_map_to_cerr ()
 output objects map to stderr
 
- Static Protected Attributes inherited from Base
static bool __count = false
 should we count class instances
 
static timeval __last_clock = { 0, 0 }
 
static Logger__logger = nullptr
 
static QString sPrintIndention = " "
 String used to format the debugging string output of some core classes.
 

Detailed Description

This dialog is used to use the H2PlayList.

Definition at line 43 of file PlaylistDialog.h.

Constructor & Destructor Documentation

◆ PlaylistDialog()

PlaylistDialog ( QWidget * pParent)
explicit

Definition at line 59 of file PlaylistDialog.cpp.

◆ ~PlaylistDialog()

Definition at line 249 of file PlaylistDialog.cpp.

Member Function Documentation

◆ addCurrentSong

void addCurrentSong ( )
privateslot

Definition at line 291 of file PlaylistDialog.cpp.

◆ addSong

void addSong ( )
privateslot

Definition at line 266 of file PlaylistDialog.cpp.

◆ clearPlaylist

void clearPlaylist ( )
privateslot

Definition at line 337 of file PlaylistDialog.cpp.

◆ closeEvent

void closeEvent ( QCloseEvent * ev)
overrideprivatevirtualslot

Definition at line 261 of file PlaylistDialog.cpp.

◆ editScript

void editScript ( )
privateslot

Definition at line 631 of file PlaylistDialog.cpp.

◆ eventFilter

bool eventFilter ( QObject * o,
QEvent * e )
overrideprivatevirtualslot

Definition at line 910 of file PlaylistDialog.cpp.

◆ ffWDBtnClicked

void ffWDBtnClicked ( )
privateslot

Definition at line 800 of file PlaylistDialog.cpp.

◆ keyPressEvent

void keyPressEvent ( QKeyEvent * ev)
overrideprivatevirtualslot

Definition at line 254 of file PlaylistDialog.cpp.

◆ loadList

void loadList ( )
privateslot

Definition at line 388 of file PlaylistDialog.cpp.

◆ loadListByFileName()

bool loadListByFileName ( QString filename)

Definition at line 943 of file PlaylistDialog.cpp.

◆ loadScript

void loadScript ( )
privateslot

Definition at line 570 of file PlaylistDialog.cpp.

◆ newScript

void newScript ( )
privateslot

Definition at line 447 of file PlaylistDialog.cpp.

◆ nodePlayBTN

void nodePlayBTN ( )
privateslot

Definition at line 757 of file PlaylistDialog.cpp.

◆ nodeStopBTN

void nodeStopBTN ( )
privateslot

Definition at line 793 of file PlaylistDialog.cpp.

◆ o_downBClicked

void o_downBClicked ( )
privateslot

Definition at line 708 of file PlaylistDialog.cpp.

◆ o_upBClicked

void o_upBClicked ( )
privateslot

Definition at line 675 of file PlaylistDialog.cpp.

◆ on_m_pPlaylistTree_itemClicked

void on_m_pPlaylistTree_itemClicked ( QTreeWidgetItem * item,
int column )
privateslot

Definition at line 741 of file PlaylistDialog.cpp.

◆ on_m_pPlaylistTree_itemDoubleClicked

void on_m_pPlaylistTree_itemDoubleClicked ( )
privateslot

Definition at line 812 of file PlaylistDialog.cpp.

◆ onPreferencesChanged

void onPreferencesChanged ( H2Core::Preferences::Changes changes)
slot

Definition at line 981 of file PlaylistDialog.cpp.

◆ removeFromList

void removeFromList ( )
privateslot

Definition at line 304 of file PlaylistDialog.cpp.

◆ removeScript

void removeScript ( )
privateslot

Definition at line 607 of file PlaylistDialog.cpp.

◆ rewindBtnClicked

void rewindBtnClicked ( )
privateslot

Definition at line 806 of file PlaylistDialog.cpp.

◆ saveList

void saveList ( )
privateslot

Definition at line 555 of file PlaylistDialog.cpp.

◆ saveListAs

void saveListAs ( )
privateslot

Definition at line 521 of file PlaylistDialog.cpp.

◆ setFirstItemCurrent()

void setFirstItemCurrent ( )
private

◆ updateActiveSongNumber

void updateActiveSongNumber ( )
privateslot

Definition at line 884 of file PlaylistDialog.cpp.

◆ updatePlayListNode()

void updatePlayListNode ( QString file)
private

Definition at line 376 of file PlaylistDialog.cpp.

◆ updatePlayListVector()

void updatePlayListVector ( )
private

Definition at line 863 of file PlaylistDialog.cpp.

Field Documentation

◆ m_pFfwdBtn

Button* m_pFfwdBtn
private

Definition at line 102 of file PlaylistDialog.h.

◆ m_pMenubar

QMenuBar* m_pMenubar
private

Definition at line 92 of file PlaylistDialog.h.

◆ m_pPlayBtn

Button* m_pPlayBtn
private

Definition at line 100 of file PlaylistDialog.h.

◆ m_pPlaylistMenu

QMenu* m_pPlaylistMenu
private

Definition at line 93 of file PlaylistDialog.h.

◆ m_pRwdBtn

Button* m_pRwdBtn
private

Definition at line 99 of file PlaylistDialog.h.

◆ m_pScriptMenu

QMenu* m_pScriptMenu
private

Definition at line 96 of file PlaylistDialog.h.

◆ m_pStopBtn

Button* m_pStopBtn
private

Definition at line 101 of file PlaylistDialog.h.

◆ m_pTimer

QTimer* m_pTimer
private

Definition at line 91 of file PlaylistDialog.h.

◆ zoom_in_btn

Button* zoom_in_btn
private

Definition at line 90 of file PlaylistDialog.h.