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

Demo_View.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_View.h
00011 
00012   This class describes the interface for a class that shows windows within
00013   widgets.
00014 
00015   The class is implemented separately for each target platform.
00016 
00017   $Id: Demo_View.h,v 1.1 2000/12/21 13:32:59 sdw Exp $
00018 */
00019 #ifndef DEMO_VIEW_H
00020 #define DEMO_VIEW_H
00021 
00022 #include "skString.h"
00023 
00024 class ViewCallback
00025 {
00026  public:
00027   virtual void  buttonPressed(int id)=0;
00028 };
00029 class View
00030 {
00031  public:
00032   View(ViewCallback& callback,skString title,int x,int y,int width,int height);
00033   ~View();
00034   void addControl(skString type,int id,skString text,int x,int y,int width,int height);
00035   void close();
00036   skString getText(int id) const;
00037   void user(skString msg);
00038   void setFocus(int id);
00039   void run(skString file);
00040 
00041   ViewCallback& m_Callback;
00042   void * m_Handle;
00043 };
00044 #endif
00045 

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