-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrmtracksearch.h
More file actions
58 lines (43 loc) · 1.09 KB
/
Copy pathfrmtracksearch.h
File metadata and controls
58 lines (43 loc) · 1.09 KB
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
#ifndef FRMTRACKSEARCH_H
#define FRMTRACKSEARCH_H
#include <QDialog>
#include "lib/skglib.h"
class TrackSearchNode
{
public:
TrackSearchNode();
QString TrackName;
QString AlbumName;
QString ArtistName;
long TrackNumber;
bool operator ==(const TrackSearchNode &other);
};
bool TrackLessThan(const TrackSearchNode *node1, const TrackSearchNode *node2);
namespace Ui {
class FrmTrackSearch;
}
class FrmTrackSearch : public QDialog {
Q_OBJECT
public:
FrmTrackSearch(QWidget *parent = 0);
~FrmTrackSearch();
void Initialize(QList <SKG_Album*> albums);
protected:
void changeEvent(QEvent *e);
private:
Ui::FrmTrackSearch *ui;
QList <TrackSearchNode*> Tracks;
QList <TrackSearchNode*> Matches;
int IndexFirst(QString startswith);
int IndexLast(QString startswith);
signals:
void TrackAdd(long tracknum);
private slots:
void AddButtonPressed();
void UpPressed();
void DownPressed();
void KeyPressed(int keycode,bool shift);
void DisplayMatches (QString startswith);
void ShowKeyboard();
};
#endif // FRMTRACKSEARCH_H