[Ion] Move to C++

Change-Id: Id75fca5e92a3fdf18258015bcda7cd70297b0fdb
This commit is contained in:
Romain Goyet
2016-08-23 16:30:15 +02:00
parent 00afebbe2d
commit 753a4a7cb5
56 changed files with 692 additions and 618 deletions

View File

@@ -71,14 +71,14 @@ TabViewController::TabViewController(Responder * parentResponder, ViewController
}
}
bool TabViewController::handleEvent(ion_event_t event) {
bool TabViewController::handleEvent(Ion::Events::Event event) {
switch(event) {
case LEFT_ARROW:
case Ion::Events::Event::LEFT_ARROW:
if (m_activeChildIndex > 0) {
setActiveTab(m_activeChildIndex-1);
}
return true;
case RIGHT_ARROW:
case Ion::Events::Event::RIGHT_ARROW:
if (m_activeChildIndex < m_numberOfChildren-1) {
setActiveTab(m_activeChildIndex+1);
}