-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfrmconfig.h
62 lines (55 loc) · 1.57 KB
/
frmconfig.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#ifndef FRMCONFIG_H
#define FRMCONFIG_H
#include <QDialog>
#include "jukeboxconfig.h"
#include "customalbumlist.h"
#include "customlistmanager.h"
#include "playlist.h"
#include "playlistmanager.h"
#include "keytranslator.h"
namespace Ui {
class frmConfig;
}
class frmConfig : public QDialog {
Q_OBJECT
public:
frmConfig(QWidget *parent = 0);
~frmConfig();
void Initialize(JukeboxConfig *cfg,
CustomListManager *listmgr,
KeyTranslator *translator,
PlaylistManager *plistmgr,
CustomAlbumList *list= NULL);
protected:
void changeEvent(QEvent *e);
private:
Ui::frmConfig *ui;
QString ConfigFile;
QString CustomListFile;
JukeboxConfig *Config;
CustomListManager *Manager;
PlaylistManager *PManager;
KeyTranslator *Translator;
CustomAlbumList *LoadedList;
QList <Playlist*> AvailablePlaylists();
void DisplayCustomLists();
void DisplayPlaylists();
void DisplayMusicDirectories();
void SaveConfigFile(){Config->SaveConfigFile();}
void SaveListsFile(){Manager->SaveCustomListFile();}
void LoadKeyComboBoxes();
private slots:
void btnAddDirectoryClicked();
void btnRemoveDirectoryClicked();
void btnAddListClicked();
void btnEditListCLicked();
void btnDeleteListClicked();
void btnAddPlaylistClicked();
void btnEditPlaylistClicked();
void btnDeletePlaylistClicked();
void btnSaveClicked();
void btnAddKeyClicked();
void btnClearKeysClicked();
void ViewCurrentKeyMappings();
};
#endif // FRMCONFIG_H