/* fre:ac - free audio converter * Copyright (C) 2001-2017 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_YOUTUBE_CONFIG #define H_YOUTUBE_CONFIG #include #include using namespace smooth; using namespace smooth::GUI; using namespace BoCA; namespace BoCA { class ConfigureYouTube : public ConfigLayer { private: GroupBox *group_auto; CheckBox *check_auto_download; GroupBox *group_downloads; Text *text_max_downloads; EditBox *edit_max_downloads; Arrows *arrows_max_downloads; GroupBox *group_files; CheckBox *check_keep; EditBox *edit_dir; Button *button_browse; Text *text_format; ComboBox *combo_format; Int maxDownloads; Bool autoDownload; Bool keepVideoFiles; public: static const String ConfigID; ConfigureYouTube(); ~ConfigureYouTube(); Int SaveSettings(); slots: Void EditMaxDownloads(); Void ArrowsMaxDownloads(); Void ToggleKeepFiles(); Void SelectOutputDir(); }; }; #endif