6663b6c9
adorian
projet complet av...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "sandbox_controller.h"
#include <apps/apps_container.h>
namespace Code {
SandboxController::SandboxController(Responder * parentResponder) :
ViewController(parentResponder),
m_solidColorView(KDColorWhite)
{
}
StackViewController * SandboxController::stackViewController() {
return static_cast<StackViewController *>(parentResponder());
}
void SandboxController::viewWillAppear() {
static_cast<AppsContainer *>(const_cast<Container *>(app()->container()))->redrawWindow();
}
bool SandboxController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::Home || event == Ion::Events::OnOff) {
stackViewController()->pop();
return false;
}
if (event == Ion::Events::OK || event == Ion::Events::Back) {
stackViewController()->pop();
}
return true;
}
}
|