| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_YOUTUBE_CONFIG |
| 14 |
#define H_YOUTUBE_CONFIG |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
using namespace BoCA; |
| 23 |
|
| 24 |
namespace BoCA |
| 25 |
{ |
| 26 |
class ConfigureYouTube : public ConfigLayer |
| 27 |
{ |
| 28 |
private: |
| 29 |
GroupBox *group_auto; |
| 30 |
CheckBox *check_auto_download; |
| 31 |
|
| 32 |
GroupBox *group_downloads; |
| 33 |
Text *text_max_downloads; |
| 34 |
EditBox *edit_max_downloads; |
| 35 |
Arrows *arrows_max_downloads; |
| 36 |
|
| 37 |
GroupBox *group_files; |
| 38 |
CheckBox *check_keep; |
| 39 |
|
| 40 |
EditBox *edit_dir; |
| 41 |
Button *button_browse; |
| 42 |
|
| 43 |
Text *text_format; |
| 44 |
ComboBox *combo_format; |
| 45 |
|
| 46 |
Int maxDownloads; |
| 47 |
|
| 48 |
Bool autoDownload; |
| 49 |
Bool keepVideoFiles; |
| 50 |
public: |
| 51 |
static const String ConfigID; |
| 52 |
|
| 53 |
ConfigureYouTube(); |
| 54 |
~ConfigureYouTube(); |
| 55 |
|
| 56 |
Int SaveSettings(); |
| 57 |
slots: |
| 58 |
Void EditMaxDownloads(); |
| 59 |
Void ArrowsMaxDownloads(); |
| 60 |
|
| 61 |
Void ToggleKeepFiles(); |
| 62 |
|
| 63 |
Void SelectOutputDir(); |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
#endif |