summaryrefslogtreecommitdiffstats
blob: 4bc5c2218cce6efd5df1d8b381b5dc2de3c5394e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "Swift/Controllers/EventWindowController.h"

#include <boost/bind.hpp>

namespace Swift {

EventWindowController::EventWindowController(EventController* eventController, EventWindowFactory* windowFactory) {
	eventController_ = eventController;
	windowFactory_ = windowFactory;
	window_ = windowFactory_->createEventWindow();
	eventController_->onEventQueueEventAdded.connect(boost::bind(&EventWindowController::handleEventQueueEventAdded, this, _1));
}

void EventWindowController::handleEventQueueEventAdded(boost::shared_ptr<Event> event) {
	window_->addEvent(event, true);
}

}