rwlogo

Rogue Wave Views
Gantt Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator
List of all members | Public Member Functions
IlvGanttScrollViewHook Class Reference

Gantt chart scroll hook class. More...

#include <ilviews/gantt/gantt.h>

Inheritance diagram for IlvGanttScrollViewHook:
IlvManagerViewHook

Public Member Functions

 IlvGanttScrollViewHook (IlvGanttChart *gantt, IlvManager *grapher, IlvView *view)
 Constructor. More...
 
virtual void adjustScrollBars ()
 Computes new scroll bar locations depending on the Gantt contents.
 
virtual void adjustViews (IlUShort index, IlvDirection dir)
 Adjusts the view and all other manager and grapher views aligned with this view. More...
 
virtual void contentsChanged ()
 Called when the contents of the manager are changed. More...
 
virtual void transformerChanged (const IlvTransformer *current, const IlvTransformer *previous)
 Called when you change the transformer of the view to which this hook is connected. More...
 
virtual void viewResized ()
 Called when the view to which this hook is connected is resized. More...
 

Detailed Description

Gantt chart scroll hook class.

Library: ilvgantt

An IlvGanttScrollViewHook object is connected to each of the four views managed by the Gantt grapher. This hook is used to adjust scroll bars and views as needed.

See Also
IlvGanttChart.

Constructor & Destructor Documentation

IlvGanttScrollViewHook::IlvGanttScrollViewHook ( IlvGanttChart gantt,
IlvManager grapher,
IlvView view 
)

Constructor.

The constructor initializes an IlvGanttScrollViewHook object with the parameters you provide.

Parameters
ganttThe Gantt chart.
grapherThe grapher of the Gantt chart.
viewThe view.

Member Function Documentation

virtual void IlvGanttScrollViewHook::adjustViews ( IlUShort  index,
IlvDirection  dir 
)
virtual

Adjusts the view and all other manager and grapher views aligned with this view.

Adjusts the view indicated by index and all other manager and grapher views that are aligned with this view in the direction dir. The parameter dir can handle three possible values:

  • IlvVertical
  • IlvHorizontal
  • IlvVertical|IlvHorizontal
Parameters
indexThe position of the view.
dirThe direction in which the view will be adjusted.
virtual void IlvGanttScrollViewHook::contentsChanged ( )
virtual

Called when the contents of the manager are changed.

The default implementation calls the member function adjustScrollBars.

Reimplemented from IlvManagerViewHook.

virtual void IlvGanttScrollViewHook::transformerChanged ( const IlvTransformer current,
const IlvTransformer previous 
)
virtual

Called when you change the transformer of the view to which this hook is connected.

The default implementation calls the member function adjustScrollBars.

Parameters
currentThe current transformer.
previousThe previous transformer.

Reimplemented from IlvManagerViewHook.

virtual void IlvGanttScrollViewHook::viewResized ( )
virtual

Called when the view to which this hook is connected is resized.

The default implementation calls the member function adjustScrollBars.

Reimplemented from IlvManagerViewHook.


© Copyright 2015, 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.