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.
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. |
void IlvDesktopManager::cascadeFrames | ( | ) |
Cascades the frames.
|
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. |
|
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. |
|
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. |
|
virtual |
Is called when the current frame changes.
The default implementation does nothing.
newFrame | The new current frame. |
oldFrame | The old current frame. |
|
static |
Returns the desktop manager linked to the specified view.
view | The view. |
0
if view is not a desktop view.
|
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.
IlUInt IlvDesktopManager::getCardinal | ( | ) | const |
IlvViewFrame* IlvDesktopManager::getCurrentFrame | ( | ) | const |
IlvViewFrame* IlvDesktopManager::getFrame | ( | IlUInt | index | ) | const |
Returns a pointer to a frame of the desktop.
index | The index of the frame to be retrieved. |
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. |
|
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.
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* IlvDesktopManager::getNextFrame | ( | ) | const |
Returns the next frame, relative to the current frame.
0
, unless the desktop manager has no frames. IlvViewFrame* IlvDesktopManager::getPreviousFrame | ( | ) | const |
Returns the previous frame, relative to the current frame.
0
, unless the desktop manager has no frames. IlvView* IlvDesktopManager::getView | ( | ) | const |
Returns the desktop view of the desktop manager.
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 IlvDesktopManager::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. |
|
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. |
|
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. |
|
virtual |
Changes the current frame.
The current frame of the desktop manager is the frame that is active.
frame | The view frame. |
raise | A Boolean value specifying whether the new active frame should be placed on top of the other frames. |
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. |
© Copyright 2016, 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.