| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_DIALOG_CONFIRM_OVERWRITE |
| 14 |
#define H_FREAC_DIALOG_CONFIRM_OVERWRITE |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
namespace freac |
| 23 |
{ |
| 24 |
namespace ConfirmOverwrite |
| 25 |
{ |
| 26 |
namespace Action |
| 27 |
{ |
| 28 |
const Int None = 0; |
| 29 |
const Int Confirm = 1; |
| 30 |
const Int Overwrite = 2; |
| 31 |
const Int Skip = 3; |
| 32 |
const Int SkipAll = 4; |
| 33 |
const Int Cancel = 5; |
| 34 |
}; |
| 35 |
}; |
| 36 |
|
| 37 |
class DialogConfirmOverwrite : public Dialogs::Dialog |
| 38 |
{ |
| 39 |
private: |
| 40 |
Divider *divbar; |
| 41 |
|
| 42 |
Window *mainWnd; |
| 43 |
Titlebar *mainWnd_titlebar; |
| 44 |
|
| 45 |
Text *text_files; |
| 46 |
|
| 47 |
Button *button_select_all; |
| 48 |
Button *button_select_none; |
| 49 |
Button *button_select_toggle; |
| 50 |
|
| 51 |
ListBox *list_files; |
| 52 |
|
| 53 |
Button *button_skip; |
| 54 |
Button *button_overwrite; |
| 55 |
Button *button_cancel; |
| 56 |
|
| 57 |
Int userAction; |
| 58 |
public: |
| 59 |
DialogConfirmOverwrite(const Array<BoCA::Track> &); |
| 60 |
~DialogConfirmOverwrite(); |
| 61 |
|
| 62 |
const Error &ShowDialog(); |
| 63 |
|
| 64 |
Int GetUserAction() const; |
| 65 |
const Array<Int> &GetUserActions() const; |
| 66 |
slots: |
| 67 |
Void OnChangeSize(const Size &); |
| 68 |
|
| 69 |
Void SelectAll(); |
| 70 |
Void SelectNone(); |
| 71 |
Void ToggleSelection(); |
| 72 |
|
| 73 |
Void OnMarkEntry(ListEntry *); |
| 74 |
|
| 75 |
Void OnSkip(); |
| 76 |
Void OnOverwrite(); |
| 77 |
Void OnCancel(); |
| 78 |
}; |
| 79 |
}; |
| 80 |
|
| 81 |
#endif |