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

这个接口管理了AppRibbon区域的相关操作 更多...

#include <DARibbonAreaInterface.h>

类 DA::DARibbonAreaInterface 继承关系图:
DA::DAUIExtendInterface DA::DABaseInterface DA::DAAppRibbonArea

class  PrivateData
 

Public 成员函数

 DARibbonAreaInterface (DAUIInterface *u)
 构造函数,必须在主窗口之后构造
 
SARibbonBar * ribbonBar () const
 获取ribbonbar
 
QList< SARibbonCategory * > getCategorys () const
 获取所有标签
 
SARibbonCategory * getCategoryByObjectName (const QString &objname) const
 通过obj-name获取Category
 
SARibbonPanel * getPannelByObjectName (const QString &objname) const
 通过obj-name获取pannel(O(n))
 
- Public 成员函数 继承自 DA::DAUIExtendInterface
 DAUIExtendInterface (DAUIInterface *u)
 
DAUIInterfaceui () const
 
virtual void retranslateUi ()=0
 
- Public 成员函数 继承自 DA::DABaseInterface
 DABaseInterface (DACoreInterface *c, QObject *par=nullptr)
 
DACoreInterfacecore () const
 

详细描述

这个接口管理了AppRibbon区域的相关操作

通过这个接口能改变总体的显示 在da中固定的标签有固定的objectname,详细在APP中的DAAppRibbonArea定义 插件获取标签可以通过objectname判断是否是对应的内容,如主页标签的objectname=da-ribbon-category-main 插件可以通过获取到的SARibbonCategory*指针,的objectName函数进行判断哪个是主页标签

构造及析构函数说明

◆ DARibbonAreaInterface()

DA::DARibbonAreaInterface::DARibbonAreaInterface ( DAUIInterface u)

构造函数,必须在主窗口之后构造

注解
此接口的生命周期跟随SARibbonMainWindow,DAAppRibbonAreaInterface将作为SARibbonMainWindow的子对象
参数
mainwindow

成员函数说明

◆ getCategoryByObjectName()

SARibbonCategory * DA::DARibbonAreaInterface::getCategoryByObjectName ( const QString &  objname) const

通过obj-name获取Category

注解
运行复杂度为O(n)
参数
objname
返回
如果没找到,会返回nullptr

◆ getCategorys()

QList< SARibbonCategory * > DA::DARibbonAreaInterface::getCategorys ( ) const

获取所有标签

返回

◆ getPannelByObjectName()

SARibbonPanel * DA::DARibbonAreaInterface::getPannelByObjectName ( const QString &  objname) const

通过obj-name获取pannel(O(n))

注解
运行复杂度为O(n)
参数
objname
返回
如果没找到,会返回nullptr

◆ ribbonBar()

SARibbonBar * DA::DARibbonAreaInterface::ribbonBar ( ) const

获取ribbonbar

返回

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