diff -r 000000000000 -r f979ecb2b13e calendarui/commonutils/inc/calentitlepane.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/commonutils/inc/calentitlepane.h Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,92 @@ +/* +* Copyright (c) 2002 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: An underline is drawn for DayView to TitlePane. + * +*/ + + +#ifndef CALENTITLEPANE_H +#define CALENTITLEPANE_H + +// INCLUDES +#include + +// FORWARD DECLARATIONS +class CEikStatusPane; + +// CLASS DEFINITIONS + +/** + * TitlePane class which draws underline + * + * @lib avkon + * @lib eikcoctl + * @lib cone + * @since 0.9 + */ +NONSHARABLE_CLASS( CCalenTitlePane ) : public CAknTitlePane + { +public: // Constructors and destructor + /** + * Statically access title pane. + */ + static CCalenTitlePane& StaticL(); + + /** + * Two-phased constructor. + * Creates CCalenTitlePane, and swaps previous CAknTitlePane + */ + IMPORT_C static CCalenTitlePane* NewAndSwapL(CEikStatusPane* aPane); + + /** + * C++ default constructor. + */ + IMPORT_C virtual ~CCalenTitlePane(); + +public: // New function + /** + * The flag which writes an underline is set. + * @param aUnderline ETrue: Draws underline + */ + void SetUnderLine(TBool aUnderline); + + /** + * Returns underline flag + * @since 0.9 + * @return ETrue: Draws underline + */ + TBool UnderLine(); + +private: + /** + * C++ default constructor. + */ + CCalenTitlePane(); + +private: // MCoeControlContext + /** + * Relpaces from a nallow font to a bold font + * @since 1.1 + */ + void PrepareContext(CWindowGc& aGc) const; + + // Under development +private: // Data + MCoeControlContext* iOrgContext; + }; + +#endif // CALENTITLEPANE_H + + +// End of File