summaryrefslogtreecommitdiff
path: root/wx+/app_main.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-07-22 16:56:03 +0000
committerB Stack <bgstack15@gmail.com>2020-07-22 16:56:03 +0000
commite5633fb1c0db91f01ab967330b76baf4ecdb0512 (patch)
tree10260e25ae905564f7978b83fc4e316670f987c6 /wx+/app_main.h
parentMerge branch '10.25' into 'master' (diff)
parentadd upstream 11.0 (diff)
downloadFreeFileSync-11.0.tar.gz
FreeFileSync-11.0.tar.bz2
FreeFileSync-11.0.zip
Merge branch '11.0' into 'master'11.0
add upstream 11.0 See merge request opensource-tracking/FreeFileSync!24
Diffstat (limited to 'wx+/app_main.h')
-rw-r--r--wx+/app_main.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/wx+/app_main.h b/wx+/app_main.h
index 8d2a6eeb..570a2a9c 100644
--- a/wx+/app_main.h
+++ b/wx+/app_main.h
@@ -14,8 +14,8 @@
namespace zen
{
//just some wrapper around a global variable representing the (logical) main application window
-void setMainWindow(wxWindow* window); //set main window and enable "exit on frame delete"
-bool mainWindowWasSet();
+void setGlobalWindow(wxWindow* window); //set main window and enable "exit on frame delete"
+bool globalWindowWasSet();
@@ -26,7 +26,7 @@ bool mainWindowWasSet();
namespace impl
{
inline
-bool& refMainWndStatus()
+bool& refGlobalWindowStatus()
{
static bool status = false; //external linkage!
return status;
@@ -35,15 +35,15 @@ bool& refMainWndStatus()
inline
-void setMainWindow(wxWindow* window)
+void setGlobalWindow(wxWindow* window)
{
wxTheApp->SetTopWindow(window);
wxTheApp->SetExitOnFrameDelete(true);
- impl::refMainWndStatus() = true;
+ impl::refGlobalWindowStatus() = true;
}
-inline bool mainWindowWasSet() { return impl::refMainWndStatus(); }
+inline bool globalWindowWasSet() { return impl::refGlobalWindowStatus(); }
}
#endif //APP_MAIN_H_08215601837818347575856
bgstack15