1 /*******************************************************************
\r
5 * Author: Peter van Sebille (peter@yipton.net)
\r
7 * Modified/adapted for picodriveN by notaz, 2006
\r
9 * (c) Copyright 2006, notaz
\r
10 * (c) Copyright 2002, Peter van Sebille
\r
11 * All Rights Reserved
\r
13 *******************************************************************/
\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
28 #include "../ClientServer.h"
\r
31 class CEikRichTextEditor;
\r
32 class TPLauncherConfig;
\r
34 /************************************************
\r
36 * CSimpleTextInfo Dialog
\r
38 ************************************************/
\r
40 class CSimpleTextInfoDialog : public CEikDialog, public MEikEdwinSizeObserver
\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
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
52 protected: // framework
\r
53 void PreLayoutDynInitL();
\r
54 void PostLayoutDynInitL();
\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
60 void ShowSimpleTextL(const TDesC& aSimpleText, CRichText& aRichText);
\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
73 /************************************************
\r
77 ************************************************/
\r
79 class CPicoConfigDialog : public CEikDialog
\r
82 CPicoConfigDialog(TPicoConfig &cfg, TPLauncherConfig &cfgl);
\r
84 protected: // framework
\r
85 void PostLayoutDynInitL();
\r
86 void HandleControlStateChangeL(TInt aControlId);
\r
87 TBool OkToExitL(TInt aButtonId);
\r
89 TPicoConfig &config;
\r
90 TPLauncherConfig &config_l;
\r
94 /************************************************
\r
98 ************************************************/
\r
100 class CAboutDialog : public CSimpleTextInfoDialog
\r
104 protected: // from CSimpleTextInfoDialog
\r
105 virtual void ShowTextL(CRichText& aRichText, TInt aRichTextCtlId, TInt aResId);
\r
108 /*************************************************************
\r
112 **************************************************************/
\r
114 class CCreditsDialog : public CEikDialog
\r
117 TInt iMessageResourceID;
\r
120 void PreLayoutDynInitL();
\r
121 void PostLayoutDynInitL();
\r
122 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
\r
125 /*************************************************************
\r
129 **************************************************************/
\r
131 class CDebugDialog : public CEikDialog
\r
134 CDebugDialog(char *t);
\r
138 void PreLayoutDynInitL();
\r
139 void PostLayoutDynInitL();
\r
140 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
\r
145 #endif // __DIALOGS_H
\r