📄 biaofengbasecontrol.h
字号:
/*
* BiaofengBaseControl.h
*
* Created on: 2009-4-24
* Author: IBM
*/
#ifndef BIAOFENGBASECONTROL_H_
#define BIAOFENGBASECONTROL_H_
// 1.
#include <eikon.hrh>
#include "Biaofeng.hrh"
// 2.
#include <eikon.rsg>
//#include "Biaofeng.rsg"
// 3.
#include <eikenv.h>
#include <eikappui.h>
#include <eikproc.h>
#include <eikdialg.h>
#include <eikmenub.h>
#include <eikapp.h>
#include <eikdoc.h>
#include <coeutils.h>
#include <barsread.h>
#include <eikfctry.h>
// The unique identifier for this application.
// NOTE that the number has been arbitrarily chosen for the purpose of
// of the example.
// const TUid KUidExampleApp={0x01000d00};
//////////////////////////////////////////////////////////////////////////////
//
// -----> CSmileyDialog(definition)
//
//////////////////////////////////////////////////////////////////////////////
class CSmileyDialog : public CEikDialog
{
public:
// Construct and run
static TBool RunDlgLD();
private:
SEikControlInfo CreateCustomControlL(TInt aControlType);
};
//////////////////////////////////////////////////////////////////////////////
//
// -----> CSmiley (definition)
//
//////////////////////////////////////////////////////////////////////////////
class CSmiley : public CCoeControl
{
public:
CSmiley(TBool aSmiling);
~CSmiley();
public:
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
TBool IsSmiling();
private:
void Draw(const TRect& aRect) const;
void SizeChanged();
protected:
void HandlePointerEventL(const TPointerEvent& aPointerEvent);
void FocusChanged(TDrawNow aDrawNow);
private:
TBool iSmiling;
TRect iSmileyRect;
TInt iSmileyWidth;
TInt iSmileyHeight;
TRect iSmileRect;
TRect iFrownRect;
};
#endif /* BIAOFENGBASECONTROL_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -