| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_NOTIFIER_CONFIG |
| 14 |
#define H_NOTIFIER_CONFIG |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
#include "player.h" |
| 20 |
|
| 21 |
using namespace smooth; |
| 22 |
using namespace smooth::GUI; |
| 23 |
|
| 24 |
using namespace BoCA; |
| 25 |
|
| 26 |
namespace BoCA |
| 27 |
{ |
| 28 |
class ConfigureNotifier : public ConfigLayer |
| 29 |
{ |
| 30 |
private: |
| 31 |
Player player; |
| 32 |
|
| 33 |
GroupBox *group_notify; |
| 34 |
CheckBox *check_notify; |
| 35 |
|
| 36 |
CheckBox *check_sound; |
| 37 |
EditBox *edit_soundfile; |
| 38 |
List *list_soundfile; |
| 39 |
|
| 40 |
Button *btn_browse; |
| 41 |
|
| 42 |
Button *btn_preview; |
| 43 |
Button *btn_stop; |
| 44 |
|
| 45 |
CheckBox *check_message; |
| 46 |
EditBox *edit_message; |
| 47 |
|
| 48 |
CheckBox *check_time; |
| 49 |
EditBox *edit_amount; |
| 50 |
List *list_amount; |
| 51 |
ComboBox *combo_units; |
| 52 |
|
| 53 |
Bool enableNotifications; |
| 54 |
|
| 55 |
Bool playSound; |
| 56 |
Bool displayMessage; |
| 57 |
|
| 58 |
Bool minimumDuration; |
| 59 |
public: |
| 60 |
static const String ConfigID; |
| 61 |
|
| 62 |
static const String ResourcesFolder; |
| 63 |
static const String DefaultMessage; |
| 64 |
|
| 65 |
ConfigureNotifier(); |
| 66 |
~ConfigureNotifier(); |
| 67 |
|
| 68 |
Int SaveSettings(); |
| 69 |
slots: |
| 70 |
Void OnToggleNotifications(); |
| 71 |
|
| 72 |
Void OnBrowse(); |
| 73 |
|
| 74 |
Void OnPreview(); |
| 75 |
Void OnStop(); |
| 76 |
}; |
| 77 |
}; |
| 78 |
|
| 79 |
#endif |