DtkWidget 5.6.0.2
DTK Widget module
Public 槽 | Public 成员函数 | 所有成员列表
Dtk::Widget::DSettingsDialog类 参考

为使用DSettings的Dtk程序提供一个通用的设置对话框,这个对话框可以通过json配置文件来自动生成. 更多...

类 Dtk::Widget::DSettingsDialog 继承关系图:
Inheritance graph
[图例]
Dtk::Widget::DSettingsDialog 的协作图:
Collaboration graph
[图例]

Public 槽

void updateSettings (DTK_CORE_NAMESPACE::DSettings *settings)
 
void updateSettings (const QByteArray &translateContext, DTK_CORE_NAMESPACE::DSettings *settings)
 
void setGroupVisible (const QString &groupKey, bool visible)
 
- Public 槽 继承自 Dtk::Widget::DAbstractDialog
void moveToCenter ()
 DAbstractDialog::moveToCenter moves the dialog to the center of the screen or its parent widget. 更多...
 
void moveToTopRight ()
 DAbstractDialog::moveToTopRight moves the dialog to the top right of the screen or its parent widget. 更多...
 
void moveToCenterByRect (const QRect &rect)
 DAbstractDialog::moveToCenterByRect moves the dialog to the center of the rect. rect is the target rect. 更多...
 
void moveToTopRightByRect (const QRect &rect)
 DAbstractDialog::moveToTopRightByRect moves the dialog to the top right corner of the rect. rect is the target rect. 更多...
 
void setDisplayPosition (DisplayPosition displayPosition)
 DAbstractDialog::setDisplayPosition sets the position of the dialog. displayPosition is the target position. 更多...
 

Public 成员函数

 DSettingsDialog (QWidget *parent=nullptr)
 
DSettingsWidgetFactorywidgetFactory () const
 获取当前对话框使用的控件构造工厂。 更多...
 
bool groupIsVisible (const QString &groupKey) const
 
void setResetVisible (bool visible)
 DSettingsDialog::setResetVisible 设置恢复默认设置按钮是否显示 visible true显示 false隐藏 更多...
 
void scrollToGroup (const QString &groupKey)
 DSettingsDialog::scrollToGroup 使对话框跳转到指定的 group 项目 groupKey DSettings中 groupKeys 以及其子项 childGroups 更多...
 
void setIcon (const QIcon &icon)
 DSettingsDialog::setIcon 设置标题栏的图标 QIcon icon 设置的 Icon
 
- Public 成员函数 继承自 Dtk::Widget::DAbstractDialog
 DAbstractDialog (QWidget *parent=nullptr)
 DAbstractDialog::DAbstractDialog constructs a DAbstractDialog instance. parent is the parent widget to be used. 更多...
 
 DAbstractDialog (bool blurIfPossible, QWidget *parent=nullptr)
 
DisplayPosition displayPosition () const
 DAbstractDialog::displayPosition 更多...
 
void move (const QPoint &pos)
 
void move (int x, int y)
 
void setGeometry (const QRect &rect)
 
void setGeometry (int x, int y, int width, int height)
 

额外继承的成员函数

- Public 类型 继承自 Dtk::Widget::DAbstractDialog
enum  DisplayPosition { Center , TopRight }
 
enum  DisplayPostion { DisplayCenter = Center , DisplayTopRight = TopRight }
 
- 信号 继承自 Dtk::Widget::DAbstractDialog
void sizeChanged (QSize size)
 sizeChanged is emitted when the size of this dialog changed. size is the target size.
 
- Protected 成员函数 继承自 Dtk::Widget::DAbstractDialog
void mouseMoveEvent (QMouseEvent *event) Q_DECL_OVERRIDE
 
void mousePressEvent (QMouseEvent *event) Q_DECL_OVERRIDE
 
void mouseReleaseEvent (QMouseEvent *event) Q_DECL_OVERRIDE
 
void resizeEvent (QResizeEvent *event) Q_DECL_OVERRIDE
 
void showEvent (QShowEvent *event) override
 
 DAbstractDialog (DAbstractDialogPrivate &dd, QWidget *parent=nullptr)
 
- 属性 继承自 Dtk::Widget::DAbstractDialog
DisplayPosition displayPosition
 

详细描述

为使用DSettings的Dtk程序提供一个通用的设置对话框,这个对话框可以通过json配置文件来自动生成.

\inmodule dtkwidget

DSettingsDialog provide an common setting ui for deepin style application. It's depend Dtk::Widget::DSettingsWidgetFactory to auot build ui compent from json file.

参见
Dtk::Widget::DSettingsWidgetFactory
Dtk::Core::DSettings

成员函数说明

◆ scrollToGroup()

void Dtk::Widget::DSettingsDialog::scrollToGroup ( const QString groupKey)

DSettingsDialog::scrollToGroup 使对话框跳转到指定的 group 项目 groupKey DSettings中 groupKeys 以及其子项 childGroups

注解
请在对话框 show 以后调用

◆ setResetVisible()

void Dtk::Widget::DSettingsDialog::setResetVisible ( bool  visible)

DSettingsDialog::setResetVisible 设置恢复默认设置按钮是否显示 visible true显示 false隐藏

注解
请在 updateSettings() 后调用

◆ widgetFactory()

DSettingsWidgetFactory * Dtk::Widget::DSettingsDialog::widgetFactory ( ) const

获取当前对话框使用的控件构造工厂。

Return the widget build factory of this dialog.

每一个设置对话框都有自己的构造工厂实例,这些实例并不会共享数据。 Every instance of DSettingDialog has it own widgetfactory.

返回

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