browserui/browser/BrowserAppInc/BrowserGotoPane.h
changeset 10 57d5b8e231c4
parent 0 84ad3b177aa3
child 56 3154c14a33db
equal deleted inserted replaced
0:84ad3b177aa3 10:57d5b8e231c4
    18 
    18 
    19 #ifndef WML_GOTO_PANE_BASE_H
    19 #ifndef WML_GOTO_PANE_BASE_H
    20 #define WML_GOTO_PANE_BASE_H
    20 #define WML_GOTO_PANE_BASE_H
    21 
    21 
    22 // DEFINES
    22 // DEFINES
    23 #define GOTOPANE_POPUPLIST_DISABLE 0
    23 #ifndef GOTOPANE_POPUPLIST_DISABLE
    24 #define GOTOPANE_POPUPLIST_ENABLE 1
    24 #define GOTOPANE_POPUPLIST_DISABLE EFalse
       
    25 #endif
       
    26 
       
    27 #ifndef GOTOPANE_POPUPLIST_ENABLE
       
    28 #define GOTOPANE_POPUPLIST_ENABLE ETrue
       
    29 #endif
    25 
    30 
    26 // INCLUDE FILES
    31 // INCLUDE FILES
    27 #include <coecntrl.h>
    32 #include <coecntrl.h>
    28 #include <eikedwin.h>
    33 #include <eikedwin.h>
    29 #include <Avkon.mbg>
    34 #include <Avkon.mbg>
   204         * @since Series60 1.2
   209         * @since Series60 1.2
   205         * @param aEnable TRUE to enable
   210         * @param aEnable TRUE to enable
   206         */
   211         */
   207         void EnableKeyEventHandlerL( TBool aEnable );
   212         void EnableKeyEventHandlerL( TBool aEnable );
   208 
   213 
       
   214         /**
       
   215         * Activate GoTo Pane.
       
   216         */
       
   217         void SetGotoPaneActiveL();
       
   218 
       
   219         /**
       
   220         * Activate Search Pane.
       
   221         */
       
   222         void SetSearchPaneActiveL();
       
   223         
       
   224         /**
       
   225         * Check if we are in Goto Mode
       
   226         * @return ETrue if we are in Goto Mode; EFalse otherwise.
       
   227         */
       
   228         inline TBool GotoPaneActive() const { return iGotoPaneActive; }
       
   229         
       
   230         /**
       
   231         * Check if we are in Search Mode
       
   232         * @return ETrue if we are in Search Mode; EFalse otherwise.
       
   233         */
       
   234         inline TBool SearchPaneActive() const { return iSearchPaneActive; }
       
   235         
   209     public:	// from MCoeControlObserver
   236     public:	// from MCoeControlObserver
   210 
   237 
   211         /**
   238         /**
   212         * Handle control event.
   239         * Handle control event.
   213         * @since Series60 1.2
   240         * @since Series60 1.2
   233         * HandlePointerEventL
   260         * HandlePointerEventL
   234         * From CCoeControl
   261         * From CCoeControl
   235         *
   262         *
   236         */
   263         */
   237         void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/);
   264         void HandlePointerEventL(const TPointerEvent& /*aPointerEvent*/);
       
   265         
       
   266         /**
       
   267         * HandleResourceChange
       
   268         * From CCoeControl
       
   269         */
       
   270         void HandleResourceChange(TInt aType);
       
   271         
   238 
   272 
   239     public:     // from CCoeControl
   273     public:     // from CCoeControl
   240 
   274 
   241         /**
   275         /**
   242         * Count component controls.
   276         * Count component controls.
   260         void SetOrdinalPosition( TInt aPos );
   294         void SetOrdinalPosition( TInt aPos );
   261 
   295 
   262     public:     // Text manipulation
   296     public:     // Text manipulation
   263 
   297 
   264         /**
   298         /**
   265         * Lengt of the text in the editor.
   299         * Length of the Search text in the editor.
       
   300         * @return The text length
       
   301         */
       
   302         TInt SearchTextLength() const;
       
   303 
       
   304         /**
       
   305         * Length of the text in the editor.
   266         * @since Series60 1.2
   306         * @since Series60 1.2
   267         * @return The text length
   307         * @return The text length
   268         */
   308         */
   269         TInt TextLength() const;
   309         TInt TextLength() const;
   270 
   310 
   282         * appended if needed.
   322         * appended if needed.
   283         */
   323         */
   284         virtual void SetTextL( const TDesC& aTxt );
   324         virtual void SetTextL( const TDesC& aTxt );
   285 
   325 
   286         /**
   326         /**
       
   327         * Set Editor Font Posture to Italic.
       
   328         */
       
   329         void SetTextModeItalicL( );
       
   330         
       
   331         /**
       
   332         * Set Search text.
       
   333         * @param aTxt Text to set
       
   334         * appended if needed.
       
   335         */
       
   336         void SetSearchTextL( const TDesC& aTxt );
       
   337         
       
   338         /**
   287         * Selects all text in the editor.
   339         * Selects all text in the editor.
   288         * See CEikEdwin's SelectAllL();
   340         * See CEikEdwin's SelectAllL();
   289         * @since Series60 1.2
   341         * @since Series60 1.2
   290         */
   342         */
   291         void SelectAllL();
   343         void SelectAllL();
   321 
   373 
   322          /**
   374          /**
   323         * Gives back a pointer to adaptivepopuplist
   375         * Gives back a pointer to adaptivepopuplist
   324         */
   376         */
   325         CBrowserAdaptiveListPopup* PopupList();
   377         CBrowserAdaptiveListPopup* PopupList();
   326 
       
   327          /**
       
   328         * Handles resource change
       
   329         */        
       
   330 		void HandleResourceChange( TInt aType );
       
   331 		
   378 		
   332          /**
   379          /**
   333         * Handles the completion of a FEP transaction
   380         * Handles the completion of a FEP transaction
   334         */		
   381         */		
   335 		void HandleCompletionOfTransactionL();
   382 		void HandleCompletionOfTransactionL();
   350         * Second-phase constructor. Leaves on failure.
   397         * Second-phase constructor. Leaves on failure.
   351         * @param aParent Parent control
   398         * @param aParent Parent control
   352         */
   399         */
   353         void ConstructL( const CCoeControl* aParent, TInt aIconBitmapId, TInt aIconMaskId, TBool aPopupListStatus );
   400         void ConstructL( const CCoeControl* aParent, TInt aIconBitmapId, TInt aIconMaskId, TBool aPopupListStatus );
   354 
   401 
       
   402         /**
       
   403         * Constructs Search Pane.
       
   404         */
       
   405         void ConstructSearchPaneL();
       
   406         
   355     protected:  // from CCoeControl
   407     protected:  // from CCoeControl
   356 
   408 
   357         /**
   409         /**
   358         * Handle size change, lay out and draw components.
   410         * Handle size change, lay out and draw components.
   359         */
   411         */
   394         CEikEdwin* iEditor;  
   446         CEikEdwin* iEditor;  
   395         
   447         
   396         // Input frame. Owned.
   448         // Input frame. Owned.
   397         CAknInputFrame* iInputFrame;
   449         CAknInputFrame* iInputFrame;
   398         
   450         
       
   451         // Search Editor. Owned.
       
   452         CEikEdwin* iSearchEditor;  
       
   453         
       
   454         // Search Input frame. Owned.
       
   455         CAknInputFrame* iSearchInputFrame;
       
   456                 
   399         // Observer (may be NULL). Not owned.
   457         // Observer (may be NULL). Not owned.
   400         MGotoPaneObserver* iGPObserver;
   458         MGotoPaneObserver* iGPObserver;
   401 		
   459 		
   402         
   460         
   403         CBrowserKeyEventHandled *iGotoKeyHandled;
   461         CBrowserKeyEventHandled *iGotoKeyHandled;
   404 
   462 
   405         /// adaptive popuplist
   463         /// adaptive popuplist
   406         CBrowserAdaptiveListPopup* iBAdaptiveListPopup;
   464         CBrowserAdaptiveListPopup* iBAdaptiveListPopup;
       
   465         
       
   466         // Represents Active Editors 
       
   467         TBool iGotoPaneActive;
       
   468         TBool iSearchPaneActive;
       
   469         
       
   470         // Default text in Search Editor.Owned.
       
   471         HBufC* iDefaultSearchText;
       
   472         
       
   473         // Search Input Frame Icon Id, used for tracking the Search Icon Changes.
       
   474         TInt iSearchIconId;
       
   475         
       
   476         // Stores the Search Icon File Path.
       
   477         TFileName iSearchIconFilePath;
   407     };
   478     };
   408 
   479 
   409 #endif
   480 #endif