hydrogen 1.2.3
PlaylistDialog.h
Go to the documentation of this file.
1/*
2 * Hydrogen
3 * Copyright(c) 2002-2008 by Alex >Comix< Cominu [comix@users.sourceforge.net]
4 * Copyright(c) 2008-2024 The hydrogen development team [hydrogen-devel@lists.sourceforge.net]
5 *
6 * http://www.hydrogen-music.org
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY, without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see https://www.gnu.org/licenses
20 *
21 */
22
23#ifndef PLAYLIST_DIALOG_H
24#define PLAYLIST_DIALOG_H
25
26
27#include <QMenuBar>
28#include <QDialog>
29#include "ui_PlaylistDialog_UI.h"
30#include <core/Object.h>
32#include <core/Hydrogen.h>
35
36class Button;
37class PixmapWidget;
38
42
43class PlaylistDialog : public QDialog, protected WidgetWithScalableFont<8, 10, 12>, public Ui_PlaylistDialog_UI, public H2Core::Object<PlaylistDialog>
44
45{
47 Q_OBJECT
48 public:
49
50 explicit PlaylistDialog( QWidget* pParent );
52
53 bool loadListByFileName( QString filename);
54
55public slots:
57
58 private slots:
59 virtual void keyPressEvent( QKeyEvent* ev ) override;
60 virtual void closeEvent( QCloseEvent* ev ) override;
61 virtual bool eventFilter ( QObject *o, QEvent *e ) override;
62
63 void addSong();
64 void addCurrentSong();
65 void removeFromList();
66 void removeScript();
67 void clearPlaylist();
68 void loadList();
69 void saveListAs();
70 void saveList();
71 void loadScript();
72 void ffWDBtnClicked();
73 void nodePlayBTN();
74 void nodeStopBTN();
75 void rewindBtnClicked();
76 void editScript();
77 void newScript();
78 void on_m_pPlaylistTree_itemClicked ( QTreeWidgetItem * item, int column );
79 void o_upBClicked();
80 void o_downBClicked();
83
84
85 private:
86
87 void updatePlayListNode( QString file );
91 QTimer * m_pTimer;
92 QMenuBar * m_pMenubar;
94#ifndef WIN32
95 //no scripts under windows
97#endif
98
103};
104
105
106#endif
#define H2_OBJECT(name)
Definition Object.h:224
Generic Button with SVG icons or text.
Definition Button.h:60
Changes
Bitwise or-able options showing which part of the Preferences were altered using the PreferencesDialo...
This dialog is used to use the H2PlayList.
virtual bool eventFilter(QObject *o, QEvent *e) override
void on_m_pPlaylistTree_itemDoubleClicked()
Button * zoom_in_btn
void on_m_pPlaylistTree_itemClicked(QTreeWidgetItem *item, int column)
QMenuBar * m_pMenubar
PlaylistDialog(QWidget *pParent)
void onPreferencesChanged(H2Core::Preferences::Changes changes)
virtual void closeEvent(QCloseEvent *ev) override
QMenu * m_pScriptMenu
void setFirstItemCurrent()
virtual void keyPressEvent(QKeyEvent *ev) override
void updateActiveSongNumber()
QMenu * m_pPlaylistMenu
bool loadListByFileName(QString filename)
void updatePlayListNode(QString file)
Widget is affected by the "Font size" settings in the PreferencesDialog.