summaryrefslogtreecommitdiff
path: root/wx+/std_button_layout.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:01:21 +0200
committerDaniel Wilhelm <shieldwed@outlook.com>2018-05-09 00:01:21 +0200
commitb962d4fd3f8e802b99bd9c074851fd0f05a12adb (patch)
tree13a12ded9c3a9713a8c368975a95f5efe6ec997c /wx+/std_button_layout.h
parent9.2 (diff)
downloadFreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.tar.gz
FreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.tar.bz2
FreeFileSync-b962d4fd3f8e802b99bd9c074851fd0f05a12adb.zip
9.3
Diffstat (limited to 'wx+/std_button_layout.h')
-rwxr-xr-xwx+/std_button_layout.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/wx+/std_button_layout.h b/wx+/std_button_layout.h
index 47eea3c6..fa4a269e 100755
--- a/wx+/std_button_layout.h
+++ b/wx+/std_button_layout.h
@@ -16,11 +16,13 @@ namespace zen
{
struct StdButtons
{
- StdButtons& setAffirmative (wxButton* btn) { btnYes = btn; return *this; }
- StdButtons& setNegative (wxButton* btn) { btnNo = btn; return *this; }
- StdButtons& setCancel (wxButton* btn) { btnCancel = btn; return *this; }
+ StdButtons& setAffirmative (wxButton* btn) { btnYes = btn; return *this; }
+ StdButtons& setAffirmativeAll(wxButton* btn) { btnYesAll = btn; return *this; }
+ StdButtons& setNegative (wxButton* btn) { btnNo = btn; return *this; }
+ StdButtons& setCancel (wxButton* btn) { btnCancel = btn; return *this; }
wxButton* btnYes = nullptr;
+ wxButton* btnYesAll = nullptr;
wxButton* btnNo = nullptr;
wxButton* btnCancel = nullptr;
};
@@ -64,6 +66,7 @@ void setStandardButtonLayout(wxBoxSizer& sizer, const StdButtons& buttons)
};
detach(buttonsTmp.btnYes);
+ detach(buttonsTmp.btnYesAll);
detach(buttonsTmp.btnNo);
detach(buttonsTmp.btnCancel);
@@ -106,11 +109,13 @@ void setStandardButtonLayout(wxBoxSizer& sizer, const StdButtons& buttons)
sizer.Add(spaceRimH, 0);
attach(buttonsTmp.btnNo);
attach(buttonsTmp.btnCancel);
+ attach(buttonsTmp.btnYesAll);
attach(buttonsTmp.btnYes);
sizer.Add(spaceRimH, 0);
- assert(buttonsTmp.btnCancel || buttonsTmp.btnYes); //OS X: there should be at least one button following the gap after the "dangerous" no-button
+ //OS X: there should be at least one button following the gap after the "dangerous" no-button
+ assert(buttonsTmp.btnYes);
}
}
bgstack15