Rogue Wave Views Gadgets Package API Reference Guide |
Rogue Wave Views Documentation Home |
Desktop class. More...
#include <ilviews/gadgets/desktop.h>
Public Member Functions | |
IlvDesktopManager (IlvView *view) | |
Constructor. More... | |
virtual void | addFrame (IlvViewFrame *frame) |
Adds a frame to the desktop manager. More... | |
void | cascadeFrames () |
Cascades the frames. More... | |
virtual void | frameMaximized (IlvViewFrame *frame, int previousState) |
Is called by the desktop when a frame is maximized. More... | |
virtual void | frameMinimized (IlvViewFrame *frame, int previousState) |
Is called by the desktop when a frame is minimized. More... | |
virtual void | frameRestored (IlvViewFrame *frame, int previousState) |
Is called by the desktop when a frame is restored. More... | |
virtual void | frameSelectionChanged (IlvViewFrame *newFrame, IlvViewFrame *oldFrame) |
Is called when the current frame changes. More... | |
virtual IlvPalette * | getActiveTitleBarPalette () const |
Returns the palette used to draw the title bar of active frames. More... | |
IlUInt | getCardinal () const |
Returns the number of frames managed by the desktop. More... | |
IlvViewFrame * | getCurrentFrame () const |
Returns the current frame. More... | |
IlvViewFrame * | getFrame (IlUInt index) const |
Returns a pointer to a frame of the desktop. More... | |
IlvViewFrame *const * | getFrames (IlUInt &count) const |
Returns an array of the frames managed by the desktop. More... | |
virtual IlvPalette * | getInactiveTitleBarPalette () const |
Verbose: More... | |
IlvViewFrame *const * | getMinimizedFrames (IlUInt &count) const |
Returns an array of the minimized frames of the desktop. More... | |
IlvViewFrame * | getNextFrame () const |
Returns the next frame, relative to the current frame. More... | |
IlvViewFrame * | getPreviousFrame () const |
Returns the previous frame, relative to the current frame. More... | |
IlvView * | getView () const |
Returns the desktop view of the desktop manager. More... | |
IlBoolean | isMaximizing () const |
Indicates whether the desktop is maximized. More... | |
virtual void | makeMaximizedStateButtons (IlvGraphicHolder *holder, IlvPos vOffset=-1, IlvPos hOffset=-1) |
Tells the desktop manager to place the frame buttons in a graphic holder when it is maximized. More... | |
virtual void | makeMaximizedStateButtons (IlvToolBar *toolbar) |
Tells the desktop manager to place the frame buttons in a tool bar when it is maximized. More... | |
virtual void | removeFrame (IlvViewFrame *frame) |
Removes a frame from the desktop manager. More... | |
virtual void | setCurrentFrame (IlvViewFrame *frame, IlBoolean raise=IlTrue) |
Changes the current frame. More... | |
void | tileFrames (IlvDirection direction) |
Tiles the frames. More... | |
Static Public Member Functions | |
static IlvDesktopManager * | Get (IlvView *view) |
Returns the desktop manager linked to the specified view. More... | |
Friends | |
class | IlvViewFrame |
Desktop class.
Library: ilvadvgdt
This class defines a desktop that contains IlvViewFrame
objects. An IlvDesktopManager
object is associated with a view that will be the parent view of all the frames managed by the desktop.
IlvViewFrame
. IlvDesktopManager::IlvDesktopManager | ( | IlvView * | view | ) |
Constructor.
Initializes a new instance of the IlvDesktopManager
class with view as the desktop view.
view | The desktop view. |
|
virtual |
Adds a frame to the desktop manager.
Usually, you do not have to call this method, as it is automatically called by the constructor of the IlvViewFrame
class. However, you may need to use it in specific cases.
frame | The view frame. |
removeFrame()
. void IlvDesktopManager::cascadeFrames | ( | ) |
Cascades the frames.
tileFrames()
.
|
virtual |
Is called by the desktop when a frame is maximized.
The default implementation does nothing.
frame | The maximized frame. |
previousState | The state of the frame before it was maximized. |
IlvViewFrame::maximize()
, IlvViewFrame::getCurrentState()
.
|
virtual |
Is called by the desktop when a frame is minimized.
The default implementation does nothing.
frame | The minimized frame. |
previousState | The state of the frame before it was minimized. |
IlvViewFrame::minimize()
, IlvViewFrame::getCurrentState()
.
|
virtual |
Is called by the desktop when a frame is restored.
The default implementation does nothing.
frame | The restored frame. |
previousState | The state of the frame before it was restored. |
IlvViewFrame::restore()
, IlvViewFrame::getCurrentState()
.
|
virtual |
Is called when the current frame changes.
The default implementation does nothing.
newFrame | The new current frame. |
oldFrame | The old current frame. |
getCurrentFrame()
, setCurrentFrame()
.
|
static |
Returns the desktop manager linked to the specified view.
view | The view. |
0
if view is not a desktop view. getView()
.
|
virtual |
Returns the palette used to draw the title bar of active frames.
You may override this method to change the color of the frame title bar.
getInactiveTitleBarPalette()
. IlUInt IlvDesktopManager::getCardinal | ( | ) | const |
Returns the number of frames managed by the desktop.
getFrames()
, getFrame()
. IlvViewFrame* IlvDesktopManager::getCurrentFrame | ( | ) | const |
Returns the current frame.
0
if there is none. setCurrentFrame()
. IlvViewFrame* IlvDesktopManager::getFrame | ( | IlUInt | index | ) | const |
Returns a pointer to a frame of the desktop.
index | The index of the frame to be retrieved. |
getCardinal()
, getFrames()
. IlvViewFrame* const* IlvDesktopManager::getFrames | ( | IlUInt & | count | ) | const |
Returns an array of the frames managed by the desktop.
count | The number of elements in the returned array. |
getCardinal()
, getFrame()
.
|
virtual |
Verbose:
Returns the palette used to draw the title bar of inactive frames. You may override this method to change the color of the frame title bar.
getActiveTitleBarPalette()
. IlvViewFrame* const* IlvDesktopManager::getMinimizedFrames | ( | IlUInt & | count | ) | const |
Returns an array of the minimized frames of the desktop.
count | The number of elements in the returned array. |
IlvViewFrame::minimize()
. IlvViewFrame* IlvDesktopManager::getNextFrame | ( | ) | const |
Returns the next frame, relative to the current frame.
0
, unless the desktop manager has no frames. getCurrentFrame()
, getPreviousFrame()
. IlvViewFrame* IlvDesktopManager::getPreviousFrame | ( | ) | const |
Returns the previous frame, relative to the current frame.
0
, unless the desktop manager has no frames. getCurrentFrame()
, getNextFrame()
. IlvView* IlvDesktopManager::getView | ( | ) | const |
Returns the desktop view of the desktop manager.
Get()
. IlBoolean IlvDesktopManager::isMaximizing | ( | ) | const |
Indicates whether the desktop is maximized.
When the desktop manager is maximized, the title bar of the active frame is no longer visible because the client area of the active frame fits the desktop view. However, it is possible to tell the desktop manager to display some of the title bar components at a specific position. For details, see the method makeMaximizedStateButtons(IlvToolBar*)
.
IlTrue
if the desktop is maximized, that is, if only one frame is visible and it occupies the whole desktop view.
|
virtual |
Tells the desktop manager to place the frame buttons in a graphic holder when it is maximized.
Places in holder the buttons that will be used to change the state of the current frame when the desktop is maximized.
holder | The graphic holder in which the desktop manager will display the frame buttons. |
vOffset | The vertical offset of the frame buttons from the top of the graphic holder. |
hOffset | The horizontal offset of the frame buttons from the right side of the graphic holder. |
isMaximizing()
.
|
virtual |
Tells the desktop manager to place the frame buttons in a tool bar when it is maximized.
Places in toolbar the buttons that will be used to change the state of the current frame when the desktop is maximized.
toolbar | The tool bar in which the desktop manager will display the frame buttons. |
isMaximizing(),
IlvToolBar`.
|
virtual |
Removes a frame from the desktop manager.
Usually, you do not have to call this method, as it is automatically called by the destructor of the IlvViewFrame
class. However, you may need to use it in specific cases.
frame | The view frame. |
addFrame()
.
|
virtual |
Changes the current frame.
The current frame of the desktop manager is the active frame.
frame | The view frame. |
raise | A Boolean value specifying whether the new active frame should be placed on top of the other frames. |
getCurrentFrame()
. void IlvDesktopManager::tileFrames | ( | IlvDirection | direction | ) |
Tiles the frames.
direction | The tiling direction. Valid values are: IlvVertical and IlvHorizontal . This parameter is used only if there are at most three view frames in this desktop manager. |
cascadeFrames()
. © Copyright 2018, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.