/* fre:ac - free audio converter * Copyright (C) 2001-2020 Robert Kausch * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of * the License, or (at your option) any later version. * * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ #ifndef H_FREAC_CDDB_MULTIMATCH #define H_FREAC_CDDB_MULTIMATCH #include using namespace smooth; using namespace smooth::GUI; #include #include namespace freac { class cddbMultiMatchDlg : public Dialogs::Dialog { private: static Int previewCount; GroupBox *group_match; Text *text_match; ComboBox *combo_match; Text *text_preview; MultiEdit *edit_preview; Text *text_loading_preview; Divider *divbar; Window *mainWnd; Titlebar *mainWnd_titlebar; Button *btn_cancel; Button *btn_ok; CDDB &cddb; Array categories; Array discIDs; Array loadPreviewThreads; Void LoadPreview(Int); Void CleanUpPreviews(); public: cddbMultiMatchDlg(CDDB &, Bool); ~cddbMultiMatchDlg(); const Error &ShowDialog(); Int AddEntry(const String &, const String &, UnsignedInt32); Int GetSelectedEntryNumber() const; slots: Void OnChangeSize(const Size &); Void SelectEntry(); Void OK(); Void Cancel(); }; }; #endif