Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvManagerMakeLabelInteractor Class Reference

Manager view interactor class. More...

#include <ilviews/gadmgr/strinter.h>

Inheritance diagram for IlvManagerMakeLabelInteractor:
IlvManagerMakeStringInteractor IlvManagerViewInteractor IlvValueInterface

Public Member Functions

 IlvManagerMakeLabelInteractor (IlvManager *manager, IlvView *eview)
 Constructor.
 
virtual IlBoolean accept (IlvPoint &p)
 Starts the text interaction at the specified location. More...
 
virtual void doIt (const char *label)
 Finalizes the interaction. More...
 
- Public Member Functions inherited from IlvManagerMakeStringInteractor
 IlvManagerMakeStringInteractor (IlvManager *manager, IlvView *view)
 Constructor. More...
 
virtual void abort ()
 Aborts the interaction. More...
 
const char * getLabel ()
 Returns the string being edited. More...
 
IlBoolean handleEvent (IlvEvent &event)
 Handles events for the manager view. More...
 
void handleExpose (IlvRegion *clip)
 Called when the manager view receives an expose event. More...
 
void reDraw ()
 Redraws the text field.
 
void setLabel (const char *label, IlBoolean redraw=IlTrue)
 Sets the contents of the text field to the specified string. More...
 
- Public Member Functions inherited from IlvManagerViewInteractor
 IlvManagerViewInteractor (IlvManager *manager, IlvView *view)
 Initializes a new IlvManagerViewInteractor. More...
 
virtual void drawGhost ()
 Visual feedback during the interaction. More...
 
virtual void ensureVisible (const IlvPoint &point)
 Ensures the visibility of a given location. More...
 
IlvDisplaygetDisplay () const
 Returns the display of the manager view. More...
 
IlvManagergetManager () const
 Returns the manager. More...
 
IlvTransformergetTransformer () const
 Returns the transformer used with the manager view. More...
 
IlvViewgetView () const
 Returns the manager view. More...
 
virtual void init ()
 Initialization, when the interactor is attached to a view. More...
 

Detailed Description

Manager view interactor class.

Library: ilvgadmgr

Use this interactor to create or edit instances of IlvLabel and subtypes.

See also
IlvLabel, IlvManagerMakeListLabelInteractor, IlvManagerMakeTextInteractor.

Member Function Documentation

§ accept()

virtual IlBoolean IlvManagerMakeLabelInteractor::accept ( IlvPoint p)
virtual

Starts the text interaction at the specified location.

Called when the user presses the left mouse button in the working view. The default implementation creates the text field at location p and returns IlTrue. If p is contained in a graphic object subclass of IlvLabel, the text field is initialized with the same geometry filled with the same textual contents.

Returns
IlTrue if the interactor accepts the point as a valid position to start the interaction.
Parameters
pThe position of the event that initiated the interaction.

Reimplemented from IlvManagerMakeStringInteractor.

§ doIt()

virtual void IlvManagerMakeLabelInteractor::doIt ( const char *  label)
virtual

Finalizes the interaction.

Called when the user validates the text field. The interactor modifies an existing IlvLabel or creates a new one.

Parameters
labelThe string contained in the text field.

Implements IlvManagerMakeStringInteractor.


© 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.