编辑器管理类 更多...
#include <APIEditorManager.h>
Public 成员函数 | |
bool | GetExitWithESC () const |
void | SetExitWithESC (bool bEnabled) |
String | GetCurEditorId () const |
void | SetDefaultEditorId (const String &eidtorId) |
String | GetDefaultEditorId () const |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
编辑器管理类
用于管理编辑器
String AnyCAD::API::EditorManager::GetCurEditorId | ( | ) | const |
获取当前的编辑器ID。
String AnyCAD::API::EditorManager::GetDefaultEditorId | ( | ) | const |
获取默认的编辑器ID。
bool AnyCAD::API::EditorManager::GetExitWithESC | ( | ) | const |
判断是否启用按ESC键退出当前编辑器。
void AnyCAD::API::EditorManager::SetDefaultEditorId | ( | const String & | eidtorId | ) |
设置默认的编辑器ID。当退出当前的Editor后,启用该ID的Editor。
eidtorId | Editor的ID |
void AnyCAD::API::EditorManager::SetExitWithESC | ( | bool | bEnabled | ) |
设置是否启用按ESC键退出当前编辑器。
bEnabled | 设置true则启用。 |