Rogue Wave Views Data Access Package API Reference Guide |
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. More... | |
IliDbGantt * | getDbGantt () const |
Returns the IliDbGantt object which is connected to this model. More... | |
virtual const char * | getName () const |
Returns the model name. More... | |
virtual IliValue | internalToExternalUnit (IlInt value, IliDbGanttWhichDs which) const |
Called to convert an integer value of the scale to a data source value. More... | |
IlBoolean | isAllUniqueIdentifiers () const |
Returns IlTrue if the identifier of each object (resources, activities, constraints, breaks) must be unique. More... | |
void | setAllUniqueIdentifiers (IlBoolean flag) |
Enables/disables the usage of the unique identifier. More... | |
Public Member Functions inherited from IliGadgetModel | |
IliGadgetModel () | |
The constructor initializes a new IliGadgetModel instance. | |
virtual void | allRowsDeleted (const IliModelHookInfo &info) |
Called when the IliTable::clearRows member function is called. More... | |
virtual void | cellChanged (const IliModelHookInfo &info) |
Called just after a cell has changed. More... | |
virtual void | columnChanged (const IliModelHookInfo &info) |
Called when a column has changed. More... | |
virtual void | columnDeleted (const IliModelHookInfo &info) |
Called just after a column deletion. More... | |
virtual void | columnInserted (const IliModelHookInfo &info) |
Called when a new column is inserted. More... | |
virtual void | columnMoved (const IliModelHookInfo &info) |
Called just after a column has moved. More... | |
virtual void | columnToBeDeleted (const IliModelHookInfo &info) |
Called just before a column deletion. More... | |
virtual void | currentRowChanged (const IliModelHookInfo &info) |
Called when the data source current row has been changed. More... | |
virtual void | endOfBatch () |
Called to terminate a series of updates to the IliSchema or IliTable objects. More... | |
virtual IlBoolean | refreshAll () |
Called when a refresh of all the gadget is necessary. | |
virtual void | rowChanged (const IliModelHookInfo &info) |
Called just after a row has changed. More... | |
virtual void | rowDeleted (const IliModelHookInfo &info) |
Called just after a row has been deleted. More... | |
virtual void | rowFetched (const IliModelHookInfo &info) |
Called just after a new row has been fetched from a remote database and inserted. More... | |
virtual void | rowInserted (const IliModelHookInfo &info) |
Called just after a new row has been inserted. More... | |
virtual void | rowMoved (const IliModelHookInfo &info) |
Called just after a row has moved. More... | |
virtual void | rowsExchanged (const IliModelHookInfo &info) |
Called just after a row is exchanged with another row. More... | |
virtual void | rowsFetched (const IliModelHookInfo &info) |
Called when many consecutive rows are fetched at once. More... | |
virtual void | rowsInserted (const IliModelHookInfo &info) |
Called when many consecutive rows are inserted at once. More... | |
virtual void | rowToBeChanged (const IliModelHookInfo &info) |
Called just before a row is changed. More... | |
virtual void | rowToBeDeleted (const IliModelHookInfo &info) |
Called just before a row deletion. More... | |
virtual void | startOfBatch () |
Called at the start of a series of updates to the IliSchema or IliTable object. More... | |
virtual void | tableChanged (const IliModelHookInfo &info) |
Called when the object has undergone a significant number of changes. More... | |
virtual void | tableDeleted (const IliModelHookInfo &info) |
Called when the IliSchema or IliTable object is deleted. More... | |
Public Member Functions inherited from IliModel | |
IliModel () | |
The constructor initializes a new IliModel instance. | |
IlInt | declareProperty (const IliDatatype *typ, const char *name, const char *title, IlBoolean pub) |
Declares a new property. More... | |
virtual void | defineProperties () |
Called to define the list of properties. More... | |
virtual const char * | getLabel () const =0 |
Returns the model label, it is used by the gadget inspector. More... | |
virtual const char * | getMappingInspectorModelName () const |
Returns the mapping inspector model name. More... | |
IlInt | getPropertyCount () const |
Returns the property count. More... | |
IlInt | getPropertyIndex (const char *name) const |
Returns a property index. More... | |
const char * | getPropertyName (IlInt index) const |
Returns a property name. More... | |
const IliValue & | getPropertyValue (const char *name) const |
Returns a property value. More... | |
const IliValue & | getPropertyValue (IlInt index) const |
Returns a property value. More... | |
virtual IlBoolean | isPublic () const |
Returns the model visibility. More... | |
void | setPropertyValue (const char *name, const IliValue &val) |
Sets a property value. More... | |
void | setPropertyValue (IlInt index, const IliValue &val) |
Sets a property value. More... | |
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.
IliModel
, IliDbGantt
, IliDbGanttFullModel
, IliDbGanttLightModel
.
|
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 |
|
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 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.