Manage the command ui. 更多...
#include <APIUiCommandManager.h>
Public 成员函数 | |
long | GetUiCommandCount () const |
UiCommand | GetUiCommand (int idx) const |
UiCommand | FindUiCommand (const String &id) const |
long | GetToolBarCount () const |
UiToolBar | GetUiToolBar (int idx) const |
UiToolBar | FindUiToolBar (const String &name) const |
bool | LoadFromFile (const Path &fileName) |
String | Translate (const String &str) const |
void | SetLocalString (const String &str, const String &local) |
Public 成员函数 继承自 AnyCAD::API::Object | |
String | GetObjectClassId () const |
StringList | ListParentClassIds () const |
Manage the command ui.
TODO:
long AnyCAD::API::UiCommandManager::GetToolBarCount | ( | ) | const |
Get the UiToolBar count.
UiCommand AnyCAD::API::UiCommandManager::GetUiCommand | ( | int | idx | ) | const |
long AnyCAD::API::UiCommandManager::GetUiCommandCount | ( | ) | const |
Get UiCommand count.
UiToolBar AnyCAD::API::UiCommandManager::GetUiToolBar | ( | int | idx | ) | const |
Get the ToolBar by index.
bool AnyCAD::API::UiCommandManager::LoadFromFile | ( | const Path & | fileName | ) |
Get the ToolBar by index.
set local string for string.
str | the string. |
local | the local string. |
translate str to local language.
str | the string to translate. |