renderers (interlace and stuff)
[picodrive.git] / platform / uiq2 / launcher / Dialogs.h
1 /*******************************************************************\r
2  *\r
3  *      File:           Dialogs.h\r
4  *\r
5  *      Author:         Peter van Sebille (peter@yipton.net)\r
6  *\r
7  *  Modified/adapted for picodriveN by notaz, 2006\r
8  *\r
9  *  (c) Copyright 2006, notaz\r
10  *      (c) Copyright 2002, Peter van Sebille\r
11  *      All Rights Reserved\r
12  *\r
13  *******************************************************************/\r
14 \r
15 #ifndef __DIALOGS_H\r
16 #define __DIALOGS_H\r
17 \r
18 #include <eikenv.h>\r
19 #include <eikdialg.h>\r
20 #include <eiktxlbx.h>\r
21 #include <eiktxlbm.h>\r
22 #include <eikdlgtb.h>\r
23 #include <eiklabel.h>\r
24 #include <eikchlst.h>\r
25 #include <eikchkbx.h>\r
26 #include <eikedwob.h>\r
27 \r
28 #include "../ClientServer.h"\r
29 \r
30 class CRichText;\r
31 class CEikRichTextEditor;\r
32 class TPLauncherConfig;\r
33 \r
34 /************************************************\r
35  *\r
36  * CSimpleTextInfo Dialog\r
37  *\r
38  ************************************************/\r
39 \r
40 class CSimpleTextInfoDialog : public CEikDialog, public MEikEdwinSizeObserver\r
41 {\r
42 public:\r
43         CSimpleTextInfoDialog(TInt aTextIdOne = -1, TInt aRichTextCtlIdOne = -1, \r
44                 TInt aTextIdTwo = -1, TInt aRichTextCtlIdTwo = -1,\r
45                 TBool aSimpleTextResIdOneIsArray = EFalse, TBool aSimpleTextResIdTwoIsArray = EFalse\r
46                 );\r
47         void SetDialogBackground(TBool aEnable){iSetDialogBackground=aEnable;}\r
48         void WantVertScrollbar(TBool aEnable){iWantVertScrollbar=aEnable;}\r
49 public:                 // implements MEikEdwinSizeObserver\r
50         virtual TBool HandleEdwinSizeEventL(CEikEdwin* aEdwin, TEdwinSizeEvent aEventType, TSize aDesirableEdwinSize);\r
51 \r
52 protected: // framework\r
53     void PreLayoutDynInitL();\r
54         void PostLayoutDynInitL();\r
55 \r
56 protected:      // new stuff\r
57         virtual void ShowTextL(CRichText& aRichText, TInt aRichTextCtlId, TInt aResId);\r
58         virtual void PreLayoutDynInitRichTextL(CEikRichTextEditor& aRichTextEditor, TInt aRichTextCtlId, TInt aResId);\r
59 \r
60         void ShowSimpleTextL(const TDesC& aSimpleText, CRichText& aRichText);\r
61 \r
62         TInt    iSimpleTextResIdOne;\r
63         TInt    iSimpleTextResIdTwo;\r
64         TInt    iRichTextCtlIdOne;\r
65         TInt    iRichTextCtlIdTwo;\r
66         TBool   iSimpleTextResIdOneIsArray;\r
67         TBool   iSimpleTextResIdTwoIsArray;\r
68         TBool   iSetDialogBackground;\r
69         TBool   iWantVertScrollbar;\r
70 };\r
71 \r
72 \r
73 /************************************************\r
74  *\r
75  * config Dialog\r
76  *\r
77  ************************************************/\r
78 \r
79 class CPicoConfigDialog : public CEikDialog\r
80 {\r
81 public:\r
82         CPicoConfigDialog(TPicoConfig &cfg, TPLauncherConfig &cfgl);\r
83 \r
84 protected: // framework\r
85     void PostLayoutDynInitL();\r
86         void HandleControlStateChangeL(TInt aControlId);\r
87         TBool OkToExitL(TInt aButtonId);\r
88 \r
89         TPicoConfig &config;\r
90         TPLauncherConfig &config_l;\r
91 };\r
92 \r
93 \r
94 /************************************************\r
95  *\r
96  * About Dialog\r
97  *\r
98  ************************************************/\r
99 \r
100 class CAboutDialog : public CSimpleTextInfoDialog\r
101 {\r
102 public:\r
103         CAboutDialog();\r
104 protected:      // from CSimpleTextInfoDialog\r
105         virtual void ShowTextL(CRichText& aRichText, TInt aRichTextCtlId, TInt aResId);\r
106 };\r
107 \r
108 /*************************************************************\r
109 *\r
110 * Credits dialog\r
111 *\r
112 **************************************************************/\r
113 \r
114 class CCreditsDialog : public CEikDialog\r
115 {\r
116 public:\r
117         TInt iMessageResourceID;\r
118         \r
119 protected:\r
120         void PreLayoutDynInitL();\r
121         void PostLayoutDynInitL();\r
122         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);\r
123 };\r
124 \r
125 /*************************************************************\r
126 *\r
127 * Debug dialog\r
128 *\r
129 **************************************************************/\r
130 \r
131 class CDebugDialog : public CEikDialog\r
132 {\r
133 public:\r
134         CDebugDialog(char *t);\r
135 \r
136 protected:\r
137         char iText[1024];\r
138         void PreLayoutDynInitL();\r
139         void PostLayoutDynInitL();\r
140         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);\r
141 };\r
142 \r
143 \r
144 \r
145 #endif  // __DIALOGS_H\r