| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_DONATE_DIALOG |
| 14 |
#define H_DONATE_DIALOG |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
#include "methods/method.h" |
| 20 |
|
| 21 |
using namespace smooth::GUI::Dialogs; |
| 22 |
|
| 23 |
namespace BoCA |
| 24 |
{ |
| 25 |
class DonateDialog : public Dialog |
| 26 |
{ |
| 27 |
private: |
| 28 |
static Array<PaymentMethod *(*)()> *factories; |
| 29 |
|
| 30 |
GUI::Window *mainWnd; |
| 31 |
Titlebar *mainWnd_titlebar; |
| 32 |
|
| 33 |
Divider *divider; |
| 34 |
|
| 35 |
Button *button_close; |
| 36 |
|
| 37 |
Array<PaymentMethod *> methods; |
| 38 |
|
| 39 |
TabWidget *tab_methods; |
| 40 |
|
| 41 |
Text *text_intro; |
| 42 |
Text *text_donate; |
| 43 |
Text *text_donate_other; |
| 44 |
Text *text_thanks; |
| 45 |
|
| 46 |
CheckBox *check_remind; |
| 47 |
|
| 48 |
Bool remind; |
| 49 |
public: |
| 50 |
static Bool RegisterPaymentMethod(PaymentMethod *(*)()); |
| 51 |
|
| 52 |
static const Array<PaymentMethod *(*)()> &GetPaymentMethodFactories(); |
| 53 |
static Bool FreePaymentMethodFactories(); |
| 54 |
|
| 55 |
DonateDialog(); |
| 56 |
~DonateDialog(); |
| 57 |
|
| 58 |
const Error &ShowDialog(); |
| 59 |
const Error &ShowDialog(Bool); |
| 60 |
slots: |
| 61 |
Void Close(); |
| 62 |
}; |
| 63 |
}; |
| 64 |
|
| 65 |
#endif |