DAWorkbench 0.0.1
DAWorkbench API
载入中...
搜索中...
未找到
DA::DAUIInterface类 参考abstract

界面相关的接口 更多...

#include <DAUIInterface.h>

类 DA::DAUIInterface 继承关系图:
DA::DABaseInterface DA::DAAppUI

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
 获取扩展的数量
 
DAUIExtendInterfacegetExtend (int index)
 获取扩展
 
DACommandInterfacegetCommandInterface () const
 获取命令接口
 
DAActionsInterfacegetActionInterface () 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 DADockingAreaInterfacegetDockingArea ()=0
 
virtual DARibbonAreaInterfacegetRibbonArea ()=0
 
virtual DAStatusBarInterfacegetStatusBar ()=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)
 
DACoreInterfacecore () const
 

Protected 成员函数

bool eventFilter (QObject *watched, QEvent *event) override
 

详细描述

界面相关的接口

界面相关的接口都继承此接口

成员函数说明

◆ getActionInterface()

DAActionsInterface * DA::DAUIInterface::getActionInterface ( ) const

获取action管理器

返回

◆ getColorTheme()

DAColorTheme DA::DAUIInterface::getColorTheme ( ) const
virtual

获取程序主题

返回

◆ getCommandInterface()

DACommandInterface * DA::DAUIInterface::getCommandInterface ( ) const

获取命令接口

参见
registeCommand
返回
如果没有注册命令接口,返回nullptr

◆ getConfigValues()

virtual QJsonObject DA::DAUIInterface::getConfigValues ( const QString &  jsonConfig,
QWidget *  parent = nullptr,
const QString &  cacheKey = QString() 
)
pure virtual

DA::DAAppUI 内被实现.

◆ getExtend()

DAUIExtendInterface * DA::DAUIInterface::getExtend ( int  index)

获取扩展

参数
index
返回
如果超出索引范围,返回nullptr

◆ getExtendCount()

int DA::DAUIInterface::getExtendCount ( ) const

获取扩展的数量

返回

◆ mainWindow()

SARibbonMainWindow * DA::DAUIInterface::mainWindow ( ) const

获取主窗口

返回
返回主窗口指针

◆ registeCommand()

void DA::DAUIInterface::registeCommand ( DACommandInterface cmd)

注册命令接口

参数
cmd

◆ registeExtend()

void DA::DAUIInterface::registeExtend ( DAUIExtendInterface ex)

注册扩展

界面是由各个扩展组成,包括最原始的界面,是由DAAppDockingAreaInterface和DAAppRibbonAreaInterface, 这两个扩展组成

参数
ex

◆ retranslateUi()

void DA::DAUIInterface::retranslateUi ( )
virtual

发生语言变更时会调用此函数

参见
DAAppUIInterface 的
retranslateUi 不做任何动作,其继承的类可以通过重载此函数实现翻译

◆ setColorTheme()

void DA::DAUIInterface::setColorTheme ( const DAColorTheme th)

设置程序主题

参数
th

该类的文档由以下文件生成: