Debian Codegraph @

include/dialogs/overwrite.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2019 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
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