rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Manager Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvManagerMakeLabelInteractor Class Reference

Manager view interactor class. More...

#include <ilviews/gadmgr/strinter.h>

Inheritance diagram for IlvManagerMakeLabelInteractor:
IlvManagerMakeStringInteractor IlvManagerViewInteractor

List of all members.

Public Member Functions

 IlvManagerMakeLabelInteractor (IlvManager *manager, IlvView *eview)
 Constructor.
virtual IlBoolean accept (IlvPoint &p)
 Starts the text interaction at the specified location.
virtual void doIt (const char *)
 Finalizes the interaction.

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.

Constructor & Destructor Documentation

IlvManagerMakeLabelInteractor::IlvManagerMakeLabelInteractor ( IlvManager manager,
IlvView eview 
)

Constructor.

Initializes an instance of the class IlvManagerMakeLabelInteractor.


Member Function Documentation

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:
p The position of the event that initiated the interaction.

Reimplemented from IlvManagerMakeStringInteractor.

virtual void IlvManagerMakeLabelInteractor::doIt ( const char *   )  [virtual]

Finalizes the interaction.

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

Parameters:
label The string contained in the text field.

Implements IlvManagerMakeStringInteractor.


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