📄 calendarapiexamplesearchcontainer.h
字号:
/*
* ============================================================================
* Name : CCalendarAPIexampleSearchContainer from
* CalendarAPIexampleSearchContainer.h
* Part of : CalendarAPIexample
* Created : 12/06/2006 by Forum Nokia
* Version : 2.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 "CalendarAPIexampleEngine.h"
#include "CalendarAPIexampleSearchView.h"
// CLASS DECLARATION
class CCalendarAPIexampleSearchContainer : public CCoeControl,
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;
/*!
* From CoeControl,SizeChanged.
*/
void SizeChanged();
private: // Functions from base classes
/*!
* 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 MEikListBoxObserver,HandleListBoxEventL.
*/
void HandleListBoxEventL(CEikListBox* aListBox,
TListBoxEvent aEventType);
private: // Data members
CEikTextListBox* iSearchListBox;
CEikLabel* iLabel;
CCalendarAPIexampleSearchView& iSearchView;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -