Então PARA...

Dependencies:   MenuLCD mbed

Committer:
ViniR
Date:
Fri May 19 13:07:52 2017 +0000
Revision:
0:92357d1220f3
Ent?o PARA...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ViniR 0:92357d1220f3 1 #include "mbed.h"
ViniR 0:92357d1220f3 2 #include "include/menbed.h"
ViniR 0:92357d1220f3 3
ViniR 0:92357d1220f3 4 Menbed::Menbed (PinName select, PinName down, PinName up, PinName cancel,
ViniR 0:92357d1220f3 5 MenbedMenu *rootMenu,
ViniR 0:92357d1220f3 6 MenbedDisplay *display)
ViniR 0:92357d1220f3 7 {
ViniR 0:92357d1220f3 8 MenbedButtonHandlerTimespec *timespec = new MenbedButtonHandlerTimespec();
ViniR 0:92357d1220f3 9
ViniR 0:92357d1220f3 10 displayer = new MenbedDisplayer (display);
ViniR 0:92357d1220f3 11 navigator = new MenbedNavigator (rootMenu, displayer);
ViniR 0:92357d1220f3 12 buttonHandler = new MenbedButtonHandler (select, down, up, cancel, timespec, navigator);
ViniR 0:92357d1220f3 13 refresher = new MenbedRefresher (navigator);
ViniR 0:92357d1220f3 14 }
ViniR 0:92357d1220f3 15
ViniR 0:92357d1220f3 16 Menbed::Menbed (PinName select, PinName down, PinName up,
ViniR 0:92357d1220f3 17 MenbedMenu *rootMenu,
ViniR 0:92357d1220f3 18 MenbedDisplay *display)
ViniR 0:92357d1220f3 19 {
ViniR 0:92357d1220f3 20 MenbedButtonHandlerTimespec *timespec = new MenbedButtonHandlerTimespec();
ViniR 0:92357d1220f3 21
ViniR 0:92357d1220f3 22 displayer = new MenbedDisplayer (display);
ViniR 0:92357d1220f3 23 navigator = new MenbedNavigator (rootMenu, displayer);
ViniR 0:92357d1220f3 24 buttonHandler = new MenbedButtonHandler (select, down, up, timespec, navigator);
ViniR 0:92357d1220f3 25 refresher = new MenbedRefresher (navigator);
ViniR 0:92357d1220f3 26 }
ViniR 0:92357d1220f3 27
ViniR 0:92357d1220f3 28 Menbed::Menbed (PinName select, PinName down,
ViniR 0:92357d1220f3 29 MenbedMenu *rootMenu,
ViniR 0:92357d1220f3 30 MenbedDisplay *display)
ViniR 0:92357d1220f3 31 {
ViniR 0:92357d1220f3 32 MenbedButtonHandlerTimespec *timespec = new MenbedButtonHandlerTimespec();
ViniR 0:92357d1220f3 33
ViniR 0:92357d1220f3 34 displayer = new MenbedDisplayer (display);
ViniR 0:92357d1220f3 35 navigator = new MenbedNavigator (rootMenu, displayer);
ViniR 0:92357d1220f3 36 buttonHandler = new MenbedButtonHandler (select, down, timespec, navigator);
ViniR 0:92357d1220f3 37 refresher = new MenbedRefresher (navigator);
ViniR 0:92357d1220f3 38 }
ViniR 0:92357d1220f3 39
ViniR 0:92357d1220f3 40 Menbed::Menbed(PinName select, PinName down, PinName up, PinName cancel,
ViniR 0:92357d1220f3 41 MenbedButtonHandlerTimespec *timespec,
ViniR 0:92357d1220f3 42 MenbedMenu *rootMenu,
ViniR 0:92357d1220f3 43 MenbedDisplay *display)
ViniR 0:92357d1220f3 44 {
ViniR 0:92357d1220f3 45 displayer = new MenbedDisplayer (display);
ViniR 0:92357d1220f3 46 navigator = new MenbedNavigator (rootMenu, displayer);
ViniR 0:92357d1220f3 47 buttonHandler = new MenbedButtonHandler (select, down, up, cancel, timespec, navigator);
ViniR 0:92357d1220f3 48 refresher = new MenbedRefresher (navigator);
ViniR 0:92357d1220f3 49 }
ViniR 0:92357d1220f3 50
ViniR 0:92357d1220f3 51 Menbed::~Menbed()
ViniR 0:92357d1220f3 52 {
ViniR 0:92357d1220f3 53 delete refresher;
ViniR 0:92357d1220f3 54 delete buttonHandler;
ViniR 0:92357d1220f3 55 delete navigator;
ViniR 0:92357d1220f3 56 delete displayer;
ViniR 0:92357d1220f3 57 }