![]() |
COLNEO Pro 1.0
|
GUI API interface.
Access to elements in the graphical user interface.
Object name: cnGuiAPI.
Functions | |
APPLICATION | |
| ApiJsonResponse | closeApplication () |
TREE VIEWS | |
| ApiJsonResponse | getDynamicColumns (QString &domainCode, QString &window) |
| ApiJsonResponse | setDynamicColumns (QString &domainCode, QString &window, QStringList &columns) |
STARTPAGE | |
| ApiJsonResponse | openStartPage () |
| ApiJsonResponse | closeStartPage () |
INFOHUB | |
| ApiJsonResponse | showLoginDialog () |
PROJECT | |
| ApiJsonResponse | newProject () |
| ApiJsonResponse | openProject (QString filepath=QString()) |
| ApiJsonResponse | saveProject () |
| ApiJsonResponse | saveProjectAs () |
| ApiJsonResponse | closeProject () |
| ApiJsonResponse | importFiles () |
WEBMODULES | |
| ApiJsonResponse | openUrl (QString &url, QString &target=QString()) |
GUI 3D VIEWER | |
| ApiJsonResponse | createViewpoint () |
MENU BAR | |
| ApiJsonResponse | menuBarSetConfiguration (QVariantMap configuration) |
| ApiJsonResponse | menuBarGetConfiguration () |
| ApiJsonResponse | menuBarReset () |
ACTIONS | |
| ApiJsonResponse | getAvailableActions () |
| ApiJsonResponse | triggerAction (QString &actionName, QVariantMap ¶ms=QVariantMap()) |
|
slot |
Closes the application.
|
slot |
...
|
slot |
Close ColneoPro start page.
|
slot |
Open 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 |
Show import dialog and call import methods.
|
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 |
...
|
slot |
Shows open file dialog, 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.
This function attempts to interpret the given url and open it using the appropriate system handler (web browser, file manager, etc.). The input can be a web URL or a local file path. The function automatically detects and normalizes missing URL schemes (e.g. http(s), file).
| url | A web URL or a local file/folder path. Missing URL schemes are added. Web URLs (http, https) are opened in the default web browser. File URLs (file) are opened in the Windows Explorer. |
| target | Optional UI target for opening the URL. If empty, the default system browser or file manager is used. Note: Custom targets are not yet implemented. |
|
slot |
Save current project, show SaveFileDialog if project was newly created and no file path is available.
|
slot |
Show save SaveFileDialog and save the project.
|
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. |
|
slot |
Shows the Login dialog.
Opens the COLNEO Infohub login dialog if the user is not already logged in (get access token).
|
slot |
Triggers an action.
| actionName | Name of the action |
| params | Optional parameters, depending on the action. Example: {
dockWidgetArea : 'left' | 'right' | 'top' | 'bottom' | 'float'
}
|