Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Model Class. More...
#include <ilviews/dataccess/gadgets/dbgantt/dbgantt.h>
Public Member Functions | |
IliDbGanttModel () | |
This constructor initializes an instance of this class. | |
virtual IlInt | externalToInternalUnit (const IliValue &value, IliDbGanttWhichDs which) const |
Called to convert a data source value to an integer value for the scale. | |
IliDbGantt * | getDbGantt () const |
Returns the IliDbGantt object which is connected to this model. | |
virtual const char * | getName () const |
Returns the model name. | |
virtual IliValue | internalToExternalUnit (IlInt val, IliDbGanttWhichDs which) const |
Called to convert an integer value of the scale to a data source value. | |
IlBoolean | isAllUniqueIdentifiers () const |
Returns IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique. | |
void | setAllUniqueIdentifiers (IlBoolean flag) |
Enables/disables the usage of the unique identifier. |
Model Class.
Library: dbgantt
This class defines the common interface to manage the data of the IliDbGantt
class. If you define a new model, you should use the IliRegisterDbGanttModel
macro to register your model and use the setModelName
of IliDbGantt
to connect an instance of your model to your IliDbGantt
object.
virtual IlInt IliDbGanttModel::externalToInternalUnit | ( | const IliValue & | value, | |
IliDbGanttWhichDs | which | |||
) | const [virtual] |
Called to convert a data source value to an integer value for the scale.
value | The value. | |
which | The data source index. |
IliDbGantt* IliDbGanttModel::getDbGantt | ( | ) | const |
Returns the IliDbGantt
object which is connected to this model.
IliDbGantt
object. virtual const char* IliDbGanttModel::getName | ( | ) | const [virtual] |
virtual IliValue IliDbGanttModel::internalToExternalUnit | ( | IlInt | val, | |
IliDbGanttWhichDs | which | |||
) | const [virtual] |
Called to convert an integer value of the scale to a data source value.
value | The integer value. | |
which | The data source index. |
IlBoolean IliDbGanttModel::isAllUniqueIdentifiers | ( | ) | const |
Returns IlTrue
if the identifier of each object (resources, activities, constraints, breaks) must be unique.
IlTrue
if the identifier of each object (resources, activities, constraints, breaks) must be unique. void IliDbGanttModel::setAllUniqueIdentifiers | ( | IlBoolean | flag | ) |
Enables/disables the usage of the unique identifier.
Into the Gantt chart each object (resources, activities, constraints, breaks) must be identified by an identifier. By default this identifier must be unique between all objects. If you call this function with the value at IlFalse
, the identifier must be unique between the objects of same data source, but in this case, the Gantt chart is slower.
flag | If IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique. |
© 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.