diff -r 4526337fb576 -r 3eca7e70b1b8 mmuifw_plat/alf_widgetmodel_api/inc/alf/alfgridlayoutmanager.h --- a/mmuifw_plat/alf_widgetmodel_api/inc/alf/alfgridlayoutmanager.h Tue Feb 02 00:28:09 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,115 +0,0 @@ -/* -* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: grid layout manager -* -*/ - - -#ifndef ALFGRIDLAYOUTMANAGER_H -#define ALFGRIDLAYOUTMANAGER_H - -#include -#include -#include -#include -#include - -using std::auto_ptr; - -namespace Alf - { -class IAlfWidgetControl; -class AlfGridLayoutManagerImpl; -class AlfGridLayoutPolicyImpl; - -/** - * @class AlfGridLayoutManager alfgridlayoutmanager.h "alf/alfgridlayoutmanager.h" - * Grid layout manager - * Layout manager handles the layouting of child widgets in the container widget. - * It uses IAlfLayoutPreferences-interface (@see IAlfLayoutPreferences) - * of child widgets as a guide for laying out the widgets. The layoutmanager - * is set to the IAlfHostApi- interface (@see IAlfHostApi::setBaseLayout) - * createLayout-method should be the first call after creating the layoutmanager. - * @see IAlfLayoutPreferences - * @see IAlfGridLayoutPolicy - * - * @lib alfwidgetmodel.lib - * @since S60 ?S60_version - * @status Draft - * @interfaces IAlfLayoutManager, IAlfLayoutPreferences, IAlfGridLayoutPolicy - */ -class AlfGridLayoutManager : public AlfLayoutManager - { - friend class AlfGridLayoutManagerImpl; - friend class AlfGridLayoutPolicyImpl; -public: - - /** - * Layout manager constructor - * @exception std::bad_alloc - */ - OSN_IMPORT AlfGridLayoutManager(); - - /** - * virtual destructor - */ - OSN_IMPORT virtual ~AlfGridLayoutManager(); - -public: - //from IAlfLayoutManager - - /** - * from IAlfLayoutManager - * Notifies the layout manager, that the child control's layout - * must be updated - * - * @param aControl control, which size has changed. - * @throw AlfVisualException(EInvalidVisual), if layout is not created. - */ - virtual void updateChildLayout(CAlfWidgetControl* aControl); - - /** - * from IAlfLayoutManager - * Notifies the layout manager, that the control's has been - * removed from the layout. - * - * @param aControl control, which has been removed from the layout. - * @throw AlfVisualException(EInvalidVisual), if layout is not created. - */ - virtual void childRemoved(CAlfWidgetControl* aControl); -public: -protected: - - OSN_IMPORT void doUpdateChildLayout(CAlfWidgetControl* aControl); -// from base class IAlfInterfaceBase - - /** - * Interface getter. - * @see IAlfInterfaceBase::MakeInterface - * - * @since S60 ?S60_version - * @param aType The type id of the queried interface. - * @return The queried interface, or NULL if the interface is not - * supported or available. - */ - OSN_IMPORT virtual IAlfInterfaceBase* makeInterface( const IfId& aType ); - -private: // data - auto_ptr mData; - auto_ptr mDataPolicy; - }; - - } // namespace Alf - -#endif // ALFGRIDLAYOUTMANAGER_H