|
GLG Toolkit, C / C++ API Library
Version 4.6
|
This group contains supporting functions for the drawing editing functionality. More...
This group contains supporting functions for the drawing editing functionality.
See Object Configuration functions of the Intermediate API and Editing Objects functions of the Extended API for more object editing functionality.
Functions | |
| void | GlgSetBrowserObject (GlgObject browser, GlgObject object) |
| Sets the object for browsing with the GLG Resource, Tag and Alarm browser widgets. More... | |
| GlgBoolean | GlgSetBrowserSelection (GlgObject object, char *resource_name, char *selection, char *filter) |
| Sets a new value of a browser's Selection and Filter text boxes of the Resource, Tag, Alarm and Data browser widgets after the browser object has already been set up. More... | |
| GlgBoolean | GlgSetEditMode (GlgObject viewport, char *resource_name, GlgBoolean edit_mode) |
| Sets the viewport's edit mode to disable input objects in the viewport while the drawing is being edited. More... | |
Sets the object for browsing with the GLG Resource, Tag and Alarm browser widgets.
| browser | A viewport of the Resource, Tag or Alarm browser widget. |
| object | An object to browse. |
The browser widget will display the object's resources, tags or alarms depending on the type of the browser widget.
| GlgBoolean GlgSetBrowserSelection | ( | GlgObject | object, |
| char * | resource_name, | ||
| char * | selection, | ||
| char * | filter | ||
| ) |
Sets a new value of a browser's Selection and Filter text boxes of the Resource, Tag, Alarm and Data browser widgets after the browser object has already been set up.
| object | A viewport of the browser widget or its parent. |
| resource_name | A resource path to access the browser from the parent supplied by the object parameter, or NULL if the object parameter supplies the browser's viewport. |
| selection | A new selection string. |
| filter | A new filter string. |
Setting a new selection will display a new list of matching entries. Before the browser's drawing hierarchy has been set up, the Selection and Filter fields of the browser widget may be set via the corresponding resources. To change Selection or Filter after hierarchy setup, this function should be used.
| GlgBoolean GlgSetEditMode | ( | GlgObject | viewport, |
| char * | resource_name, | ||
| GlgBoolean | edit_mode | ||
| ) |
Sets the viewport's edit mode to disable input objects in the viewport while the drawing is being edited.
| viewport | A viewport object (either a Viewport or a Light Viewport) to set the editing mode of, or its parent. |
| resource_name | A resource path to access the viewport from the parent supplied by the viewport parameter, or NULL to set the editing mode of the viewport specified by the viewport parameter. |
| edit_mode |
|
If the viewport's edit mode is turned on, input objects in the viewport will not react to the mouse and keyboard events. The rest of the input objects outside of the viewport will still be active. The edit mode is inherited by all child viewports.
The edit mode is usually set for viewports that serve as a drawing area; the edit mode ensures that the input objects do not react to mouse clicks when they are dragged with the mouse to a new position. This is similar to the behavior of the Graphics Builder's Drawing Area.
The edit mode is global and may be set only for one viewport used as a drawing area. Setting the edit mode of a new viewport resets the edit mode of the previous viewport. A viewport's edit mode is inherited by all its child viewports.