⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uulistboxcontainer.h

📁 Simple Jabber Client for Symbian Platform
💻 H
字号:
/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 *  Jabber
 *  Copyright (C) 2004 Xie Tian Lu  http://sabber.jabberstudio.org/
 */



#ifndef __UULISTBOXCONTAINER_H__
#define __UULISTBOXCONTAINER_H__

#include <coecntrl.h>
#include <badesca.h>
#include <eiklbo.h>
#include <eikclb.h>
#include <gulicon.h>


const TUint	KPaneHeight = 24;
const TUint	KPaneBottom = 187;

class CUUListBox;
class CUUListBoxModel;

class CUUListBoxContainer : public CCoeControl, public MEikListBoxObserver
{
public: 
	/*!
	  @fuction ConstructL
  
	  @discussion Perform the second phase construction of a CUUBaseContainer object
	  @param aRect Frame rectangle for container.
	  */
    void ConstructL(const TRect& aRect);
	~CUUListBoxContainer();

public:
	// overload 
	virtual void HandleListBoxEventL( CEikListBox* aListBox, TListBoxEvent aEventType );
	virtual TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );

public:
	void ActivateListBox();
	void ShowListBox();
	void HideListBox();
	void CreateScrollbarL( CEikListBox* aListBox );
	void UpdateScrollBar( CEikListBox* aListBox );
	void SetListBoxFont ( CFont* aFont );
	void SetListBoxModel( CUUListBoxModel* aModel );
	void Update();

protected: // from CoeControl
	/**
	* From CoeControl,SizeChanged.
	*/
	void SizeChanged();

	/*!
	  @function CountComponentControls
  
	  @return Number of component controls 
	  */
    TInt CountComponentControls() const;

	/*!
	  @function ComponentControl.

	  @param Specification for component pointer
	  @return Pointer to component control
	  */
    CCoeControl* ComponentControl(TInt aIndex) const;

	/*!
	  @function Draw
  
	  @discussion Draw this CUUBaseContainer to the screen
	  @param aRect the rectangle of this view that needs updating
	  */
    void Draw(const TRect& aRect) const;


protected:
	CUUListBox*			iListBox;
	CUUListBoxModel*	iModel;
	CFont*				iFont;
	TKeyEvent			iKeyEvent;
	TBool				iDown;

};

#endif // __UUBASECONTAINER_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -