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

Demo_View.h

00001 /*
00002   Copyright 1996-2002
00003   Simon Whiteside, All Rights Reserved
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Lesser General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Lesser General Public License for more details.
00014 
00015     You should have received a copy of the GNU Lesser General Public
00016     License along with this library; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019   Demo_View.h
00020 
00021   This class describes the interface for a class that shows windows within
00022   widgets.
00023 
00024   The class is implemented separately for each target platform.
00025 
00026   $Id: Demo__View_8h-source.html,v 1.5 2003/01/23 15:31:03 simkin_cvs Exp $
00027 */
00028 #ifndef DEMO_VIEW_H
00029 #define DEMO_VIEW_H
00030 
00031 #include "skString.h"
00032 
00033 class ViewCallback
00034 {
00035  public:
00036   virtual void  buttonPressed(int id)=0;
00037 };
00038 class View
00039 {
00040  public:
00041   View(ViewCallback& callback,skString title,int x,int y,int width,int height);
00042   ~View();
00043   void addControl(skString type,int id,skString text,int x,int y,int width,int height);
00044   void close();
00045   skString getText(int id) const;
00046   void user(skString msg);
00047   void setFocus(int id);
00048   void run(skString file);
00049 
00050   ViewCallback& m_Callback;
00051   void * m_Handle;
00052 };
00053 #endif
00054 

Generated on Thu Jan 23 15:25:38 2003 for Simkin by doxygen1.3-rc1