SARibbon 2.5.2
SARibbon wiki
载入中...
搜索中...
未找到
SARibbonContextCategory类 参考

#include <SARibbonContextCategory.h>

类 SARibbonContextCategory 继承关系图:

class  PrivateData
 

Public 槽

void hide ()
 Hide the context category
 
void show ()
 Show the context category
 

信号

void categoryPageAdded (SARibbonCategory *category)
 
void categoryPageRemoved (SARibbonCategory *category)
 
void contextTitleChanged (const QString &title)
 
void categoryTitleChanged (SARibbonCategory *category, const QString &title)
 

Public 成员函数

 SARibbonContextCategory (QWidget *parent=nullptr)
 Constructor for SARibbonContextCategory
 
 ~SARibbonContextCategory ()
 Destructor for SARibbonContextCategory
 
SARibbonCategoryaddCategoryPage (const QString &title)
 Add a category page with title
 
void addCategoryPage (SARibbonCategory *category)
 Add an existing category page
 
int categoryCount () const
 Get the number of managed category pages
 
void setId (const QVariant &id)
 Set the context ID
 
QVariant id () const
 Get the context ID
 
void setContextColor (const QColor color)
 Set the context color
 
QColor contextColor () const
 Get the context color
 
QString contextTitle () const
 Get the context title
 
void setContextTitle (const QString &contextTitle)
 Set the context title
 
SARibbonCategorycategoryPage (int index)
 Get the category page at the specified index
 
QList< SARibbonCategory * > categoryList () const
 Get all SARibbonCategory objects
 
bool takeCategory (SARibbonCategory *category)
 Remove a category from management
 
bool isHaveCategory (SARibbonCategory *category) const
 Check if the context manages this category
 

Protected 成员函数

QWidget * parentWidget () const
 Get the parent widget
 
virtual bool eventFilter (QObject *watched, QEvent *e) override
 

详细描述

成员函数说明

◆ addCategoryPage() [1/2]

SARibbonCategory * SARibbonContextCategory::addCategoryPage ( const QString &  title)

Add a category page with title

◆ addCategoryPage() [2/2]

void SARibbonContextCategory::addCategoryPage ( SARibbonCategory category)

Add an existing category page

◆ categoryList()

QList< SARibbonCategory * > SARibbonContextCategory::categoryList ( ) const

Get all SARibbonCategory objects

◆ categoryPage()

SARibbonCategory * SARibbonContextCategory::categoryPage ( int  index)

Get the category page at the specified index

◆ categoryPageAdded

void SARibbonContextCategory::categoryPageAdded ( SARibbonCategory category)
signal

◆ categoryPageRemoved

void SARibbonContextCategory::categoryPageRemoved ( SARibbonCategory category)
signal

◆ categoryTitleChanged

void SARibbonContextCategory::categoryTitleChanged ( SARibbonCategory category,
const QString &  title 
)
signal

◆ contextTitle()

QString SARibbonContextCategory::contextTitle ( ) const

Get the context title

◆ contextTitleChanged

void SARibbonContextCategory::contextTitleChanged ( const QString &  title)
signal

◆ hide

void SARibbonContextCategory::hide ( )
slot

Hide the context category

◆ isHaveCategory()

bool SARibbonContextCategory::isHaveCategory ( SARibbonCategory category) const

Check if the context manages this category

◆ setContextTitle()

void SARibbonContextCategory::setContextTitle ( const QString &  contextTitle)

Set the context title

◆ show

void SARibbonContextCategory::show ( )
slot

Show the context category

◆ takeCategory()

bool SARibbonContextCategory::takeCategory ( SARibbonCategory category)

Remove a category from management


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