Location:
eikspane.h
Link against: eikcoctl.lib
CEikStatusPaneBase
Supported from 6.0
The base class for the concrete
status pane class CEikStatusPane
. This class is not intended for
user derivation.
|
Defined in CEikStatusPaneBase
:
CEikStatusPaneBase()
, ContainerControlL()
, ControlL()
, HandleResourceChange()
, IsDimmed()
, IsFaded()
, IsVisible()
, MakeVisible()
, PaneCapabilities()
, PaneRectL()
, ReduceRect()
, SetDimmed()
, SetFaded()
, SetFlags()
, SetObserver()
, SwapControlL()
, SwitchLayoutL()
, TPaneCapabilities
, ~CEikStatusPaneBase()
Inherited from CBase
:
operator new()
protected: CEikStatusPaneBase(CEikonEnv& aEikEnv, RWindowGroup* aParent);
Constructor
The constructor is protected, and is called by the derived
class CEikStatusPane
. It is documented only for
completeness.
|
CCoeControl* ContainerControlL (TPaneId aPaneId) const;
Gets the subpane container control
The function provides the container control for the subpane identified by
aPaneId
. You need access to the container control for a subpane if
you want to swap in a new control. The container control should be set as the
parent window of the new control. This also provides a fast way to get the
rectangle of the subpane (see PaneRect()
). Applications can only
access their own subpanes, the server can only access server owned
panes.
|
|
|
CCoeControl* ControlL (TPaneId aPaneId) const;
Gets a subpane control by ID
The function provides the control currently inside the subpane identified by
aPaneId
. This gives the application direct access to the contents
of a subpane. A TPaneId
is a TUid
under another name.
Applications can only access their own subpanes, the server can only access
server owned panes.
|
|
|
void HandleResourceChange(TInt aType);
Handles changes in resources which are shared across the environment.
This function responds to the changes in resources by propagating them to sub-parts of the status pane.
|
TPaneCapabilities PaneCapabilities (TPaneId aPaneId) const;
Gets the capabilities of a subpane
The function returns a set of flags that indicate the capabilities of the subpane
identified by aPaneId
.
|
|
TRect PaneRectL(TPaneId aPaneId) const;
Gets the size and location of a subpane.
The function returns the size and position of the screen rectangle belonging to the
subpane identified by aPaneId
. This can be used to set the size of
a new control you want to place in the status pane.
|
|
|
void ReduceRect(TRect& aBoundingRect) const;
Modifies the bounding rectangle passed in so that the application's main window area lies next to the status pane rectangle.
The status pane always places itself along the edge of the screen, so that it is consistent across applications and the server. It is assumed that the bounding rectangle passed in does not extend beyond the screen area. This is used to calculate the client application's main window area, after the status pane is taken into account.
|
void SetObserver(MEikStatusPaneObserver* aObserver);
Sets the status pane observer.
This function
allows an observer of the status pane to register itself to be notified about
changes to the size of the status pane. The observer must implement the
MEikHandleStatusPaneSizeChange()
function.
|
CCoeControl* SwapControlL(TPaneId aPaneId, CCoeControl* aNewControl);
Swaps a subpane control.
The function replaces the control currently in the subpane identified by
aPaneId
, by aNewControl
. The new control must be a
fully constructed control. It is placed inside the subpane and the current
content is returned. After this call, the calling application is responsible
for deleting the old control, the status pane is responsible for deleting the
new control.
|
|
|
void SwitchLayoutL(TInt aLayoutResourceId);
Changes the entire status pane layout to the one specified in the
resource aLayoutResourceId
.
|
|
TBool IsDimmed() const;
Test whether the status pane is dimmed.
Same as
CCoeControl::IsDimmed()
.
|
void SetDimmed(TBool aDimmed);
Sets the dimmed state of the status pane and its contents.
Use
SetDimmed
to prevent acceptance of user input and to display the
status pane in a lighter or darker shade of grey. Same as
CCoeControl::SetDimmed()
.
|
TBool IsFaded() const;
Tests whether the status pane is faded.
Same as CCoeControl::IsFaded()
.
|
void SetFaded(TBool aFaded);
Sets the faded state of the status pane and its contents.
Same as
CCoeControl::SetFaded()
. Use SetFaded()
to display
the status pane in a lighter or darker colour. The aim of fading is to give the
window with focus greater emphasis by contrast with the surrounding
windows.
|
TBool IsVisible() const;
Tests whether the status pane is visible.
Same as
CCoeControl::IsVisible()
.
|
void MakeVisible(TBool aVisible);
Sets the visibility of the status pane and its contents.
Same as
CCoeControl::MakeVisible()
.
|
void SetFlags(TInt aFlags);
Sets all the CCoeControl
visual flags at once (faded, dimmed
and visible).
|
TPaneCapabilities
Describes the capabilities of a subpane.
Defined in CEikStatusPaneBase::TPaneCapabilities
:
IsAppOwned()
, IsPresent()
, TPaneCapabilities()
TBool IsAppOwned() const;
Tests whether the pane is owned by the application or the server.
Applications can only interact directly with application owned subpanes.
|
TBool IsPresent() const;
Tests whether the subpane exists in the status pane.
This returns true if the subpane can be used, even if it is not visible.
|