00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #if !defined(__WSWNORD1_H__)
00018 #define __WSWNORD1_H__
00019
00020 #include "Base.h"
00021
00023
00025
00026 class CNumberedWindow : public CWindow
00027 {
00028 public:
00029 CNumberedWindow (CWsClient* aClient, TInt aNum);
00030 ~CNumberedWindow ();
00031 void Draw (const TRect& aRect);
00032 void HandlePointerEvent (TPointerEvent& aPointerEvent);
00033 private:
00034 TInt iNumber;
00035 TPoint iOldPos;
00036 };
00037
00038
00039
00040 class CMainWindow : public CWindow
00041 {
00042 public:
00043 CMainWindow (CWsClient* aClient);
00044 ~CMainWindow ();
00045 void Draw (const TRect& aRect);
00046 void HandlePointerEvent (TPointerEvent& aPointerEvent);
00047 };
00048
00050
00052
00053 class CExampleWsClient : public CWsClient
00054 {
00055 public:
00056 static CExampleWsClient* NewL(const TRect& aRect);
00057 private:
00058 CExampleWsClient (const TRect& aRect);
00059 void ConstructMainWindowL();
00060 ~CExampleWsClient ();
00061 void RunL ();
00062 void HandleKeyEventL (TKeyEvent& aKeyEvent);
00063 private:
00064 CMainWindow* iMainWindow;
00065 CNumberedWindow* iWindow1;
00066 CNumberedWindow* iWindow2;
00067 CNumberedWindow* iWindow3;
00068 CNumberedWindow* iWindow4;
00069 CNumberedWindow* iWindow5;
00070 const TRect& iRect;
00071 };
00072
00073 #endif