00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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