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

puttyappview.h

00001 /*    puttyappview.h
00002  *
00003  * Putty UI View class
00004  *
00005  * Copyright 2002 Petteri Kangaslampi
00006  *
00007  * See license.txt for full copyright and license information.
00008 */
00009 
00010 #ifndef __PUTTYAPPVIEW_H__
00011 #define __PUTTYAPPVIEW_H__
00012 
00013 #include <coecntrl.h>
00014 #include "terminalcontrol.h"
00015 
00016 
00020 class CPuttyAppView : public CCoeControl {
00021     
00022 public:
00023     CPuttyAppView(MTerminalObserver *aTerminalObserver);
00024     ~CPuttyAppView();
00025     void ConstructL(const TRect& aRect);
00026 
00027     virtual TInt CountComponentControls() const;
00028     virtual CCoeControl *ComponentControl(TInt aIndex) const;
00029     virtual TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent,
00030                                         TEventCode aType);
00031 
00032     CTerminalControl *Terminal();
00033 
00034     void SetFontL(TBool aLargeFont);
00035     void SetFullScreenL(TBool aFullScreen);
00036 
00037 private:
00038     void Draw(const TRect &aRect) const;
00039     virtual void SizeChanged();
00040 
00041     void ResizeTerminal();
00042 
00043     MTerminalObserver *iTerminalObserver;
00044     CTerminalControl *iTerminal;
00045     TRect iTermRect;
00046     TBool iLargeFont;
00047     TBool iFullScreen;
00048 };
00049 
00050 #endif

Generated on Sun Feb 9 13:01:29 2003 for PuTTY by doxygen1.2.18