![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Gantt chart subnode hook class. More...
#include <ilviews/gantt/gantt.h>
Public Member Functions | |
| IlvGanttSubNodeHook (IlvGanttChart *gantt) | |
| Constructor. | |
| virtual IlBoolean | afterMove (IlvGanttNode *node, IlUShort i, IlvGanttSubNode *data) |
| Called when a user of a Gantt chart has moved a subnode. | |
| virtual IlBoolean | afterReshape (IlvGanttNode *node, IlUShort i, IlvGanttSubNode *data) |
| Called when a user of a Gantt chart has reshaped a subnode. | |
| virtual IlBoolean | beforeMove (IlvGanttNode *node, IlUShort i, IlvGanttSubNode *data) |
| Called when a user of a Gantt chart moves a subnode. | |
| virtual IlBoolean | beforeReshape (IlvGanttNode *node, IlUShort i, IlvGanttSubNode *data) |
| Called when a user of a Gantt chart reshapes a subnode. | |
| IlvGanttChart * | getGanttChart () const |
| Gets the Gantt chart on which the hook is installed. | |
Gantt chart subnode hook class.
Library: ilvgantt
The IlvGanttSubNodeHook class is used to capture the modifications on a subnode when users use IlvGanttSelectInteractor to manipulate the subnode.
It is recommended that you use this class in the following manner:
IlvGanttSubNodeHook. IlvGanttChart::setSubNodeHook method to install your subnode hook. | IlvGanttSubNodeHook::IlvGanttSubNodeHook | ( | IlvGanttChart * | gantt | ) |
Constructor.
This constructor initializes an IlvGanttSubNodeHook object.
| gantt | The Gantt chart on which you will install your subnode hook. |
| virtual IlBoolean IlvGanttSubNodeHook::afterMove | ( | IlvGanttNode * | node, | |
| IlUShort | i, | |||
| IlvGanttSubNode * | data | |||
| ) | [virtual] |
Called when a user of a Gantt chart has moved a subnode.
This virtual method is called when a user of the Gantt chart has moved a subnode.
| node | The node of data. | |
| i | The index of data in node. | |
| data | The manipulated subnode. |
| virtual IlBoolean IlvGanttSubNodeHook::afterReshape | ( | IlvGanttNode * | node, | |
| IlUShort | i, | |||
| IlvGanttSubNode * | data | |||
| ) | [virtual] |
Called when a user of a Gantt chart has reshaped a subnode.
This virtual method is called when a user of the Gantt chart has reshaped a subnode.
| node | The node of data. | |
| i | The index of data in node. | |
| data | The manipulated subnode. |
| virtual IlBoolean IlvGanttSubNodeHook::beforeMove | ( | IlvGanttNode * | node, | |
| IlUShort | i, | |||
| IlvGanttSubNode * | data | |||
| ) | [virtual] |
Called when a user of a Gantt chart moves a subnode.
This virtual method is called when a user of a Gantt chart moves a subnode using IlvGanttSelectInteractor.
| node | The node of data. | |
| i | The index of data in node. | |
| data | The manipulated subnode. |
IlTrue, the IlvGanttSelectInteractor will move the subnode. Otherwise, IlvGanttSelectInteractor will abort its operation and the subnode will not be moved. | virtual IlBoolean IlvGanttSubNodeHook::beforeReshape | ( | IlvGanttNode * | node, | |
| IlUShort | i, | |||
| IlvGanttSubNode * | data | |||
| ) | [virtual] |
Called when a user of a Gantt chart reshapes a subnode.
This virtual method is called when a user of a Gantt chart reshapes a subnode using IlvGanttSelectInteractor.
| node | The node to be reshaped. | |
| i | The index of the subnode in the node. | |
| data | The manipulated subnode. |
IlTrue the IlvGanttSelectInteractor will reshape the subnode. Otherwise, IlvGanttSelectInteractor will abort its operation and the subnode will not be reshaped. | IlvGanttChart* IlvGanttSubNodeHook::getGanttChart | ( | ) | const |
Gets the Gantt chart on which the hook is installed.
© Copyright 2012, 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.