00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef CONTROLLER_H
00017 #define CONTROLLER_H
00018
00019 #include "skScriptedExecutable.h"
00020
00021 #include "Demo_View.h"
00022
00023 class Controller : public skScriptedExecutable, public ViewCallback
00024
00025
00026
00027 {
00028 public:
00029 Controller(skString fileName);
00030 ~Controller();
00031 void buttonPressed(int id);
00032 bool method(const skString& s,skRValueArray& args,skRValue& ret);
00033 private:
00034 void init();
00035 View * m_View;
00036 skString m_FileName;
00037 };
00038
00039 #endif