|
| IliDbGantt (IlvDisplay *display, const IlvRect &rect) |
| This constructor initializes a Gantt chart can be connected to a set of data sources. More...
|
|
void | addDisplayColumnName (const char *name) |
| Adds a column name to the list of displayed columns. More...
|
|
void | addErrorSink (IliErrorSink *sink, IliDbGanttWhichDs dsi) |
| Adds an error sink. More...
|
|
IlvGraphic * | createDefaultBreak () |
| Returns a new break graphic object. More...
|
|
IlvGraphic * | createDefaultConstraint () |
| Returns a new constraint graphic object. More...
|
|
IlvGraphic * | createDefaultLoad () |
| Returns a new work-load-curve item graphic object. More...
|
|
IlvGraphic * | createDefaultPrecedence () |
| Returns a new precedence graphic object. More...
|
|
virtual IlvGraphic * | createResourcesModel () |
| Called to create the resources model object. More...
|
|
void | enableDisplayFullName (IlBoolean flag) |
| Enables or disables the full display of the name of the month or the name of the day of the week. More...
|
|
IlInt | getActColumnIndex (IliDbGanttActCols typ) const |
| Returns an activity column index. More...
|
|
const char * | getActColumnName (IliDbGanttActCols typ) const |
| Returns an activity column name. More...
|
|
IliDataSource * | getActDataSource () const |
| Returns the activities data source. More...
|
|
const char * | getActDataSourceName () const |
| Returns the activities data source name. More...
|
|
IlvColor * | getActivePeriodColor () const |
| Returns the active period color. More...
|
|
IlInt | getActivePeriodInfo (IliDateInfo info) const |
| Returns the desired information about the current period. More...
|
|
IlvColor * | getBreakColor () const |
| Returns the break color. More...
|
|
IlInt | getBrkColumnIndex (IliDbGanttBrkCols typ) const |
| Returns a break column index. More...
|
|
const char * | getBrkColumnName (IliDbGanttBrkCols typ) const |
| Returns a break column name. More...
|
|
IliDataSource * | getBrkDataSource () const |
| Returns the breaks data source. More...
|
|
const char * | getBrkDataSourceName () const |
| Returns the breaks data source name. More...
|
|
const IliDbGanttInfo & | getCallbackInformation () const |
| Returns the information about the internal Gantt chart event. More...
|
|
IlInt | getCntColumnIndex (IliDbGanttCntCols typ) const |
| Returns a constraint column index. More...
|
|
const char * | getCntColumnName (IliDbGanttCntCols typ) const |
| Returns a constraint column name. More...
|
|
IliDataSource * | getCntDataSource () const |
| Returns the constraints data source. More...
|
|
const char * | getCntDataSourceName () const |
| Returns the constraints data source name. More...
|
|
IlvColor * | getDelimiterColor () const |
| Returns the activity delimiter color. More...
|
|
IlInt | getDisplayColumnCount () const |
| Returns the displayed column count. More...
|
|
IlInt | getDisplayColumnIndex (IlInt pos) const |
| Returns a displayed column index. More...
|
|
const char * | getDisplayColumnName (IlInt pos) const |
| Returns a displayed column name. More...
|
|
IliErrorReporter * | getErrorReporter () const |
| Returns the error reporter that is used by the reportErrors member function. More...
|
|
IliDbGanttCallback | getGanttCallback (IliDbGanttCallbackName name) const |
| Returns the callback associated with an internal Gantt chart event. More...
|
|
IlAny | getGanttCallbackData (IliDbGanttCallbackName name) const |
| Returns the user data associated with an internal Gantt chart event. More...
|
|
IlvColor * | getInactivePeriodColor () const |
| Returns the inactive period color. More...
|
|
IlInt | getLoaColumnIndex (IliDbGanttLoaCols typ) const |
| Returns a work-load-curve column index. More...
|
|
const char * | getLoaColumnName (IliDbGanttLoaCols typ) const |
| Returns a work-load-curve column name. More...
|
|
IliDataSource * | getLoaDataSource () const |
| Returns the work-load-curve data source. More...
|
|
const char * | getLoaDataSourceName () const |
| Returns the work-load-curve data source name. More...
|
|
IlvColor * | getLoadColor () const |
| Returns the work-load-curve color. More...
|
|
IliDbGanttModel * | getModel () const |
| Returns The data model. More...
|
|
const char * | getModelName () const |
| Returns the data model name. More...
|
|
const char * | getObjectNameDoubleClicked () const |
| Returns the object name that has been double-clicked. More...
|
|
IlvColor * | getPrecedenceColor () const |
| Returns the default precedence color. More...
|
|
IlInt | getPreColumnIndex (IliDbGanttPreCols typ) const |
| Returns a precedence column index. More...
|
|
const char * | getPreColumnName (IliDbGanttPreCols typ) const |
| Returns a precedence column name. More...
|
|
IliDataSource * | getPreDataSource () const |
| Returns the precedences data source. More...
|
|
const char * | getPreDataSourceName () const |
| Returns the precedences data source name. More...
|
|
IlInt | getReferenceMonth () const |
| Returns the reference month. More...
|
|
IlInt | getReferenceYear () const |
| Returns the reference year. More...
|
|
IlInt | getResColumnIndex (IliDbGanttResCols typ) const |
| Returns a resource column index. More...
|
|
const char * | getResColumnName (IliDbGanttResCols typ) const |
| Returns a resource column name. More...
|
|
IliDataSource * | getResDataSource () const |
| Returns the resources data source. More...
|
|
const char * | getResDataSourceName () const |
| Returns the resources data source name. More...
|
|
IlInt | getScaleNumericValue () const |
| Returns the numeric value of the current step of the scale. More...
|
|
IliDbScaleType | getScaleType () const |
| Returns the scale type. More...
|
|
IliScaleUnit | getScaleUnit () const |
| Returns the scale unit. More...
|
|
virtual IlBoolean | isActivePeriod (const IliDate &info) |
| Returns IlTrue if the period is active. More...
|
|
IlBoolean | isActivePeriodWithRules (const IliDate &info) |
| Returns IlTrue if the period is active when you use the rules that have been defined with the inspector. More...
|
|
IlBoolean | isDeletionEventPropagated () const |
| Returns IlTrue if the option to propagate deletion events is enabled. More...
|
|
IlBoolean | isDisplayFullNameEnabled () const |
| Returns IlTrue if the full display is enabled. More...
|
|
IlBoolean | isInteractionDataSourceToGantt () const |
| Returns IlTrue if the option for interaction between data sources and Gantt chart is enabled. More...
|
|
IlBoolean | isReadOnly () const |
| Returns IlTrue if the Gantt chart is read-only. More...
|
|
IlBoolean | isUpdateEventPropagated () const |
| Returns IlTrue if the option to propagate update events is enabled. More...
|
|
virtual void | onConstraintDoubleClicked () |
| Called when a constraint has been double-clicked.
|
|
virtual IlvGraphic * | onCreateBreak () |
| Called to create a new break graphic object. More...
|
|
virtual IlvGraphic * | onCreateConstraint () |
| Called to create a new constraint graphic object. More...
|
|
virtual IlvGraphic * | onCreateLoad () |
| Called to create a new work-load-curve item graphic object. More...
|
|
virtual IlvGraphic * | onCreatePrecedence () |
| Called to create a new precedence graphic object. More...
|
|
virtual void | onDeleteBreak () |
| Called when a break is deleted.
|
|
virtual void | onDeleteConstraint () |
| Called when a constraint is deleted.
|
|
virtual void | onDeleteLoad () |
| Called when a work-load-curve item is deleted.
|
|
virtual void | onDeletePrecedence () |
| Called when a precedence is deleted.
|
|
virtual void | onPrecedenceDoubleClicked () |
| Called when a precedence has been double-clicked.
|
|
virtual IlvGraphic * | onReplaceBreak (IlvGraphic *old) |
| Called to replace a break. More...
|
|
virtual IlvGraphic * | onReplaceConstraint (IlvGraphic *old) |
| Called to replace a constraint. More...
|
|
virtual IlvGraphic * | onReplaceLoad (IlvGraphic *old) |
| Called to replace a work-load-curve item. More...
|
|
virtual IlvGraphic * | onReplacePrecedence (IlvGraphic *old) |
| Called to replace a precedence. More...
|
|
void | propagateDeletionEvent (IlBoolean flag) |
| Enables or disables the option to propagate deletion events. More...
|
|
void | propagateUpdateEvent (IlBoolean flag) |
| Enables or disables the option to propagate update events. More...
|
|
void | refreshAll () |
| Refreshes the display of all Gantt chart objects.
|
|
void | removeAllDisplayColumns () |
| Removes all columns displayed by the Gantt chart. More...
|
|
void | removeErrorSink (IliErrorSink *sink, IliDbGanttWhichDs dsi) |
| Removes an error sink from the Gantt chart. More...
|
|
void | reportErrors (const IliErrorList &list) const |
| Reports the errors that are contained in list. More...
|
|
void | setActColumnName (IliDbGanttActCols typ, const char *name) |
| Sets an activity column name. More...
|
|
void | setActDataSource (IliDataSource *ds) |
| Sets the activities data source. More...
|
|
void | setActDataSourceName (const char *name) |
| Sets the activities data source name. More...
|
|
void | setActivePeriodColor (IlvColor *color) |
| Sets the active period color. More...
|
|
void | setBreakColor (IlvColor *color) |
| Sets the break color. More...
|
|
void | setBrkColumnName (IliDbGanttBrkCols typ, const char *name) |
| Sets a break column name. More...
|
|
void | setBrkDataSource (IliDataSource *ds) |
| Sets the breaks data source. More...
|
|
void | setBrkDataSourceName (const char *name) |
| Sets the breaks data source name. More...
|
|
void | setCntColumnName (IliDbGanttCntCols typ, const char *name) |
| Sets a constraint column name. More...
|
|
void | setCntDataSource (IliDataSource *ds) |
| Sets the constraints data source. More...
|
|
void | setCntDataSourceName (const char *name) |
| Sets the constraints data source name. More...
|
|
void | setDelimiterColor (IlvColor *color) |
| Sets the constraint delimiter color. More...
|
|
void | setErrorReporter (IliErrorReporter *reporter) |
| Sets the error reporter. More...
|
|
void | setGanttCallback (IliDbGanttCallbackName name, IliDbGanttCallback cb, IlAny arg=0) |
| Associates a callback with an internal Gantt chart event. More...
|
|
void | setInactivePeriod () |
| Indicates that the current period is inactive.
|
|
void | setInactivePeriodColor (IlvColor *color) |
| Sets the inactive period color. More...
|
|
void | setInteractionDataSourceToGantt (IlBoolean flag) |
| Enables or disables the interaction between data sources and Gantt chart. More...
|
|
void | setLoaColumnName (IliDbGanttLoaCols typ, const char *name) |
| Sets the work-load-curve column name. More...
|
|
void | setLoaDataSource (IliDataSource *ds) |
| Sets the work-load-curve data source. More...
|
|
void | setLoaDataSourceName (const char *name) |
| Sets the work-load-curve data source name. More...
|
|
void | setLoadColor (IlvColor *color) |
| Sets the work-load-curve color. More...
|
|
void | setModelName (const char *name) |
| Sets the data model name. More...
|
|
void | setPrecedenceColor (IlvColor *color) |
| Sets the default precedence color. More...
|
|
void | setPreColumnName (IliDbGanttPreCols typ, const char *name) |
| Sets a precedence column name. More...
|
|
void | setPreDataSource (IliDataSource *ds) |
| Sets the precedences data source. More...
|
|
void | setPreDataSourceName (const char *name) |
| Sets the precedences data source name. More...
|
|
void | setReadOnly (IlBoolean flag) |
| Enables or disable the read-only option. More...
|
|
void | setReferenceMonth (IlInt m) |
| Sets the reference month. More...
|
|
void | setReferenceYear (IlInt y) |
| Sets the reference year. More...
|
|
void | setResColumnName (IliDbGanttResCols typ, const char *name) |
| Sets a resource column name. More...
|
|
void | setResDataSource (IliDataSource *ds) |
| Sets the resources data source. More...
|
|
void | setResDataSourceName (const char *name) |
| Sets the resources data source name. More...
|
|
void | setScaleNumericLabel (const char *label) |
| Sets the label of the current step of the scale. More...
|
|
void | setScaleType (IliDbScaleType typ) |
| Sets the scale type. More...
|
|
void | setScaleUnit (IliScaleUnit unit) |
| Sets the scale unit. More...
|
|
Gadget Class.
Library: dbgantt
The IliDbGantt
class defines a Gantt chart connected to some data sources. The data of the Gantt chart are managed by a data model. Each data model has its data sources with its columns. There are two models:
The scales can range from 0 to n where n is an integer. You can use the functions for scales to change the display unit and the type of the scale.
With the inspector, you can define rules to specify the inactive periods for all resources. You can also use the IsActivePeriod callback to indicate if a period is inactive. This callback is called when the scales are built.
Accessors
Accessors provide a scriptable and uniform way to inspect and modify an object by using its base class methods IlvValueInterface::queryValue()
, IlvValueInterface::queryValues()
, IlvValueInterface::changeValue()
, IlvValueInterface::changeValues()
. This class inherits the accessors of its superclass IlvGanttChartForm
and adds the following ones:
Name | Type | Equivalent methods |
actDataSourceName | String | getActDataSourceName() , setActDataSourceName() |
actEndMaxColumnName | String | getActColumnName(IliDbGanttActEndMax) , setActColumnName(IliDbGanttActEndMax, .) |
actEndMinColumnName | String | getActColumnName(IliDbGanttActEndMin) , setActColumnName(IliDbGanttActEndMin, .) |
actIdentifierColumnName | String | getActColumnName(IliDbGanttActIdentifier) , setActColumnName(IliDbGanttActIdentifier, .) |
activePeriodColor | Color | getActivePeriodColor() , setActivePeriodColor() |
actLabelColumnName | String | getActColumnName(IliDbGanttActLabel) , setActColumnName(IliDbGanttActLabel, .) |
actStartMaxColumnName | String | getActColumnName(IliDbGanttActStartMax) , setActColumnName(IliDbGanttActStartMax, .) |
actStartMinColumnName | String | getActColumnName(IliDbGanttActStartMin) , setActColumnName(IliDbGanttActStartMin, .) |
breakColor | Color | getBreakColor() , setBreakColor() |
brkDataSourceName | String | getBrkDataSourceName() , setBrkDataSourceName() |
brkFromColumnName | String | getBrkColumnName(IliDbGanttBrkFrom) , setBrkColumnName(IliDbGanttBrkFrom, .) |
brkIdentifierColumnName | String | getBrkColumnName(IliDbGanttBrkIdentifier) , setBrkColumnName(IliDbGanttBrkIdentifier, .) |
brkResIdentifierColumnName | String | getBrkColumnName(IliDbGanttBrkResIdentifier) , setBrkColumnName(IliDbGanttBrkResIdentifier, .) |
brkToColumnName | String | getBrkColumnName(IliDbGanttBrkTo) , setBrkColumnName(IliDbGanttBrkTo, .) |
cntActIdentifierColumnName | String | getCntColumnName(IliDbGanttCntActIdentifier) , setCntColumnName(IliDbGanttCntActIdentifier, .) |
cntBackgroundColumnName | String | getCntColumnName(IliDbGanttCntBackground) , setCntColumnName(IliDbGanttCntBackground, .) |
cntCapacityColumnName | String | getCntColumnName(IliDbGanttCntCapacity) , setCntColumnName(IliDbGanttCntCapacity, .) |
cntDataSourceName | String | getCntDataSourceName() , setCntDataSourceName() |
cntForegroundColumnName | String | getCntColumnName(IliDbGanttCntForeground) , setCntColumnName(IliDbGanttCntForeground, .) |
cntIdentifierColumnName | String | getCntColumnName(IliDbGanttCntIdentifier) , setCntColumnName(IliDbGanttCntIdentifier, .) |
cntResIdentifierColumnName | String | getCntColumnName(IliDbGanttCntResIdentifier) , setCntColumnName(IliDbGanttCntResIdentifier, .) |
delimiterColor | Color | getDelimiterColor() , setDelimiterColor() |
inactivePeriodColor | Color | getInactivePeriodColor() , setInactivePeriodColor() |
interactionDataSourceToGantt | Boolean | isInteractionDataSourceToGantt() , setInteractionDataSourceToGantt() |
loaCapacityColumnName | String | getLoaColumnName(IliDbGanttLoaCapacity) , setLoaColumnName(IliDbGanttLoaCapacity, .) |
loaDataSourceName | String | getLoaDataSourceName() , setLoaDataSourceName() |
loadColor | Color | getLoadColor() , setLoadColor() |
loaFromColumnName | String | getLoaColumnName(IliDbGanttLoaFrom) , setLoaColumnName(IliDbGanttLoaFrom, .) |
loaResIdentifierColumnName | String | getLoaColumnName(IliDbGanttLoaResIdentifier) , setLoaColumnName(IliDbGanttLoaResIdentifier, .) |
loaToColumnName | String | getLoaColumnName(IliDbGanttLoaTo) , setLoaColumnName(IliDbGanttLoaTo, .) |
objectNameDoubleClicked | String | getObjectNameDoubleClicked() |
periodInfoDay | Int | getActivePeriodInfo(IliDateInfoDay) |
periodInfoHour | Int | getActivePeriodInfo(IliDateInfoHour) |
periodInfoMinute | Int | getActivePeriodInfo(IliDateInfoMinute) |
periodInfoMonth | Int | getActivePeriodInfo(IliDateInfoMonth) |
periodInfoNumeric | Int | getActivePeriodInfo(IliDateInfoNumeric) |
periodInfoSecond | Int | getActivePeriodInfo(IliDateInfoSecond) |
periodInfoWeekDay | Int | getActivePeriodInfo(IliDateInfoWeekDay) |
periodInfoYear | Int | getActivePeriodInfo(IliDateInfoYear) |
precedenceColor | Color | getPrecedenceColor() , setPrecedenceColor() |
preColorColumnName | Color | getPreColumnName(IliDbGanttPreColor) , setPreColumnName(IliDbGanttPreColor, .) |
preDataSourceName | String | getPreDataSourceName() , setPreDataSourceName() |
preDelayColumnName | String | getPreColumnName(IliDbGanttPreDelay) , setPreColumnName(IliDbGanttPreDelay, .) |
preFromColumnName | String | getPreColumnName(IliDbGanttPreFrom) , setPreColumnName(IliDbGanttPreFrom, .) |
preToColumnName | String | getPreColumnName(IliDbGanttPreTo) , setPreColumnName(IliDbGanttPreTo, .) |
preTypeColumnName | String | getPreColumnName(IliDbGanttPreType) , setPreColumnName(IliDbGanttPreType, .) |
propagateDeletionEvent | Boolean | isDeletionEventPropagated() , propagateDeletionEvent() |
propagateUpdateEvent | Boolean | isUpdateEventPropagated() , propagateUpdateEvent() |
readOnly | Boolean | isReadOnly() , setReadOnly() |
referenceMonth | Int | getReferenceMonth() , setReferenceMonth() |
referenceYear | Int | getReferenceYear() , setReferenceYear() |
resDataSourceName | String | getResDataSourceName() , setResDataSourceName() |
resHeightColumnName | String | getPreColumnName(IliDbGanttResHeight) , setResColumnName(IliDbGanttResHeight, .) |
resIdentifierColumnName | String | getPreColumnName(IliDbGanttResIdentifier) , setResColumnName(IliDbGanttResIdentifier, .) |
scaleDisplayFullName | Boolean | isDisplayFullNameEnabled() , enableDisplayFullName() |
scaleNumericValue | Int | getScaleNumericValue() |
scaleType | Object | getScaleType() , setScaleType() |
scaleUnit | Object | getScaleUnit() , setScaleUnit() |
Method accessors
The data sources are as follows.
-
Resources with the following columns:
-
Identifier
-
Height (must be an integer and larger than 0)
-
Activities with the following columns:
-
Start min (must be an integer and start at 0)
-
Start max (must be an integer and start at 0)
-
End min (must be an integer and start at 0)
-
End max (must be an integer and start at 0)
-
Identifier
-
Label
-
Constraints (associates a resource with an activity) with the following columns:
-
Identifier
-
Resource identifier
-
Activity identifier
-
Capacity (must be an integer and larger than 0).
-
Foreground (must be a string). This column is optional.
-
Background (must be a string). This column is optional.
-
Precedences (link between constraints) with the following columns:
-
Source constraint
-
Destination constraint
-
Type (must be an integer between 0 and 3)
-
Delay (must be an integer)
-
Color (must be a string). This column is optional.
-
Breaks (the inactive period for a specific resource) with the following columns:
-
Identifier
-
Resource identifier
-
From (must be an integer and start at 0).
-
To (must be an integer and start at 0).
-
Work load curve with the following columns:
-
Resource identifier.
-
From (must be an integer and start at 0).
-
To (must be an integer and start at 0).
-
Capacity (must be an integer and larger than 0).
The scales start from 0 to n where n is an integer. You can use the functions about scales to change the unit and type of scale.
With the inspector, you can define rules to specify the inactive periods for all resources. However, you can also use the IsActivePeriod callback to indicate if a period is inactive. This callback is called when the scales are built.
The identifiers of all objects (resources, activities, ...) must be unique.