![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This component handles the exchange of information between the editor and the user.
The TSLEditor must be paired with an object derived from TSLEditorRequest. The methods of the request object are invoked by the TSLEditor component when information needs to be requested from or sent to the user.
Public Member Functions | |
TSLEditorRequest () | |
virtual | ~TSLEditorRequest () |
virtual bool | cancelDialog () |
virtual bool | cancelText () |
virtual bool | displayError (const char *message) |
virtual bool | displayPrompt (const char *message) |
virtual bool | onChanged (bool sts) const |
virtual bool | onCursorMovement (const char *displayString, double val1, double val2) const |
virtual bool | onDrawTMC (TSLTMC x1, TSLTMC y1, TSLTMC x2, TSLTMC y2, bool clearBackground, bool updateExtentOnly) |
virtual void | onEditorAttachmentChanged () |
virtual bool | onOperationDeactivated () |
virtual bool | onRedraw (const TSLEnvelope *extent) const |
virtual bool | onSelectionChanged (int numEntities, int depth) |
virtual bool | requestDialog (const char *prompt, const char *label1, const char *label2, const char *label3, const char *label4) |
virtual bool | requestText (const char *prompt, const char *initialValue) |
virtual bool | setCursor (TSLCursorStyle style) |
Public Attributes | |
TSLEditor * | m_editor |
TSLEditorRequest::TSLEditorRequest | ( | ) |
Default constructor for the TSLEditorRequest class.
|
virtual |
The destructor for the TSLEditorRequest class.
|
virtual |
Cancel the current dialog request.
This method is called by the editor to cancel the current dialog request. The client application should NOT call the dialogEntered method.
Returns true if successfully cancelled, otherwise false.
|
virtual |
Cancel the current text request.
This method is called to cancel the current text request. The client application should NOT call the textEntered method.
Returns true if successfully cancelled, otherwise false.
|
virtual |
Display an error message.
This method is called to request that the user's application display an error message.
message | A pointer to a string containing the error message. |
|
virtual |
Display a prompt to the user.
This method is called to request that the user's application display a prompt message.
message | A pointer to the string containing the text of user prompt. |
Reimplemented in TSLInteractionModeEditRequest.
|
virtual |
This method is triggered to indicate that the changed flag has been altered.
sts | Indicates the status of the changed flag. |
|
virtual |
This method is triggered to indicate that the cursor has moved. The meanings of the parameters are configured using the TSLEditor::cursorMovementConfig method
displayString | Text string to be displayed, according to configuration via cursorMovementConfig. |
val1 | First value of the cursor coordinate used for display string. |
val2 | Second value of the cursor coordinate used for display string. |
|
virtual |
This method will be called when the editor requires the underlying drawing surface to redraw the specified extent. A client application could use it to re-direct the draw call to another drawing surface or perform some other custom action.
If a client application does the redrawing itself, then it should return true from this call, otherwise it should return false so that MapLink will perform the redraw itself.
x1 | The minimum X value of the draw extent in TMC units |
y1 | The minimum Y value of the draw extent in TMC units |
x2 | The maximum X value of the draw extent in TMC units |
y2 | The maximum Y value of the draw extent in TMC units |
clearBackground | If true, this implies that the specified area should be cleared before drawing any of the data. |
updateExtentOnly | If true, this implies that the updates to buffers and the window should be clipped to the specified extent, otherwise only updates to the window are clipped. |
|
virtual |
This method is called whenever the attached drawing surface changes. The user can then query the attached drawing surface from the editor. For most uses of the editor this callback need not be overridden, it is intended for cases where the editor may be attached to difference drawing surface during the workflow of the using application.
|
virtual |
Called to indicate that the current operation has been deactivated.
This method is called by the editor to inform the user's application that the current operation has been deactivated and that the default select operation is now active.
Returns true if successful, otherwise false.
|
virtual |
Called when editor requests a redraw of specified extent.
This method is triggered to indicate that the editor has requested a redraw of the specified extent. If the extent is NULL then the entire drawing Surface has been redrawn.
extent | Specifies the extent of the requested redraw. |
|
virtual |
Called to indicate a change in the selection list.
This method is called by the editor to inform the user's application of the current select list status.
numEntities | The number of selected entities. |
depth | The select depth. |
|
virtual |
Request user input from a dialog box.
This method requests that the user select one of the specified choices. An empty string indicates that the button should not be shown.
prompt | The prompt requesting a user selection. |
label1 | The text label for button 1. |
label2 | The text label for button 2. |
label3 | The text label for button 3. |
label4 | The text label for button 4. |
|
virtual |
Request text input from the user.
This method is called to request that the client application ask the user to enter some text.
The client application should called the textEntered method when the text has been entered by the user.
prompt: A pointer to the string prompting the user for input.
initialValue: A pointer to the initial value of the text field.
Returns true on success, otherwise false.
|
virtual |
Request a cursor style that is appropriate to the current operation action.
This method is called to request that the user's application update the cursor. This is not mandatory, but can often give users better feedback.
style | Action being performed. |
Reimplemented in TSLInteractionModeEditRequest.
TSLEditor* TSLEditorRequest::m_editor |
Data Members for Associations