Merge branch 'linux' into merge_linux

This commit is contained in:
Michael Bonfils
2018-02-08 20:36:46 +01:00
128 changed files with 1618 additions and 29 deletions

View File

@@ -117,7 +117,7 @@ public:
if(getSupportedHandlers().count(t) == 0) throw xHandlerNotSupported(t);
auto old_handler = event_handlers[t];
if(handler) event_handlers[t] = handler;
else event_handlers[t].clear();
else event_handlers[t] = nullptr;
if(old_handler.empty()) return nullptr;
return boost::any_cast<typename event_fcn<t>::type>(old_handler);
}

View File

@@ -13,6 +13,7 @@
#include "pict.hpp"
#include "stack.hpp"
#include "render_shapes.hpp"
#include <climits>
cScrollPane::cScrollPane(cDialog& parent) : cContainer(CTRL_PANE, parent), scroll(parent) {
recalcRect();

View File

@@ -12,6 +12,7 @@
#include "message.hpp"
#include "pict.hpp"
#include "scrollbar.hpp"
#include <climits>
bool cStack::hasChild(std::string id) {
return controls.find(id) != controls.end();