hydrogen 1.2.6
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 logBacktrace () const
 Print the current stack at point into the debug log.
 
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 logBacktrace () const
 Print the current stack at point into the debug log.
 
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 bool bLogColors = true
 
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 268 of file PlaylistDialog.cpp.

Member Function Documentation

◆ addCurrentSong

void addCurrentSong ( )
privateslot

Definition at line 310 of file PlaylistDialog.cpp.

◆ addSong

void addSong ( )
privateslot

Definition at line 285 of file PlaylistDialog.cpp.

◆ clearPlaylist

void clearPlaylist ( )
privateslot

Definition at line 356 of file PlaylistDialog.cpp.

◆ closeEvent

void closeEvent ( QCloseEvent * ev)
overrideprivatevirtualslot

Definition at line 280 of file PlaylistDialog.cpp.

◆ editScript

void editScript ( )
privateslot

Definition at line 649 of file PlaylistDialog.cpp.

◆ eventFilter

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

Definition at line 928 of file PlaylistDialog.cpp.

◆ ffWDBtnClicked

void ffWDBtnClicked ( )
privateslot

Definition at line 818 of file PlaylistDialog.cpp.

◆ keyPressEvent

void keyPressEvent ( QKeyEvent * ev)
overrideprivatevirtualslot

Definition at line 273 of file PlaylistDialog.cpp.

◆ loadList

void loadList ( )
privateslot

Definition at line 406 of file PlaylistDialog.cpp.

◆ loadListByFileName()

bool loadListByFileName ( QString filename)

Definition at line 961 of file PlaylistDialog.cpp.

◆ loadScript

void loadScript ( )
privateslot

Definition at line 588 of file PlaylistDialog.cpp.

◆ newScript

void newScript ( )
privateslot

Definition at line 465 of file PlaylistDialog.cpp.

◆ nodePlayBTN

void nodePlayBTN ( )
privateslot

Definition at line 775 of file PlaylistDialog.cpp.

◆ nodeStopBTN

void nodeStopBTN ( )
privateslot

Definition at line 811 of file PlaylistDialog.cpp.

◆ o_downBClicked

void o_downBClicked ( )
privateslot

Definition at line 726 of file PlaylistDialog.cpp.

◆ o_upBClicked

void o_upBClicked ( )
privateslot

Definition at line 693 of file PlaylistDialog.cpp.

◆ on_m_pPlaylistTree_itemClicked

void on_m_pPlaylistTree_itemClicked ( QTreeWidgetItem * item,
int column )
privateslot

Definition at line 759 of file PlaylistDialog.cpp.

◆ on_m_pPlaylistTree_itemDoubleClicked

void on_m_pPlaylistTree_itemDoubleClicked ( )
privateslot

Definition at line 830 of file PlaylistDialog.cpp.

◆ onPreferencesChanged

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

Definition at line 999 of file PlaylistDialog.cpp.

◆ removeFromList

void removeFromList ( )
privateslot

Definition at line 323 of file PlaylistDialog.cpp.

◆ removeScript

void removeScript ( )
privateslot

Definition at line 625 of file PlaylistDialog.cpp.

◆ rewindBtnClicked

void rewindBtnClicked ( )
privateslot

Definition at line 824 of file PlaylistDialog.cpp.

◆ saveList

void saveList ( )
privateslot

Definition at line 573 of file PlaylistDialog.cpp.

◆ saveListAs

void saveListAs ( )
privateslot

Definition at line 539 of file PlaylistDialog.cpp.

◆ setFirstItemCurrent()

void setFirstItemCurrent ( )
private

◆ updateActiveSongNumber

void updateActiveSongNumber ( )
privateslot

Definition at line 902 of file PlaylistDialog.cpp.

◆ updatePlayListNode()

void updatePlayListNode ( QString file)
private

Definition at line 394 of file PlaylistDialog.cpp.

◆ updatePlayListVector()

void updatePlayListVector ( )
private

Definition at line 881 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.