javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/inc/swtshell.h
branchRCL_3
changeset 60 6c158198356e
parent 34 71c436fe3ce0
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
    34               MSwtShell* aParent, TInt aStyle);
    34               MSwtShell* aParent, TInt aStyle);
    35     virtual ~CSwtShell();
    35     virtual ~CSwtShell();
    36     void ConstructL();
    36     void ConstructL();
    37     MSwtShell& GetTopShell() const;
    37     MSwtShell& GetTopShell() const;
    38     void RemoveAndRememberFocus();
    38     void RemoveAndRememberFocus();
    39     
    39 
    40     // Relocating an editor's Shell must be delegated to UiUtils 
    40     // Relocating an editor's Shell must be delegated to UiUtils
    41     // while split editing is on (@see SetSplitInputShellPos)
    41     // while split editing is on (@see SetSplitInputShellPos)
    42     // CCoeControl::SetRect must not be called directly.
    42     // CCoeControl::SetRect must not be called directly.
    43     void DoSetRect(const TRect& aRect);
    43     void DoSetRect(const TRect& aRect);
    44 
    44 
    45 // From CSwtComposite
    45 // From CSwtComposite
   136     MSwtControl* FocusControl() const;
   136     MSwtControl* FocusControl() const;
   137     void SetDefaultCommand(const MSwtCommand* aCommand);
   137     void SetDefaultCommand(const MSwtCommand* aCommand);
   138     const MSwtCommand* DefaultCommand() const;
   138     const MSwtCommand* DefaultCommand() const;
   139     void SetFullScreen(TBool aFullScreen);
   139     void SetFullScreen(TBool aFullScreen);
   140     void SetControlGoingToStack(MSwtControl* aControl);
   140     void SetControlGoingToStack(MSwtControl* aControl);
   141     MSwtControl* ControlGoingToStack() const;
       
   142     void SetControlGainingFocus(MSwtControl* aControl);
   141     void SetControlGainingFocus(MSwtControl* aControl);
   143     MSwtControl* ControlGainingFocus() const;
       
   144     MSwtShell::TSwtStatusPaneStyle StatusPaneStyle() const
   142     MSwtShell::TSwtStatusPaneStyle StatusPaneStyle() const
   145     {
   143     {
   146         return MSwtShell::EStyleLargeStatusPane;
   144         return MSwtShell::EStyleLargeStatusPane;
   147     };
   145     };
   148     virtual TRect DefaultBounds() const;
   146     virtual TRect DefaultBounds() const;
   155     void InstallCba();
   153     void InstallCba();
   156     TBool HasCba() const;
   154     TBool HasCba() const;
   157     void SetTaskTip();
   155     void SetTaskTip();
   158     TBool IsTaskTip() const;
   156     TBool IsTaskTip() const;
   159     void DoSetLocation(const TPoint& aPoint);
   157     void DoSetLocation(const TPoint& aPoint);
       
   158     void UpdateHighlight(TBool aDrawNow = EFalse);
       
   159     void ControlDisposing(const MSwtControl& aControl);
   160 
   160 
   161 // From MEikStatusPaneObserver
   161 // From MEikStatusPaneObserver
   162 public:
   162 public:
   163     void HandleStatusPaneSizeChange();
   163     void HandleStatusPaneSizeChange();
   164 
   164 
   165 private:
   165 private:
   166     void FinishRedraw() const;
   166     void FinishRedraw() const;
       
   167     void DoSetFocusControl(MSwtControl* aControl);
       
   168     void DoSetHighlight(MSwtControl& aControl, TBool aEnabled);
   167 
   169 
   168 // Data
   170 // Data
   169 private:
   171 private:
   170     /**
   172     /**
   171      * This Shell's focus control, may be NULL.
   173      * This Shell's focus control, may be NULL.
   172      * Not own.
   174      * Not own.
   173      */
   175      */
   174     MSwtControl* iFocusControl;
   176     MSwtControl* iFocusControl;
       
   177 
       
   178     /**
       
   179      * Keep track of last known focused control for the purpose
       
   180      * of switching off its highlight when new controls gets focused.
       
   181      * Not intended to be used for any athoer purpose (set to NULL
       
   182      * after the highlight is cleared).
       
   183      * Not own.
       
   184      */
       
   185     MSwtControl* iPrevFocusControl;
   175 
   186 
   176     /**
   187     /**
   177      * This Shell's focus control before it got deactivated, may be NULL.
   188      * This Shell's focus control before it got deactivated, may be NULL.
   178      * Not own.
   189      * Not own.
   179      */
   190      */