![]() |
COLNEO Pro 1.2
|
GUI API interface.
Access to elements in the graphical user interface.
Object name: cnGuiAPI.
Events | |
SIGNALS/NOTIFICATIONS | |
| markedItemsChanged (QStringList domain, QStringList addedObjectIds, QStringList removedObjectIds) | |
Public Member Functions | |
| setObjectTreeSelectionModels (ObjectTreeSelectionModels &objectTreeSelectionModels) | |
Interface IApiObject | |
|
slot |
Show dialog to archgive project as cnpzip.
|
slot |
Close ColneoPro start page.
|
slot |
Opens a dialog to create a new viewpoint.
|
slot |
Get list of available actions.
|
slot |
Gets the dynamic (user-defined) columns for a given domain and tree view.
Each domain contains a least two tree views: the model tree and the SmartSets tree.
| domainCode | Domain short code (e.g. "geo"). A list of available domains can be found here. |
| window | Identifies the target view. Possible values:
|
|
slot |
Gets the object IDs currently marked in the object tree views of the requested domains.
Marking refers to rows selected in a tree view and is independent of the selected object status managed by the core API. Duplicate object IDs are omitted from the result.
| domains | Domain short codes to query, for example geo, act, or iss. Pass all to query all domain object tree views. An empty list returns an empty result. |
JavaScript example:
|
slot |
Show import dialog and call import methods.
|
signal |
Emitted when the marking in a domain's object tree view changes.
Marking refers to the rows selected in the tree view and is independent of the selected object status managed by the core API. The object ID lists describe the change since the previous emission, not the complete marking. An ID occurs at most once in each list. Either list can be empty.
| domain | List containing the short code of the affected domain, for example geo, act, or iss. |
| addedObjectIds | IDs of objects newly added to the marking. |
| removedObjectIds | IDs of objects removed from the marking. |
|
slot |
Return the current configuration of the menubar as JSON-Object.
|
slot |
Reset the menubar to the default configuration.
|
slot |
Changes the menubar according to the given configuration
| configuration |
|
slot |
Creates an empty project.
|
slot |
Shows an OpenFileDialog, if no file path is specified or 'filepath' is not a valid file path, and opens selected project. Unlike the cnProjectAPI.open(string) function, a progress dialog may be displayed.
| filepath | Full file path |
|
slot |
Open ColneoPro start page.
|
slot |
Opens a web URL or local file/folder using the platform desktop services.
Explicit non-file URLs are opened using the appropriate system handler. A file URL, a path beginning with a slash, or an input without a URL scheme is treated as a project-relative file. Absolute file paths are treated as local paths. UNC paths retain their absolute network path. Relative paths may resolve outside the project directory, and absolute and UNC paths are accepted without a project-directory restriction. Existing files and directories are opened; directories use the platform file browser.
| url | An explicit web URL or a project file path. |
| target | Optional UI target for opening the URL. If empty, the default system browser or file manager is used. If target is "webmodule", the page is opened in the webmodule browser. |
|
slot |
Executes a clash run through ClashManager while a modal desktop progress dialog consumes the project ProgressManager updates. Returns the same response as CoreAPI::executeClashRun().
|
slot |
Save project, show a SaveFileDialog if project was not saved before (newly created and no file path is available).
|
slot |
Shows a SaveFileDialog and saves the project.
|
slot |
Opens a native file dialog in the requested directory.
| initialDirectory | Absolute directory shown when the dialog opens. |
|
slot |
Sets the dynamic (user-defined) columns of a tree view in a domain.
| domainCode | Domain short code (e.g. "geo"). A list of available domains can be found here. |
| window | Identifies the target view. Possible values:
|
| columns | List of columns (property type ids) which should be shown. An empty list clears all dynamic columns. |
| setObjectTreeSelectionModels | ( | ObjectTreeSelectionModels & | objectTreeSelectionModels | ) |
Connects the selection models of the domain object tree views to the API signal.
|
slot |
Open dialogue which shows the webb app 'connect' to connect this CN pro project to a coordination model on the CN infohub
|
slot |
Shows the Login dialog.
Opens the COLNEO Infohub login dialog if the user is not already logged in (get access token).
|
slot |
Shows the coordination model synchronization dialog.
|
slot |
Triggers an action.
| actionName | Name of the action |
| params | Optional parameters, depending on the action. Example: {
dockWidgetArea : 'left' | 'right' | 'top' | 'bottom' | 'float'
}
|