![]() |
COLNEO Pro 1.0
|
Project API interface.
Register with "cnProjectAPI".
The Project API provides project related functions such as ...
Functions | |
PROJECT | |
ApiJsonResponse | getInfo () |
ApiJsonResponse | setInfo (QVariantMap &projectInfo) |
ApiJsonResponse | create (QVariantMap settings) |
ApiJsonResponse | open (QString filepath) |
ApiJsonResponse | saveAs (QString &filepath) |
ApiJsonResponse | archive (QString &filepath) |
ApiJsonResponse | getEvaluation () |
ApiJsonResponse | getTemplates () |
ApiJsonResponse | getRecentProjects () |
ApiJsonResponse | removeRecentProject (QString &filename) |
MACROS | |
ApiJsonResponse | getMacros () |
ApiJsonResponse | getMacroById (QString &id) |
ApiJsonResponse | createMacro (QVariantMap ¯oAsJson) |
ApiJsonResponse | updateMacro (QString &id, QVariantMap ¯oAsJson) |
ApiJsonResponse | deleteMacro (QString &id) |
ApiJsonResponse | runMacro (QString &id) |
INFOHUB | |
ApiJsonResponse | getInfohubSettings () |
ApiJsonResponse | setInfohubSettings (QVariantMap &settings) |
Events | |
macroFinished (QString ¯oId, bool success) | |
Public Member Functions | |
Constructors/Destructor | |
Interface IApiObject | |
QString & | getApiObjectName () |
|
slot |
Creates a project archive (zip).
filepath |
|
slot |
Create a new, empty project.
settings | {
name: "",
code: "",
description: ""
}
|
|
slot |
Create a new macro. If no ID is specified, it is generated automatically.
macroAsJson | Object holding the data {
name: "MyMacro",
desc: "Set all object visible in domain design",
code: "cnCoreAPI.setVisibleAll(true, \"geo\")",
actionName: ""
}
|
|
slot |
...
id |
QString & getApiObjectName | ( | ) |
|
slot |
...
|
slot |
Get project information.
|
slot |
Get infohub settings such as scope and project shortid,
|
slot |
Get macro data with specified ID.
id | ID of macro. |
|
slot |
Get list of available macros in project.
|
slot |
Get recent project as list.
|
slot |
...
|
signal |
Set visible columns from bookmark.
bkmId | |
domainCode |
Create a bookmark in the given tree structure.
domainCode | |
bookmarkAsJson |
Delete the bookmark with the given ID. The bookmarks for each tree structure are searched for the ID.
id |
|
slot |
Open the project from a given file path.
filepath |
|
slot |
Removes a recent project with the given filename from the recent project list
|
slot |
Run (evaluates) a macro
id | ID of macro. |
|
slot |
Saves the project under the current file path.
|
slot |
Set Project Information.
|
slot |
Set infohub settings such as scope and project shortid
settings | {
'scope' : ' ... ',
'project_shortid' : ' ... '
}
|
|
slot |
Update a macro. The ID cannot be changed!
id | |
macroAsJson |