Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

Demo_Controller.h

00001 /*
00002   Copyright 1996-2000
00003   Simon Whiteside, All Rights Reserved
00004 
00005   THIS CODE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
00006   KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
00007   IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
00008   PURPOSE.
00009 
00010   Demo_Controller.h
00011 
00012   This file defines the interface for the class which controls the demo's view.
00013 
00014   $Id: Demo_Controller.h,v 1.1 2000/12/21 13:32:59 sdw Exp $
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 //      deriving from skScriptedExecutable means we can be called from Simkin scripts
00025 //      deriving from ViewCallback means we can get notified when 
00026 //      buttons are pressed on the view
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

Generated on Tue Nov 20 17:56:21 2001 for Simkin by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001