📄 keyboardappview.h
字号:
/* $Id: KeyboardAppView.h,v 1.12 2003/11/12 07:48:14 chrisf Exp $ *//* Copyright (c) 2003 Chris Faherty *//*This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*/#ifndef __KEYBOARDAPPVIEW_H__#define __KEYBOARDAPPVIEW_H__#include <coecntrl.h>#include "KeyboardAppModel.h"#define THINKOUTSIDE_MODEL 1#define POCKETOP_MODEL 2#define TARGUS_MODEL 3#define US_LAYOUT 1#define FR_LAYOUT 2#define DE_LAYOUT 3#define NO_LAYOUT 4#define PT_LAYOUT 5// forward declarationsclass CEikRichTextEditor;class CEikLabel;class CKeyboardAppView : public CCoeControl {public: CKeyboardAppModel *iModel; CEikLabel *iStatusWindow; CEikRichTextEditor *iOutputWindow; int keyboard_model; int keyboard_layout; CPeriodic *iTimer, *iForceBreakTimer; int tick; TBool shift, capslock, ctrl, alt, func, pt_shift, num_shift; int thinkoutside_state; unsigned char lastraw; TInt lastscode; TInt thinkoutside_plain[0x5A]; TInt thinkoutside_shifted[0x5A]; TInt thinkoutside_func[0x5A]; TInt thinkoutside_func2[0x5A]; static CKeyboardAppView *NewL(const TRect &aRect); static CKeyboardAppView *NewLC(const TRect &aRect); void SetModel(CKeyboardAppModel *aModel); ~CKeyboardAppView(); void Draw(const TRect &aRect) const; TInt CountComponentControls() const; CCoeControl *ComponentControl(TInt aIndex) const; TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType); void ConstructL(const TRect &aRect); CKeyboardAppView(); void Incoming(TDesC8 &buf); static TInt Tick(TAny *aObject); static TInt ForceBreakTick(TAny *aObject); void pocketop(unsigned char raw, TBool forcebreak); void thinkoutside(unsigned char raw, TBool forcebreak); void targus(unsigned char raw, TBool forcebreak); void initThinkoutsideLayout(const int * layout_plain, const int * layout_shifted, const int * layout_func, const int * layout_func2); void Init(); int getKeyboardModel(); int getKeyboardLayout(); void setKeyboardModel(int model); void setKeyboardLayout(int layout);};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -