|
DAWorkbench 0.0.1
DAWorkbench API
|
界面相关的接口 更多...
#include <DAUIInterface.h>
类 | |
| class | PrivateData |
Public 成员函数 | |
| DAUIInterface (SARibbonMainWindow *m, DACoreInterface *c) | |
| SARibbonMainWindow * | mainWindow () const |
| 获取主窗口 | |
| virtual void | retranslateUi () |
| 发生语言变更时会调用此函数 | |
| void | registeAction (DAActionsInterface *ac) |
| void | registeExtend (DAUIExtendInterface *ex) |
| 注册扩展 | |
| void | registeCommand (DACommandInterface *cmd) |
| 注册命令接口 | |
| int | getExtendCount () const |
| 获取扩展的数量 | |
| DAUIExtendInterface * | getExtend (int index) |
| 获取扩展 | |
| DACommandInterface * | getCommandInterface () const |
| 获取命令接口 | |
| DAActionsInterface * | getActionInterface () const |
| 获取action管理器 | |
| virtual void | addInfoLogMessage (const QString &msg, bool showInStatusBar=true)=0 |
| virtual void | addWarningLogMessage (const QString &msg, bool showInStatusBar=true)=0 |
| virtual void | addCriticalLogMessage (const QString &msg, bool showInStatusBar=true)=0 |
| void | processEvents () const |
| 手动处理一下事件 | |
| QString | getExistingDirectory (const QString &title=QString(), const QString &dir=QString()) |
| virtual QMainWindow * | getMainWindow () const =0 |
| virtual DADockingAreaInterface * | getDockingArea ()=0 |
| virtual DARibbonAreaInterface * | getRibbonArea ()=0 |
| virtual DAStatusBarInterface * | getStatusBar ()=0 |
| virtual QJsonObject | getConfigValues (const QString &jsonConfig, QWidget *parent=nullptr, const QString &cacheKey=QString())=0 |
| virtual void | setDirty (bool on=true)=0 |
| void | setColorTheme (const DAColorTheme &th) |
| 设置程序主题 | |
| virtual DAColorTheme | getColorTheme () const |
| 获取程序主题 | |
Public 成员函数 继承自 DA::DABaseInterface | |
| DABaseInterface (DACoreInterface *c, QObject *par=nullptr) | |
| DACoreInterface * | core () const |
Protected 成员函数 | |
| bool | eventFilter (QObject *watched, QEvent *event) override |
界面相关的接口
界面相关的接口都继承此接口
| DAActionsInterface * DA::DAUIInterface::getActionInterface | ( | ) | const |
获取action管理器
|
virtual |
获取程序主题
| DACommandInterface * DA::DAUIInterface::getCommandInterface | ( | ) | const |
|
pure virtual |
在 DA::DAAppUI 内被实现.
| DAUIExtendInterface * DA::DAUIInterface::getExtend | ( | int | index | ) |
获取扩展
| index |
| int DA::DAUIInterface::getExtendCount | ( | ) | const |
获取扩展的数量
| SARibbonMainWindow * DA::DAUIInterface::mainWindow | ( | ) | const |
获取主窗口
| void DA::DAUIInterface::registeCommand | ( | DACommandInterface * | cmd | ) |
注册命令接口
| cmd |
| void DA::DAUIInterface::registeExtend | ( | DAUIExtendInterface * | ex | ) |
注册扩展
界面是由各个扩展组成,包括最原始的界面,是由DAAppDockingAreaInterface和DAAppRibbonAreaInterface, 这两个扩展组成
| ex |
|
virtual |
发生语言变更时会调用此函数
| void DA::DAUIInterface::setColorTheme | ( | const DAColorTheme & | th | ) |
设置程序主题
| th |