chxavselectsettingsviewwindow.h
来自「symbian 下的helix player源代码」· C头文件 代码 · 共 90 行
H
90 行
/************************************************************************
* chxavselectsettingsviewwindow.h
* -------------------------------
*
* Synopsis:
* Window for the CHXAvSelectSettingsView view.
*
*
* Target:
* Symbian OS
*
*
* (c) 1995-2003 RealNetworks, Inc. Patents pending. All rights reserved.
*
************************************************************************/
#ifndef _chxavselectsettingsviewwindow_h_
#define _chxavselectsettingsviewwindow_h_
// Symbian includes...
#include <eiklbo.h> // MEikListBoxObserver
#include <aknlists.h>
// Includes fromt this project...
#include "chxbody.h"
#include "chxsmartptr.h"
#include "chxmakesmartptr.h"
#include "chxavrefptr.h"
// forward decl
class CHXAvSelectSettingsView;
// class avSelectSettingsViewWindow
class CHXAvSelectSettingsViewWindow
: public CCoeControl
, public MEikListBoxObserver
, public CHXBody
{
public:
// ctor and dtor
CHXAvSelectSettingsViewWindow(CHXAvSelectSettingsView* pView);
virtual ~CHXAvSelectSettingsViewWindow();
void ConstructL(const TRect& rc, TInt idxInit = 0);
void UpdateTopAndBottomL();
private:
// disallow assignment and copy
CHXAvSelectSettingsViewWindow(const CHXAvSelectSettingsViewWindow& rhs);
CHXAvSelectSettingsViewWindow& operator=(const CHXAvSelectSettingsViewWindow& rhs);
public:
// methods
// CCoeControl
CCoeControl* ComponentControl( TInt aIndex ) const;
TInt CountComponentControls() const;
void SizeChanged();
void GetHelpContext(TCoeHelpContext& aContext) const;
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
// MEikListBoxObserver
void HandleListBoxEventL(CEikListBox* /*aListBox*/,TListBoxEvent aEventType);
TInt GetCurrentSelectionIndex() const;
private:
// implementation
void ShowMainSelectionListBoxL(TInt idxInit);
void SetMainSelectionListBoxIconsL();
CDesCArrayFlat* AllocListItemsL() const;
void AddItemHelperL(CDesCArrayFlat* pItems, TInt idxIcon, TInt resId) const;
private:
// data
refptr<CAknSingleLargeStyleListBox> m_spCategoryListBox;
CHXAvSelectSettingsView* m_wpView;
};
typedef CHXSmartPtr<CHXAvSelectSettingsViewWindow> CHXAvSelectSettingsViewWindowPtr;
#endif // _chxavselectsettingsviewwindow_h_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?