21 #ifndef __ANTARES_APPLICATION_MAIN_DISABLER_H__
22 #define __ANTARES_APPLICATION_MAIN_DISABLER_H__
24 namespace Antares::Forms
26 template<
class WindowT>
33 if (!pWindow.pUpdateCountLocker++)
35 pWindow.Enable(
false);
41 assert(pWindow.pUpdateCountLocker > 0);
42 if (!(--pWindow.pUpdateCountLocker))
60 if (!pWindow.pUpdateCountLocker++)
63 pWindow.backgroundTimerStop();
65 pWindow.SetDropTarget(
nullptr);
71 assert(pWindow.pUpdateCountLocker > 0);
72 if (!(--pWindow.pUpdateCountLocker))
75 pWindow.resetDefaultStatusBarText();
78 pWindow.delayForceFocus();
80 pWindow.resetDragAndDrop();