📄 aknexlistmarkcontainer.h
字号:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __AKNEXLISTMARKCONTAINER_H__
#define __AKNEXLISTMARKCONTAINER_H__
// INCLUDES
#include "AknExListBaseContainer.h"
// CONSTANTS
// for initialization.
const TInt KAknExListInitCount = 0;
// Key for re-opehing outline 83.
#define REOPENOUTLINE83LISTKEY '0'
// FORWARD DECLARATIONS
class CEikColumnListBox;
class CAknExListMarkView;
class CAknSearchField;
// CLASS DECLARATION
/**
* CAknExListMarkContainer container control class.
*/
class CAknExListMarkContainer : public CAknExListBaseContainer
{
private: // Enumerations
enum TAknExListComponentControls
{
EAknExListDefaultComponent,
EAknExListFindBox
};
public: // Constructors and destructor
/**
* CAknExListMarkContainer
* Copy constructor.
* @param aView Pointer of CAknExListMarkView class.
*/
CAknExListMarkContainer( CAknExListMarkView* aView );
/**
* ConstructL
* Symbian constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL( const TRect& aRect );
/**
* ~CAknExListMarkContainer
* Destructor.
*/
virtual ~CAknExListMarkContainer();
public: // New functions
/**
* DisplayListBoxL
* Displays listbox or start screen.
* @param aOutlineId The ID of outline to displayed next.
*/
void DisplayListBoxL( const TInt aOutlineId );
/**
* ListBox
* Returns pointer to listbox object.
* @return Pointer to listbox object.
*/
CEikListBox* ListBox();
public: // From CoeControl
/**
* From CoeControl, OfferKeyEventL.
* Handles the key-events.
* @return If key-event is consumed, EKeyWasConsumed. Else
* EKeyWasNotConsumed.
* @param aKeyEvent Key event.
* @param aType Type of key event( EEventKey, EEventKeyUp or
* EEventKeyDown ).
*/
TKeyResponse OfferKeyEventL(
const TKeyEvent& aKeyEvent,
TEventCode aType );
/**
* From CoeControl, HandleResourceChange.
* Called by framework when the view layout is changed.
*/
virtual void HandleResourceChange(TInt aType);
private: // New functions
/**
* SizeChangedForFindBox
* Called by framework when the view size is changed for creating
* listbox with findbox.
*/
void SizeChangedForFindBox();
private: // From CAknExListBaseContainer
/**
* GraphicIconL
* Appends graphics data.
* @param Pointer of icon using graphics for listbox.
*/
void GraphicIconL( CArrayPtr<CGulIcon>* aIcons );
private: // From CoeControl
/**
* From CoeControl, SizeChanged.
* Called by framework when the view size is changed.
*/
void SizeChanged();
/**
* From CoeControl, CountComponentControls.
* Returns number of components.
* @return Number of controls
*/
TInt CountComponentControls() const;
/**
* From CCoeControl, ComponentControl.
* Returns pointer to particular component.
* @return Pointer to Control's component control, identified by index.
* @param aIndex Index of the control.
*/
CCoeControl* ComponentControl( TInt aIndex ) const;
private: // Data
/**
* iListBox
* Owned by CAknExListMarkContainer object.
*/
CEikColumnListBox* iListBox;
/**
* iView
* Does not own.
*/
CAknExListMarkView* iView;
/**
* iFindBox
* Owned by CAknExListMarkContainer object.
*/
CAknSearchField* iFindBox;
/**
* iOutlineId
*/
TInt iOutlineId;
};
#endif // __AKNEXLISTMARKCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -