📄 calendarapiexamplesearchcontainer.h
字号:
/*
* ============================================================================
* Name : CCalendarAPIexampleSearchContainer from CalendarAPIexampleSearchContainer.h
* Part of : CalendarAPIexample
* Created : 02/22/2005 by Forum Nokia
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef CALENDARAPIEXAMPLESEARCHCONTAINER_H
#define CALENDARAPIEXAMPLESEARCHCONTAINER_H
// INCLUDE FILES
#include <coecntrl.h> //CCoeControl
#include <eiktxlbx.h> //CEikTextListBox
#include <eikprogi.h> //CEikProgressInfo
#include <fbs.h> //Bitmap Drawing YC
#include <AknProgressDialog.h>
#include <Aknsdrawutils.h>
#include <aknscontrolcontext.h>
#include <Aknsskininstance.h>
#include <Aknsutils.h>
#include "CalendarAPIexampleDocument.h"
#include "CalendarAPIexampleSearchView.h"
// CLASS DECLARATION
class CCalendarAPIexampleSearchContainer : public CCoeControl,
public MAgnProgressCallBack,
public MEikListBoxObserver
{
public: // Constructors and destructor
/*!
* Two-phased constructor.
*/
static CCalendarAPIexampleSearchContainer* NewL(const TRect& aRect,
CCalendarAPIexampleSearchView& aView);
/*!
* Destructor.
*/
virtual ~CCalendarAPIexampleSearchContainer();
private :
/*!
* Symbian OS default constructor.
*/
CCalendarAPIexampleSearchContainer(CCalendarAPIexampleSearchView& aView);
void ConstructL(const TRect& aRect);
public: // New functions
/*!
* SearchType()
*
* Returns the search range that is currently selected in the
* listbox (week, month,...)
*/
TSearchType SearchType() const;
private: // Functions from base classes
/*!
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/*!
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/*!
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/*!
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
/*!
* From CCoeControl,OfferKeyEventL.
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );
/*!
* From MAgnProgressCallBack,Completed.
*/
void Completed(TInt aError = KErrNone);
/*!
* From MAgnProgressCallBack,Progress.
*/
void Progress(TInt aPercentageCompleted);
/*!
* From MEikListBoxObserver,HandleListBoxEventL.
*/
void HandleListBoxEventL(CEikListBox* aListBox,
TListBoxEvent aEventType);
private: // Data members
CEikTextListBox* iSearchListBox;
CEikLabel* iLabel;
CAknProgressDialog* iProgressDialog;
CEikProgressInfo* iProgressInfo;
CCalendarAPIexampleSearchView& iSearchView;
//CFbsBitmap* iBitmap;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -