Document revision date: 10 November 2000 | |
Previous | Contents | Index |
The default is Null. Access is CSG.
The callback reason is DXmSvnCRExtendConfirm. Other callback fields are as follows:
Field | Description |
---|---|
entry_number | The entry selected |
time | The time when the double click occurred |
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
The default is Null. Access is CSG.
The callback reason is DXmSvnCRGetEntry. Other callback fields are as follows:
Field | Description |
---|---|
entry_number | The entry number required |
entry_tag | The value (previously set in the application with the DXmSvnSetEntry or DXmSvnAddEntries routine) associated with the entry_number field |
entry_level | The entry's level number |
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
The default is Null. Access is CSG.
Field | Description |
---|---|
component_number | The component number within the entry on which help was requested |
time | The time when the user requested help |
entry_number | The entry number for which help was requested |
entry_tag | The value (previously set in the application with the DXmSvnSetEntry routine) associated with the entry_number field |
entry_level | The level number of the entry |
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
Note that the values for the entry_number and loc_cursor_entry_number fields vary depending on how the user requests help, as follows:
Subwidget | Value |
---|---|
DXmSvnKHelpScroll | -1 |
DXmSvnKHelpNavButton | -2 |
DXmSvnKNavWindow | -3 |
The default is Null. Access is CSG.
The callback reason is DXmSvnCRPopupMenu. Other callback fields are as follows:
Field | Description |
---|---|
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
The default is Null. Access is CSG.
This callback is also called when all three of the following conditions exist:
In such an instance, the individual calls are from the highest entry number selected through the lowest entry number selected.
The callback reason is DXmSvnCRSelectAndConfirm. Other callback fields are as follows:
Field | Description |
---|---|
component_number | The component number on which the mouse was positioned |
time | When the second click of the double click occurred |
entry_number | The entry number of the selected entry |
entry_tag | The value (previously set in the application with the DXmSvnSetEntry or DXmSvnAddEntries routine) associated with the entry_number field |
entry_level | The level number of the entry |
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
The default is Null. Access is CSG.
Value | Description |
---|---|
DXmSvnKselectEntry | Selects the entire entry. |
DXmSvnKselectComp | Selects only the component. |
DXmSvnKselectCompAndPrimary | Selects the current component and the entire primary side of the column view. |
DXmSvnKselectEntryOrComp | Selects either the entire entry (if the selection is made on the primary side) or only the component (if the selection is made on the secondary side of the display window). |
The default is DXmSvnKselectEntry. Access is CSG.
The callback reason is DXmSvnCRSelectionsDragged. Other callback fields are as follows:
Field | Description |
---|---|
component_number | The component number on which the mouse button was released |
x | The x position at which the mouse button was released |
y | The y position at which the mouse button was released |
entry_number | The entry number on which the mouse button was released |
entry_tag | The value (previously set in the application with the DXmSvnSetEntry routine) associated with the entry_number field |
entry_level | The entry's level number |
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
The default is Null (dragging will not occur). Access is CSG.
The callback reason is DXmSvnCRTransitionsDone. Other callback fields are as follows:
Field | Description |
---|---|
loc_cursor_entry_number | The number of the entry where the location cursor is currently displayed |
event | A pointer to the X event structure describing the event that generated this callback |
The default is Null. Access is CSG.
Value | Description |
---|---|
DXmSvnKtopTree | A vertical tree format (oriented from the top). |
DXmSvnKhorizontalTree | A horizontal tree format (oriented from the left). |
DXmSvnKoutlineTree | Oriented in outline form. |
DXmSvnKuserDefinedTree | Oriented in an application-defined format. The SVN widget uses the x- and y-coordinate values you specify for an entry to determine the entry's position in the tree. |
The default is DXmSvnKoutlineTree. Access is CSG.
typedef struct { int reason; int entry_number; int component_number; int first_selection; int x; int y; XtPointer entry_tag; Time time; int entry_level; int loc_cursor_entry_number; int transfer_mode; int dragged_entry_number; XEvent *event; } DXmSvnCallbackStruct; |
Note that all callbacks do not use all the fields listed except reason, which is common to all.
reason
An integer set to the callback reason.entry_number
The identifier of the entry.component_number
The identifier of the component.first_selection
One of the following values:
Value Description DXmSvnKnotFirst This is not the first selection that has been made. DXmSvnKfirstOfOne There is only one selection being made. DXmSvnKfirstOfMany This is the first of many selections being made. This value (when treated as a Boolean function) is usually True. It is False only when the user has made a range selection and this is not the first DXmSvnNentrySelectedCallback.
x
The x position at which the event occurred.y
The y position at which the event occurred.entry_tag
The value associated with the entry_number field. You can set this value in your application using a routine that is appropriate for the particular callback, as follows:
Callback Routine DXmSvnNentrySelectedCallback DXmSvnSetEntry
DXmSvnSetEntryTagDXmSvnNgetEntryCallback DXmSvnSetEntry
DXmSvnAddEntriesDXmSvnNhelpRequestedCallback DXmSvnSetEntry DXmSvnNselectAndConfirmCallback DXmSvnSetEntry
DXmSvnAddEntriesDXmSvnNselectionsDraggedCallback DXmSvnSetEntry time
The time when the event occurred.entry_level
The current entry number.loc_cursor_entry_number
The number of the entry that currently has the location cursor.transfer_mode
A constant specifying the transfer operation that should occur after an MB2 click with no mouse movement.dragged_entry_number
Contains the number of the entry currently being dragged with MB2 pressed.event
A pointer to the X event structure describing the event that generated this callback.
The following table lists the reasons and the valid callback fields for each:
Reason Valid Fields DXmSvnCRAttachToSource reason DXmSvnCRDetachFromSource reason DXmSvnCRDisplayChanged reason DXmSvnCRDragging reason, x, y, time, loc_cursor_entry_number, dragged_entry_number, event DXmSvnCRDraggingEnd reason, x, y, time, loc_cursor_entry_number, event DXmSvnCREntrySelected reason, entry_number, component_number, first_selection, entry_tag, time, loc_cursor_entry_number, event DXmSvnCREntryTransfer reason, loc_cursor_entry_number, transfer_mode, event DXmSvnCREntryUnselected reason, entry_number, component_number, time, loc_cursor_entry_number DXmSvnCRExtendConfirm reason, entry_number, time, loc_cursor_entry_number, event DXmSvnCRGetEntry reason, entry_number, entry_tag, entry_level, loc_cursor_entry_number DXmSvnCRHelpRequested reason, entry_number, component_number, entry_tag, time, entry_level, loc_cursor_entry_number, event DXmSvnCRPopupMenu reason, loc_cursor_entry_number, event DXmSvnCRSelectAndConfirm reason, entry_number, component_number, entry_tag, time, entry_level, loc_cursor_entry_number, event DXmSvnCRSelectionsDragged reason, entry_number, component_number, x, y, entry_tag, entry_level, loc_cursor_entry_number, event DXmSvnCRTransitionsDone reason, event
The following table describes how specific keys function within the SVN environment. The table also lists the Motif name and LK401 keyboard equivalent for each key. See the OSF/Motif Style Guide and the DECwindows Companion to the OSF/Motif Style Guide for additional information about DECwindows Motif keyboard bindings.
Motif Name LK401
Equivalent1SVN Function KActivate Return
Ctrl+ReturnSelects and confirms the current entry. Equivalent to a double MB1 click on the mouse. KBeginData Ctrl+Alt+ <- Scrolls to the first entry in the SVN display; selects and moves the location cursor to that entry. KBeginLine Alt+ <- Scrolls to the extreme left of the display. KDown <downarrow symbol> Selects and moves the location cursor to the next entry in display, scrolling the display down if necessary. KEndData Ctrl+Alt+-> Scrolls to the last entry in the SVN display; selects and moves the location cursor to that entry. KEndLine Alt+-> Scrolls to the extreme right of the display. KExtendDown Shift+<downarrow symbol> Adds the next entry to the extended selection. Selects and moves the location cursor to the next entry. KExtendUp Shift+<uparrow symbol> Adds the previous entry to the extended selection. Selects and moves the location cursor to the previous entry. KHelp Help Reports the help callback to the application if specified. KLeft <- Scrolls the display one character to the left. KMenu F4 Reports the DXmNpopupMenuCallback to the application if specified for the entry with the location cursor. KNextColumn Ctrl+-> Selects the next column component to the right. KNextPara Ctrl+<downarrow symbol> Scrolls to the bottom of the display. KPageDown Next Scrolls the display to the next screen of entries. Selects and moves the location cursor to the entry located at the same relative position on the next screen. KPageLeft Ctrl+Prev Scrolls the display one screen to the left. KPageRight Ctrl+Next Scrolls the display one screen to the right. KPageUp Prev Scrolls the display to the previous screen of entries. Selects and moves the location cursor to the entry located at the same relative position on the previous screen. KPrevColumn Ctrl+ <- Selects the previous column component to the left. KPrevPara Ctrl+<uparrow symbol> Scrolls to the top of the display. KRight -> Scrolls the display one character to the right. KSelect Select Selects the current entry and cancels all other selected entries. KSelectAll Ctrl+Slash (/) Selects all entries known to SVN. KUp <uparrow symbol> Selects and moves the location cursor to the previous entry in the display, scrolling the display if necessary.
The DXmCreateSvn routine allows you to create a hierarchical structure of information that is presented to a user in an organized manner and in a way that lets the user navigate in, and select from, that structure. Your application need only tell the SVN widget about the organization of the data and respond to SVN widget callbacks; the SVN widget is responsible for actually displaying the data.
Previous Next Contents Index
privacy and legal statement 5635PRO_007.HTML