Rogue Wave Views
Gantt Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
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)
 Initializes a new IlvGanttScrollViewHook. 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::IlvGanttScrollViewHook ( IlvGanttChart gantt,
IlvManager grapher,
IlvView view 
)

Initializes a new IlvGanttScrollViewHook.

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

Member Function Documentation

§ adjustViews()

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.

§ contentsChanged()

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.

§ transformerChanged()

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.

§ viewResized()

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 2017, 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.