classicui_plat/scroller_api/tsrc/inc/testsdkscrollereikscrlb.h
changeset 49 31c16e0c5e3e
equal deleted inserted replaced
40:7165f928e888 49:31c16e0c5e3e
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  derived from eikscrlb.h
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_TESTSDKSCROLLEREIKSCRLB_H
       
    20 #define C_TESTSDKSCROLLEREIKSCRLB_H
       
    21 
       
    22 // [INCLUDE FILES]
       
    23 #include <coecntrl.h>
       
    24 
       
    25 // forward declarations
       
    26 class CEikScrollBar;
       
    27 class CAknDoubleSpanScrollBar;
       
    28 
       
    29 
       
    30 class CEikScrollBarExt : public CEikScrollBar
       
    31     {
       
    32 public:
       
    33     /** 
       
    34      * From @c CCoeControl
       
    35      *
       
    36      * Gets the specified scrollbar component. Each component control is 
       
    37      * identified by an index, where the index depends on the order the 
       
    38      * controls were added: the first is given an index of 0, the next an index
       
    39      * of 1.
       
    40      * 
       
    41      * @param aIndex The index of the control to get.
       
    42      *
       
    43      * @return The component control with an index of aIndex.
       
    44      */
       
    45     CCoeControl* DoComponentControl( TInt aIndex ) const;
       
    46 
       
    47     /** 
       
    48      * From @cCCoeControl.
       
    49      *
       
    50      * Gets the number of controls contained in this scrollbar.
       
    51      * 
       
    52      * @return The number of component controls contained by this scrollbar.
       
    53      */
       
    54     TInt DoCountComponentControls() const;
       
    55 
       
    56     // imimplement SetButtonPosition method of base class
       
    57     void DoSetButtonPositionL( CAknScrollButton* aButton );
       
    58 
       
    59     // change of size
       
    60     virtual void SizeChanged();
       
    61     };
       
    62 
       
    63 class CAknDouSpanScBarExt : public CAknDoubleSpanScrollBar
       
    64     {
       
    65 public: // constructor and destructor
       
    66 
       
    67     CAknDouSpanScBarExt( CCoeControl* aParentWindow );
       
    68 
       
    69     ~CAknDouSpanScBarExt();
       
    70 
       
    71 public: // from base class
       
    72 
       
    73     /** 
       
    74      * Not implemented 
       
    75      * 
       
    76      * @param Not used. 
       
    77      */
       
    78     virtual void CreateButtonL( CAknScrollButton*& aButton,
       
    79             CAknScrollButton::TType aType );
       
    80 
       
    81     /** 
       
    82      * Not implemented 
       
    83      * 
       
    84      * @param aButton Not used. 
       
    85      */
       
    86     virtual void SetButtonPositionL( CAknScrollButton* aButton );
       
    87 
       
    88 public:
       
    89     /** 
       
    90      * From @c CCoeControl
       
    91      *
       
    92      * Gets the specified scrollbar component. Each component control is 
       
    93      * identified by an index, where the index depends on the order the 
       
    94      * controls were added: the first is given an index of 0, the next an index
       
    95      * of 1.
       
    96      * 
       
    97      * @param aIndex The index of the control to get.
       
    98      *
       
    99      * @return The component control with an index of aIndex.
       
   100      */
       
   101     CCoeControl* DoComponentControl( TInt aIndex ) const;
       
   102 
       
   103     /** 
       
   104      * From @cCCoeControl.
       
   105      *
       
   106      * Gets the number of controls contained in this scrollbar.
       
   107      * 
       
   108      * @return The number of component controls contained by this scrollbar.
       
   109      */
       
   110     TInt DoCountComponentControls() const;
       
   111 
       
   112 
       
   113     };
       
   114 
       
   115 
       
   116 #endif // C_TESTSDKSCROLLEREIKSCRLB_H