classicui_pub/tsrc/bc/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcontainer.cpp
changeset 22 75713bee6484
parent 21 558113899881
child 26 62ef28f7b435
child 28 d33307312dfe
--- a/classicui_pub/tsrc/bc/apps/S60_SDK3.0/bctestcmdlg/src/bctestcmdlgcontainer.cpp	Mon May 03 12:45:33 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,125 +0,0 @@
-/*
-* Copyright (c) 2006-2009 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:         container
-*
-*/
-
-
-
-
-
-
-
-
-
-#include "BCTestCmDlgcontainer.h"
-
-#define KAknAtListGray TRgb(0xaaaaaa)
-
-// ======== MEMBER FUNCTIONS ========
-
-// ---------------------------------------------------------------------------
-// C++ default Constructor
-// ---------------------------------------------------------------------------
-//
-CBCTestCmDlgContainer::CBCTestCmDlgContainer()
-    {    
-    }
-
-// ---------------------------------------------------------------------------
-// Destructor
-// ---------------------------------------------------------------------------
-//
-CBCTestCmDlgContainer::~CBCTestCmDlgContainer()
-    {
-    ResetControl();   
-    }
-    
-// ---------------------------------------------------------------------------
-// Symbian 2nd Constructor
-// ---------------------------------------------------------------------------
-//
-void CBCTestCmDlgContainer::ConstructL( const TRect& aRect )
-    {
-    CreateWindowL();
-    SetRect( aRect );
-    ActivateL();
-    }
-
-// ----------------------------------------------------------------------------
-// CBCTestCmDlgContainer::Draw
-// Fills the window's rectangle.
-// ----------------------------------------------------------------------------
-//
-void CBCTestCmDlgContainer::Draw( const TRect& aRect ) const
-    {    
-    CWindowGc& gc = SystemGc();
-    gc.SetPenStyle( CGraphicsContext::ENullPen );
-    gc.SetBrushColor( KAknAtListGray );
-    gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
-    gc.DrawRect( aRect );
-    }
-
-// ---------------------------------------------------------------------------
-// CBCTestCmDlgContainer::CountComponentControls
-// ---------------------------------------------------------------------------
-//
-TInt CBCTestCmDlgContainer::CountComponentControls() const
-    {
-    if ( iControl )
-        {
-        return 1;
-        }
-    else
-        {
-        return 0;
-        }
-    }
-    
-// ---------------------------------------------------------------------------
-// CBCTestCmDlgContainer::ComponentControl
-// ---------------------------------------------------------------------------
-//
-CCoeControl* CBCTestCmDlgContainer::ComponentControl( TInt ) const
-    {
-    return iControl;
-    }
-    
-// ---------------------------------------------------------------------------
-// CBCTestCmDlgContainer::SetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestCmDlgContainer::SetControl( CCoeControl* aControl )
-    {
-    iControl = aControl;    
-    if ( iControl )
-        {  
-        // You can change the position and size
-        iControl->SetExtent( Rect().iTl, Rect().Size() );
-        iControl->ActivateL();
-        DrawNow();
-        }    
-    }
-    
-// ---------------------------------------------------------------------------
-// CBCTestCmDlgContainer::ResetControl
-// ---------------------------------------------------------------------------
-//
-void CBCTestCmDlgContainer::ResetControl()
-    {
-    delete iControl;
-    iControl = NULL;        
-    }
-
-// end of file