|
a/dirbrowser/dirbrowser.h |
|
b/dirbrowser/dirbrowser.h |
|
... |
|
... |
16 |
*/
|
16 |
*/
|
17 |
#ifndef _DIRBROWSER_H_INCLUDED_
|
17 |
#ifndef _DIRBROWSER_H_INCLUDED_
|
18 |
#define _DIRBROWSER_H_INCLUDED_
|
18 |
#define _DIRBROWSER_H_INCLUDED_
|
19 |
#include "ui_dirbrowser.h"
|
19 |
#include "ui_dirbrowser.h"
|
20 |
|
20 |
|
|
|
21 |
#include <memory>
|
|
|
22 |
|
21 |
#include "HelperStructs/MetaData.h"
|
23 |
#include "HelperStructs/MetaData.h"
|
22 |
#include "playlist/playlist.h"
|
24 |
#include "playlist/playlist.h"
|
23 |
#include "cdbrowser.h"
|
25 |
#include "cdbrowser.h"
|
24 |
|
26 |
|
25 |
// The DirBrowser object has multiple tabs, each displaying the server
|
27 |
// The DirBrowser object has multiple tabs, each displaying the server
|
|
... |
|
... |
27 |
// panel at the bottom
|
29 |
// panel at the bottom
|
28 |
class DirBrowser : public QWidget {
|
30 |
class DirBrowser : public QWidget {
|
29 |
Q_OBJECT;
|
31 |
Q_OBJECT;
|
30 |
|
32 |
|
31 |
public:
|
33 |
public:
|
32 |
DirBrowser(QWidget *parent, Playlist *pl);
|
34 |
DirBrowser(QWidget *parent, std::shared_ptr<Playlist> pl);
|
33 |
bool insertActive();
|
35 |
bool insertActive();
|
34 |
CDBrowser *currentBrowser();
|
36 |
CDBrowser *currentBrowser();
|
35 |
void doSearch(const QString&, bool);
|
37 |
void doSearch(const QString&, bool);
|
36 |
bool randPlayActive() {return m_randplayer != 0;}
|
38 |
bool randPlayActive() {return m_randplayer != 0;}
|
|
|
39 |
bool have_playlist() {return bool(m_pl);}
|
37 |
|
40 |
|
38 |
public slots:
|
41 |
public slots:
|
39 |
void setPlaylist(Playlist *pl);
|
42 |
void setPlaylist(std::shared_ptr<Playlist> pl);
|
40 |
void setStyleSheet(bool);
|
43 |
void setStyleSheet(bool);
|
41 |
void addTab();
|
44 |
void addTab();
|
42 |
void closeTab(int);
|
45 |
void closeTab(int);
|
43 |
void closeCurrentTab();
|
46 |
void closeCurrentTab();
|
44 |
void onCurrentTabChanged(int);
|
47 |
void onCurrentTabChanged(int);
|
|
... |
|
... |
72 |
private:
|
75 |
private:
|
73 |
void setupTabConnections(int i);
|
76 |
void setupTabConnections(int i);
|
74 |
void setupTabConnections(CDBrowser* w);
|
77 |
void setupTabConnections(CDBrowser* w);
|
75 |
|
78 |
|
76 |
Ui::DirBrowser *ui;
|
79 |
Ui::DirBrowser *ui;
|
77 |
Playlist *m_pl;
|
80 |
std::shared_ptr<Playlist> m_pl;
|
78 |
bool m_insertactive;
|
81 |
bool m_insertactive;
|
79 |
RandPlayer *m_randplayer;
|
82 |
RandPlayer *m_randplayer;
|
80 |
};
|
83 |
};
|
81 |
|
84 |
|
82 |
|
85 |
|