| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_CDDB_MULTIMATCH |
| 14 |
#define H_FREAC_CDDB_MULTIMATCH |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
|
| 18 |
using namespace smooth; |
| 19 |
using namespace smooth::GUI; |
| 20 |
|
| 21 |
#include <cddb/cddb.h> |
| 22 |
#include <cddb/cddbinfo.h> |
| 23 |
|
| 24 |
namespace freac |
| 25 |
{ |
| 26 |
class cddbMultiMatchDlg : public Dialogs::Dialog |
| 27 |
{ |
| 28 |
private: |
| 29 |
static Int previewCount; |
| 30 |
|
| 31 |
GroupBox *group_match; |
| 32 |
Text *text_match; |
| 33 |
ComboBox *combo_match; |
| 34 |
|
| 35 |
Text *text_preview; |
| 36 |
MultiEdit *edit_preview; |
| 37 |
Text *text_loading_preview; |
| 38 |
|
| 39 |
Divider *divbar; |
| 40 |
|
| 41 |
Window *mainWnd; |
| 42 |
Titlebar *mainWnd_titlebar; |
| 43 |
|
| 44 |
Button *btn_cancel; |
| 45 |
Button *btn_ok; |
| 46 |
|
| 47 |
CDDB &cddb; |
| 48 |
|
| 49 |
Array<String> categories; |
| 50 |
Array<UnsignedInt32> discIDs; |
| 51 |
|
| 52 |
Array<Threads::Thread *, Void *> loadPreviewThreads; |
| 53 |
|
| 54 |
Void LoadPreview(Int); |
| 55 |
Void CleanUpPreviews(); |
| 56 |
public: |
| 57 |
cddbMultiMatchDlg(CDDB &, Bool); |
| 58 |
~cddbMultiMatchDlg(); |
| 59 |
|
| 60 |
const Error &ShowDialog(); |
| 61 |
|
| 62 |
Int AddEntry(const String &, const String &, UnsignedInt32); |
| 63 |
Int GetSelectedEntryNumber() const; |
| 64 |
slots: |
| 65 |
Void OnChangeSize(const Size &); |
| 66 |
|
| 67 |
Void SelectEntry(); |
| 68 |
|
| 69 |
Void OK(); |
| 70 |
Void Cancel(); |
| 71 |
}; |
| 72 |
}; |
| 73 |
|
| 74 |
#endif |