More debug added
This commit is contained in:
+9
@@ -41,6 +41,10 @@ class Layer
|
|||||||
parentLayer.focus = Window::getFocus();
|
parentLayer.focus = Window::getFocus();
|
||||||
}
|
}
|
||||||
stack.emplace_back(Layer(window));
|
stack.emplace_back(Layer(window));
|
||||||
|
TRACE_WINDOWS("New layer added for %s (%d layers)", window->getWindowDebugString().c_str(), stack.size());
|
||||||
|
for (auto layer: stack) {
|
||||||
|
TRACE_WINDOWS(" - %s (focus=%s)", layer.main->getWindowDebugString().c_str(), layer.focus ? layer.focus->getWindowDebugString().c_str() : "---");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pop(Window * window)
|
static void pop(Window * window)
|
||||||
@@ -61,5 +65,10 @@ class Layer
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TRACE_WINDOWS("Layer removed for %s (%d layers)", window->getWindowDebugString().c_str(), stack.size());
|
||||||
|
for (auto layer: stack) {
|
||||||
|
TRACE_WINDOWS(" - %s (focus=%s)", layer.main->getWindowDebugString().c_str(), layer.focus ? layer.focus->getWindowDebugString().c_str() : "---");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+7
@@ -164,6 +164,13 @@ class Menu: public ModalWindow
|
|||||||
public:
|
public:
|
||||||
explicit Menu(Window * parent, bool multiple = false);
|
explicit Menu(Window * parent, bool multiple = false);
|
||||||
|
|
||||||
|
#if defined(DEBUG_WINDOWS)
|
||||||
|
std::string getName() const override
|
||||||
|
{
|
||||||
|
return "Menu";
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void setCancelHandler(std::function<void()> handler)
|
void setCancelHandler(std::function<void()> handler)
|
||||||
{
|
{
|
||||||
content->body.setCancelHandler(std::move(handler));
|
content->body.setCancelHandler(std::move(handler));
|
||||||
|
|||||||
Reference in New Issue
Block a user