List of All Members for ConsoleAppender
+This is the complete list of members for Dtk::Core::ConsoleAppender, including inherited members.
+-
+
- append(const QDateTime &, int , const char *, int , const char *, const QString &, const QString &) +
From 8c95f1815a98bfd32f10f2fceb0d47e4c9c0febd Mon Sep 17 00:00:00 2001
From: justforlxz This is the complete list of members for Dtk::Core::ConsoleAppender, including inherited members. ConsoleAppender is the simple appender that writes the log records to the std::cerr output stream. More... ConsoleAppender uses "[%{type:-7}] <%{function}> %{message}\n" as a default output format. It is similar to the AbstractStringAppender but doesn't show a timestamp. You can modify ConsoleAppender output format without modifying your code by using Writes the log record to the std::cerr stream. The timeStamp parameter indicates the time stamp. The logLevel parameter describes the LogLevel. The file parameter is the current file name. The line parameter indicates the number of lines to output. The function parameter indicates the function name to output. The category parameter indicates the log category. The message parameter indicates the output message. See also AbstractStringAppender::format(). This is the complete list of members for Dtk::Core::DConfigBackend, including inherited members. 配置后端的抽象接口. More... 所有DConfig使用的配置后端都继承此类,用户可以继承此类实现自己的配置后端. See also DConfig::isValid(). See also DConfig::keyList(). 初始化后端 appid 管理的配置信息key值,默认为应用程序名称 后端配置的唯一标识 See also value() and DConfig::setValue(). See also setValue() and DConfig::value(). This is the complete list of members for Dtk::Core::DDesktopEntry, including inherited members. Handling desktop entry files. More... DDesktopEntry provide method for handling XDG desktop entry read and write. The interface of this class is similar to QSettings. For more details about the spec itself, please refer to: https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html Get a list of all section groups inside the desktop entry. If sorted is set to true, the returned result will keep the order as-is when reading the entry file. Returns all available section groups. Returns the localized string value of the "Comment" key under "Desktop Entry" section. It's equivalent to calling localizedValue("Comment"). Returns Returns the localized string value of the "Comment" key under "Desktop Entry" section. See also localizedValue(). Check if the desktop entry file have the given section contains the given key Returns true if the desktop entry contains the key in section; otherwise returns false. Display name specially for DDE applications. This will check "X-Deepin-Vendor" and will return the localized string value of "GenericName" if "X-Deepin-Vendor" is "deepin", or it will return the localized string value of "Name". Returns Returns the display name specially for DDE applications. See also localizedValue(), name(), and genericName(). Returns the localized string value of the "GenericName" key under "Desktop Entry" section. It's equivalent to calling localizedValue("GenericName"). It will NOT fallback to "Name" if "GenericName" is not existed. Returns Returns the localized string value of the "GenericName" key under "Desktop Entry" section. See also localizedValue(), name(), and ddeDisplayName(). Get a list of all section keys inside the given section. Returns all available section keys. Returns the localized string value associated with the given key and localeKey in section. If the given localeKey can't be found, it will fallback to "C", if still cannot found, will fallback to the key without localeKey. If the entry contains no item with the key, the function returns a constructed defaultValue. Returns Returns the localized string value associated with the given key and localeKey in section. See also rawValue(), stringValue(), and stringListValue(). Returns the localized string value associated with the given key and locale in section. If the given locale can't be found, it will fallback to "C", if still cannot found, will fallback to the key without a locale key. If the entry contains no item with the key, the function returns a default-constructed value. Returns Returns the localized string value associated with the given key and locale in section. See also rawValue(), stringValue(), and stringListValue(). Returns the localized string value of the "Name" key under "Desktop Entry" section. It's equivalent to calling localizedValue("Name"). Returns Returns the localized string value of the "Name" key under "Desktop Entry" section. See also localizedValue(), genericName(), and ddeDisplayName(). Returns the raw string value associated with the given key in section. If the entry contains no item with the key, the function returns a constructed defaultValue. Returns Returns the raw string value associated with the given key in section. See also stringValue(), localizedValue(), and stringListValue(). Write back data to the desktop entry file. Returns true if write success; otherwise returns false. Get data parse status Returns Returns a status code indicating the first error that was met by DDesktopEntry, or QSettings::NoError if no error occurred. Be aware that DDesktopEntry delays performing some operations. Returns a list of strings associated with the given key in the given section. If the entry contains no item with the key, the function returns a empty string list. Returns Returns a list of strings associated with the given key in the given section. See also rawValue(), stringValue(), and localizedValue(). Returns the unescaped string value associated with the given key in section. If the entry contains no item with the key, the function returns a constructed defaultValue. Returns Returns the unescaped string value associated with the given key in section. See also rawValue(), localizedValue(), and stringListValue(). This is the complete list of members for Dtk::Core::DDiskSizeFormatter, including inherited members. DDiskSizeFormatter 是用来获取磁盘容量单位的类, 通过枚举值. More... 获取不同类型磁盘容量的单位 磁盘容量单位的枚举 DDiskSizeFormatter的构造函数 设置当前的单位转换比率 rate 转换比率 Returns DDiskSizeFormatter 返回 DDiskSizeFormatter 对象 返回当前的单位转换比率 返回最大磁盘容量单位的枚举 返回最小磁盘容量单位的枚举 根据枚举返回对应单位的字符串 unitId DDiskSizeFormatter::DiskUnits 的枚举值 Returns QString 对应单位的字符串 This is the complete list of members for Dtk::Core::DFileWatcherManager, including inherited members. The DFileWatcherManager class can help you manage file watchers and get signal when file got changed. More... 为路径 filePath 创建 DFileWatcher 并将其添加到 DFileWatcherManager 中. Add file watcher for filePath to the file watcher manager. Returns 被创建并添加到 DFileWatcherManager 的 DFileWatcher Returns The file watcher which got created and added into the file watcher manager. 从当前 DFileWatcherManager 中移除监视 filePath 的 DFileWatcher. Remove file watcher for filePath from the file watcher manager. This is the complete list of members for Dtk::Core::DLogManager, including inherited members. DLogManager is the deepin user application log manager. More... Return the path file log storage. DLogManager::getlogFilePath 获取日志文件路径 默认日志路径是 ~/.cache/organizationName/applicationName.log 如果获取 HOME 环境变量失败将不写日志 See also registerFileAppender. Registers the appender to write the log records to the Console. See also registerFileAppender. Registers the appender to write the log records to the file. See also getlogFilePath and registerConsoleAppender. DLogManager::setlogFilePath 设置日志文件路径 logFilePath 日志文件路径 如果设置的文件路进不是文件路径将什么都不做,输出一条警告 同 Q_PRIVATE_SLOT,用在继承了 QObject 的公开类中,在公开类中定一个槽函数,且函数 必须在私有类中有实现。用这个方式定义的槽函数无法被直接调用,只能用于 QObject::connect 使用 SIGNAL 和 SLOT 的方式连接信号,或者使用 QMetaObject::invokeMethod 调用。 一般来讲,这个槽函数应该只在类内部使用,外界不应该通过任何方式来调用它。 同 Q_PRIVATE_SLOT,用在继承了 QObject 的公开类中,在公开类中定一个槽函数,且函数 必须在私有类中有实现。用这个方式定义的槽函数无法被直接调用,只能用于 QObject::connect 使用 SIGNAL 和 SLOT 的方式连接信号,或者使用 QMetaObject::invokeMethod 调用。 一般来讲,这个槽函数应该只在类内部使用,外界不应该通过任何方式来调用它。 例子: a.h This is the complete list of members for Dtk::Core::QSettingBackend, including inherited members. Storage DSetttings to an QSettings. More... Save data to filepath with QSettings::NativeFormat format. filepath is path to storage data. parent Set value of key to QSettings key value Trigger DSettings to save option value to QSettings Get value of key from QSettings key Returns List all keys of QSettings Returns See also Dtk, Dtk::Gui, and Dtk::Widget. ConsoleAppender is the simple appender that writes the log records to the std::cerr output stream. More... 配置后端的抽象接口. More... Handling desktop entry files. More... DDiskSizeFormatter 是用来获取磁盘容量单位的类, 通过枚举值. More... The DFileWatcherManager class can help you manage file watchers and get signal when file got changed. More... DLogManager is the deepin user application log manager. More... This is the complete list of members for Dtk::Gui::DFileDrag, including inherited members. 继承自QDrag,一般在文件拖拽发送方 mouseMoveEvent 中发起拖拽,设置发送数据 和 DFileDragServer 配合使用. More... 继承自QDrag,一般在文件拖拽发送方 mouseMoveEvent 中发起拖拽,设置发送数据 和 DFileDragServer 配合使用. More... See also Dtk::Gui::DFileDragServer. 信号会在接收方调用 setTargetUrl 时被发送. 可以用于获取被拖拽至的目标目录 url 发生改变的目标链接. DFileDrag::setMimeData data 发起拖拽文件前设置发送数据接口 DFileDrag::targetUrl Returns 返回拖拽文件接收方设置的接收路径 This is the complete list of members for Dtk::Gui::DFileDragClient, including inherited members. progress 当前进度 信号会在当前进度变化时被发送. 信号会在发送方析构销毁前被发送. Note: DFileDragClient 收到后会自删除(deletelater),因此不用去管理 new 出来的 DFileDragClient state 改变后的新状态 信号会在当前状态变化时被发送. DFileDragClient::checkMimeData data Returns 包含 DND_MIME_PID 格式的数据时返回 true,否则返回 false Note: 通常在接收拖放数据的应用的dropEvent(QDropEvent *event)函数中检测当前 event->mimeData() 是否是 DFileDrag Note: 通常在接收拖放数据的应用的dropEvent(QDropEvent *event)函数中检测当前 event->mimeData() 是否是 DFileDrag DFileDragClient::progress Returns 返回当前拖拽的进度 DFileDragClient::setTargetData data 拖放时传入的data,用于获取和发送数据的应用dbus通讯需要的一些信息 key value Note: 向文件发送方设置自定义数据 DFileDragClient::setTargetUrl data url Note: 告知文件发送方拖拽目标路径 DFileDragClient::state Returns 返回当前状态,见 DFileDragState This is the complete list of members for Dtk::Gui::DForeignWindow, including inherited members. 继承于 QWindow,支持 QWindow::geometry QWindow::x QWindow::y QWindow::width QWindow::height QWindow::title QWindow::flags QWindow::visibility QWindow::type QWindow::windowStates QWindow::windowState 等接口的使用,另外扩展 增加了一部分接口,方面更加详细的获取窗口信息。依赖于 dxcb 插件,在未加载 dxcb 插件的应用中使用时结果未知 继承于 QWindow,支持 QWindow::geometry QWindow::x QWindow::y QWindow::width QWindow::height QWindow::title QWindow::flags QWindow::visibility QWindow::type QWindow::windowStates QWindow::windowState 等接口的使用,另外扩展 增加了一部分接口,方面更加详细的获取窗口信息。依赖于 dxcb 插件,在未加载 dxcb 插件的应用中使用时结果未知 See also DWindowManagerHelper::currentWorkspaceWindows, Dtk::Widget::DApplication::loadDXcbPlugin, and Dtk::Widget::DApplication::isDXcbPlatform. 窗口所属进程的 pid Note: 只读 _NET_WM_PID Access functions: Notifier signal: 窗口 WM_CLASS 的值 Note: 只读 WM_CLASS Access functions: Notifier signal: See also DWindowManagerHelper::currentWorkspaceWindows, Dtk::Widget::DApplication::loadDXcbPlugin, and Dtk::Widget::DApplication::isDXcbPlatform. 直接构造一个 DForeignWindow 对象和使用 QWindow 对象没有区别. parent See also DForeignWindow::fromWinId. 信号会在 pid 属性的值改变时被发送. Note: Notifier signal for property pid. See also DForeignWindow::pid. 信号会在 wmClass 属性改变时被发送. Note: Notifier signal for property wmClass. See also DForeignWindow::wmClass. DForeignWindow::fromWinId. 使用这个窗口id创建一个 DForeignWindow 对象,此对象不会被加到 QGuiApplication::allWindows 中。一般应用在需要获取一个本地窗口信息的场景。示例: 先启动应用 a 再启动应用 b 在应用 b 启动后将看到如下输出: 当改变应用 a 中的窗口宽度时,在应用 b 中会看到宽度的输出 id Returns Warning: 不要尝试对由本应用创建的窗口调用此接口,可能会导致窗口行为发生不可逆转的变化 DPalette提供了修改的 QPalette 类. More... DPalette提供了修改的 QPalette 类. More... 实质性的功能皆在dxcb插件中实现,此插件目前只 支持X11平台,在其它平台上使用这个类不会有任何效果。关于dxcb:它介于Qt应用和Qt xcb平台 插件之间,通过覆写xcb插件中某些对象的虚函数来改变它的一些行为,本质上来讲是Qt xcb插件的 扩展,在X11平台上为DTK应用提供了一些改变窗口效果的功能(比如自定义窗口的边框)、其它和平 台密切相关的实现(比如修复Qt应用在X11平台的一些bug),不能脱离Qt xcb插件独立运行。dxcb 通过重载 QPlatformNativeInterface 提供接口,DPlatformHandle 中使用 QGuiApplication::platformFunction 调用这些接口。Application、dxcb、qt xcb 之间 的关系: 实质性的功能皆在dxcb插件中实现,此插件目前只 支持X11平台,在其它平台上使用这个类不会有任何效果。关于dxcb:它介于Qt应用和Qt xcb平台 插件之间,通过覆写xcb插件中某些对象的虚函数来改变它的一些行为,本质上来讲是Qt xcb插件的 扩展,在X11平台上为DTK应用提供了一些改变窗口效果的功能(比如自定义窗口的边框)、其它和平 台密切相关的实现(比如修复Qt应用在X11平台的一些bug),不能脱离Qt xcb插件独立运行。dxcb 通过重载 QPlatformNativeInterface 提供接口,DPlatformHandle 中使用 QGuiApplication::platformFunction 调用这些接口。Application、dxcb、qt xcb 之间 的关系: Warning: 使用此工具前要确保应用加载了dxcb插件 Warning: 因为 QGuiApplication::platformFunction 是在 Qt 5.4.0 版本引入的新接口, 所以 DPlatformHandle 不支持 Qt 5.4.0 以下版本。 Warning: 因为 QGuiApplication::platformFunction 是在 Qt 5.4.0 版本引入的新接口, 所以 DPlatformHandle 不支持 Qt 5.4.0 以下版本。 See also Dtk::Gui::DPlatformHandle::isDXcbPlatform, QGuiApplication::platformNativeInterface, Dtk::Widget::DMainWindow, and DWindowManagerHelper. See also Dtk::Gui::DPlatformHandle::isDXcbPlatform, QGuiApplication::platformNativeInterface, Dtk::Widget::DMainWindow, and DWindowManagerHelper. This is the complete list of members for Dtk::Gui::DPlatformTheme, including inherited members. This is the complete list of members for Dtk::Gui::DRegionMonitor, including inherited members. DRegionMonitor::RegisterdFlag 定义了 DRegionMonitor 监听标志。 The RegisterdFlags type is a typedef for QFlags<RegisterdFlag>. It stores an OR combination of RegisterdFlag values. 监听模式属性. 监听模式,需要注意 DRegionMonitor::Motion 监听鼠标移动会影响性能,默认包含,如果 需要可通过此函数去掉 DRegionMonitor::Motion . registerdFlagChanged 信号会在监听标志 registerdFlags 被改变的时候被触发. flags 监听模式. Access functions: Notifier signal: This is the complete list of members for Dtk::Gui::DTaskbarControl, including inherited members. 如果想隐藏或者不使用进度条和任务数的显示,可以使用setProgress,setCounter 传递false隐藏相关显示. 如果想隐藏或者不使用进度条和任务数的显示,可以使用setProgress,setCounter 传递false隐藏相关显示. brief DTaskbarControl::counter 获取当前任务数 return 任务数量 See also setCounter(). DTaskbarControl::counterVisible 返回任务数是否可见 Returns true可见 false不可见 See also setCounterVisible(). DTaskbarControl::setCounter 设置当前任务数量 counterVisible true任务数可见 false任务数不可见 counter See also counter(). DTaskbarControl::setCounterVisible 设置任务数是否可见 counterVisible true可见 false不可见 如果需要隐藏,建议设置counter的值为0并且设置为false,只设置false,有可能会显示 See also counterVisible(). DTaskbarControl::setProgress 设置当前进度和进度条是否可见 progressVisible true可见 false不可见 progress 当前进度值 0-1(换算成百分比) DTaskbarControl::setUrgency 设置任务的紧急程度 val true 任务紧急 false普通任务 This is the complete list of members for Dtk::Gui::DThumbnailProvider, including inherited members. Note: 缩略图创建失败 该文件格式未知,无法由程序加载。 文件格式是已知的,但是文件已被损坏,因此无法读取。 由于文件很大,缩略图的生成将花费很长时间 DThumbnailProvider::defaultSizeLimit返回缩略图默认大小 Returns 默认的大小 See also setDefaultSizeLimit(). DThumbnailProvider::errorString返回错误信息 Returns 错误信息 DThumbnailProvider::setDefaultSizeLimit设置缩略图的默认大小 size 大小 See also defaultSizeLimit(). DThumbnailProvider::setSizeLimit 设置文件的大小 mimeType 由MIME类型字符串表示的文件或数据类型 size 范围 See also sizeLimit(). DThumbnailProvider::sizeLimit 返回文件大小 mimeType 由MIME类型字符串表示的文件或数据类型 Returns See also setSizeLimit(). This is the complete list of members for Dtk::Gui::DWindowGroupLeader, including inherited members. 在dxcb平台上,所有未指定组的窗口都会被分配到 DWindowGroupLeader::clientLeaderId 这个组,且在窗口对应的本地窗口被创建时,会对 Qt::Dialog、Qt::Sheet、Qt::Tool、 Qt::SplashScreen、Qt::ToolTip、Qt::Drawer、Qt::Popup 类型的窗口设置 WM_TRANSIENT_FOR 属性,对于此类型的窗口,如果没有手动调用 QWindow::setTransientParent , 则会将其 WM_TRANSIENT_FOR 属性设置为所在组id,得到的效果就是:会保证此窗口显示到这个组所有其它窗口 之上。例子: 在dxcb平台上,所有未指定组的窗口都会被分配到 DWindowGroupLeader::clientLeaderId 这个组,且在窗口对应的本地窗口被创建时,会对 Qt::Dialog、Qt::Sheet、Qt::Tool、 Qt::SplashScreen、Qt::ToolTip、Qt::Drawer、Qt::Popup 类型的窗口设置 WM_TRANSIENT_FOR 属性,对于此类型的窗口,如果没有手动调用 QWindow::setTransientParent , 则会将其 WM_TRANSIENT_FOR 属性设置为所在组id,得到的效果就是:会保证此窗口显示到这个组所有其它窗口 之上。例子: 窗口topWindow一直处于窗口wa和wb上层 如果一个组内同时存在多个未设置过 QWindow::setTransientParent 的 Qt::Dialog(其它会自动设置 WM_TRANSIENT_FOR 属性的窗口也成立)类型的窗口,这些窗口之间不会互相影响显示顺序,具体的规则和 X11 ICCCM 标准一致。 https://tronche.com/gui/x/icccm/sec-4.html#WM_TRANSIENT_FOR 如果一个组内同时存在多个未设置过 QWindow::setTransientParent 的 Qt::Dialog(其它会自动设置 WM_TRANSIENT_FOR 属性的窗口也成立)类型的窗口,这些窗口之间不会互相影响显示顺序,具体的规则和 X11 ICCCM 标准一致。 https://tronche.com/gui/x/icccm/sec-4.html#WM_TRANSIENT_FOR See also DWindowGroupLeader::clientLeaderId and Dtk::Widget::DApplication::loadDXcbPlugin. DWindowGroupLeader::DWindowGroupLeader groupId 为0时会在需要时自动创建一个有效的 groupLeaderId See also DWindowGroupLeader::groupLeaderId. DWindowGroupLeader::~DWindowGroupLeader 对象销毁时会释放由自己自动创建的 groupLeaderId See also DWindowGroupLeader::groupLeaderId. DWindowGroupLeader::addWindow 将窗口添加到这个组 window Warning: 每个窗口只能有一个组,添加到新的组时,将不再受旧的组所带来的任何影响 DWindowGroupLeader::groupLeaderId Returns 返回组的id,类似于 QWindow::winId DWindowGroupLeader::groupLeaderId Returns 返回组的id,类似于 QWindow::winId Warning: 如果没有一个有效的id,则会先创建一个新的组id DWindowGroupLeader::removeWindow 将窗口从这个组中移除 window Warning: 窗口被移除后将不再受此组带来的任何影响 This is the complete list of members for Dtk::Gui::DWindowManagerHelper, including inherited members. See also dxcb插件, Dtk::Widget::DApplication::loadDXcbPlugin, Dtk::Widget::DApplication::isDXcbPlatform, and Dtk::Widget::DPlatformWindowHandle. MotifFunction::MotifFunction 窗口管理器对窗口所能控制的行为 Note: 普通窗口默认存在此标志,对于 Qt::Popup 和 Qt::BypassWindowManagerHint 类型的窗口,不受此标志位影响 Note: 设置此标志后也会影响窗口标题栏对应功能入口的状态 Note: 对于使用系统标题栏的窗口,此功能和具体窗口管理器实现相关,deepin-wm 中设置 此标志无效。 Note: 设置此标志后也会影响窗口标题栏对应功能入口的状态 Note: 设置此标志后也会影响窗口标题栏对应功能入口的状态 Note: 设置此标志后也会影响窗口标题栏对应功能入口的状态 See also Dtk::Gui::DPlatformHandle::enableDXcbForWindow and Dtk::Gui::DPlatformHandle::isEnabledDXcb. 窗口管理器是否支持窗口背景模糊特效 Note: 在 dxcb 插件中目前只支持 deepin-wm 和 kwin 这两种窗管的模糊特效 Note: 只读 Access functions: Notifier signal: 窗口管理器是否支持混成效果。如果不支持混成,则表示所有窗口的背景都不能透明, 随之而来也不会有窗口阴影等效果,不规则窗口的边缘也会存在锯齿。 Note: 只读 Access functions: Notifier signal: 窗口管理器是否支持隐藏窗口标题栏。如果支持,则 DPlatformWindowHandle::enableDXcbForWindow 会优先使用此方法支持自定义窗口标题栏。 Note: 只读 Access functions: Notifier signal: See also Dtk::Gui::DPlatformHandle::setEnabledNoTitlebarForWindow. 窗口管理器是否支持窗口背景特效绘制。如果支持,则 绘制背景到透明窗口 会使用此方法开启特效窗口壁纸背景绘制。 Note: 只读 Access functions: Notifier signal: See also hasWallpaperEffectChanged(). DWindowManagerHelper::DWindowManagerHelper 不允许直接实例化此对象 parent See also DWindowManagerHelper::instance. 信号会在 hasBlurWindow 属性的值改变时被发送. Note: Notifier signal for property hasBlurWindow. 信号会在 hasComposite 属性的值改变时被发送. Note: Notifier signal for property hasComposite. 信号会在 hasNoTitlebar 属性的值改变时被发送. Note: Notifier signal for property hasNoTitlebar. 信号会在 hasWallpaperEffect 属性的值改变时被发送. Note: Notifier signal for property hasWallpaperEffect. 信号会在当前环境本地窗口列表变化时被发送。包含打开新窗口、关闭窗口、改变窗口的 层叠顺序. 信号会在当前环境窗口管理器变化时被发送. 信号会在窗口功能或修饰标志改变时被发送. winId 窗口id Note: 只对当前应用程序中的窗口有效 DWindowManagerHelper::allWindowIdList Returns 返回当前环境所有本地窗口的窗口id列表 Note: 顺序和窗口层叠顺序相关,显示越靠下层的窗口在列表中顺序越靠前 See also DWindowManagerHelper::currentWorkspaceWindowIdList. DWindowManagerHelper::currentWorkspaceWindowIdList Returns 返回当前工作区所有本地窗口的窗口id列表 Note: 顺序和窗口层叠顺序相关,显示越靠下层的窗口在列表中顺序越靠前 See also DWindowManagerHelper::allWindowIdList. DWindowManagerHelper::currentWorkspaceWindowIdList Returns 返回当前工作区所有本地窗口对象列表。和 currentWorkspaceWindowIdList 类似,只不过自动通过窗口id创建了 DForeignWindow 对象 Note: 顺序和窗口层叠顺序相关,显示越靠下层的窗口在列表中顺序越靠前 Note: 列表中对象的生命周期由 DForeignWindow 负责 Warning: 此列表中不包含由当前应用创建的窗口 See also DWindowManagerHelper::currentWorkspaceWindowIdList and DForeignWindow::fromWinId. DWindowManagerHelper::getMotifFunctions window Returns 返回窗口当前的修饰标志 DWindowManagerHelper::getMotifFunctions window Returns 返回窗口当前的功能标志 DWindowManagerHelper::hasBlurWindow Returns 如果当前窗口管理器支持窗口背景模糊特效则返回 true,否则返回 false Note: Getter function for property hasBlurWindow. DWindowManagerHelper::hasComposite Returns 如果当前窗口管理器支持混成则返回 true,否则返回 false Note: Getter function for property hasComposite. DWindowManagerHelper::hasNoTitlebar Returns 如果窗口管理器当前支持设置隐藏窗口标题栏则返回 true,否则返回 false Note: Getter function for property hasNoTitlebar. DWindowManagerHelper::hasWallpaperEffect Returns 如果窗口管理器当前支持背景图片特效绘制返回 true,否则返回 false Note: Getter function for property hasWallpaperEffect. DWindowManagerHelper::instance DWindowManagerHelper 的单例对象,使用 Q_GLOBAL_STATIC 定义,在第一次调用时实例化。 Returns DWindowManagerHelper::popupSystemWindowMenu 显示窗口管理器对窗口的菜单,和有边框的窗口在标题栏上点击鼠标右键弹出的菜单内容一致。 在 DMainWindow 的标题栏上点击鼠标右键会调用此函数打开系统菜单: window DWindowManagerHelper::setMotifDecorations 设置窗口的修饰性标志,会覆盖之前的设置 window hints DWindowManagerHelper::setMotifFunctions 设置窗口某些标志位的开启状态,不影响其它标志位 window hints 要设置的标志位 on 如果值为 true 则开启标志,否则关闭 Returns 返回设置后的窗口标志 DWindowManagerHelper::setMotifFunctions 设置窗口的功能性标志,会覆盖之前的设置 window hints DWindowManagerHelper::setMotifFunctions 设置窗口某些标志位的开启状态,不影响其它标志位 window hints 要设置的标志位 on 如果值为 true 则开启标志,否则关闭 Returns 返回设置后的窗口标志 DWindowManagerHelper::setWmClassName 设置x11环境上默认使用的wm class name,主要是在窗口创建时用于设置WM_CLASS窗口属性 name Note: 如果值为空,Qt将在下次使用此值时根据程序名称再次初始化此值 See also QCoreApplication::applicationName. DWindowManagerHelper::setWmWindowTypes 直接设置窗口管理器层级提供的窗口类型,如DesktopType和DockType类型也被 桌面环境需要,但是Qt自身并没有提供对应的设置接口 window types DWindowManagerHelper::windowFromPoint Returns 返回 p 位置的窗口 Id,如果出错返回 0 Note: 可以通过 DForeignWindow::fromWinId 创建窗口对象 DWindowManagerHelper::windowManagerName Returns 返回当前窗口管理器类型 See also DWindowManagerHelper::windowManagerNameString. DWindowManagerHelper::windowManagerNameString Returns 返回窗口管理器名称。在X11平台上,此值为窗口管理器对应窗口的 _NET_WM_NAME 的值 _NET_SUPPORTING_WM_CHECK _NET_WM_NAME 继承自QDrag,一般在文件拖拽发送方 mouseMoveEvent 中发起拖拽,设置发送数据 和 DFileDragServer 配合使用. More... 继承自QDrag,一般在文件拖拽发送方 mouseMoveEvent 中发起拖拽,设置发送数据 和 DFileDragServer 配合使用. More... 提供拖拽文件时与文件发送方交互的接口. More... DPalette提供了修改的 QPalette 类. More... DPalette提供了修改的 QPalette 类. More... 一个和Qt dxcb平台插件交互的工具类. More... This is the complete list of members for Dtk::Widget::DAboutDialog, including inherited members. 此函数用于设置指定的 acknowledgementLink 鸣谢链接 此函数用于设置指定的 visible 设置鸣谢链接是否显示 此函数用于设置指定的 companyLogo 组织标志. 此函数用于设置指定的 description 描述信息. 此函数用于设置指定的 license 许可证. 设置展示的 icon 图标. 在关于对话框展示的图标. 设置应用名称. productName 产品名称. 此函数用于设置指定的 version 版本信息. 此函数用于设置指定的 websiteLink 网站链接 此函数用于设置指定的 websiteName 网站名称 This is the complete list of members for Dtk::Widget::DAnchors, including inherited members. 重载了 “->”、“*”、“&” 等运算符,用于把 DAnchors 这层封装透明化,尽量减少使用 DAnchors<QWidget> 和直接使用 QWidget* 对象的区别。 重载了 “->”、“*”、“&” 等运算符,用于把 DAnchors 这层封装透明化,尽量减少使用 DAnchors<QWidget> 和直接使用 QWidget* 对象的区别。 This is the complete list of members for Dtk::Widget::DAnchorsBase, including inherited members. DAnchorsBase 提供了一种指定 QWidget 与其它 QWidget 之间的关系来确定 其位置的方法. More... DAnchorsBase 提供了一种指定 QWidget 与其它 QWidget 之间的关系来确定 其位置的方法. More... 除了比较传统的布局方式之外,DtkWidget 还提供了一种使用锚定概念布局控件的方法( 类似于 QQuickItem 中的 anchors 属性),可以认为每个控件具有一组6个不可见的“锚 线”:left,horizontalCenter,right,top,verticalCenter和bottom,如图所示: 使用 DAnchors 可以让 QWidget 基于这些“锚线”来确定相互间的关系,如: 使用 DAnchors 可以让 QWidget 基于这些“锚线”来确定相互间的关系,如: 这样 rect2 的左边界就会和 rect1 的右边界对齐: 另外还可以同时设置多个“锚线”: 锚定布局同时在多个控件中使用,控件之间只需要满足以下条件: 控件之间为兄弟关系,或被锚定控件为父控件 锚定关系不能循环绑定 锚定系统允许设置“锚线”之间的间距,和“锚线”一一对应,每个控件都有一组4个 margin: leftMargin, rightMargin, topMargin 和 bottomMargin 以及两个 offset: horizontalCenterOffset 和 verticalCenterOffset。 锚定系统允许设置“锚线”之间的间距,和“锚线”一一对应,每个控件都有一组4个 margin: leftMargin, rightMargin, topMargin 和 bottomMargin 以及两个 offset: horizontalCenterOffset 和 verticalCenterOffset。 下面是左margin的例子: rect2 的左边界相距 rect1 的右边界5个像素: Note: margin 仅仅是对设置的锚点生效,并不是让控件本身增加了边距,如果设置了 margin,但并没有设置相应的锚点,对控件本身而已是没有任何影响的。margin 的值可以 为负数,通过值的正负来决定margin的方向(内 margin 还是外 margin) 除了基于“锚线”来设置锚定外,另外还有 setCenterIn 和 setFill 这两个比较特殊的 的实现。 除了基于“锚线”来设置锚定外,另外还有 setCenterIn 和 setFill 这两个比较特殊的 的实现。 假设 DAnchorsBase a1, a2; a1.setRight(a2.left()); 则判断 a1 和 a2 之间 会不会存在循环绑定的逻辑为: 尝试更改 a1 右边界的值,更新后如果 a2 左边界的值产出了变化,则认为会导致循环绑 定,否则认为不存在 DAnchorsBase::AnchorError 设置锚定信息的过程中可能出现的错误类型 下“锚线”的边距,优先级高于 margins Note: 可读可写 Access functions: Notifier signal: target 控件的居中目标对象 Note: 可读可写 Access functions: Notifier signal: 控制锚定功能是否开启,为 false 时仅仅表示不会根据控件各种属性的变化来 来更新它的位置,但锚定关系并没有被解除 Note: 可读可写 Access functions: Notifier signal: target 控件的填充目标对象 Note: 可读可写 Access functions: Notifier signal: 水平“锚线”的偏移量 Note: 可读可写 Access functions: Notifier signal: 左“锚线”的边距,优先级高于 margins Note: 可读可写 Access functions: Notifier signal: 上下左右四条“锚线”的边距,此值的优先级低于每条“锚线”特定的 margin 值 Note: 可读可写 Access functions: Notifier signal: 右“锚线”的边距,优先级高于 margins Note: 可读可写 Access functions: Notifier signal: 绑定了锚定功能的控件对象 Note: 只读 Access functions: 上“锚线”的边距,优先级高于 margins Note: 可读可写 Access functions: Notifier signal: 竖直“锚线”的偏移量 Note: 可读可写 Access functions: Notifier signal: 构造 DAnchorsBase 对象,传入的 w 对象会和一个新的 DAnchorsBase 对象 绑定到一起 w 需要使用锚定关系的控件 Note: 对 w 设置的锚定关系不会随着本次构造的 DAnchorsBase 对象的销毁而消失。 此构造函数可能会隐式的构造一个新 DAnchorsBase 对象用于真正的功能实现,函数执行 时会先检查当前是否已经有和 w 对象绑定的 DAnchorsBase 对象,如果没有则会创建一 个新的 DAnchorsBase 对象与之绑定,否则使用已有的对象。隐式创建的 DAnchorsBase 对象会在对应的 QWidget 对象被销毁时自动销毁。 See also target(), clearAnchors(), and getAnchorBaseByWidget(). 信号会在 bottom 属性的值改变时被发送 信号会在 bottomMargin 属性的值改变时被发送 Note: Notifier signal for property bottomMargin. 信号会在 centerIn 属性的值改变时被发送 Note: Notifier signal for property centerIn. 信号会在 enabled 属性的值改变时被发送 Note: Notifier signal for property enabled. 信号会在 fill 属性的值改变时被发送 Note: Notifier signal for property fill. 信号会在 horizontalCenter 属性的值改变时被发送 信号会在 horizontalCenterOffset 属性的值改变时被发送 Note: Notifier signal for property horizontalCenterOffset. 信号会在 left 属性的值改变时被发送 信号会在 leftMargin 属性的值改变时被发送 Note: Notifier signal for property leftMargin. 信号会在 margins 属性的值改变时被发送 Note: Notifier signal for property margins. 移动 target 控件的下边界到 arg 这个位置 arg 要移动到的位置 移动 target 控件的上边界到 arg 这个位置 arg 要移动到的位置 移动 target 控件的水平中线到 arg 这个位置 arg 要移动到的位置 移动 target 控件的左边界到 arg 这个位置 arg 要移动到的位置 移动 target 控件的右边界到 arg 这个位置 arg 要移动到的位置 移动 target 控件的上边界到 arg 这个位置 arg 要移动到的位置 移动 target 控件的竖直中线到 arg 这个位置 arg 要移动到的位置 为 DAnchorsBase::target 对象设置锚定规则 Note: 可能会为目标控件隐式创建其对应的 DAnchorsBase 对象 p 为当前控件的哪个锚线/锚点设置锚定规则 target 锚定的目标控件 point 锚定的目标锚线/锚点 Returns 如果设置成功,则返回 true,否则返回 false 将 centerIn 中的target()作为参数调用其它重载函数 centerIn Returns 信号会在 right 属性的值改变时被发送 信号会在 rightMargin 属性的值改变时被发送 Note: Notifier signal for property rightMargin. 将 centerIn 中的target()作为参数调用其它重载函数 centerIn Returns Note: Setter function for property centerIn. 将 fill 中的target()作为参数调用其它重载函数 fill Returns 将 fill 中的target()作为参数调用其它重载函数 fill Returns Note: Setter function for property fill. 信号会在 top 属性的值改变时被发送 信号会在 topMargin 属性的值改变时被发送 Note: Notifier signal for property topMargin. 信号会在 verticalCenter 属性的值改变时被发送 信号会在 verticalCenterOffset 属性的值改变时被发送 Note: Notifier signal for property verticalCenterOffset. 在析构时会判断此 DAnchorsBase 对象是否和 target 存在绑定关系,如果是 则从映射表中移除绑定 Warning: DAnchorsBasePrivate 对象可能是在多个 DAnchorsBase 对象之间显式 共享的,所以在销毁 DAnchorsBase 后,对应的 DAnchorsBasePrivate 对象不一定 会被销毁 See also QExplicitlySharedDataPointer. 清除和控件 w 相关的所有锚定关系,包括锚定w或者被w锚定的任何关联。会直接 销毁 w 对应的 DAnchorsBase 对象 w 返回 target 控件的扩展对象。此对象为 QWidget 对象额外提供了和控件大小、 位置相关的变化信号 Returns See also Dtk::Widget::DEnhancedWidget. 锚定过程中产生的错误,在一个新的锚定函数被调用之前会清空此错误状态,每次 调用锚定函数后,可以通过此函数的返回值来判断锚定设置是否成功 Returns See also errorString(). 对 errorCode 的文本描述信息 Returns See also errorCode. 返回与 w 绑定的 DAnchorsBase 对象 w Returns 如果 w 没有对应的锚定对象,则返回空 如果此 info 设置了锚定对象,则返回 true ,否则返回 false 打印内容为:ture false info Returns This is the complete list of members for Dtk::Widget::DArrowRectangle, including inherited members. DArrowRectangle 提供了可以在四个边中的任意一个边显示箭头的矩形控件. More... 通常用于作为其他控件的容器,将其显示在矩形内作为内容控件 It's usually used as a container of some other widgets, see DArrowRectangle::setContent() See also DArrowRectangle::setContent(). 箭头方向枚举包含 DArrowRectangle 的箭头可能指向的可能方向. The ArrowDirection enum contains the possible directions that the DArrowRectangle's arrow may point to. FloatMode 表示不同的控件的浮动模式 The FloatMode enum decide the WindowType when DArrowRectangle show 控件的浮动模式表示控件如何显示在布局中,DArrowRectangle::FloatWindow 表示控件将会以一个单独的窗口显示,而 DArrowRectangle::FloatWidget 则表示控件只能显示在其父控件的布局中,不能超出父控件大小 这属性表示小部件及其阴影在y轴上的偏移量. the offset of the widget and its shadow on y axis. Getter: DArrowRectangle::shadowYOffset Setter: DArrowRectangle::setShadowYOffset See also DArrowRectangle::shadowXOffset. This property holds the direction of the rectangle's arrow points to. 这个属性表示箭头的方向 Getter: DArrowRectangle::arrowDirection , Setter: DArrowRectangle::setArrowDirection Access functions: height of rectangle's arrow 这个属性表示箭头的高度 Getter: DArrowRectangle::arrowHeight , Setter: DArrowRectangle::setArrowHeight Access functions: See also DArrowRectangle::arrowWidth. 这个属性表示箭头的宽度 width of the rectangle's arrow Getter: DArrowRectangle::arrowWidth , Setter: DArrowRectangle::setArrowWidth Access functions: See also DArrowRectangle::arrowHeight. This property holds the x coordinate of the rectangle's arrow 这个属性表示箭头的x轴坐标 Getter: DArrowRectangle::arrowX , Setter: DArrowRectangle::setArrowX Access functions: See also DArrowRectangle::arrowY. 这个属性表示箭头的y轴坐标 This property holds the y coordinate of the rectangle's arrow Getter: DArrowRectangle::arrowY , Setter: DArrowRectangle::setArrowY Access functions: See also DArrowRectangle::arrowX. 这个属性表示矩形控件的背景颜色 This property holds the background color of this rectangle. Getter: DArrowRectangle::backgroundColor , Setter: DArrowRectangle::setBackgroundColor Access functions: 这个属性表示控件边框的颜色 This property holds the border color of this widget. Getter: DArrowRectangle::borderColor , Setter: DArrowRectangle::setBorderColor Access functions: 这个属性表示控件边框的宽度 This property holds the border width of this widget. Getter: DArrowRectangle::borderWidth , Setter: DArrowRectangle::setBorderWidth Access functions: 这个属性表示边距大小 This property holds the width of the margin The margin is the distance between the innermost pixel of the rectangle and the outermost pixel of its contents. The default margin is 0. 边距是指矩形最里面的像素与其内容最外面的像素之间的距离 Getter: DArrowRectangle::margin , Setter: DArrowRectangle::setMargin Access functions: See also DArrowRectangle::setMargin. 这个属性表示矩形的圆角 radius of the rectangle Getter: DArrowRectangle::radius , Setter: DArrowRectangle::setRadius Access functions: 这个属性保存小部件阴影的模糊半径 This property holds the blur radius of the widget's shadow. Getter: DArrowRectangle::shadowBlurRadius Setter: DArrowRectangle::setShadowBlurRadius Access functions: 这属性表示小部件及其阴影在x轴上的偏移量 This property holds the offset of the widget and its shadow on x axis. Getter: DArrowRectangle::shadowXOffset Setter: DArrowRectangle::setShadowXOffset Access functions: See also DArrowRectangle::shadowYOffset. 获取 DArrowRectangle 实例,并指定浮动模式. DArrowRectangle::DArrowRectangle can set DArrowRectangle show as a window or a widget in parentWidget by floatMode direction 用于初始化箭头的方向 floatMode parent 作为其父控件 See also DArrowRectangle::FloatMode. DArrowRectangle::DArrowRectangle constructs an instance of DArrowRectangle. 获取 DArrowRectangle 实例 direction is used to initialize the direction of which the arrow points to. parent is the parent widget the arrow rectangle will be attached to. direction 用于初始化箭头的方向 parent 作为其父控件 获取内容控件. Returns 正在显示的内容控件 获取整个矩形控件的大小. DArrowRectangle::getFixedSize. Returns 矩形控件的大小 Returns the size of the whole widget. 移动到指定的坐标位置. DArrowRectangle::move moves the widget to the coordinate that provided, 参数的作用类似于 DArrowRectangle::show , 移动整个控件直到箭头出现在参数中指定的坐标 Like the rules in DArrowRectangle::show(int x, int y), it moves the widget so that the arrow head's coordinate matches the one that provided. x 控件箭头的x轴坐标 y 控件箭头的y轴坐标 x is the x coordinate of the arrow head. y is the y coordinate of the arrow head. See also DArrowRectangle::show(int x, int y) and DArrowRectangle::show. 根据内容控件的大小自动设置矩形控件的大小. DArrowRectangle::resizeWithContent automatically adjust the rectangle's size to fit the its content. 该函数用于设置箭头方向. value 箭头方向. Note: Setter function for property arrowDirection. See also DArrowRectangle::arrowDirection. 设置箭头高度. value 箭头高度. Note: Setter function for property arrowHeight. See also DArrowRectangle::arrowHeight. 设置箭头宽度. value 箭头宽度. Note: Setter function for property arrowWidth. See also DArrowRectangle::arrowWidth. 设置箭头 x 坐标的值. value x 坐标的值. Note: Setter function for property arrowX. See also DArrowRectangle::arrowX. 设置箭头 y 坐标的值. value y 坐标的值. Note: Setter function for property arrowY. See also DArrowRectangle::arrowY. DArrowRectangle::setBackgroundColor is an overloaded function. DArrowRectangle::setBackgroundColor 是一个重载方法 通过改变 DBlurEffectWidget::MaskColorType 来修改控件矩形的背景 It sets the background color by modifing the mask color of the Dtk::Widget::DBlurEffectWidget. type is the mask color to set. Note: Setter function for property backgroundColor. See also DArrowRectangle::backgroundColor and DBlurEffectWidget::MaskColorType. DArrowRectangle::setContent sets the content of the arrow rectangle. 设置要显示在矩形内的内容控件. content 要显示内容控件 设置整个控件固定的高度 value 高度大小 DArrowRectangle::setLeftRightRadius 设置左右箭头时的圆角. enable 是否开启. 设置边距大小. value 边距大小. Note: Setter function for property margin. See also DArrowRectangle::margin. 该函数用于设置圆角大小. value 圆角大小. Note: Setter function for property radius. See also DArrowRectangle::radius. DArrowRectangle::setArrowStyleEnable 设置圆角箭头样式. enable 是否开启. 该函数用于设置整个控件固定的宽度 value 宽度大小 在指定的坐标位置显示本控件; DArrowRectangle::show shows the widget at the given coordinate. Note: 坐标被计算为箭头的位置,所以你不需要自己计算箭头位置 Note: The coordiate is calculated to be the arrow head's position, so you don't need to calculate the position yourself. x 控件箭头的x轴坐标 y 控件箭头的y轴坐标 x is the x coordinate of the arrow head. y is the y coordinate of the arrow head. This is the complete list of members for Dtk::Widget::DBlurEffectWidget, including inherited members. 用于实现主窗口或控件背景的实时模糊效果. More... 分为主窗口模糊 DBlurEffectWidget::BehindWindowBlend 和控件模糊 DBlurEffectWidget::InWindowBlend DBlurEffectWidget::InWindowBlend 这两种不同的模式,主窗口模糊效果依赖于窗口管理器的实现,目前仅支持 deepin-wm 和 kwin, 可以使用DWindowManagerHelper::hasBlurWindow 判断当前运行环境中的窗口管理器是否支持 模糊特效,使用 DPlatformWindowHandle::setWindowBlurAreaByWM 设置主窗口背景的模糊 区域。如果在一个主窗口内同时使用了多个 DBlurEffectWidget 控件,则在更新主窗口模糊区域 时会自动将所有控件的区域合并到 QVector<WMBlurArea> 或者 QList<QPainterPath> (如果有任意一个控件设置了 DBlurEffectWidget::radius 属性)中统一设置。 控件模糊效果的原理和 DClipEffectWidget 类似,在控件绘制时先使用 QPlatformBackingStore::toImage() 获取主窗口上控件对应区域内已经绘制的内容,此时获取的内容为此控件下层控件所绘制的内容,将 获得的 QImage 对象使用软件算法进行模糊处理,然后再将模糊之后的图像绘制到控件上。由于实现 原理限制,不适用于主窗口为OpenGL绘制模式的窗口(如:QOpenGLWindow ),且控件下面使用 OpenGL绘制的内容也生成模糊的效果(如 QOpenGLWidget ) DBlurEffectWidget is QWidget that has blurry background. With different blend mode set, DBlurEffectWidget can do in-window-blend, which means the the widget is blended with the widgets between the top level window and the widget itself, and behind-window-blend, which means the widget is blended with the scene behind the window (with the help of WM). The effect has optional styles can choose from: DBlurEffectWidget::DarkColor, DBlurEffectWidget::LightColor, and DBlurEffectWidget::CustomColor. Usually the first two are sufficient, you can also choose CustomColor and set the color you want by setting DBlurEffectWidget::maskColor. Note: DBlurEffectWidget with BehindWindowBlend mode will become opaque if WM supports no X11 composite protocol. DBlurEffectWidget::BlendMode 模糊模式 DBlurEffectWidget::BlurMode 模糊算法 DBlurEffectWidget::MaskColorType 内置的几种颜色模式。分为三种情况: A:模式为 DBlurEffectWidget::InWindowBlend 或当前窗口管理器支持混成且支持窗口背景模糊 B:模式为 DBlurEffectWidget::BehindWindowBlend 或 DBlurEffectWidget::InWindowBlend 窗口管理器不支持混成 C:模式为 DBlurEffectWidget::BehindWindowBlend 或 DBlurEffectWidget::InWindowBlend 窗口管理器不支持模糊 A:color{black,#000000}(alpha通道值为非定值) B:color{#373F47,#373F47} C:color{rgba(0,0,0,0.8),#CC000000} See also DBlurEffectWidget::maskAlpha. 模糊的应用场景,默认会根据有没有父控件自动判断使用哪种模式 Note: 可读可写 Note: 父对象为空时设置模式为 DBlurEffectWidget::InWindowBlend 没有意义 Access functions: Notifier signal: 如果值为 true 则此控件的模糊设置生效,否则不生效 Note: 可读可写 Access functions: Notifier signal: 模糊区域在x轴方向上的圆角半径,默认值为0 Note: 可读可写 Access functions: Notifier signal: See also DBlurEffectWidget::blurRectYRadius, DBlurEffectWidget::setMaskPath, and QPainterPath::addRoundedRect. 模糊区域在y轴方向上的圆角半径,默认值为0 Note: 可读可写 Access functions: Notifier signal: See also DBlurEffectWidget::blurRectXRadius, DBlurEffectWidget::setMaskPath, and QPainterPath::addRoundedRect. 如果值为true,将模糊此控件所在顶层窗口的整个背景,而无论控件的大小和位置,否则使用控件的位置和大小 设置顶层窗口的模糊区域。需要注意的时,当控件本身就是顶层窗口且未设置 blurRectXRadius 和 blurRectYRadius 属性的情况下,无论 full 属性的值为多少,都将和值为 true 时的行为保持一致。 Note: 可读可写 Note: 此属性不影响蒙版的绘制区域 Note: 只在模糊的混合模式为 BehindWindowBlend 或 DBlurEffectWidget::InWindowBlend 时生效 Access functions: Notifier signal: See also DBlurEffectWidget::blurRectXRadius, DBlurEffectWidget::blurRectYRadius, DBlurEffectWidget::maskColor, and DBlurEffectWidget::blendMode. maskColor 的alpha通道值。当前窗口管理器支持混成(窗口背景透明)时默认值为102,否则为204 Note: 可读可写 Access functions: Notifier signal: See also DBlurEffectWidget::maskColor. 画在控件模糊背景之上的颜色,此颜色的alpha通道值会被 maskAlpha 属性影响 修改此属性会自动将颜色模式设置为 CustomColor,设置后将不能再自动根据窗口管理器是否 支持混成和模糊来自动使用最佳的颜色 Note: 可读可写 Access functions: Notifier signal: See also DBlurEffectWidget::blurRectXRadius and DBlurEffectWidget::setMaskColor(). 所采用的模糊算法,默认值为 GaussianBlur Note: 可读可写 Note: 只在模式为 DBlurEffectWidget::InWindowBlend 时有效 Access functions: Notifier signal: 模糊效果计算时的取样范围,模糊的原理为:将此像素点和周围像素点合成计算得到得到新的值, 此属性表示像素点周围 radius 距离的所有像素点参与计算 Note: 可读可写 Note: 只在模式为 DBlurEffectWidget::InWindowBlend 时有效 Access functions: Notifier signal: DBlurEffectWidget::DBlurEffectWidget constructs an instance of DBlurEffectWidget. 和普通控件使用方式一样,可以作为任何控件的子控件。默认会开启 Qt::WA_TranslucentBackground, 必须设置控件为背景透明,否则控件所在区域的内容重绘时,在此控件下方的区域不会被下层控件重新绘制 parent is passed to QWidget constructor. parent 当父对象为空时,默认使用 DBlurEffectWidget::BehindWindowBlend 模式,否则使用 DBlurEffectWidget::InWindowBlend 模式 信号会在 blendMode 属性的值改变时被发送 Note: Notifier signal for property blendMode. 信号会在 blurRectXRadius 属性的值改变时被发送 Note: Notifier signal for property blurRectXRadius. 信号会在 blurRectYRadius 属性的值改变时被发送 Note: Notifier signal for property blurRectYRadius. 信号会在 alpha 属性的值改变时被发送 Note: Notifier signal for property maskAlpha. See also DBlurEffectWidget::maskAlpha. 信号会在 maskColor 属性的值改变时被发送 Note: Notifier signal for property maskColor. 信号会在 mode 属性的值改变时被发送. Note: Notifier signal for property mode. 信号会在 radius 属性的值改变时被发送 Note: Notifier signal for property radius. DBlurEffectWidget::setBlendMode blendMode 窗口混合模式,模式设定变化发送blendModeChanged信号 Note: Setter function for property blendMode. See also blendMode(). DBlurEffectWidget::setBlurEnabled blurEnabled 设定模糊区域是否可以伸缩 Note: Setter function for property blurEnabled. See also blurEnabled(). DBlurEffectWidget::setBlurRectXRadius blurRectXRadius 模糊区域矩形的X圆角大小 Note: Setter function for property blurRectXRadius. See also blurRectXRadius(). DBlurEffectWidget::setBlurRectYRadius blurRectYRadius 模糊区域矩形的Y圆角大小 Note: Setter function for property blurRectYRadius. See also blurRectYRadius(). DBlurEffectWidget::setFull full 设置时候模糊区域占满整个窗口大小 Note: Setter function for property full. See also isFull(). DBlurEffectWidget::setMaskAlpha alpha 设置Alpha通道,值变化发送maskAlphaChanged信号 Note: Setter function for property maskAlpha. See also maskAlpha(). 设置控件的颜色模式,默认值为 MaskColorType::CustomColor type Note: Setter function for property maskColor. DBlurEffectWidget::setMaskColor maskColor 设定mask的颜色 Note: Setter function for property maskColor. See also maskColor(). DBlurEffectWidget::setMode mode 设定模糊算法,默认为高斯模糊算法GaussianBlur Note: Setter function for property mode. See also mode(). DBlurEffectWidget::setRadius radius 模糊区域的圆角大小 如果设定值和原值不一致会发送信号radiusChanged Note: Setter function for property radius. See also radius(). DBlurEffectWidget::updateBlurSourceImage ren 设定模糊区域的背景图片 This property holds which mode is used to blend the widget and its background scene. Note: Getter function for property blendMode. See also setBlendMode(). DBlurEffectWidget::blurEnabled Returns true 模糊区域可伸缩调整 Note: Getter function for property blurEnabled. See also setBlurEnabled(). This property holds the xRadius of the effective background. The xRadius and yRadius specify the radius of the ellipses defining the corners of the effective background. Note: Getter function for property blurRectXRadius. See also setBlurRectXRadius() and DBlurEffectWidget::blurRectYRadius. This property holds the yRadius of the effective background. The xRadius and yRadius specify the radius of the ellipses defining the corners of the effective background. Note: Getter function for property blurRectYRadius. See also setBlurRectYRadius() and DBlurEffectWidget::blurRectXRadius. DBlurEffectWidget::isFull Returns true 窗口占据了整个模糊区域,反之为false Note: Getter function for property full. This property holds the background color of this widget. It returns predefined colors if the DBlurEffectWidget::maskColorType is set to DBlurEffectWidget::DarkColor or BlurEffectWidget::LightColor, returns the color set by DBlurEffectWidget::setMaskColor if DBlurEffectWidget::maskColorType is set to BlurEffectWidget::CustomColor. Note: Getter function for property maskColor. See also setMaskColor(). This property holds which blur algorithm to be used. Currently it only supports DBlurEffectWidget::GaussianBlur. Note: Getter function for property mode. See also setMode(). This property holds the radius of the blur effect. Note: This property has no effect with the DBlurEffectWidget::blendMode set to DBlurEffectWidget::BehindWindowBlend. Note: Getter function for property radius. See also setRadius(). DBlurEffectWidget::setMaskPath set custom area as the effective background. 设置模糊区域的路径,当未调用过此接口时,模糊区域为整个控件所占据的空间,此路径坐标原点为控件左上角 path a QPainterPath to be used as the effectvie background. Warning: 设置自定义路径之后,控件大小改变时不会再自动调整模糊区域大小 See also DBlurEffectWidget::blurRectXRadius and DBlurEffectWidget::blurRectYRadius. DBlurEffectWidget::setSourceImage image autoScale Warning: This is the complete list of members for Dtk::Widget::DBoxWidget, including inherited members. The DBoxWidget class provides widget born with QBoxLayout set. More... The DBoxWidget class provides widget born with QBoxLayout set. More... 在Qt编程中,使用QBoxLayout设置控件是很常见的,DBoxWidget提供了方便的封装,会根据需要的大小自动 设置DBoxWidget的宽高。 Since an widget with QBoxLayout set is very common use case in Qt programming, yet very tedious, DBoxWidget is built to ease that pain. 在Qt编程中,使用QBoxLayout设置控件是很常见的,DBoxWidget提供了方便的封装,会根据需要的大小自动 设置DBoxWidget的宽高。 Since an widget with QBoxLayout set is very common use case in Qt programming, yet very tedious, DBoxWidget is built to ease that pain. Also, DBoxWidget will calculate the size it needs automatically, so you don't need to set width for DHBoxWidget or height for DVBoxLayout. See also DHBoxWidget and DVBoxWidget. 这个属性返回当前QBoxLayout使用的方向 This property holds the direction of the internal QBoxLayout. Returns QBoxLayout::Direction 当前的方向 Access functions: Notifier signal: DBoxWidget的构造函数. DBoxWidget::DBoxWidget constructs an instance of DBoxWidget. direction 是设置内部QBoxLayout使用的方向 parent 传递给QFrame的构造函数 direction is the direction used by the internal QBoxLayout. parent is passed to QFrame constructor. 调用QBoxLayout的addWidget方法将QWidget添加到布局中 DBoxWidget::addWidget adds widget to the internal layout. widget 要添加的QWidget对象 widget is the widget to be added. 这个属性会返回当前使用的布局对象 This property holds the internal layout object. This property can be used to get the internal layout, so you can set some extra properties on the layout to match the custom needs. Returns QBoxLayout* This is the complete list of members for Dtk::Widget::DButtonBox, including inherited members. DButtonBox 类似于 QButtonGroup 的类. More... DButtonBox 类似于 QButtonGroup 的类. More... See also Dtk::Widget::DButtonBoxButton. DButtonBox::DButtonBox 构造函数. parent 参数被发送到 QWidget 构造函数 DButtonBox::button id 按钮的ID,与 DButtonBox::setId 设置的参数一致. Returns 返回对应id 的按钮,不存在返回 nullptr . See also QButtonGroup::button(). DButtonBox::buttonList. Returns 返回按钮列表. See also setButtonList() and QButtonGroup::buttons(). DButtonBox::checkedButton. Returns 返回 checked 状态的按钮. See also QButtonGroup::checkedButton(). 返回已选中按钮 id . Returns 返回已选中按钮 id . See also QButtonGroup. 返回按钮 id . button 对应的按钮. See also setId() and QButtonGroup::id(). DButtonBox::orientation 返回布局方向. See also setOrientation() and Qt::Orientation. DButtonBox::setButtonList将按钮进添加到组中. list 存储按钮的 QList 列表 checkable 按钮是否可选中 See also buttonList(). 设置按钮 id . button 用于设置 id 的按钮。 See also id() and QButtonGroup::setId(). DButtonBox::setOrientation 设置布局方向. orientation See also orientation() and Qt::Orientation. This is the complete list of members for Dtk::Widget::DButtonBoxButton, including inherited members. DButtonBoxButton 提供了设置图标的按钮的函数 Note: 代码示例 Note: DButtonBoxButton *btn1 = new DButtonBoxButton("btn1"); Note: btn1->setIcon(QStyle::StandardPixmap::SP_ArrowUp); Note: btn1->setIcon(QStyle::StandardPixmap::SP_ArrowUp); See also Dtk::Widget::DButtonBox. DButtonBoxButton 构造函数. iconType 标准图标 text 参数被发送到 DButtonBoxButton 构造函数 parent 参数被发送到 DButtonBoxButton 构造函数 DButtonBoxButton构造函数. icon 图标 text 参数被发送到 DButtonBoxButton 构造函数 parent 参数被发送到 DButtonBoxButton 构造函数 DButtonBoxButton 构造函数. text 按钮名称 parent 参数被发送到 QAbstractButton 构造函数 返回图标大小. Returns 返回图标大小. DButtonBoxButton::minimumSizeHint. Returns 按钮的最小大小策略. See also QAbstractButton::minimumSizeHint(). 设置按钮图标. icon 图标 设置按钮图标. This is an overloaded function. iconType 标准图标 DButtonBoxButton::sizeHint. Returns 按钮的推荐大小. See also QAbstractButton::sizeHint(). This is the complete list of members for Dtk::Widget::DClipEffectWidget, including inherited members. 支持使用 QPainterPath 设置一个区域,位于区域外的窗口内容将被裁剪。被裁剪的对象 是此控件的父控件, 且 DClipEffectWidget 会自动填充整个父控件,另外可以通过设置 margins 控制有效的裁剪区域。如下图所示: 支持使用 QPainterPath 设置一个区域,位于区域外的窗口内容将被裁剪。被裁剪的对象 是此控件的父控件, 且 DClipEffectWidget 会自动填充整个父控件,另外可以通过设置 margins 控制有效的裁剪区域。如下图所示: A为父控件区域, DClipEffectWidget 控件区域和父控件相同,B为有效的被裁剪区域,C 为 clipPath 区域,m为 margins ,则被裁剪掉的区域为: B - C,裁掉的部分将显示 下层控件内容,如果下层没有其它控件,将显示主窗口背景。 A为父控件区域, DClipEffectWidget 控件区域和父控件相同,B为有效的被裁剪区域,C 为 clipPath 区域,m为 margins ,则被裁剪掉的区域为: B - C,裁掉的部分将显示 下层控件内容,如果下层没有其它控件,将显示主窗口背景。 此控件不接收任何输入事件,且不接受焦点 See also Qt::WA_TransparentForMouseEvents, Qt::NoFocus, and DGraphicsClipEffect. See also Qt::WA_TransparentForMouseEvents, Qt::NoFocus, and DGraphicsClipEffect. 被裁剪的区域,控件真实裁剪区域 = clipPath & (rect() - margins) Warning: clipPath 必须是一个封闭的环状路径 Access functions: Notifier signal: See also QPainterPath::closeSubpath. 用于调整控件的被裁剪区域,可以和 clipPath 组合更加灵活的裁剪控件 Access functions: Notifier signal: 构造 DClipEffectWidget 对象,和普通 QWidget 一样,可以传入一个 QWidget 对象 指针作为其父对象 parent 父对象 Warning: 必须要传入一个有效的父对象,将此控件作为顶级窗口没有任何意义 这个信号在 clipPath 改变时被发送 Note: Notifier signal for property clipPath. 这个信号在 margins 改变时被发送 Note: Notifier signal for property margins. path Note: Setter function for property clipPath. See also clipPath(). margins Note: Setter function for property margins. See also margins(). This is the complete list of members for Dtk::Widget::DColoredProgressBar, including inherited members. DColoredProgressBar is the same as QProgressBar, except it can change its appearance depending on the value displayed. More... DColoredProgressBar::addThreshold 添加一个新的阈值,并指定达到该值后要使用的画笔。如果一个相同值的阈值已经存在,它将被覆盖。 DColoredProgressBar::addThreshold adds a new threshold value and specifies the brush to use once that value is reached. If a threshold of the same value already exists, it will be overwritten. brush 当前显示的值不小于 threshold且小于下一个阈值时使用的画笔。 brush The brush to use when the currently displayed value is no less than and less than the next threshold value. threshold 使用此画笔的最小值。 threshold Minimum value for this brush to be used. DColoredProgressBar::removeThreshold removes a threshold. DColoredProgressBar::removeThreshold 移除一个threshold threshold The threshold value to remove. threshold 被移除的threshold值 DColoredProgressBar::threadsholds gets all threshold values. DColoredProgressBar::thresholds 获取所有的thresholds值 Returns A list of threshold values. Returns 返回一个 threshold值的列表 This is the complete list of members for Dtk::Widget::DCommandLinkButton, including inherited members. DCommandLinkButton 一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮. More... DCommandLinkButton 一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮. More... 构造函数 text 控件显示的文字 parent 控件的父对象 初始化的一个 option 的风格,和一些基本的属性 option 实参是一个用来初始化的(按钮控件的)风格属性 绘画事件 e 此处不使用 获取控件的矩形大小 Returns 返回本的控件矩形大小 This is the complete list of members for Dtk::Widget::DDialog, including inherited members. DDialog 旨在提供简要的讯问式对话框的快速实现。提供了包含标题,对话框内容,默认图标,用以添加按钮的布局和一个可以自由添加内容的内容布局。 可以使用 addButton() , insertButton(), setDefaultButton() 等函数方便的给对话框插入按钮并进行管理,可以使用 addContent(), insertContent() 等函数操作内容布局。 此外, DDialog 还提供了一些额外的函数以供实现一些常见的需求。如,可以通过设置 setOnButtonClickedClose() 为 true 来使得用 户在点击任何对话框上的按钮后关闭对话框。 当你需要快速构建较为简单结构的对话框,你应当使用 DDialog ,对于较为复杂的需求,请参阅 DAbstractDialog 或 QDialog 相关文档。 DDialog 旨在提供简要的讯问式对话框的快速实现。提供了包含标题,对话框内容,默认图标,用以添加按钮的布局和一个可以自由添加内容的内容布局。 可以使用 addButton() , insertButton(), setDefaultButton() 等函数方便的给对话框插入按钮并进行管理,可以使用 addContent(), insertContent() 等函数操作内容布局。 此外, DDialog 还提供了一些额外的函数以供实现一些常见的需求。如,可以通过设置 setOnButtonClickedClose() 为 true 来使得用 户在点击任何对话框上的按钮后关闭对话框。 当你需要快速构建较为简单结构的对话框,你应当使用 DDialog ,对于较为复杂的需求,请参阅 DAbstractDialog 或 QDialog 相关文档。 DDialog is designed to provide a easy way to create information dialog which include title, dialog content, dialog icon, buttons. You can use addButton() , insertButton() and related functions to insert buttons to the dialog easily, and use addContent(), insertContent() and related functions to manage the dialog's built-in content layout. DDialog also provided some extra function which maybe useful for some common use case, for example, you can set setOnButtonClickedClose() to DDialog is designed to provide a easy way to create information dialog which include title, dialog content, dialog icon, buttons. You can use addButton() , insertButton() and related functions to insert buttons to the dialog easily, and use addContent(), insertContent() and related functions to manage the dialog's built-in content layout. DDialog also provided some extra function which maybe useful for some common use case, for example, you can set setOnButtonClickedClose() to See also DAbstractDialog and QDialog. See also DAbstractDialog and QDialog. 向对话框添加按钮. text 按钮文字 Returns 所添加的按钮的下标 添加控件到对话框内容布局. widget 待添加的控件 alignment 对齐方式 追加对话框内容间隔. 在对话框的内容布局后追加一个非弹性,大小为 spacing 的间隔(一个 QSpacerItem )。 See also QBoxLayout::addSpacing. 在对话框的内容布局后追加一个非弹性,大小为 spacing 的间隔(一个 QSpacerItem )。 See also QBoxLayout::addSpacing. 清除内容间隔. 清除对话框内容布局中包含的所有 QSpacerItem 。 清除对话框内容布局中包含的所有 QSpacerItem 。 以模态框形式显示当前对话框. 以 模态框 形式显示当前对话框,将会阻塞直到用户关闭对话框。 onButtonClickedClose()为 true 时返回当前点击按钮的Index,否则返回 结果。 Returns 返回模态对话框处理的结果. See also QDialog::exec(). 向对话框插入按钮. index 下标 text 按钮文字 isDefault 是否是默认按钮 type 按钮类型 向对话框插入按钮. index 下标 button 待插入的按钮 isDefault 是否是默认按钮 向对话框插入按钮. index 下标 text 按钮文字 在对话框内容布局指定位置插入控件. index 待插入的位置下标 widget 待插入的控件 alignment 对齐方式 插入对话框内容间隔. 在对话框的内容布局的指定位置插入一个非弹性,大小为 spacing 的间隔(一个 QSpacerItem )。 index 插入间隔的索引位置. See also QBoxLayout::insertSpacing. 在对话框的内容布局的指定位置插入一个非弹性,大小为 spacing 的间隔(一个 QSpacerItem )。 index 插入间隔的索引位置. See also QBoxLayout::insertSpacing. index 待移除按钮的下标 从对话框移除按钮. button 待移除的按钮 从对话框移除按钮. text 待移除按钮的文本内容 从对话框内容布局中移除指定控件. widget 待移除的控件 isDelete 是否执行删除 设置按钮图标. index 需要设置图标的按钮的下标 icon 所需要设置的图标 设置按钮文字. index 需要设置文字的按钮的下标 text 所需要设置的文字 index 要设置的默认按钮的下标. Returns 设置成功返回 true,否则返回false. 设置默认按钮. str 要设置的默认按钮的文本内容 See also default. See also default. 设置默认按钮 button 要设置的默认按钮 See also default. See also default. 设置对话框图标. icon 对话框图标. 设置对话框图标. This is an overloaded function. 为对话框设置图标,同时可以指定一个期望的图标大小。 icon 对话框图标 expectedSize 期望大小. 设置对话框位图图标. iconPixmap pixmap类型图标. 设置对话框消息内容. message 对话框消息. 设置是否在点击按钮后关闭对话框. 当 onButtonClickedClose 设置为 true 后,无论点击什么按钮,都会在点击后关闭对话框。 设置对话框内容间隔. 设置对话框的内容布局的间隔 spacing 大小 See also QBoxLayout::setSpacing. See also QBoxLayout::setSpacing. 设置对话框标题. title 对话框标题. wordWrap true可换行 false不可以换行 This is the complete list of members for Dtk::Widget::DEnhancedWidget, including inherited members. QWidget 中只有少量的信号用于通知和窗口相关的属性变化,常用的如 x y width height 等属性的改变只能通过继承重写对应的事件才能知晓。DEnhancedWidget 中通过使用事件 过滤器监听目标控件的事件,收到对应事件之后转换为自身的信号发射出来,以此来实现对 QWidget 对象的信号扩展。 QWidget 中只有少量的信号用于通知和窗口相关的属性变化,常用的如 x y width height 等属性的改变只能通过继承重写对应的事件才能知晓。DEnhancedWidget 中通过使用事件 过滤器监听目标控件的事件,收到对应事件之后转换为自身的信号发射出来,以此来实现对 QWidget 对象的信号扩展。 值为 true 时过滤 target 控件的事件发送信号。否则卸载事件过滤器,控件属性 改变时也不会发出信号。 Note: 可读可写 Access functions: Notifier signal: 要监听的目标控件,每一个 DEnhancedWidget 对象只能关联到一个 QWidget 对象 当 target 改变后,所有的信号和旧的 target 都不再有任何关系。 移动控件 w1 时不会有任何打印 移动控件 w2 时会有打印 虽然将 target 设置为 w2 之前就已经连接了 x 改变的信号,不过 w2 位置改变时可以收到信号 Note: 可读可写 Access functions: Notifier signal: enabled 是否可用. 这个信号在属性 DEnhancedWidget::enabled enabled 被改变后发送 DEnhancedWidget::DEnhancedWidget 构造函数. w 初始时指定的 target 控件 parent 父对象,直接传递给基类 See also DEnhancedWidget::target and QObject::parent. enabled 是否可用. 这个信号在属性 DEnhancedWidget::enabled enabled 被改变后发送 Note: Notifier signal for property enabled. height 改变的高度大小. 这个信号在目标控件的高度改变后被发送 point 改变的位置坐标. 这个信号在目标控件的坐标改变后被发送 DEnhancedWidget::setEnabled enabled See also DEnhancedWidget::enabled. Note: Setter function for property enabled. See also DEnhancedWidget::enabled. DEnhancedWidget::setTarget target Note: Setter function for property target. See also DEnhancedWidget::target. 这个信号在目标控件显示后发送 size 改变的大小. 这个信号在目标控件的大小改变后被发送 target 目标控件. 这个信号在属性 DEnhancedWidget::target 被改变后发送 target 目标控件. 这个信号在属性 DEnhancedWidget::target 被改变后发送 Note: Notifier signal for property target. width 改变的宽度大小. 这个信号在目标控件的宽度改变后被发送 x 改变的 x 轴坐标. 这个信号在目标控件的 x 坐标改变后被发送 y 改变的 y 轴坐标. 这个信号在目标控件的 y 坐标改变后被发送 This is the complete list of members for Dtk::Widget::DExpandGroup, including inherited members. 封装了一组 DBaseExpand 控件(当然也可以是其子类), 并保证同一时间只有一个 DBaseExpand 处于展开状态. More... DExpandGroup 顾名思义是用来管理一组 DBaseExpand 控件的,提供了简单的新增,获取,移除的方法,用于统一管理多个 DBaseExpand 对象的展开和收起状态, DExpandGroup 会保证在同一时间只有一个 DBaseExpand 控件处于展开状态, 也就是说如果点击展开了组里的一个控件, DExpandGroup 会将组里其他控件设置为收起状态。 Note: 请注意,DExpandGroup 并不是控件, 只需要将需要管理的 DBaseExpand 添加进来即可 获取类实例 parent 作为实例的父对象 增加一个控件 expand 要新增的控件对象 id 为要新增的控件对象指定id,id 应该是唯一值,如果没有给定 id ,则使用已有列表中最大的id自加1后的值 获取处于已展开状态的 DBaseExpand 对象 Returns 已展开状态的控件, 若没有已展开的控件则返回 NULL 返回处于已展开状态控件的 id Returns 如果当前没有处于展开状态的控件则返回 -1 获取指定 id 对应的控件 id 增加控件时指定的的id Returns 根据 id 找到的控件 获取所有正在管理的控件 Returns 控件组成的列表 获取指定控件的 id expand 指定控件对象 Returns 指定控件对象的 id See also setId(). 移除一个控件 expand 要移除的控件对象 设置指定控件的id expand 要设置id的控件 id 要设置的id See also id(). This is the complete list of members for Dtk::Widget::DFloatingMessage, including inherited members. 类似于 ios 的通知栏消息, 然后有每一个新的消息对象, 就添加到一个竖直布局里面, 然后一个消息的其布局模式是: icon (图标) + Message (消息) + QWidget (存放如控件按钮,可选) + closeButton (关闭按钮,可选) 多个消息均是以竖直布局存放在一个 DMessageManager (消息管理类) 里面的 类似于 ios 的通知栏消息, 然后有每一个新的消息对象, 就添加到一个竖直布局里面, 然后一个消息的其布局模式是: icon (图标) + Message (消息) + QWidget (存放如控件按钮,可选) + closeButton (关闭按钮,可选) 多个消息均是以竖直布局存放在一个 DMessageManager (消息管理类) 里面的 消息通知一共有两种类型,临时停留几秒和手动清除的永驻消息 DFloatingMessage::MessageType 定义了 DFloatingMessage 通知类型 若是为临时消息,则设置时间(毫秒)后会自动消失 msec 消息显示的毫秒数, 默认是4000毫秒 设置显示的文本消息(文字) str 消息文本的具体文字内容 消息里面的,水平布局里面的第三个位置, 用来存放一些自定义控件, 比如一个确定按钮 w 插入的具体控件, 若之前此处已经有其他的控件, 先删除挪出空位子, 在将 w 控件放到这个上面 设置布局方向 set flow direction See also QListView::Flow and flow(). See also QListView::Flow and flow(). 将字体的大小枚举 SizeType 和控件 widget 进行绑定, 其控件的字体大小(随绑定的枚举的)对应值的改变而改变; 系统自定义的绑定枚举值 T6, 若 T6 = 14px, 则其他枚举 T1 - T10 的数值,依次为:40, 30, 24, 20, 17, 14(T6), 13, 12, 11, 10; 系统自定义的绑定枚举值 T6 改为 T6 = 20px, 则其他枚举 T1 - T10 的数值,依次为:46, 36, 30, 26, 23, 20(T6), 19, 18, 17, 16; 即: 其对应的无论 T6 为何值, 其两个相邻的 T 值的差是定值: T(n) - T(n-1) == 定值 而系统是只设置 T6 这以枚举, 作为基准. widget 将要绑定字体大小枚举数值的控件 type 字体的枚举类型, 每一个枚举数值对应着一个字体像素大小 获取字体像素的大小. type 字体枚举类型 Returns 返回字体像素的大小 See also setFontPixelSize(). 获取字体. type 字体的大小枚举 base 将改变大小的字体 Returns 返回设置字体大小后的字体 创建一个字体管理的实例. Returns 返回一个创建的 static DFontSizeManager 实例 设置字体的通用像素大小. size 预设计的字体像素的大小 设置字体像素大小. type 字体枚举类型 size 字体大小 See also fontPixelSize(). 将字体大小枚举值和 widget 的绑定解除, 不跟随 "枚举对应的像素值" 而改变本控件的字体大小. widget 与 "字体枚举所对应的像素值" 的 (解除绑定的控件) 对象 This is the complete list of members for Dtk::Widget::DGraphicsClipEffect, including inherited members. 支持使用 QPainterPath 设置一个区域,位于区域外的窗口内容将被裁剪,可以通过设置 margins 控制有效的裁剪区域。如下图所示: 支持使用 QPainterPath 设置一个区域,位于区域外的窗口内容将被裁剪,可以通过设置 margins 控制有效的裁剪区域。如下图所示: A为被作用的控件区域,B为有效的被裁剪区域,C 为 clipPath 区域,m为 margins ,则被裁剪掉的区域为: B - C,裁掉的部分将显示 下层控件内容,如果下层没有其它控件,将显示主窗口背景。 Warning: 以这种方式实现对 QWidget 的剪切在性能上会有较大的影响,一般情况下,我们推荐使用 DClipEffectWidget A为被作用的控件区域,B为有效的被裁剪区域,C 为 clipPath 区域,m为 margins ,则被裁剪掉的区域为: B - C,裁掉的部分将显示 下层控件内容,如果下层没有其它控件,将显示主窗口背景。 Warning: 以这种方式实现对 QWidget 的剪切在性能上会有较大的影响,一般情况下,我们推荐使用 DClipEffectWidget See also DClipEffectWidget and QWidget::setGraphicsEffect. See also DClipEffectWidget and QWidget::setGraphicsEffect. 被裁剪的区域,控件真实裁剪区域 = clipPath & (boundingRect() - margins) Warning: clipPath 必须是一个封闭的环状路径 Access functions: Notifier signal: See also QPainterPath::closeSubpath. 用于调整目标控件的被裁剪区域,可以和 clipPath 组合更加灵活的裁剪控件 Access functions: Notifier signal: 构造 DGraphicsClipEffect 对象,和普通 QObject 一样,可以传入一个 QObject 对象 指针作为其父对象 parent 父对象 这个信号在 clipPath 改变时被发送 Note: Notifier signal for property clipPath. 这个信号在 margins 改变时被发送 Note: Notifier signal for property margins. clipPath Note: Setter function for property clipPath. See also clipPath(). margins Note: Setter function for property margins. See also margins(). This is the complete list of members for Dtk::Widget::DHBoxWidget, including inherited members. The DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight. More... The DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight. More... This is the complete list of members for Dtk::Widget::DHiDPIHelper, including inherited members. DHiDPIHelper::loadNxPixmap loads the suitable @Nx image. fileName is the original resource file name. Returns the hiDPI ready QPixmap. DHiDPIHelper::loadNxPixmap loads the suitable @Nx image. fileName is the original resource file name. Returns the hiDPI ready QPixmap. This is the complete list of members for Dtk::Widget::DIpv4LineEdit, including inherited members. 类DIpv4LineEdit是专门用于输入ipv4格式文本的编辑框. More... 此类内部由四个 QLineEdit 组合而成,输入框之间可以通过Tab/Shift+Tab快捷切 换光标,输入字符"."时会自动跳到下一个输入框。在使用左右方向键移动光标时会自动跨 越输入框,和在同一个输入框内光标的没有区别。和 QLineEdit 一样也可以使用快捷 键方便的复制粘贴文本,在粘贴时会自动根据ipv4的规则过滤掉非法字符。每个输入框的文 本内容必须要满足以下的正则规则: Warning: 不能使用DLineEdit和QLineEdit中的功能性函数 Note: 只读 Access functions: See also QLineEdit::acceptableInput. 文本内容对齐方式 固定为 Qt::AlignHCenter Note: 只读 Access functions: See also QLineEdit::alignment. 是否在输入框上显示清理按钮 Note: 只读。默认为 false See also QLineEdit::clearButtonEnabled. 当前光标所在位置 Note: 可读可写 Access functions: See also QLineEdit::cursorPosition. 输入框显示的文本内容 和 QLineEdit::displayText 不同,无论 echoMode 值为多少,都返回和 text 同样的内容 Note: 可读可写 Access functions: See also QLineEdit::echoMode and QLineEdit::text. 输入框未输入内容时的占位文本,通常显示为灰色,当输入任意字符后就会被隐藏 Note: 只读。默认为空字符串 See also QLineEdit::placeholderText. Note: 可读可写 Access functions: See also QLineEdit::readOnly. 选中的文本内容 Note: 只读 See also QLineEdit::selectedText. 构造DIpv4LineEdit类,和普通 QWidget 一样,可以传入一个QWidget指 针对象作为其父对象 管理的控件 parent 选中所有输入框的全部内容 See also QLineEdit::selectAll. cursorPosition Note: Setter function for property cursorPosition. See also cursorPosition. readOnly Note: Setter function for property readOnly. See also isReadOnly() and readOnly. 使用此方法选中文本时会把四个输入框当做一个看待 start length See also QLineEdit::setSelection. Returns Note: Getter function for property alignment. Returns Note: Getter function for property cursorPosition. See also setCursorPosition(). Returns Note: Getter function for property displayText. Returns Note: Getter function for property acceptableInput. Returns Note: Getter function for property readOnly. This is the complete list of members for Dtk::Widget::DPrintPreviewDialog, including inherited members. This is the complete list of members for Dtk::Widget::DSimpleListView, including inherited members. DSimpleListView 是 deepin 基于 QWidget 从零绘制的列表控件. More... 开发者只要懂得怎么使用 QPainter 进行图形绘制,开发者就可以在 DSimpleListItem 中绘制任意行内容, 包括文本、图片、任意控件甚至每行都可以画一个小电影,而代码的复杂度不会随着绘制行内容而发生变化, 所有的行内容都源于怎么使用 QPainter. 添加 DSimpleListItem 列表到视图中. items 视图项列表. 设置圆角半径. radius 圆角大小. 设置列隐藏标志 toggleHideFlags 用于控制列的隐藏标志,用于切换显示/隐藏。 visibleColumnIndex 列始终可见的列索引,默认值为 -1,表示列始终不可见。 设置列排序算法. algorithms 列排序算法 , sortColumn 排序的列项 , descendingSort 是否为降序排序. 设置列标题信息 titles 标题列表, widths 宽度列表, height 高度. 设置边角细节. enableFrame 是否绘制边角 color 边角颜色 opacity 不透明度 设置行高. height 行高. 设置搜索算法. algorithm 搜索算法. DStackWidget 在内容展示方面类似于一个使用了 QStackedLayout 布局的控件, 即在同一个位置展示不同的内容, 但 DStackWidget 提供了 切换内容时的动画效果, 并且可进行自定义动画, 另外 DStackWidget 采用了栈的先入后出理念(不过也并没有完全遵守), 使用 DStackWidget::pushWidget 方法入栈新的内容, 使用 DStackWidget::popWidget 出栈当前内容并显示下层内容(如果有的话), 还有 DStackWidget::insertWidget 可以指定插入的位置. DStackWidget 在内容展示方面类似于一个使用了 QStackedLayout 布局的控件, 即在同一个位置展示不同的内容, 但 DStackWidget 提供了 切换内容时的动画效果, 并且可进行自定义动画, 另外 DStackWidget 采用了栈的先入后出理念(不过也并没有完全遵守), 使用 DStackWidget::pushWidget 方法入栈新的内容, 使用 DStackWidget::popWidget 出栈当前内容并显示下层内容(如果有的话), 还有 DStackWidget::insertWidget 可以指定插入的位置. 如果要自定义动画则需要继承 DAbstractStackWidgetTransition, 具体实现可参考 DSlideStackWidgetTransition 类, DSlideStackWidgetTransition 类是 DStackWidget 使用的默认动画即滑动.List of All Members for ConsoleAppender
+
+
+ ConsoleAppender Class
+class Dtk::Core::ConsoleAppender
+
+
+
Header: #include <ConsoleAppender>
+ Protected Functions
+
+
+ virtual void append(const QDateTime &timeStamp, int logLevel, const char *file, int line, const char *function, const QString &category, const QString &message) Detailed Description
+QT_MESSAGE_PATTERN
environment variable. If you need your application to ignore this environment variable you can call ConsoleAppender::ignoreEnvironmentPattern(true)Member Function Documentation
+
+
+[virtual protected]
void ConsoleAppender::append(const QDateTime &timeStamp, int logLevel, const char *file, int line, const char *function, const QString &category, const QString &message)List of All Members for DConfigBackend
+DConfigBackend Class
+class Dtk::Core::DConfigBackend
+
+
+
Header: #include <DConfigBackend>
+ Public Functions
+
+
+ virtual bool isValid() const = 0
+ virtual QStringList keyList() const = 0
+ virtual bool load(const QString &) = 0
+ virtual QString name() const
+ virtual void setValue(const QString &key, const QVariant &value) = 0
+ virtual QVariant value(const QString &key, const QVariant &fallback = QVariant()) const = 0 Detailed Description
+Member Function Documentation
+
+
+[pure virtual]
bool DConfigBackend::isValid() const
+[pure virtual]
QStringList DConfigBackend::keyList() const
+[pure virtual]
bool DConfigBackend::load(const QString &)
+[virtual]
QString DConfigBackend::name() const
+[pure virtual]
void DConfigBackend::setValue(const QString &key, const QVariant &value)
+[pure virtual]
QVariant DConfigBackend::value(const QString &key, const QVariant &fallback = QVariant()) constList of All Members for DDesktopEntry
+
+
+ DDesktopEntry Class
+class Dtk::Core::DDesktopEntry
+
+
+
Header: #include <DDesktopEntry>
+ Public Functions
+
+
+ QStringList allGroups(bool sorted = false) const
+ QString comment() const
+ bool contains(const QString &key, const QString §ion = ...) const
+ QString ddeDisplayName() const
+ QString genericName() const
+ QStringList keys(const QString §ion = ...) const
+ QString localizedValue(const QString &key, const QString &localeKey = ..., const QString §ion = ..., const QString &defaultValue = QString()) const
+ QString localizedValue(const QString &key, const QLocale &locale, const QString §ion = ..., const QString &defaultValue = QString()) const
+ QString name() const
+ QString rawValue(const QString &key, const QString §ion = ..., const QString &defaultValue = QString()) const
+ bool save() const
+ Dtk::Core::DDesktopEntry::Status status() const
+ QStringList stringListValue(const QString &key, const QString §ion = ...) const
+ QString stringValue(const QString &key, const QString §ion = ..., const QString &defaultValue = QString()) const Detailed Description
+Member Function Documentation
+
+QStringList DDesktopEntry::allGroups(bool sorted = false) const
+QString DDesktopEntry::comment() const
+bool DDesktopEntry::contains(const QString &key, const QString §ion = ...) const
+QString DDesktopEntry::ddeDisplayName() const
+QString DDesktopEntry::genericName() const
+QStringList DDesktopEntry::keys(const QString §ion = ...) const
+QString DDesktopEntry::localizedValue(const QString &key, const QString &localeKey = ..., const QString §ion = ..., const QString &defaultValue = QString()) const
+QString DDesktopEntry::localizedValue(const QString &key, const QLocale &locale, const QString §ion = ..., const QString &defaultValue = QString()) const
+QString DDesktopEntry::name() const
+QString DDesktopEntry::rawValue(const QString &key, const QString §ion = ..., const QString &defaultValue = QString()) const
+bool DDesktopEntry::save() const
+Dtk::Core::DDesktopEntry::Status DDesktopEntry::status() const
+QStringList DDesktopEntry::stringListValue(const QString &key, const QString §ion = ...) const
+QString DDesktopEntry::stringValue(const QString &key, const QString §ion = ..., const QString &defaultValue = QString()) const
+List of All Members for DDiskSizeFormatter
+
+
+ DDiskSizeFormatter Class
+class Dtk::Core::DDiskSizeFormatter
+
+
+
Header: #include <DDiskSizeFormatter>
+ Public Types
+
+
+ enum DiskUnits { B, K, M, G, T } Public Functions
+
+
+ DDiskSizeFormatter()
+ Dtk::Core::DDiskSizeFormatter rate(int rate)
+ QString unitStr(int unitId) const Protected Functions
+
+
+ uint unitConvertRate(int unitId) const
+ int unitMax() const
+ int unitMin() const Detailed Description
+Member Type Documentation
+
+enum DDiskSizeFormatter::DiskUnits
+
+Constant Value Description
+Dtk::Core::DDiskSizeFormatter::B
0
字节
+Dtk::Core::DDiskSizeFormatter::K
1
千字节
+Dtk::Core::DDiskSizeFormatter::M
2
兆字节
+Dtk::Core::DDiskSizeFormatter::G
3
吉字节
+Dtk::Core::DDiskSizeFormatter::T
4
太字节 Member Function Documentation
+
+DDiskSizeFormatter::DDiskSizeFormatter()
+Dtk::Core::DDiskSizeFormatter DDiskSizeFormatter::rate(int rate)
+
+[protected]
uint DDiskSizeFormatter::unitConvertRate(int unitId) const
+[protected]
int DDiskSizeFormatter::unitMax() const
+[protected]
int DDiskSizeFormatter::unitMin() constQString DDiskSizeFormatter::unitStr(int unitId) const
+List of All Members for DFileWatcherManager
+DFileWatcherManager Class
+class Dtk::Core::DFileWatcherManager
+
+
+
Header: #include <DFileWatcherManager>
+ Public Functions
+
+
+
+Detailed Description
+Member Function Documentation
+
+Dtk::Core::DFileWatcher *DFileWatcherManager::add(const QString &filePath)
+void DFileWatcherManager::remove(const QString &filePath)
+List of All Members for DLogManager
+
+
+ DLogManager Class
+class Dtk::Core::DLogManager
+
+
+
Header: #include <DLogManager>
+ Static Public Members
+
+
+ QString getlogFilePath()
+ void registerConsoleAppender()
+ void registerFileAppender()
+ void setlogFilePath(const QString &logFilePath) Detailed Description
+Member Function Documentation
+
+
+[static]
QString DLogManager::getlogFilePath()
+[static]
void DLogManager::registerConsoleAppender()
+[static]
void DLogManager::registerFileAppender()
+[static]
void DLogManager::setlogFilePath(const QString &logFilePath)Macros
Macro Documentation
D_PRIVATE_SLOT(Func)
-
@@ -73,14 +73,14 @@
+
+*qq)
: DObjectPrivate(qq)
{
- QTimer *timer = new QTimer();
- QObject::connect(timer, SIGNAL(timeout()), qq, SLOT(_q_testSlot()));
+ QTimer *timer = new QTimer();
+ QObject::connect(timer, SIGNAL(timeout()), qq, SLOT(_q_testSlot()));
timer->start(1000);
}
void _q_testSlot() const
{
- qDebug() << "slot";
+ qDebug() << "slot";
}
};
diff --git a/dtk-core-qsettingbackend-members.html b/dtk-core-qsettingbackend-members.html
new file mode 100644
index 0000000..154e6d7
--- /dev/null
+++ b/dtk-core-qsettingbackend-members.html
@@ -0,0 +1,61 @@
+
+
+
+
+
+
List of All Members for QSettingBackend
+
+
+ QSettingBackend Class
+class Dtk::Core::QSettingBackend
+
+
+
Header: #include <QSettingBackend>
+ Public Functions
+
+
+ QSettingBackend(const QString &filepath, QObject *parent = 0)
+ virtual QVariant getOption(const QString &key) const override
+ virtual QStringList keys() const override Protected Slots
+
+
+ virtual void doSetOption(const QString &key, const QVariant &value) override
+ virtual void doSync() override Detailed Description
+Member Function Documentation
+
+QSettingBackend::QSettingBackend(const QString &filepath, QObject *parent = 0)
+
+[override virtual protected slot]
void QSettingBackend::doSetOption(const QString &key, const QVariant &value)
+[override virtual protected slot]
void QSettingBackend::doSync()
+[override virtual]
QVariant QSettingBackend::getOption(const QString &key) const
+[override virtual]
QStringList QSettingBackend::keys() constCore Namespace
Header: #include <Core>
+
+Classes
+
+
+ class ConsoleAppender
+ class DConfigBackend
+ class DDesktopEntry
+ class DDiskSizeFormatter
+ class DFileWatcherManager
+ class DLogManager
+ class QSettingBackend Detailed Description
Classes
+ class ConsoleAppender
+ class DConfigBackend
+ class DDesktopEntry
+ class DDiskSizeFormatter
+ class DFileWatcherManager
+ class DLogManager
+ class QSettingBackend
+
+
+List of All Members for DFileDrag
+
+
+ Contents
DFileDrag Class
class Dtk::Gui::DFileDrag
-
Header: #include <DFileDrag>
Public Functions
+
+
+ void setMimeData(QMimeData *data)
+ QUrl targetUrl() Signals
+
+
+ void targetUrlChanged(QUrl url) Detailed Description
Member Function Documentation
+
+
+[signal]
void DFileDrag::targetUrlChanged(QUrl url)void DFileDrag::setMimeData(QMimeData *data)
+QUrl DFileDrag::targetUrl()
+List of All Members for DFileDragClient
+
diff --git a/dtk-gui-dfiledragclient.html b/dtk-gui-dfiledragclient.html
index c248b18..80e4432 100644
--- a/dtk-gui-dfiledragclient.html
+++ b/dtk-gui-dfiledragclient.html
@@ -39,6 +39,8 @@
Contents
@@ -54,12 +56,25 @@ DFileDragClient Class
Public Functions
+
+
+Signals
+
+
+ void progressChanged(int progress)
+ void serverDestroyed()
+ void stateChanged(Dtk::Gui::DFileDragState state) Static Public Members
- bool checkMimeData(const QMimeData *data)
- void setTargetData(const QMimeData *data, int key, int value)
+ void setTargetUrl(const QMimeData *data, int url)
+ void setTargetData(const QMimeData *data, QString key, QVariant value) void setTargetUrl(const QMimeData *data, QUrl url) Detailed Description
Member Function Documentation
+
+
+[signal]
void DFileDragClient::progressChanged(int progress)
+[signal]
void DFileDragClient::serverDestroyed()
+[signal]
void DFileDragClient::stateChanged(Dtk::Gui::DFileDragState state)
+[static]
bool DFileDragClient::checkMimeData(const QMimeData *data)[static]
bool DFileDragClient::checkMimeData(const QMimeData *data)
+
+[static]
void DFileDragClient::setTargetData(const QMimeData *data, int key, int value)int DFileDragClient::progress() const
+[static]
void DFileDragClient::setTargetData(const QMimeData *data, QString key, QVariant value)
+
+[static]
void DFileDragClient::setTargetUrl(const QMimeData *data, int url)[static]
void DFileDragClient::setTargetUrl(const QMimeData *data, QUrl url)Dtk::Gui::DFileDragState DFileDragClient::state() const
+List of All Members for DForeignWindow
+
+
+ DForeignWindow Class
Header: #include <DForeignWindow>
Properties
+
+
+Public Functions
+
+
+ DForeignWindow(QWindow *parent = 0)
+ quint32 pid() const
+ QString wmClass() const Signals
+
+
+ void pidChanged()
+ void wmClassChanged() Static Public Members
+
+
+ Dtk::Gui::DForeignWindow * fromWinId(int id) Detailed Description
-Property Documentation
+
+pid : const quint32
+
+
+ quint32 pid() const
+
+ void pidChanged() wmClass : const QString
+
+
+ QString wmClass() const
+
+ void wmClassChanged() Member Function Documentation
+
+DForeignWindow::DForeignWindow(QWindow *parent = 0)
+
+[signal]
void DForeignWindow::pidChanged()
+[signal]
void DForeignWindow::wmClassChanged()
+[static]
Dtk::Gui::DForeignWindow *DForeignWindow::fromWinId(int id)
+ // a.cpp
+ int main(int argc, char *argv[])
+ {
+ DApplication a(argc, argv);
+
+ QWidget w;
+
+ w.setWindowTitle("deepin");
+ w.show();
+
+ QFile app_win_id("/tmp/window_id.txt");
+ if (app_win_id.open(QFile::WriteOnly)) {
+ app_win_id.write(QByteArray::number(w.winId()));
+ app_win_id.close();
+ }
+
+ return a.exec();
+ }
+
+
+ // b.cpp
+ int main(int argc, char *argv[])
+ {
+ DApplication::loadDXcbPlugin();
+ DApplication a(argc, argv);
+
+ DForeignWindow *fw = nullptr;
+ QFile app_win_id("/tmp/window_id.txt");
+ if (app_win_id.open(QFile::ReadOnly)) {
+ fw = DForeignWindow::fromWinId(app_win_id.readAll().toInt());
+ }
+
+ if (fw) {
+ qDebug() << fw->title();
+
+ fw->connect(fw, &DForeignWindow::widthChanged, [&] {
+ qDebug() << fw->width();
+ });
+ }
+
+ return a.exec();
+ }
+
+
+ "deepin"
+
+Contents
DPalette Class
class Dtk::Gui::DPalette
-
Header: #include <DPalette>
diff --git a/dtk-gui-dplatformhandle.html b/dtk-gui-dplatformhandle.html
index f81edfb..8769222 100644
--- a/dtk-gui-dplatformhandle.html
+++ b/dtk-gui-dplatformhandle.html
@@ -82,7 +82,7 @@ Public Functions
Detailed Description
-
┏━━━━━━━━━━━━━━━━┓
┃ Application ┃
@@ -98,9 +98,9 @@
Detailed Description
Member Function Documentation
diff --git a/dtk-gui-dplatformtheme-members.html b/dtk-gui-dplatformtheme-members.html
new file mode 100644
index 0000000..3bb1d26
--- /dev/null
+++ b/dtk-gui-dplatformtheme-members.html
@@ -0,0 +1,187 @@
+
+
+
+
+
+ List of All Members for DPlatformTheme
+
+
+
+
+
+DPlatformTheme Class
Header: #include <DPlatformTheme>
Inherits: Dtk::Gui::DNativeSettings Public Functions
+
+
+ QColor activeColor() const
+ QColor alternateBase() const
+ QColor base() const
+ QColor brightText() const
+ QColor button() const
+ QColor buttonText() const
+ bool cursorBlink() const
+ int cursorBlinkTime() const
+ int cursorBlinkTimeout() const
+ QColor dark() const
+ QColor darkLively() const
+ int dndDragThreshold() const
+ int doubleClickDistance() const
+ int doubleClickTime() const
+ QByteArray fontName() const
+ int fontPointSize() const
+ QColor frameBorder() const
+ QByteArray gtkFontName() const
+ QColor highlight() const
+ QColor highlightedText() const
+ QByteArray iconThemeName() const
+ QColor itemBackground() const
+ QColor light() const
+ QColor lightLively() const
+ QColor link() const
+ QColor linkVisited() const
+ QColor mid() const
+ QColor midlight() const
+ QByteArray monoFontName() const
+ QColor shadow() const
+ QByteArray soundThemeName() const
+ QColor text() const
+ QColor textLively() const
+ QColor textTips() const
+ QColor textTitle() const
+ QColor textWarning() const
+ QByteArray themeName() const
+ QColor toolTipBase() const
+ QColor toolTipText() const
+ QColor window() const
+ int windowRadius() const
+ int windowRadius(int defaultValue) const
+ QColor windowText() const Public Slots
+
+
+ void setActiveColor(const QColor activeColor)
+ void setAlternateBase(const QColor &alternateBase)
+ void setBase(const QColor &base)
+ void setBrightText(const QColor &brightText)
+ void setButton(const QColor &button)
+ void setButtonText(const QColor &buttonText)
+ void setCursorBlink(bool cursorBlink)
+ void setCursorBlinkTime(int cursorBlinkTime)
+ void setCursorBlinkTimeout(int cursorBlinkTimeout)
+ void setDark(const QColor &dark)
+ void setDarkLively(const QColor &darkLively)
+ void setDndDragThreshold(int dndDragThreshold)
+ void setDoubleClickDistance(int doubleClickDistance)
+ void setDoubleClickTime(int doubleClickTime)
+ void setFontName(const QByteArray &fontName)
+ void setFontPointSize(int fontPointSize)
+ void setFrameBorder(const QColor &frameBorder)
+ void setGtkFontName(const QByteArray &fontName)
+ void setHighlight(const QColor &highlight)
+ void setHighlightedText(const QColor &highlightedText)
+ void setIconThemeName(const QByteArray &iconThemeName)
+ void setItemBackground(const QColor &itemBackground)
+ void setLight(const QColor &light)
+ void setLightLively(const QColor &lightLively)
+ void setLink(const QColor &link)
+ void setLinkVisited(const QColor &linkVisited)
+ void setMid(const QColor &mid)
+ void setMidlight(const QColor &midlight)
+ void setMonoFontName(const QByteArray &monoFontName)
+ void setShadow(const QColor &shadow)
+ void setSoundThemeName(const QByteArray &soundThemeName)
+ void setText(const QColor &text)
+ void setTextLively(const QColor &textLively)
+ void setTextTips(const QColor &textTips)
+ void setTextTitle(const QColor &textTitle)
+ void setTextWarning(const QColor &textWarning)
+ void setThemeName(const QByteArray &themeName)
+ void setToolTipBase(const QColor &toolTipBase)
+ void setToolTipText(const QColor &toolTipText)
+ void setWindow(const QColor &window)
+ void setWindowRadius(int windowRadius)
+ void setWindowText(const QColor &windowText) Signals
+
+
+ void activeColorChanged(QColor activeColor)
+ void alternateBaseChanged(QColor alternateBase)
+ void baseChanged(QColor base)
+ void brightTextChanged(QColor brightText)
+ void buttonChanged(QColor button)
+ void buttonTextChanged(QColor buttonText)
+ void cursorBlinkChanged(bool cursorBlink)
+ void cursorBlinkTimeChanged(int cursorBlinkTime)
+ void cursorBlinkTimeoutChanged(int cursorBlinkTimeout)
+ void darkChanged(QColor dark)
+ void darkLivelyChanged(QColor darkLively)
+ void dndDragThresholdChanged(int dndDragThreshold)
+ void doubleClickDistanceChanged(int doubleClickDistance)
+ void doubleClickTimeChanged(int doubleClickTime)
+ void fontNameChanged(QByteArray fontName)
+ void fontPointSizeChanged(int fontPointSize)
+ void frameBorderChanged(QColor frameBorder)
+ void gtkFontNameChanged(QByteArray fontName)
+ void highlightChanged(QColor highlight)
+ void highlightedTextChanged(QColor highlightedText)
+ void iconThemeNameChanged(QByteArray iconThemeName)
+ void itemBackgroundChanged(QColor itemBackground)
+ void lightChanged(QColor light)
+ void lightLivelyChanged(QColor lightLively)
+ void linkChanged(QColor link)
+ void linkVisitedChanged(QColor linkVisited)
+ void midChanged(QColor mid)
+ void midlightChanged(QColor midlight)
+ void monoFontNameChanged(QByteArray monoFontName)
+ void shadowChanged(QColor shadow)
+ void soundThemeNameChanged(QByteArray soundThemeName)
+ void textChanged(QColor text)
+ void textLivelyChanged(QColor textLively)
+ void textTipsChanged(QColor textTips)
+ void textTitleChanged(QColor textTitle)
+ void textWarningChanged(QColor textWarning)
+ void themeNameChanged(QByteArray themeName)
+ void toolTipBaseChanged(QColor toolTipBase)
+ void toolTipTextChanged(QColor toolTipText)
+ void windowChanged(QColor window)
+ void windowRadiusChanged(int r)
+ void windowTextChanged(QColor windowText) List of All Members for DRegionMonitor
+
+
+ DRegionMonitor Class
Header: #include <DRegionMonitor>
Public Types
+
+
+ enum RegisterdFlag { Motion, Button, Key }
+ flags RegisterdFlags Properties
+
+
+
+Public Functions
+
+
+ Dtk::Gui::DRegionMonitor::CoordinateType coordinateType() const
+ Dtk::Gui::DRegionMonitor::RegisterdFlags registerFlags() const Public Slots
+
+
+ void setCoordinateType(Dtk::Gui::DRegionMonitor::CoordinateType type)
+ void setRegisterFlags(Dtk::Gui::DRegionMonitor::RegisterdFlags flags) Signals
+
+
+ void coordinateTypeChanged(Dtk::Gui::DRegionMonitor::CoordinateType type) const
+ void registerdFlagsChanged(Dtk::Gui::DRegionMonitor::RegisterdFlags flags) const Detailed Description
Member Type Documentation
+
+enum DRegionMonitor::RegisterdFlag
+
flags DRegionMonitor::RegisterdFlags
+Constant Value Description
+Dtk::Gui::DRegionMonitor::Motion
1 << 0
代表监听鼠标移动。
+Dtk::Gui::DRegionMonitor::Button
1 << 1
代表监听鼠标按键。
+Dtk::Gui::DRegionMonitor::Key
1 << 2
代表监听键盘按键。 Property Documentation
+
+registerdFlags : RegisterdFlags
+
+
+ Dtk::Gui::DRegionMonitor::RegisterdFlags registerFlags() const
+ void setRegisterFlags(Dtk::Gui::DRegionMonitor::RegisterdFlags flags)
+
+ void registerdFlagsChanged(Dtk::Gui::DRegionMonitor::RegisterdFlags flags) const List of All Members for DTaskbarControl
+
+
+ DTaskbarControl Class
Header: #include <DTaskbarControl>
Public Functions
+
+
+ int counter() const
+ bool counterVisible() const
+ void setCounter(bool counterVisible, int counter)
+ void setCounterVisible(bool counterVisible)
+ void setProgress(bool progressVisible, double progress)
+ void setUrgency(bool val) Detailed Description
-Member Function Documentation
+
+int DTaskbarControl::counter() const
+bool DTaskbarControl::counterVisible() const
+void DTaskbarControl::setCounter(bool counterVisible, int counter)
+void DTaskbarControl::setCounterVisible(bool counterVisible)
+void DTaskbarControl::setProgress(bool progressVisible, double progress)
+void DTaskbarControl::setUrgency(bool val)
+List of All Members for DThumbnailProvider
+
+
+ DThumbnailProvider Class
Header: #include <DThumbnailProvider>
Public Functions
+
+
+ qint64 defaultSizeLimit() const
+ QString errorString() const
+ void setDefaultSizeLimit(qint64 size)
+ void setSizeLimit(const QMimeType &mimeType, qint64 size)
+ qint64 sizeLimit(const QMimeType &mimeType) const Detailed Description
Member Function Documentation
+
+qint64 DThumbnailProvider::defaultSizeLimit() const
+QString DThumbnailProvider::errorString() const
+void DThumbnailProvider::setDefaultSizeLimit(qint64 size)
+void DThumbnailProvider::setSizeLimit(const QMimeType &mimeType, qint64 size)
+qint64 DThumbnailProvider::sizeLimit(const QMimeType &mimeType) const
+List of All Members for DWindowGroupLeader
-
DWindowGroupLeader Class
Public Functions
-
DWindowGroupLeader(int groupId = 0) ~DWindowGroupLeader() void addWindow(QWindow *window)
@@ -68,11 +67,11 @@ int clientLeaderId() const Public Functions
Detailed Description
-
DWindowGroupLeader leader;
- QWindow wa, wb;
- QWindow topWindow;
+ QWindow wa, wb;
+ QWindow topWindow;
leader.addWindow(&wa);
leader.addWindow(&wb);
@@ -90,24 +89,19 @@
Detailed Description
topWindow.show();
Member Function Documentation
-
-DWindowGroupLeader::DWindowGroupLeader(int groupId = 0)
-DWindowGroupLeader::~DWindowGroupLeader()
void DWindowGroupLeader::addWindow(QWindow *window)
+void DWindowGroupLeader::addWindow(QWindow *window)
int DWindowGroupLeader::groupLeaderId() const
-void DWindowGroupLeader::removeWindow(QWindow *window)
+void DWindowGroupLeader::removeWindow(QWindow *window)
List of All Members for DWindowManagerHelper
+
+
+
+
+
+DWindowManagerHelper Class
Header: #include <DWindowManagerHelper>
Public Types
+
+
+ enum MotifFunction { FUNC_RESIZE, FUNC_MOVE, FUNC_MINIMIZE, FUNC_MAXIMIZE, FUNC_CLOSE, FUNC_ALL } Properties
+
+
+
+Public Functions
+
+
+ QVector<quint32> allWindowIdList() const
+ QVector<quint32> currentWorkspaceWindowIdList() const
+ QList<Dtk::Gui::DForeignWindow *> currentWorkspaceWindows() const
+ bool hasBlurWindow() const
+ bool hasComposite() const
+ bool hasNoTitlebar() const
+ bool hasWallpaperEffect() const
+ quint32 windowFromPoint(const QPoint &p)
+ int windowManagerName() const
+ QString windowManagerNameString() const Signals
+
+
+ void hasBlurWindowChanged()
+ void hasCompositeChanged()
+ void hasNoTitlebarChanged()
+ void hasWallpaperEffectChanged()
+ void windowListChanged()
+ void windowManagerChanged()
+ void windowMotifWMHintsChanged(quint32 winId) Static Public Members
+
+
+ int getMotifDecorations(const QWindow *)
+ int getMotifFunctions(const QWindow *)
+ Dtk::Gui::DWindowManagerHelper * instance()
+ void popupSystemWindowMenu(const QWindow *window)
+ void setMotifDecorations(const QWindow *window, int hints)
+ int setMotifDecorations(const QWindow *, int, bool)
+ void setMotifFunctions(const QWindow *window, int hints)
+ int setMotifFunctions(const QWindow *, int, bool)
+ void setWmClassName(const QByteArray &name)
+ void setWmWindowTypes(QWindow *window, int types) Protected Functions
+
+
+ DWindowManagerHelper(QObject *parent = 0) Detailed Description
Member Type Documentation
+
+enum DWindowManagerHelper::MotifFunction
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_RESIZE
(1L << 1)
控制窗口大小。如果存在此标志,则窗口管理器可以改变窗口大小(如使用鼠标拖拽窗口边缘), 否则无法通过外部行为调整窗口大小。
+ DMainWindow w;
+
+ w.resize(400, 200);
+ w.show();
+ DWindowManagerHelper::setMotifFunctions(w.windowHandle(), DWindowManagerHelper::FUNC_RESIZE, false);
+
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_MOVE
(1L << 2)
控制窗口位置。如果存在此标志,则窗口管理器可以移动窗口(如使用鼠标拖动标题栏),否则 无法通过外部行为移动窗口位置。
+ DWindowManagerHelper::setMotifFunctions(w.windowHandle(), DWindowManagerHelper::FUNC_MOVE, false);
+
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_MINIMIZE
(1L << 3)
最小化窗口。如果存在此标志,则窗口可以被最小化(如点击标题栏的最小化按钮),否则无法 通过外部行为最小化窗口。
+ DWindowManagerHelper::setMotifFunctions(w.windowHandle(), DWindowManagerHelper::FUNC_MINIMIZE, false);
+
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_MAXIMIZE
(1L << 4)
最大化窗口。如果存在此标志,则窗口可以被最大化(如点击标题栏的最大化按钮),否则无法 通过外部行为最大化窗口。
+ DWindowManagerHelper::setMotifFunctions(w.windowHandle(), DWindowManagerHelper::FUNC_MAXIMIZE, false);
+
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_CLOSE
(1L << 5)
关闭窗口。如果存在此标志,则窗口可以被关闭(如点击标题栏的关闭按钮或使用Alt+F4快捷键), 否则无法通过外部行为关闭窗口。
+ DWindowManagerHelper::setMotifFunctions(w.windowHandle(), DWindowManagerHelper::FUNC_CLOSE, false);
+
+
+Constant Value Description
+Dtk::Gui::DWindowManagerHelper::FUNC_ALL
FUNC_RESIZE | FUNC_MOVE | FUNC_MINIMIZE | FUNC_MAXIMIZE | FUNC_CLOSE
所有功能性行为 Property Documentation
+
+hasBlurWindow : const bool
+
+
+ bool hasBlurWindow() const
+
+ void hasBlurWindowChanged() hasComposite : const bool
+
+
+ bool hasComposite() const
+
+ void hasCompositeChanged() hasNoTitlebar : const bool
+
+
+ bool hasNoTitlebar() const
+
+ void hasNoTitlebarChanged() hasWallpaperEffect : const bool
+
+
+ bool hasWallpaperEffect() const
+
+ void hasWallpaperEffectChanged() Member Function Documentation
+
+
+[protected]
DWindowManagerHelper::DWindowManagerHelper(QObject *parent = 0)
+[signal]
void DWindowManagerHelper::hasBlurWindowChanged()
+[signal]
void DWindowManagerHelper::hasCompositeChanged()
+[signal]
void DWindowManagerHelper::hasNoTitlebarChanged()
+[signal]
void DWindowManagerHelper::hasWallpaperEffectChanged()
+[signal]
void DWindowManagerHelper::windowListChanged()
+[signal]
void DWindowManagerHelper::windowManagerChanged()
+[signal]
void DWindowManagerHelper::windowMotifWMHintsChanged(quint32 winId)QVector<quint32> DWindowManagerHelper::allWindowIdList() const
+QVector<quint32> DWindowManagerHelper::currentWorkspaceWindowIdList() const
+QList<Dtk::Gui::DForeignWindow *> DWindowManagerHelper::currentWorkspaceWindows() const
+
+[static]
int DWindowManagerHelper::getMotifDecorations(const QWindow *)
+[static]
int DWindowManagerHelper::getMotifFunctions(const QWindow *)bool DWindowManagerHelper::hasBlurWindow() const
+bool DWindowManagerHelper::hasComposite() const
+bool DWindowManagerHelper::hasNoTitlebar() const
+bool DWindowManagerHelper::hasWallpaperEffect() const
+
+[static]
Dtk::Gui::DWindowManagerHelper *DWindowManagerHelper::instance()
+[static]
void DWindowManagerHelper::popupSystemWindowMenu(const QWindow *window)
+[static]
void DWindowManagerHelper::setMotifDecorations(const QWindow *window, int hints)
+[static]
int DWindowManagerHelper::setMotifDecorations(const QWindow *, int, bool)
+[static]
void DWindowManagerHelper::setMotifFunctions(const QWindow *window, int hints)
+[static]
int DWindowManagerHelper::setMotifFunctions(const QWindow *, int, bool)
+[static]
void DWindowManagerHelper::setWmClassName(const QByteArray &name)
+[static]
void DWindowManagerHelper::setWmWindowTypes(QWindow *window, int types)quint32 DWindowManagerHelper::windowFromPoint(const QPoint &p)
+int DWindowManagerHelper::windowManagerName() const
+QString DWindowManagerHelper::windowManagerNameString() const
+Detailed Description
Classes
class DFileDrag
- class DFileDragClient
class DNativeSettings
class DPalette
- class DPlatformHandle
List of All Members for DAboutDialog
-
-
DAboutDialog Class
Public Functions
-
+ void setAcknowledgementLink(const int &acknowledgementLink) void setAcknowledgementLink(const QString &acknowledgementLink)
- void setAcknowledgementVisible(bool visible)
- void setCompanyLogo(const int &companyLogo)
- void setDescription(const int &description)
- void setLicense(const int &license)
- void setProductIcon(const int &icon)
- void setProductName(const int &productName)
- void setVersion(const int &version)
- void setWebsiteLink(const int &websiteLink)
+ void setWebsiteName(const int &websiteName)
+ void setDescription(const QString &description)
+ void setLicense(const QString &license)
+ void setProductName(const QString &productName)
+ void setVersion(const QString &version)
+ void setWebsiteLink(const QString &websiteLink) void setWebsiteName(const QString &websiteName) Detailed Description
Member Function Documentation
-
-void DAboutDialog::setAcknowledgementLink(const int &acknowledgementLink)
+
+void DAboutDialog::setAcknowledgementLink(const QString &acknowledgementLink)
void DAboutDialog::setAcknowledgementVisible(bool visible)
void DAboutDialog::setCompanyLogo(const int &companyLogo)
-void DAboutDialog::setDescription(const int &description)
+
+void DAboutDialog::setDescription(const QString &description)
void DAboutDialog::setLicense(const int &license)
+
+void DAboutDialog::setLicense(const QString &license)
void DAboutDialog::setProductIcon(const int &icon)
-void DAboutDialog::setProductName(const int &productName)
+
+void DAboutDialog::setProductName(const QString &productName)
void DAboutDialog::setVersion(const int &version)
+
+void DAboutDialog::setVersion(const QString &version)
void DAboutDialog::setWebsiteLink(const int &websiteLink)
+
+void DAboutDialog::setWebsiteLink(const QString &websiteLink)
void DAboutDialog::setWebsiteName(const int &websiteName)
+
+void DAboutDialog::setWebsiteName(const QString &websiteName)
List of All Members for DAnchors
+
+
+
+
+
+DAnchors Class
Detailed Description
-List of All Members for DAnchorsBase
+
+
+
+
+
+Contents
+
Contents
DAnchorsBase Class
class Dtk::Widget::DAnchorsBase
-
Header: #include <DAnchorsBase>
@@ -57,36 +62,120 @@ DAnchorsBase Class
Public Types
+
+
+ enum AnchorError { NoError, Conflict, TargetInvalid, PointInvalid, LoopBind } Properties
+
+
+
+
+
+Public Functions
+
+ DAnchorsBase(QWidget *w)
+ ~DAnchorsBase()
+ int alignWhenCentered() const
+ int bottomMargin() const
+ QWidget * centerIn() const
+ bool enabled() const
+ Dtk::Widget::DEnhancedWidget * enhancedWidget() const
+ Dtk::Widget::DAnchorsBase::AnchorError errorCode() const
+ QString errorString() const
+ QWidget * fill() const
+ int horizontalCenterOffset() const
+ bool isBinding(const Dtk::Widget::DAnchorInfo *info) const
+ int leftMargin() const
+ int margins() const
+ int rightMargin() const
+ QWidget * target() const
+ int topMargin() const
+ int verticalCenterOffset() const Public Slots
+
+ void moveBottom(int arg) void moveCenter(const QPoint &arg) void moveHorizontalCenter(int arg) void moveLeft(int arg) void moveRight(int arg) void moveTop(int arg)
- void moveVerticalCenter(int arg)
+ bool setAnchor(const int &p, QWidget *target, const int &point)
+ void setAlignWhenCentered(bool alignWhenCentered) void setBottomMargin(int bottomMargin)
+ bool setCenterIn(Dtk::Widget::DAnchorsBase *centerIn)
+ bool setCenterIn(QWidget *centerIn) void setEnabled(bool enabled)
+ bool setFill(Dtk::Widget::DAnchorsBase *fill)
+ bool setFill(QWidget *fill)
+ void setHorizontalCenterOffset(int horizontalCenterOffset)
+ void setLeftMargin(int leftMargin)
+ void setMargins(int margins)
+ void setRightMargin(int rightMargin)
+ void setTopMargin(int topMargin)
+ void setVerticalCenterOffset(int verticalCenterOffset) Signals
+
+
+ void alignWhenCenteredChanged(bool alignWhenCentered)
+ void bottomChanged(const Dtk::Widget::DAnchorInfo *bottom)
+ void bottomMarginChanged(int bottomMargin)
+ void centerInChanged(QWidget *centerIn)
+ void enabledChanged(bool enabled)
+ void fillChanged(QWidget *fill)
+ void horizontalCenterChanged(const Dtk::Widget::DAnchorInfo *horizontalCenter)
+ void horizontalCenterOffsetChanged(int horizontalCenterOffset)
+ void leftChanged(const Dtk::Widget::DAnchorInfo *left)
+ void leftMarginChanged(int leftMargin)
+ void marginsChanged(int margins)
+ void rightChanged(const Dtk::Widget::DAnchorInfo *right)
+ void rightMarginChanged(int rightMargin)
+ void topChanged(const Dtk::Widget::DAnchorInfo *top)
+ void topMarginChanged(int topMargin)
+ void verticalCenterChanged(const Dtk::Widget::DAnchorInfo *verticalCenter)
+ void verticalCenterOffsetChanged(int verticalCenterOffset) Static Public Members
+
+
+ void clearAnchors(const QWidget *w) Dtk::Widget::DAnchorsBase * getAnchorBaseByWidget(const QWidget *w) Detailed Description
- DAnchors<QLabel> rect1(new QLabel("rect1"));
- DAnchors<QLabel> rect2(new QLabel("rect2"));
+ DAnchors<QLabel> rect1(new QLabel("rect1"));
+ DAnchors<QLabel> rect2(new QLabel("rect2"));
rect2.setLeft(rect1.right());
- DAnchors<QLabel> rect1(new QLabel("rect1"));
- DAnchors<QLabel> rect2(new QLabel("rect2"));
+ DAnchors<QLabel> rect1(new QLabel("rect1"));
+ DAnchors<QLabel> rect2(new QLabel("rect2"));
rect2.setTop(rect1.bottom());
rect2.setLeft(rect1.right());
@@ -94,62 +183,353 @@
Detailed Description
margin_offset 锚定的间隔和偏移
-
- DAnchors<QLabel> rect1(new QLabel("rect1"));
- DAnchors<QLabel> rect2(new QLabel("rect2"));
+ DAnchors<QLabel> rect1(new QLabel("rect1"));
+ DAnchors<QLabel> rect2(new QLabel("rect2"));
rect2.setLeftMargin(5);
rect2.setLeft(rect1.right());
loop_anchor 判断循环锚定的方式
Member Type Documentation
+
+enum DAnchorsBase::AnchorError
+
+Constant Value Description
+Dtk::Widget::DAnchorsBase::NoError
0
设置锚定的过程中没有任何错误发生
+Dtk::Widget::DAnchorsBase::Conflict
1
表示设置的锚定关系跟已有关系存在冲突,如 fill 和 centerIn 不能同时设置
+Dtk::Widget::DAnchorsBase::TargetInvalid
2
表示设置锚定关系时的目标控件无效
+Dtk::Widget::DAnchorsBase::PointInvalid
3
表示设置锚定关系时的“锚线”信息错误,如把 Qt::AnchorLeft 设置到了 Qt::AnchorTop 上
+Dtk::Widget::DAnchorsBase::LoopBind
4
表示设置的锚定关系和已有关系形成了循环绑定 Property Documentation
+
+bottomMargin : int
+
+
+ int bottomMargin() const
+ void setBottomMargin(int bottomMargin)
+
+ void bottomMarginChanged(int bottomMargin) centerIn : QWidget*
+
+
+ QWidget * centerIn() const
+ bool setCenterIn(QWidget *centerIn)
+ bool setCenterIn(Dtk::Widget::DAnchorsBase *centerIn)
+
+ void centerInChanged(QWidget *centerIn) enabled : bool
+
+
+ bool enabled() const
+ void setEnabled(bool enabled)
+
+ void enabledChanged(bool enabled) fill : QWidget*
+
+
+ QWidget * fill() const
+ bool setFill(QWidget *fill)
+ bool setFill(Dtk::Widget::DAnchorsBase *fill)
+
+ void fillChanged(QWidget *fill) horizontalCenterOffset : int
+
+
+ int horizontalCenterOffset() const
+ void setHorizontalCenterOffset(int horizontalCenterOffset)
+
+ void horizontalCenterOffsetChanged(int horizontalCenterOffset) leftMargin : int
+
+
+ int leftMargin() const
+ void setLeftMargin(int leftMargin)
+
+ void leftMarginChanged(int leftMargin) margins : int
+
+
+ int margins() const
+ void setMargins(int margins)
+
+ void marginsChanged(int margins) rightMargin : int
+
+
+ int rightMargin() const
+ void setRightMargin(int rightMargin)
+
+ void rightMarginChanged(int rightMargin) target : QWidget* const
+
+
+ QWidget * target() const topMargin : int
+
+
+ int topMargin() const
+ void setTopMargin(int topMargin)
+
+ void topMarginChanged(int topMargin) verticalCenterOffset : int
+
+
+ int verticalCenterOffset() const
+ void setVerticalCenterOffset(int verticalCenterOffset)
+
+ void verticalCenterOffsetChanged(int verticalCenterOffset) Member Function Documentation
+
+DAnchorsBase::DAnchorsBase(QWidget *w)
+
+[signal]
void DAnchorsBase::bottomChanged(const Dtk::Widget::DAnchorInfo *bottom)
+[signal]
void DAnchorsBase::bottomMarginChanged(int bottomMargin)
+[signal]
void DAnchorsBase::centerInChanged(QWidget *centerIn)
+[signal]
void DAnchorsBase::enabledChanged(bool enabled)
+[signal]
void DAnchorsBase::fillChanged(QWidget *fill)
+[signal]
void DAnchorsBase::horizontalCenterChanged(const Dtk::Widget::DAnchorInfo *horizontalCenter)
+[signal]
void DAnchorsBase::horizontalCenterOffsetChanged(int horizontalCenterOffset)
+[signal]
void DAnchorsBase::leftChanged(const Dtk::Widget::DAnchorInfo *left)
+[signal]
void DAnchorsBase::leftMarginChanged(int leftMargin)
+[signal]
void DAnchorsBase::marginsChanged(int margins)void DAnchorsBase::moveBottom(int arg)
+[slot]
void DAnchorsBase::moveBottom(int arg)
+[slot]
void DAnchorsBase::moveCenter(const QPoint &arg)void DAnchorsBase::moveHorizontalCenter(int arg)
+[slot]
void DAnchorsBase::moveHorizontalCenter(int arg)void DAnchorsBase::moveLeft(int arg)
+[slot]
void DAnchorsBase::moveLeft(int arg)void DAnchorsBase::moveRight(int arg)
+[slot]
void DAnchorsBase::moveRight(int arg)void DAnchorsBase::moveTop(int arg)
+[slot]
void DAnchorsBase::moveTop(int arg)void DAnchorsBase::moveVerticalCenter(int arg)
+[slot]
void DAnchorsBase::moveVerticalCenter(int arg)bool DAnchorsBase::setAnchor(const int &p, QWidget *target, const int &point)
-bool DAnchorsBase::setCenterIn(Dtk::Widget::DAnchorsBase *centerIn)
-
+[signal]
void DAnchorsBase::rightChanged(const Dtk::Widget::DAnchorInfo *right)
+[signal]
void DAnchorsBase::rightMarginChanged(int rightMargin)
+[slot]
bool DAnchorsBase::setCenterIn(Dtk::Widget::DAnchorsBase *centerIn)bool DAnchorsBase::setFill(Dtk::Widget::DAnchorsBase *fill)
-
+[slot]
bool DAnchorsBase::setFill(Dtk::Widget::DAnchorsBase *fill)
+[signal]
void DAnchorsBase::topChanged(const Dtk::Widget::DAnchorInfo *top)
+[signal]
void DAnchorsBase::topMarginChanged(int topMargin)
+[signal]
void DAnchorsBase::verticalCenterChanged(const Dtk::Widget::DAnchorInfo *verticalCenter)
+[signal]
void DAnchorsBase::verticalCenterOffsetChanged(int verticalCenterOffset)DAnchorsBase::~DAnchorsBase()
+
+[static]
void DAnchorsBase::clearAnchors(const QWidget *w)Dtk::Widget::DEnhancedWidget *DAnchorsBase::enhancedWidget() const
+Dtk::Widget::DAnchorsBase::AnchorError DAnchorsBase::errorCode() const
+QString DAnchorsBase::errorString() const
+
+[static]
Dtk::Widget::DAnchorsBase *DAnchorsBase::getAnchorBaseByWidget(const QWidget *w)bool DAnchorsBase::isBinding(const Dtk::Widget::DAnchorInfo *info) const
+
+ DAnchors<QWidget> w1;
+ DAnchors<QWidget> w2;
+
+ w1.setLeft(w2.right());
+
+ qDebug() << w1.isBinding(w1.left()) << w2.isBinding(w2.right());
+
+List of All Members for DArrowRectangle
+
+
+
+
+
+DArrowRectangle Class
+class Dtk::Widget::DArrowRectangle
+
+
+
Header: #include <DArrowRectangle>
+ Public Types
+
+
+ enum ArrowDirection { ArrowLeft, ArrowRight, ArrowTop, ArrowBottom }
+ enum FloatMode { FloatWindow, FloatWidget } Properties
+
+
+
+
+
+Public Functions
+
+
+ DArrowRectangle(Dtk::Widget::DArrowRectangle::ArrowDirection direction, Dtk::Widget::DArrowRectangle::FloatMode floatMode, QWidget *parent = nullptr)
+ DArrowRectangle(Dtk::Widget::DArrowRectangle::ArrowDirection direction, QWidget *parent = nullptr)
+ Dtk::Widget::DArrowRectangle::ArrowDirection arrowDirection() const
+ int arrowHeight() const
+ int arrowWidth() const
+ int arrowX() const
+ int arrowY() const
+ QColor backgroundColor() const
+ QColor borderColor() const
+ int borderWidth() const
+ QWidget * getContent() const
+ QSize getFixedSize()
+ int margin() const
+ void move(int x, int y)
+ int radius() const
+ void resizeWithContent()
+ void setArrowDirection(Dtk::Widget::DArrowRectangle::ArrowDirection value)
+ void setArrowHeight(int value)
+ void setArrowWidth(int value)
+ void setArrowX(int value)
+ void setArrowY(int value)
+ void setBackgroundColor(const QColor &backgroundColor)
+ void setBackgroundColor(DBlurEffectWidget::MaskColorType type)
+ void setBorderColor(const QColor &borderColor)
+ void setBorderWidth(int borderWidth)
+ void setContent(QWidget *content)
+ void setHeight(int value)
+ void setLeftRightRadius(bool enable)
+ void setMargin(int value)
+ void setRadius(int value)
+ void setRadiusArrowStyleEnable(bool enable)
+ void setShadowBlurRadius(const int &shadowBlurRadius)
+ void setShadowXOffset(const int &shadowXOffset)
+ void setShadowYOffset(const int &shadowYOffset)
+ void setWidth(int value)
+ int shadowBlurRadius() const
+ int shadowXOffset() const
+ int shadowYOffset() const
+ virtual void show(int x, int y) Detailed Description
+Member Type Documentation
+
+enum DArrowRectangle::ArrowDirection
+
+Constant Value Description
+Dtk::Widget::DArrowRectangle::ArrowLeft
0
指示此矩形的箭头将指向左侧 indicates the arrow of this rectangle will point left
+Dtk::Widget::DArrowRectangle::ArrowRight
1
指示此矩形的箭头将指向右侧 indicates the arrow of this rectangle will point right
+Dtk::Widget::DArrowRectangle::ArrowTop
2
指示此矩形的箭头将指向上方 indicates the arrow of this rectangle will point up
+Dtk::Widget::DArrowRectangle::ArrowBottom
3
指示此矩形的箭头将向下指向 indicates the arrow of this rectangle will point down enum DArrowRectangle::FloatMode
+
+Constant Value Description
+Dtk::Widget::DArrowRectangle::FloatWindow
0
窗口模式 Window will show a separate window
+Dtk::Widget::DArrowRectangle::FloatWidget
1
控件模式 Widget must by show in the rect of parentWidget Property Documentation
+
+
+arrowDirection : ArrowDirection
+
+
+ Dtk::Widget::DArrowRectangle::ArrowDirection arrowDirection() const
+ void setArrowDirection(Dtk::Widget::DArrowRectangle::ArrowDirection value) arrowHeight : int
+
+
+ int arrowHeight() const
+ void setArrowHeight(int value) arrowWidth : int
+
+
+ int arrowWidth() const
+ void setArrowWidth(int value) arrowX : int
+
+
+ int arrowX() const
+ void setArrowX(int value) arrowY : int
+
+
+ int arrowY() const
+ void setArrowY(int value) backgroundColor : QColor
+
+
+ QColor backgroundColor() const
+ void setBackgroundColor(const QColor &backgroundColor)
+ void setBackgroundColor(DBlurEffectWidget::MaskColorType type) borderColor : QColor
+
+
+ QColor borderColor() const
+ void setBorderColor(const QColor &borderColor) borderWidth : int
+
+
+ int borderWidth() const
+ void setBorderWidth(int borderWidth) margin : int
+
+
+ int margin() const
+ void setMargin(int value) radius : int
+
+
+ int radius() const
+ void setRadius(int value) shadowBlurRadius : qreal
+
+
+ int shadowBlurRadius() const
+ void setShadowBlurRadius(const int &shadowBlurRadius) shadowXOffset : qreal
+
+
+ int shadowXOffset() const
+ void setShadowXOffset(const int &shadowXOffset) Member Function Documentation
+
+DArrowRectangle::DArrowRectangle(Dtk::Widget::DArrowRectangle::ArrowDirection direction, Dtk::Widget::DArrowRectangle::FloatMode floatMode, QWidget *parent = nullptr)
+DArrowRectangle::DArrowRectangle(Dtk::Widget::DArrowRectangle::ArrowDirection direction, QWidget *parent = nullptr)
+QWidget *DArrowRectangle::getContent() const
+QSize DArrowRectangle::getFixedSize()
+void DArrowRectangle::move(int x, int y)
+void DArrowRectangle::resizeWithContent()
+void DArrowRectangle::setArrowDirection(Dtk::Widget::DArrowRectangle::ArrowDirection value)
+void DArrowRectangle::setArrowHeight(int value)
+void DArrowRectangle::setArrowWidth(int value)
+void DArrowRectangle::setArrowX(int value)
+void DArrowRectangle::setArrowY(int value)
+void DArrowRectangle::setBackgroundColor(DBlurEffectWidget::MaskColorType type)
+void DArrowRectangle::setContent(QWidget *content)
+void DArrowRectangle::setHeight(int value)
+void DArrowRectangle::setLeftRightRadius(bool enable)
+void DArrowRectangle::setMargin(int value)
+void DArrowRectangle::setRadius(int value)
+void DArrowRectangle::setRadiusArrowStyleEnable(bool enable)
+void DArrowRectangle::setWidth(int value)
+
+[virtual]
void DArrowRectangle::show(int x, int y)List of All Members for DBlurEffectWidget
+
+
+
+
+
+DBlurEffectWidget Class
+class Dtk::Widget::DBlurEffectWidget
+
+
+
Header: #include <DBlurEffectWidget>
+ Public Types
+
+
+ enum BlendMode { InWindowBlend, BehindWindowBlend, InWidgetBlend }
+ enum BlurMode { GaussianBlur }
+ enum MaskColorType { DarkColor, LightColor, AutoColor, CustomColor } Properties
+
+
+
+
+ Public Functions
+
+
+ DBlurEffectWidget(QWidget *parent = 0)
+ Dtk::Widget::DBlurEffectWidget::BlendMode blendMode() const
+ bool blurEnabled() const
+ int blurRectXRadius() const
+ int blurRectYRadius() const
+ bool isFull() const
+ quint8 maskAlpha() const
+ QColor maskColor() const
+ Dtk::Widget::DBlurEffectWidget::BlurMode mode() const
+ int radius() const
+ void setMaskPath(const int &path)
+ void setSourceImage(const QImage &image, bool autoScale = true) Public Slots
+
+
+ void setBlendMode(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode)
+ void setBlurEnabled(bool blurEnabled)
+ void setBlurRectXRadius(int blurRectXRadius)
+ void setBlurRectYRadius(int blurRectYRadius)
+ void setFull(bool full)
+ void setMaskAlpha(quint8 alpha)
+ void setMaskColor(Dtk::Widget::DBlurEffectWidget::MaskColorType type)
+ void setMaskColor(QColor maskColor)
+ void setMode(Dtk::Widget::DBlurEffectWidget::BlurMode mode)
+ void setRadius(int radius)
+ void updateBlurSourceImage(const QRegion &ren) Signals
+
+
+ void blendModeChanged(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode)
+ void blurEnabledChanged(bool blurEnabled)
+ void blurRectXRadiusChanged(int blurRectXRadius)
+ void blurRectYRadiusChanged(int blurRectYRadius)
+ void fullChanged(bool full)
+ void maskAlphaChanged(quint8 alpha)
+ void maskColorChanged(QColor maskColor)
+ void modeChanged(Dtk::Widget::DBlurEffectWidget::BlurMode mode)
+ void radiusChanged(int radius) Detailed Description
+Member Type Documentation
+
+enum DBlurEffectWidget::BlendMode
+
+Constant Value Description
+Dtk::Widget::DBlurEffectWidget::InWindowBlend
0
以窗口内部控件作为模糊背景
+Dtk::Widget::DBlurEffectWidget::BehindWindowBlend
1
以外部的其它窗口作为模糊背景
+Dtk::Widget::DBlurEffectWidget::InWidgetBlend
2
同 DBlurEffectWidget::InWindowBlend,区别是不会自动更新用于模糊的源图片 可手动调用 DBlurEffectWidget::updateBlurSourceImage 更新,以此来实现自行控制模糊 源图片的更新时机 enum DBlurEffectWidget::BlurMode
+
+Constant Value Description
+Dtk::Widget::DBlurEffectWidget::GaussianBlur
0
高斯模糊算法 enum DBlurEffectWidget::MaskColorType
+
+Constant Value Description
+Dtk::Widget::DBlurEffectWidget::DarkColor
0
深色,三种情况下的值分别为:
+Constant Value Description
+Dtk::Widget::DBlurEffectWidget::LightColor
1
浅色,三种情况下的值分别为: A:color{#FFFFFF,#FFFFFF}(alpha通道值为非定值) B:color{#FCFCFC,#FCFCFC} C:color{rgba(255,255,255,0.8),#CCFFFFFF}
+Dtk::Widget::DBlurEffectWidget::AutoColor
2
自动颜色,以当前应用的主题的背景色作为叠加色(alpha通道值为非定值)
+Dtk::Widget::DBlurEffectWidget::CustomColor
3
自定义颜色,使用 DBlurEffectWidget::setMaskColor 设置的颜色 Property Documentation
+
+blendMode : BlendMode
+
+
+ Dtk::Widget::DBlurEffectWidget::BlendMode blendMode() const
+ void setBlendMode(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode)
+
+ void blendModeChanged(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode) blurEnabled : bool
+
+
+ bool blurEnabled() const
+ void setBlurEnabled(bool blurEnabled)
+
+ void blurEnabledChanged(bool blurEnabled) blurRectXRadius : int
+
+
+ int blurRectXRadius() const
+ void setBlurRectXRadius(int blurRectXRadius)
+
+ void blurRectXRadiusChanged(int blurRectXRadius) blurRectYRadius : int
+
+
+ int blurRectYRadius() const
+ void setBlurRectYRadius(int blurRectYRadius)
+
+ void blurRectYRadiusChanged(int blurRectYRadius) full : bool
+
+
+ void fullChanged(bool full) maskAlpha : quint8
+
+
+ quint8 maskAlpha() const
+ void setMaskAlpha(quint8 alpha)
+
+ void maskAlphaChanged(quint8 alpha) maskColor : QColor
+
+
+ QColor maskColor() const
+ void setMaskColor(QColor maskColor)
+ void setMaskColor(Dtk::Widget::DBlurEffectWidget::MaskColorType type)
+
+ void maskColorChanged(QColor maskColor) mode : BlurMode
+
+
+ Dtk::Widget::DBlurEffectWidget::BlurMode mode() const
+ void setMode(Dtk::Widget::DBlurEffectWidget::BlurMode mode)
+
+ void modeChanged(Dtk::Widget::DBlurEffectWidget::BlurMode mode) radius : int
+
+
+ void radiusChanged(int radius) Member Function Documentation
+
+DBlurEffectWidget::DBlurEffectWidget(QWidget *parent = 0)
+
+[signal]
void DBlurEffectWidget::blendModeChanged(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode)
+[signal]
void DBlurEffectWidget::blurRectXRadiusChanged(int blurRectXRadius)
+[signal]
void DBlurEffectWidget::blurRectYRadiusChanged(int blurRectYRadius)
+[signal]
void DBlurEffectWidget::maskAlphaChanged(quint8 alpha)
+[signal]
void DBlurEffectWidget::maskColorChanged(QColor maskColor)
+[signal]
void DBlurEffectWidget::modeChanged(Dtk::Widget::DBlurEffectWidget::BlurMode mode)
+[signal]
void DBlurEffectWidget::radiusChanged(int radius)
+[slot]
void DBlurEffectWidget::setBlendMode(Dtk::Widget::DBlurEffectWidget::BlendMode blendMode)
+[slot]
void DBlurEffectWidget::setBlurEnabled(bool blurEnabled)
+[slot]
void DBlurEffectWidget::setBlurRectXRadius(int blurRectXRadius)
+[slot]
void DBlurEffectWidget::setBlurRectYRadius(int blurRectYRadius)
+[slot]
void DBlurEffectWidget::setFull(bool full)
+[slot]
void DBlurEffectWidget::setMaskAlpha(quint8 alpha)
+[slot]
void DBlurEffectWidget::setMaskColor(Dtk::Widget::DBlurEffectWidget::MaskColorType type)
+[slot]
void DBlurEffectWidget::setMaskColor(QColor maskColor)
+[slot]
void DBlurEffectWidget::setMode(Dtk::Widget::DBlurEffectWidget::BlurMode mode)
+[slot]
void DBlurEffectWidget::setRadius(int radius)
+[slot]
void DBlurEffectWidget::updateBlurSourceImage(const QRegion &ren)Dtk::Widget::DBlurEffectWidget::BlendMode DBlurEffectWidget::blendMode() const
+bool DBlurEffectWidget::blurEnabled() const
+int DBlurEffectWidget::blurRectXRadius() const
+int DBlurEffectWidget::blurRectYRadius() const
+bool DBlurEffectWidget::isFull() const
+QColor DBlurEffectWidget::maskColor() const
+Dtk::Widget::DBlurEffectWidget::BlurMode DBlurEffectWidget::mode() const
+int DBlurEffectWidget::radius() const
+void DBlurEffectWidget::setMaskPath(const int &path)
+void DBlurEffectWidget::setSourceImage(const QImage &image, bool autoScale = true)
+List of All Members for DBoxWidget
+
+
+ Contents
DBoxWidget Class
class Dtk::Widget::DBoxWidget
-
Header: #include <DBoxWidget>
Inherited By:
Properties
+
+
+
+Public Functions
+
+
+ DBoxWidget(int direction, QWidget *parent = 0)
+ void addWidget(QWidget *widget)
+ int direction() const
+ int * layout() const Public Slots
+
+
+ void setDirection(int direction) Signals
+
+
+ void directionChanged(int direction) Detailed Description
-Property Documentation
+
+direction : QBoxLayout::Direction
+
+
+ int direction() const
+ void setDirection(int direction)
+
+ void directionChanged(int direction) Member Function Documentation
+
+DBoxWidget::DBoxWidget(int direction, QWidget *parent = 0)
+void DBoxWidget::addWidget(QWidget *widget)
+int *DBoxWidget::layout() const
+List of All Members for DButtonBox
+
+
+ Contents
DButtonBox Class
class Dtk::Widget::DButtonBox
-
Header: #include <DButtonBox>
Public Functions
+
+
+ DButtonBox(QWidget *parent = nullptr)
+ QAbstractButton * button(int id) const
+ QList<QAbstractButton *> buttonList() const
+ QAbstractButton * checkedButton() const
+ int checkedId() const
+ int id(QAbstractButton *button) const
+ Qt::Orientation orientation() const
+ void setButtonList(const QList<Dtk::Widget::DButtonBoxButton *> &list, bool checkable)
+ void setId(QAbstractButton *button, int id)
+ void setOrientation(Qt::Orientation orientation) Detailed Description
DButtonBox box;
DButtonBoxButton *btn1 = new DButtonBoxButton("btn1");
DButtonBoxButton *btn2 = new DButtonBoxButton("btn2");
- btn1->setIcon(QStyle::StandardPixmap::SP_ArrowUp);
+ btn1->setIcon(QStyle::StandardPixmap::SP_ArrowUp);
box.setButtonList({btn1, btn2}, true);
Member Function Documentation
+
+DButtonBox::DButtonBox(QWidget *parent = nullptr)
+QAbstractButton *DButtonBox::button(int id) const
+QList<QAbstractButton *> DButtonBox::buttonList() const
+QAbstractButton *DButtonBox::checkedButton() const
+int DButtonBox::checkedId() const
+int DButtonBox::id(QAbstractButton *button) const
+Qt::Orientation DButtonBox::orientation() const
+void DButtonBox::setButtonList(const QList<Dtk::Widget::DButtonBoxButton *> &list, bool checkable)
+void DButtonBox::setId(QAbstractButton *button, int id)
+void DButtonBox::setOrientation(Qt::Orientation orientation)
+List of All Members for DButtonBoxButton
+
+
+ DButtonBoxButton Class
Header: #include <DButtonBoxButton>
Public Functions
+
+
+ DButtonBoxButton(int iconType = -1, const QString &text = QString(), QWidget *parent = nullptr)
+ DButtonBoxButton(const QIcon &icon, const QString &text = QString(), QWidget *parent = nullptr)
+ DButtonBoxButton(const QString &text, QWidget *parent = nullptr)
+ QSize iconSize() const
+ QSize minimumSizeHint() const
+ void setIcon(const QIcon &icon)
+ void setIcon(int iconType)
+ QSize sizeHint() const Detailed Description
Member Function Documentation
+
+DButtonBoxButton::DButtonBoxButton(int iconType = -1, const QString &text = QString(), QWidget *parent = nullptr)
+DButtonBoxButton::DButtonBoxButton(const QIcon &icon, const QString &text = QString(), QWidget *parent = nullptr)
+DButtonBoxButton::DButtonBoxButton(const QString &text, QWidget *parent = nullptr)
+QSize DButtonBoxButton::iconSize() const
+QSize DButtonBoxButton::minimumSizeHint() const
+void DButtonBoxButton::setIcon(const QIcon &icon)
+void DButtonBoxButton::setIcon(int iconType)
+QSize DButtonBoxButton::sizeHint() const
+List of All Members for DClipEffectWidget
+
diff --git a/dtk-widget-dclipeffectwidget.html b/dtk-widget-dclipeffectwidget.html
index 9cc5173..71ed7b1 100644
--- a/dtk-widget-dclipeffectwidget.html
+++ b/dtk-widget-dclipeffectwidget.html
@@ -39,7 +39,10 @@
@@ -54,17 +57,36 @@ DClipEffectWidget Class
Properties
+
Public Functions
-
+ void clipPathChanged(int clipPath)
+ DClipEffectWidget(QWidget *parent)
+ int clipPath() const
+ QMargins margins() const Public Slots
+
+ void setClipPath(const int &path)
+ void setMargins(QMargins margins) Signals
+
+
+ void clipPathChanged(int clipPath) void marginsChanged(QMargins margins) Detailed Description
-
┏━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓
┃ │ ┃
@@ -86,21 +108,71 @@
- Detailed Description
┃ │ ┃
┗━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛
Property Documentation
+
+clipPath : QPainterPath
+
+
+ int clipPath() const
+ void setClipPath(const int &path)
+
+ void clipPathChanged(int clipPath) margins : QMargins
+
+
+ QMargins margins() const
+ void setMargins(QMargins margins)
+
+ void marginsChanged(QMargins margins) Member Function Documentation
-
-void DClipEffectWidget::clipPathChanged(int clipPath)
+
+DClipEffectWidget::DClipEffectWidget(QWidget *parent)
+[signal]
void DClipEffectWidget::clipPathChanged(int clipPath)void DClipEffectWidget::setClipPath(const int &path)
+
+
+[signal]
void DClipEffectWidget::marginsChanged(QMargins margins)[slot]
void DClipEffectWidget::setClipPath(const int &path)
+[slot]
void DClipEffectWidget::setMargins(QMargins margins)List of All Members for DColoredProgressBar
+
+
+ DColoredProgressBar Class
+class Dtk::Widget::DColoredProgressBar
+
+
+
Header: #include <DColoredProgressBar>
+ Public Functions
+
+
+ void addThreshold(int threshold, QBrush brush)
+ void removeThreshold(int threshold)
+ QList<int> thresholds() const Detailed Description
+Member Function Documentation
+
+void DColoredProgressBar::addThreshold(int threshold, QBrush brush)
+void DColoredProgressBar::removeThreshold(int threshold)
+QList<int> DColoredProgressBar::thresholds() const
+List of All Members for DCommandLinkButton
+
diff --git a/dtk-widget-dcommandlinkbutton.html b/dtk-widget-dcommandlinkbutton.html
index 4f83912..9833300 100644
--- a/dtk-widget-dcommandlinkbutton.html
+++ b/dtk-widget-dcommandlinkbutton.html
@@ -39,6 +39,7 @@
Contents
@@ -47,13 +48,19 @@ Contents
DCommandLinkButton Class
class Dtk::Widget::DCommandLinkButton
-
Header: #include <DCommandLinkButton>
Public Functions
+
+
+ DCommandLinkButton(const QString text, QWidget *parent = nullptr)
+ QSize sizeHint() const Protected Functions
@@ -68,6 +75,10 @@
Detailed Description
Member Function Documentation
+
+DCommandLinkButton::DCommandLinkButton(const QString text, QWidget *parent = nullptr)
+[protected]
void DCommandLinkButton::initStyleOption(Dtk::Widget::DStyleOptionButton *option) const[protect
[protected]
void DCommandLinkButton::paintEvent(int *e)QSize DCommandLinkButton::sizeHint() const
+List of All Members for DDialog
-
+
Contents
@@ -59,66 +60,63 @@ DDialog Class
Public Functions
-
- int addButtons(const int &text)
+ void addContent(QWidget *widget, int alignment = {}) int addButtons(const QStringList &text) void addSpacing(int spacing) void clearButtons() void clearContents(bool isDelete = true)
- void clearSpacing()
+ void insertButton(int index, const int &text, bool isDefault = false, int type = ...)
+ int exec() void insertButton(int index, const QString &text, bool isDefault = false, int type = ...)
- void insertButton(int index, QAbstractButton *button, bool isDefault = false)
- void insertButtons(int index, const int &text)
+ void insertContent(int index, QWidget *widget, int alignment = {}) void insertButtons(int index, const QStringList &text) void insertSpacing(int index, int spacing) void removeButton(int index)
- void removeButton(QAbstractButton *button)
+ void removeButtonByText(const int &text) void removeButtonByText(const QString &text)
- void removeContent(QWidget *widget, bool isDelete = true)
- void setButtonIcon(int index, const int &icon)
+ void setButtonText(int index, const int &text) void setButtonText(int index, const QString &text)
- bool setDefaultButton(int index)
+ bool setDefaultButton(const int &str) bool setDefaultButton(const QString &str)
- void setDefaultButton(QAbstractButton *button)
- void setIcon(const int &icon)
- int setIcon(const int &icon, const int &expectedSize)
- int setIconPixmap(const int &iconPixmap)
+ void setMessage(const int &message)
+ void setMessage(const QString &message) void setOnButtonClickedClose(bool onButtonClickedClose)
- void setSpacing(int spacing)
+ void setTitle(const int &title) void setTitle(const QString &title) void setWordWrapTitle(bool wordWrap) Protected Functions
+
Detailed Description
-differences Differences with QDialog
-true
, then once user clicked a button, the dialog will got closed.true
, then once user clicked a button, the dialog will got closed.Member Function Documentation
-
-int DDialog::addButtons(const int &text)
+
+int DDialog::addButtons(const QStringList &text)
void DDialog::addContent(QWidget *widget, int alignment = {})
-void DDialog::addSpacing(int spacing)
void DDialog::clearButtons()
@@ -132,33 +130,38 @@
void DDialog::clearSpacing()
void DDialog::insertButton(int index, const int &text, bool isDefault = false, int type = ...)
+
+int DDialog::exec()
+
+
+
+[protected]
void DDialog::hideEvent(int *event)void DDialog::insertButton(int index, const QString &text, bool isDefault = false, int type = ...)
void DDialog::insertButton(int index, QAbstractButton *button, bool isDefault = false)
+void DDialog::insertButton(int index, QAbstractButton *button, bool isDefault = false)
void DDialog::insertButtons(int index, const int &text)
+
+void DDialog::insertButtons(int index, const QStringList &text)
void DDialog::insertContent(int index, QWidget *widget, int alignment = {})
-void DDialog::insertSpacing(int index, int spacing)
void DDialog::removeButton(int index)
@@ -166,26 +169,22 @@ v
void DDialog::removeButton(QAbstractButton *button)
+void DDialog::removeButton(QAbstractButton *button)
void DDialog::removeButtonByText(const int &text)
+
+void DDialog::removeButtonByText(const QString &text)
void DDialog::removeContent(QWidget *widget, bool isDelete = true)
+void DDialog::removeContent(QWidget *widget, bool isDelete = true)
void DDialog::setButtonIcon(int index, const int &icon)
-void DDialog::setButtonText(int index, const int &text)
+
+void DDialog::setButtonText(int index, const QString &text)
设置默认按钮.
bool DDialog::setDefaultButton(const int &str)
+
+bool DDialog::setDefaultButton(const QString &str)
void DDialog::setDefaultButton(QAbstractButton *button)
+void DDialog::setDefaultButton(QAbstractButton *button)
void DDialog::setIcon(const int &icon)
-int DDialog::setIcon(const int &icon, const int &expectedSize)
-int DDialog::setIconPixmap(const int &iconPixmap)
-void DDialog::setMessage(const int &message)
+
+void DDialog::setMessage(const QString &message)
void DDialog::setOnButtonClickedClose(bool onButtonClickedClose)
+void DDialog::setSpacing(int spacing)
void DDialog::setTitle(const int &title)
+
+void DDialog::setTitle(const QString &title)
设定标题Label内容是否可截断换行.
+
[protected]
void DDialog::showEvent(int *event)List of All Members for DEnhancedWidget
+
diff --git a/dtk-widget-denhancedwidget.html b/dtk-widget-denhancedwidget.html
index f429700..993a8e4 100644
--- a/dtk-widget-denhancedwidget.html
+++ b/dtk-widget-denhancedwidget.html
@@ -39,7 +39,10 @@
@@ -51,58 +54,149 @@ DEnhancedWidget Class
Properties
+
Public Functions
+
+ DEnhancedWidget(QWidget *w, QObject *parent = 0)
+ bool enabled() const
+ QWidget * target() const Public Slots
+
+
+ void setEnabled(bool enabled)
+ void setTarget(QWidget *target) Signals
+
void enabledChanged(bool enabled)
- void heightChanged(int height)
+ void setEnabled(bool enabled) void positionChanged(const QPoint &point)
- void showed()
+ void sizeChanged(const int &size) void sizeChanged(const QSize &size) void targetChanged(QWidget *target)
+ void widthChanged(int width) void xChanged(int x) void yChanged(int y) Detailed Description
-Property Documentation
+
+enabled : bool
+
+
+ bool enabled() const
+ void setEnabled(bool enabled)
+
+ void enabledChanged(bool enabled) target : QWidget*
+
+ QWidget *w1 = new QWidget();
+ w1->show();
+ DEnhancedWidget *ew = new DEnhancedWidget(w1);
+ connect(ew, &DEnhancedWidget::xChanged, [] (int x) {
+ qDebug() << x;
+ });
+ QWidget *w2 = new QWidget();
+ ew.setTarget(w2);
+ w1->move(100, 100);
+
+
+ w2->show();
+ w2->move(100, 100);
+
+
+
+ QWidget * target() const
+ void setTarget(QWidget *target)
+
+ void targetChanged(QWidget *target) Member Function Documentation
-
-void DEnhancedWidget::enabledChanged(bool enabled)
-DEnhancedWidget::DEnhancedWidget(QWidget *w, QObject *parent = 0)
+
+[signal]
void DEnhancedWidget::enabledChanged(bool enabled)void DEnhancedWidget::heightChanged(int height)
+[signal]
void DEnhancedWidget::heightChanged(int height)void DEnhancedWidget::setEnabled(bool enabled)
+
+
+[signal]
void DEnhancedWidget::positionChanged(const QPoint &point)[slot]
void DEnhancedWidget::setEnabled(bool enabled)
+[slot]
void DEnhancedWidget::setTarget(QWidget *target)void DEnhancedWidget::showed()
+[signal]
void DEnhancedWidget::showed()void DEnhancedWidget::sizeChanged(const int &size)
+
+[signal]
void DEnhancedWidget::sizeChanged(const QSize &size)void DEnhancedWidget::targetChanged(QWidget *target)
-
+[signal]
void DEnhancedWidget::targetChanged(QWidget *target)void DEnhancedWidget::widthChanged(int width)
+[signal]
void DEnhancedWidget::widthChanged(int width)
+[signal]
void DEnhancedWidget::xChanged(int x)void DEnhancedWidget::yChanged(int y)
+[signal]
void DEnhancedWidget::yChanged(int y)List of All Members for DExpandGroup
+
+
+ DExpandGroup Class
+class Dtk::Widget::DExpandGroup
+
+
+
Header: #include <DExpandGroup>
+ Public Functions
+
+
+ DExpandGroup(QObject *parent = 0)
+ void addExpand(int *expand, int id = -1)
+ int * checkedExpand() const
+ int checkedId() const
+ int * expand(int) const
+ int expands() const
+ int id(int *expand) const
+ void removeExpand(int *expand)
+ void setId(int *expand, int id) Detailed Description
+Member Function Documentation
+
+DExpandGroup::DExpandGroup(QObject *parent = 0)
+void DExpandGroup::addExpand(int *expand, int id = -1)
+int *DExpandGroup::checkedExpand() const
+int DExpandGroup::checkedId() const
+int *DExpandGroup::expand(int) const
+int DExpandGroup::expands() const
+int DExpandGroup::id(int *expand) const
+void DExpandGroup::removeExpand(int *expand)
+void DExpandGroup::setId(int *expand, int id)
+List of All Members for DFloatingMessage
+
+
+ DFloatingMessage Class
Header: #include <DFloatingMessage>
Inherits: Dtk::Widget::DFloatingWidget Public Types
+
+
+ enum MessageType { TransientType, ResidentType } Public Functions
+
+
+ void setDuration(int msec)
+ void setMessage(const QString &str)
+ void setWidget(QWidget *w) Detailed Description
-
=============================================================================================
= =
@@ -69,6 +84,32 @@
Detailed Description
Member Type Documentation
+
+enum DFloatingMessage::MessageType
+
+Constant Value Description
+Dtk::Widget::DFloatingMessage::TransientType
0
临时的消息
+Dtk::Widget::DFloatingMessage::ResidentType
1
常驻的消息 Member Function Documentation
+
+void DFloatingMessage::setDuration(int msec)
+void DFloatingMessage::setMessage(const QString &str)
+void DFloatingMessage::setWidget(QWidget *w)
+Member Function Documentation
void DFlowLayout::setFlow(int direction)
void DFlowLayout::setSpacing(int spacing)
diff --git a/dtk-widget-dfontsizemanager-members.html b/dtk-widget-dfontsizemanager-members.html
index d84f949..508bc57 100644
--- a/dtk-widget-dfontsizemanager-members.html
+++ b/dtk-widget-dfontsizemanager-members.html
@@ -41,11 +41,8 @@ List of All Members for DFontSizeManager
diff --git a/dtk-widget-dfontsizemanager.html b/dtk-widget-dfontsizemanager.html
index ee714b3..e16c7b3 100644
--- a/dtk-widget-dfontsizemanager.html
+++ b/dtk-widget-dfontsizemanager.html
@@ -65,10 +65,7 @@ Public Types
Public Functions
- void bind(QWidget *widget, Dtk::Widget::DFontSizeManager::SizeType type, int weight)
- int fontPixelSize(Dtk::Widget::DFontSizeManager::SizeType) const
- const int get(Dtk::Widget::DFontSizeManager::SizeType, int, const int &) const
- void setFontGenericPixelSize(int size)
+ void setFontPixelSize(Dtk::Widget::DFontSizeManager::SizeType type, int size) int fontPixelSize(Dtk::Widget::DFontSizeManager::SizeType type) const void unbind(QWidget *widget) enum DFontSizeMana
Member Function Documentation
-void DFontSizeManager::bind(QWidget *widget, Dtk::Widget::DFontSizeManager::SizeType type, int weight)
+void DFontSizeManager::bind(QWidget *widget, Dtk::Widget::DFontSizeManager::SizeType type, int weight)
int DFontSizeManager::fontPixelSize(Dtk::Widget::DFontSizeManager::SizeType) const
+int DFontSizeManager::fontPixelSize(Dtk::Widget::DFontSizeManager::SizeType type) const
const int DFontSizeManager::get(Dtk::Widget::DFontSizeManager::SizeType, int, const int &) const
-[static]
Dtk::Widget::DFontSizeManager *DFontSizeManager::instance()void DFontSizeManager::setFontGenericPixelSize(int size)
-void DFontSizeManager::setFontPixelSize(Dtk::Widget::DFontSizeManager::SizeType type, int size)
-void DFontSizeManager::unbind(QWidget *widget)
+void DFontSizeManager::unbind(QWidget *widget)
List of All Members for DGraphicsClipEffect
+
DGraphicsClipEffect Class
Properties
+
Public Functions
-
+ void clipPathChanged(int clipPath)
+ DGraphicsClipEffect(QObject *parent = Q_NULLPTR)
+ int clipPath() const
+ QMargins margins() const Public Slots
+
+ void setClipPath(const int &clipPath)
+ void setMargins(const QMargins &margins) Signals
+
+
+ void clipPathChanged(int clipPath) void marginsChanged(QMargins margins) Detailed Description
-
┏━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓
┃ │ ┃
@@ -86,21 +108,70 @@
- Detailed Description
┃ │ ┃
┗━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛
Property Documentation
+
+clipPath : QPainterPath
+
+
+ int clipPath() const
+ void setClipPath(const int &clipPath)
+
+ void clipPathChanged(int clipPath) margins : QMargins
+
+
+ QMargins margins() const
+ void setMargins(const QMargins &margins)
+
+ void marginsChanged(QMargins margins) Member Function Documentation
-
-void DGraphicsClipEffect::clipPathChanged(int clipPath)
+
+DGraphicsClipEffect::DGraphicsClipEffect(QObject *parent = Q_NULLPTR)
+[signal]
void DGraphicsClipEffect::clipPathChanged(int clipPath)void DGraphicsClipEffect::setClipPath(const int &clipPath)
+
+
+[signal]
void DGraphicsClipEffect::marginsChanged(QMargins margins)[slot]
void DGraphicsClipEffect::setClipPath(const int &clipPath)
+[slot]
void DGraphicsClipEffect::setMargins(const QMargins &margins)List of All Members for DHBoxWidget
+
+
+ Contents
DHBoxWidget Class
class Dtk::Widget::DHBoxWidget
-
Header: #include <DHBoxWidget>
Inherits: Dtk::Widget::DBoxWidget List of All Members for DHiDPIHelper
-
diff --git a/dtk-widget-dhidpihelper.html b/dtk-widget-dhidpihelper.html
index f1dff08..b90a7f0 100644
--- a/dtk-widget-dhidpihelper.html
+++ b/dtk-widget-dhidpihelper.html
@@ -57,7 +57,7 @@ DHiDPIHelper Class
Static Public Members
-
+ int loadNxPixmap(const int &) int loadNxPixmap(const QString &fileName) Detailed Description
Member Function Documentation
-
-
-[static]
int DHiDPIHelper::loadNxPixmap(const int &)
+[static]
int DHiDPIHelper::loadNxPixmap(const QString &fileName)List of All Members for DIpv4LineEdit
+
+
+ DIpv4LineEdit Class
+class Dtk::Widget::DIpv4LineEdit
+
+
+
Header: #include <DIpv4LineEdit>
+ Properties
+
+
+
+
+
+Public Functions
+
+
+ DIpv4LineEdit(QWidget *parent = 0)
+ Qt::Alignment alignment() const
+ int cursorPosition() const
+ QString displayText() const
+ bool hasAcceptableInput() const
+ bool isReadOnly() const Public Slots
+
+
+ void selectAll()
+ void setCursorPosition(int cursorPosition)
+ void setReadOnly(bool readOnly)
+ void setSelection(int start, int length) Detailed Description
+
+ ^(2[0-4]\d|25[0-5]|[01]?\d\d?)?$
+
+Property Documentation
+
+acceptableInput : const bool
+
+
+ bool hasAcceptableInput() const alignment : const Qt::Alignment
+
+
+ Qt::Alignment alignment() const clearButtonEnabled : const bool
+cursorPosition : int
+
+
+ int cursorPosition() const
+ void setCursorPosition(int cursorPosition) displayText : const QString
+
+
+ QString displayText() const placeholderText : const QString
+readOnly : bool
+
+
+ bool isReadOnly() const
+ void setReadOnly(bool readOnly) selectedText : const QString
+Member Function Documentation
+
+DIpv4LineEdit::DIpv4LineEdit(QWidget *parent = 0)
+
+[slot]
void DIpv4LineEdit::selectAll()
+[slot]
void DIpv4LineEdit::setCursorPosition(int cursorPosition)
+[slot]
void DIpv4LineEdit::setReadOnly(bool readOnly)
+[slot]
void DIpv4LineEdit::setSelection(int start, int length)Qt::Alignment DIpv4LineEdit::alignment() const
+int DIpv4LineEdit::cursorPosition() const
+QString DIpv4LineEdit::displayText() const
+bool DIpv4LineEdit::hasAcceptableInput() const
+bool DIpv4LineEdit::isReadOnly() const
+List of All Members for DPrintPreviewDialog
-
+
基本使用
dialog.setDocName("test");
#ifdef AsynPreview
dialog.setAsynPreview(31);
- connect(&dialog, QOverload<DPrinter *, const QVector<int> &>::of(&DPrintPreviewDialog::paintRequested),
+ connect(&dialog, QOverload<DPrinter *, const QVector<int> &>::of(&DPrintPreviewDialog::paintRequested),
#else
connect(&dialog, QOverload<DPrinter *>::of(&DPrintPreviewDialog::paintRequested),
#endif
#ifdef AsynPreview
- this, [=](DPrinter *_printer, const QVector<int> &pageRange) {
+ this, [=](DPrinter *_printer, const QVector<int> &pageRange) {
#else
this, [=](DPrinter *_printer) {
#endif
// 此函数内代码为调试打印内容代码,调整较随意!
_printer->setFromTo(1, 31);
- QPainter painter(_printer);
+ QPainter painter(_printer);
bool firstPage = true;
for (int page = _printer->fromPage(); page <= _printer->toPage(); ++page) {
#ifdef AsynPreview
@@ -97,27 +97,27 @@ 基本使用
// 给出调用方widget界面作为打印内容
double xscale = _printer->pageRect().width() / double(this->width());
double yscale = _printer->pageRect().height() / double(this->height());
- double scale = qMin(xscale, yscale);
+ double scale = qMin(xscale, yscale);
painter.translate(_printer->pageRect().width() / 2.0, _printer->pageRect().height() / 2.0);
painter.scale(scale, scale);
painter.translate(-this->width() / 2, -this->height() / 2);
this->render(&painter);
painter.resetTransform();
- QFont font /*("CESI仿宋-GB2312")*/;
+ QFont font /*("CESI仿宋-GB2312")*/;
font.setPixelSize(16);
- font = QFont(font, painter.device());
- QRectF rect = _printer->pageRect();
- rect = QRectF(0, 0, rect.width(), rect.height());
+ font = QFont(font, painter.device());
+ QRectF rect = _printer->pageRect();
+ rect = QRectF(0, 0, rect.width(), rect.height());
painter.setFont(font);
// 画可用页面矩形,提供调试效果参考
painter.drawRect(rect);
- QFontMetricsF fontMetrics(font);
- QString text = QString("统信软件 第%1页").arg(page);
- QRectF stringRect = fontMetrics.boundingRect(text);
+ QFontMetricsF fontMetrics(font);
+ QString text = QString("统信软件 第%1页").arg(page);
+ QRectF stringRect = fontMetrics.boundingRect(text);
//添加页脚页面信息
- painter.drawText(QPointF(rect.bottomRight().x() - stringRect.width(), rect.bottomRight().y() - stringRect.height()),
- QString("统信软件 第%1页").arg(page));
+ painter.drawText(QPointF(rect.bottomRight().x() - stringRect.width(), rect.bottomRight().y() - stringRect.height()),
+ QString("统信软件 第%1页").arg(page));
firstPage = false;
}
});
diff --git a/dtk-widget-dsimplelistview-members.html b/dtk-widget-dsimplelistview-members.html
new file mode 100644
index 0000000..4a58c2d
--- /dev/null
+++ b/dtk-widget-dsimplelistview-members.html
@@ -0,0 +1,64 @@
+
+
+
+
+
+ List of All Members for DSimpleListView
+
+
+ DSimpleListView Class
+class Dtk::Widget::DSimpleListView
+
+
+
Header: #include <DSimpleListView>
+ Public Functions
+
+
+ void addItems(int items)
+ void setClipRadius(int radius)
+ void setColumnHideFlags(QList<bool> toggleHideFlags, int visibleColumnIndex = -1)
+ void setColumnSortingAlgorithms(QList<Dtk::Widget::SortAlgorithm> *algorithms, int sortColumn = -1, bool descendingSort = false)
+ void setColumnTitleInfo(QList<QString> titles, QList<int> widths, int height)
+ void setFrame(bool enableFrame, QColor color = ..., double opacity = 0.1)
+ void setRowHeight(int height)
+ void setSearchAlgorithm(Dtk::Widget::SearchAlgorithm algorithm) Detailed Description
+Member Function Documentation
+
+void DSimpleListView::addItems(int items)
+void DSimpleListView::setClipRadius(int radius)
+void DSimpleListView::setColumnHideFlags(QList<bool> toggleHideFlags, int visibleColumnIndex = -1)
+void DSimpleListView::setColumnSortingAlgorithms(QList<Dtk::Widget::SortAlgorithm> *algorithms, int sortColumn = -1, bool descendingSort = false)
+void DSimpleListView::setColumnTitleInfo(QList<QString> titles, QList<int> widths, int height)
+void DSimpleListView::setFrame(bool enableFrame, QColor color = ..., double opacity = 0.1)
+void DSimpleListView::setRowHeight(int height)
+void DSimpleListView::setSearchAlgorithm(Dtk::Widget::SearchAlgorithm algorithm)
+Public Functions
Detailed Description
-See also DStackWidget::currentIndex.
currentWidget 修改的当前小控件
See also DStackWidget::currentWidget.
@@ -99,24 +99,24 @@See also DStackWidget::depth.
-通过索引获取控件.
index 指定索引 Returns 通过索引找到的控件
-获取指定控件的索引.
widget 指定的控件 Returns 通过控件找到的索引
-在指定的位置插入一个新的内容控件.
需要注意的是如果第一个参数 index 不是栈的最后一个位置将不会显示动画
index 要插入的索引 widget 要插入的控件 enableTransition 是否使用动画
See also DStackWidget::pushWidget.
-出栈指定的内容控件.
如果所有参数都没有指定, 那么将只移除当前的内容控件, 一般是栈顶的控件. 如果指定了参数 widget 那么计数将从控件 widget 在栈中的索引开始往栈顶方向计算移除 count 个内容控件
widget 指定要移除的控件 isDelete 是否删除控件对象 count 指定要移除的控件的数量 enableTransition 是否使用动画
diff --git a/dtk-widget-dstandarditem.html b/dtk-widget-dstandarditem.html index 7a3683e..309f7cb 100644 --- a/dtk-widget-dstandarditem.html +++ b/dtk-widget-dstandarditem.html @@ -57,7 +57,7 @@See also QStandardItem and DViewItemAction.
+See also QStandardItem and DViewItemAction.
diff --git a/dtk-widget-dstyle.html b/dtk-widget-dstyle.html index ea3c487..39d540f 100644 --- a/dtk-widget-dstyle.html +++ b/dtk-widget-dstyle.html @@ -56,9 +56,9 @@类似于 QCommonStyle 中的实现, DStyle 中只实现了 一些基础控件的绘制和一个通用接口的实现,如果想要实现 一个自定义的风格主题,可以通过尝试继承该类以实现自己的 功能。不过,仅使用 DStyle 并不会将控件的风格保持和 Dtk 控件一致,这是由于 Dtk 的实际控件风格在 Chameleon 风格 插件中实现。因此如果需要在 Dtk 中继承 Chameleon 风格,并 添加自定义风格的绘制,可以尝试使用 QProxyStyle 类。
+类似于 QCommonStyle 中的实现, DStyle 中只实现了 一些基础控件的绘制和一个通用接口的实现,如果想要实现 一个自定义的风格主题,可以通过尝试继承该类以实现自己的 功能。不过,仅使用 DStyle 并不会将控件的风格保持和 Dtk 控件一致,这是由于 Dtk 的实际控件风格在 Chameleon 风格 插件中实现。因此如果需要在 Dtk 中继承 Chameleon 风格,并 添加自定义风格的绘制,可以尝试使用 QProxyStyle 类。
See also QCommonStyle and QProxyStyle.
+See also QCommonStyle and QProxyStyle.
diff --git a/dtk-widget-dstylediconengine-members.html b/dtk-widget-dstylediconengine-members.html index a54e9d7..64f6012 100644 --- a/dtk-widget-dstylediconengine-members.html +++ b/dtk-widget-dstylediconengine-members.html @@ -39,12 +39,12 @@This is the complete list of members for Dtk::Widget::DStyledIconEngine, including inherited members.
DStyledIconEngine一个修改的 QIconEngine 类. More...
+DStyledIconEngine一个修改的 QIconEngine 类. More...
Header: | #include <DStyledIconEngine>
@@ -57,12 +57,12 @@ DStyledIconEngine ClassPublic Functions
Detailed DescriptionMember Function Documentation- -DStyledIconEngine::DStyledIconEngine(Dtk::Widget::DStyledIconEngine::DrawFun drawFun, const int &iconName = QString())+ +DStyledIconEngine::DStyledIconEngine(Dtk::Widget::DStyledIconEngine::DrawFun drawFun, const QString &iconName = QString())DStyledIconEngine::DStyledIconEngine drawFun iconName @@ -84,21 +84,22 @@voi
|
Header: | #include <DSuggestButton> + |
DSuggestButton(const QString &text, QWidget *parent = nullptr) | |
DSuggestButton(QWidget *parent = nullptr) |
This is the complete list of members for Dtk::Widget::DSwitchHeaderLine, including inherited members.
+DSwitchHeaderLine 类用于提供 DSwitchLineExpand 的标题栏. More...
+DSwitchHeaderLine 类用于提供 DSwitchLineExpand 的标题栏. More...
Header: | #include <DSwitchHeaderLine> |
DSwitchHeaderLine(QWidget *parent = 0) | |
void | setExpand(bool value) |
void | checkedChanged(bool arg) |
DSwitchHeaderLine::DSwitchHeaderLine 为 DSwitchHeaderLine 的构造函数. parent 指定了控件的父控件。
+一般情况下,无需手动创建 DSwitchHeaderLine 对象。
+ + +[signal]
void DSwitchHeaderLine::checkedChanged(bool arg)信号在控件开关状态发生改变时触发. arg checked状态
+ + +DSwitchHeaderLine::setExpand 用于设置控件的开关状态. value 为指定的开关状态,true 为开, false 为关。
+ +This is the complete list of members for Dtk::Widget::DSwitchLineExpand, including inherited members.
+DSwitchLineExpand 类提供了一种通过开关按钮来展开/合上显示内容的控件. More...
+ +Header: | #include <DSwitchLineExpand> + |
DSwitchLineExpand(QWidget *parent = 0) | |
Dtk::Widget::DBaseLine * | header() |
void | setExpand(bool value) |
void | setTitle(const QString &title) |
控件由标题栏和内容两部分组成,标题栏左侧显示控件标题,右侧显示一个开关控件, 用户通过点击右侧的开关控件,来控制标题栏下面的内容部分展开还是合上。
+DSwitchLineExpand 类的构造函数.
+parent 指定了控件的父控件。
+ + +DSwitchLineExpand::header 用来获取标题栏控件。 Returns 标题栏控件。
+ + +DSwitchLineExpand::setExpand 用于控制控件是否展开。 value 为所要设置的展开状态,true 为展开,false 为合上。
+Note: 这个函数同时会影响标题栏中开关按钮的状态。
+ + +DSwitchLineExpand::setTitle 用于设置控件的标题。 title 为所要设置的标题。
+ +This is the complete list of members for Dtk::Widget::DTabBar, including inherited members.
+DTabBar 是一个标签栏控件,是在 QTabBar 基础之上进行扩展增强. More...
+DTabBar 是一个标签栏控件,是在 QTabBar 基础之上进行扩展增强. More...
Header: | #include <DTabBar> |
bool | autoHide() const |
bool | changeCurrentOnDrag() const |
int | count() const |
int | currentIndex() const |
bool | documentMode() const |
bool | drawBase() const |
int | elideMode() const |
bool | expanding() const |
int | flashColor() const |
QSize | iconSize() const |
bool | isDragable() const |
bool | isMovable() const |
int | maskColor() const |
int | selectionBehaviorOnRemove() const |
void | setAutoHide(bool hide) |
void | setChangeCurrentOnDrag(bool change) |
void | setDocumentMode(bool set) |
void | setDragable(bool dragable) |
void | setDrawBase(bool drawTheBase) |
void | setElideMode(int mode) |
void | setExpanding(bool enabled) |
void | setIconSize(const QSize &size) |
void | setMovable(bool movable) |
void | setSelectionBehaviorOnRemove(int behavior) |
void | setShape(int shape) |
void | setTabMaximumSize(int index, const QSize &size) |
void | setTabMinimumSize(int index, const QSize &size) |
void | setTabsClosable(bool closable) |
void | setUsesScrollButtons(bool useButtons) |
int | shape() const |
int | startDragDistance() const |
bool | tabsClosable() const |
bool | usesScrollButtons() const |
bool | visibleAddButton() const |
void | setCurrentIndex(int index) |
void | setFlashColor(int flashColor) |
void | setMaskColor(int maskColor) |
void | setStartDragDistance(int startDragDistance) |
void | setVisibleAddButton(bool visibleAddButton) |
void | currentChanged(int index) |
void | dragStarted() |
void | tabAddRequested() |
void | tabBarClicked(int index) |
void | tabBarDoubleClicked(int index) |
void | tabCloseRequested(int index) |
void | tabIsInserted(int index) |
void | tabIsRemoved(int index) |
void | tabMoved(int from, int to) |
void | tabReleaseRequested(int index) |
增加了许多特性,比如:新建按钮,支持向外拖放事件...该控件目前被深度编辑器中所使用。
[signal]
void DTabBar::currentChanged(int index)当前索引位置改变.
+index 改变的索引值.
+Note: Notifier signal for property currentIndex.
+ + +[signal]
void DTabBar::dragStarted()开始拖起.
+ + +[signal]
void DTabBar::tabAddRequested()新标签加入.
+ + +[signal]
void DTabBar::tabBarClicked(int index)点击索引标签.
+index 点击标签的索引值.
+ + +[signal]
void DTabBar::tabBarDoubleClicked(int index)双击索引标签.
+index 双击标记的索引值.
+ + +[signal]
void DTabBar::tabCloseRequested(int index)点击关闭后发出.
+index 关闭的索引值.
+ + +[signal]
void DTabBar::tabIsInserted(int index)新标签已插入.
+index 被插入标签的索引值.
+ + +[signal]
void DTabBar::tabIsRemoved(int index)标签已删除.
+index 被删除标签的索引值.
+ + +[signal]
void DTabBar::tabMoved(int from, int to)索引位置发生变化
+from 索引位置变化的初始值, to 位置变化后的索引值.
+ + +[signal]
void DTabBar::tabReleaseRequested(int index)索引标签鼠标释放.
+index 标签释放的索引值.
+ + +设置索引标签的最大尺寸.
+index 被设置标签的索引值,size ,size 最大大小.
+ + +设置索引标签的最小尺寸.
+index 被设置标签的索引值,size ,size 最小大小.
+ + +标签栏形状.
+Returns 返回当前 DTabBar 实例的标签栏形状.
+Note: Getter function for property shape.
+See also setShape().
+ + +新建标签栏按钮是否可见.
+Returns 新建按钮可见,返回 ture 否则,返回 false 。
+Note: Getter function for property visibleAddButton.
+See also setVisibleAddButton().
+ +This is the complete list of members for Dtk::Widget::DTipLabel, including inherited members.
+ +DTipLabel一个重新实现的 QLabel. More...
+ +Header: | #include <DTipLabel> + |
Inherited By: | + |
DTipLabel(const QString &text = QString(), QWidget *parent = nullptr) | |
void | show(const QPoint &pos) |
This is the complete list of members for Dtk::Widget::DToolTip, including inherited members.
+ +DToolTip类似于 QToolTip 功能的类. More...
+DToolTip类似于 QToolTip 功能的类. More...
Header: | #include <DToolTip> - |
DToolTip(const QString &text, bool completionClose = true) | |
void | show(const QPoint &pos, int duration) |
QSize | sizeHint() const |
DToolTip提供了将 DToolTip 显示在指定位置的函数
DToolTip的构造函数.
+text 文本信息 completionClose 提示消息消失后是否销毁
+ + +DToolTip::show设置提示消息出现的位置.
+pos 提示消息位置 duration 提示消息存在时间,单位毫秒
+ + +DToolTip::sizeHint.
+See also QLabel::sizeHint().
+ +This is the complete list of members for Dtk::Widget::DVBoxWidget, including inherited members.
+The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom. More...
+The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom. More...
Header: | #include <DVBoxWidget> |
Inherits: | Dtk::Widget::DBoxWidget |
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-setActionList(Qt::BottomEdge, *list) 的 BottomEdge 为水平方向的枚举值时候: LeftEdge, RightEdge, 其对应 alignment 枚举数值只有如下的有效:
+setActionList(Qt::BottomEdge, *list) 的 BottomEdge 为水平方向的枚举值时候: LeftEdge, RightEdge, 其对应 alignment 枚举数值只有如下的有效:
其参数 alignment 为如下值时候(才有效):
此处举一个小例子, 可以自行修改相关参数, 查看结果, 理解参数:
- QMainWindow *wid = new QMainWindow(); + QMainWindow *wid = new QMainWindow(); wid->resize(800, 600); //视图和模型 DListView *view = new DListView(wid); - QStandardItemModel *model = new QStandardItemModel(view); + QStandardItemModel *model = new QStandardItemModel(view); view->setModel(model); //标准DStandardItem item @@ -79,18 +79,18 @@Detailed Description
item->setText("@1:这是同一个item 的text\n@2:这是同一个item 的text\n@3:这是同一个item 的text\n@4:这是同一个item 的text\n@5:这是同一个item 的text\n@6:这是同一个item 的text"); //DViewItemAction() 的形参: 其参数 alignment = AlignLeft 或 AlignHCenter 或 AlignRight; 设置为 AlignTop, AlignVCenter, AlignBottom 也是无效的 - DViewItemAction *act1 = new DViewItemAction(Qt::AlignBottom, QSize(15, 15), QSize(50, 50)); + DViewItemAction *act1 = new DViewItemAction(Qt::AlignBottom, QSize(15, 15), QSize(50, 50)); act1->setText("act1"); - act1->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act2 = new DViewItemAction(Qt::AlignVCenter, QSize(15, 15), QSize()); + act1->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act2 = new DViewItemAction(Qt::AlignVCenter, QSize(15, 15), QSize()); act2->setText("act2"); - act2->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act3 = new DViewItemAction(Qt::AlignTop, QSize(15, 15), QSize(100, 50)); + act2->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act3 = new DViewItemAction(Qt::AlignTop, QSize(15, 15), QSize(100, 50)); act3->setText("act3"); - act3->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act4 = new DViewItemAction(Qt::AlignBottom, QSize(15, 15), QSize(100, 50)); + act3->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act4 = new DViewItemAction(Qt::AlignBottom, QSize(15, 15), QSize(100, 50)); act4->setText("act4"); - act4->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + act4->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); DViewItemActionList *list = new DViewItemActionList(); list->append(act1); @@ -106,7 +106,7 @@Detailed Description
wid->show();
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-setActionList(Qt::BottomEdge, *list) 的 BottomEdge 为竖直方向的枚举值时候: TopEdge, BottomEdge, 其对应 alignment 枚举数值只有如下的有效:
+setActionList(Qt::BottomEdge, *list) 的 BottomEdge 为竖直方向的枚举值时候: TopEdge, BottomEdge, 其对应 alignment 枚举数值只有如下的有效:
其参数 alignment 为如下值时候(才有效):
此处举一个小例子, 可以自行修改相关参数, 查看结果, 理解参数:
- QMainWindow *wid = new QMainWindow(); + QMainWindow *wid = new QMainWindow(); wid->resize(800, 600); //视图和模型 DListView *view = new DListView(wid); - QStandardItemModel *model = new QStandardItemModel(view); + QStandardItemModel *model = new QStandardItemModel(view); view->setModel(model); //标准DStandardItem item @@ -128,18 +128,18 @@Detailed Description
item->setText("这是一个item 的text"); //DViewItemAction() 的形参: 其参数 alignment = AlignLeft 或 AlignHCenter 或 AlignRight; 设置为 AlignTop, AlignVCenter, AlignBottom 也是无效的 - DViewItemAction *act1 = new DViewItemAction(Qt::AlignLeft, QSize(15, 15), QSize(50, 50)); + DViewItemAction *act1 = new DViewItemAction(Qt::AlignLeft, QSize(15, 15), QSize(50, 50)); act1->setText("act1"); - act1->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act2 = new DViewItemAction(Qt::AlignRight, QSize(15, 15), QSize()); + act1->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act2 = new DViewItemAction(Qt::AlignRight, QSize(15, 15), QSize()); act2->setText("act2"); - act2->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act3 = new DViewItemAction(Qt::AlignHCenter, QSize(15, 15), QSize(100, 50)); + act2->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act3 = new DViewItemAction(Qt::AlignHCenter, QSize(15, 15), QSize(100, 50)); act3->setText("act3"); - act3->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); - DViewItemAction *act4 = new DViewItemAction(Qt::AlignLeft, QSize(15, 15), QSize(100, 50)); + act3->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + DViewItemAction *act4 = new DViewItemAction(Qt::AlignLeft, QSize(15, 15), QSize(100, 50)); act4->setText("act4"); - act4->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); + act4->setIcon(QIcon("/home/yuanyi/Desktop/dog.jpg")); DViewItemActionList *list = new DViewItemActionList(); list->append(act1); diff --git a/dtk-widget-dwarningbutton-members.html b/dtk-widget-dwarningbutton-members.html new file mode 100644 index 0000000..5832d9e --- /dev/null +++ b/dtk-widget-dwarningbutton-members.html @@ -0,0 +1,58 @@ + + + + + +List of All Members for DWarningButton | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget-dwarningbutton.html b/dtk-widget-dwarningbutton.html new file mode 100644 index 0000000..6c5e3b4 --- /dev/null +++ b/dtk-widget-dwarningbutton.html @@ -0,0 +1,100 @@ + + + + + +++++ +++++++ +List of All Members for DWarningButton
+This is the complete list of members for Dtk::Widget::DWarningButton, including inherited members.
++
+- DWarningButton(QWidget *)
+- initStyleOption(int *) const
+DWarningButton Class | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget-dwaterprogress-members.html b/dtk-widget-dwaterprogress-members.html new file mode 100644 index 0000000..11216d0 --- /dev/null +++ b/dtk-widget-dwaterprogress-members.html @@ -0,0 +1,62 @@ + + + + + +++++ +++++++ +DWarningButton Class
+class Dtk::Widget::DWarningButton + +警告按钮控件, 继承于 DPushButton 控件, 主要替换了文字和背景的颜色. More...
+ ++ ++
Header: #include <DWarningButton> + Public Functions
++ ++
+ DWarningButton(QWidget *parent = nullptr) Protected Functions
++ + ++
+ void initStyleOption(int *option) const ++Detailed Description
+Note: 通常在执行一些比较危险的动作时候, 给出的一个提醒标识, 但是并不强制阻止; 如: 某些小程序需要较高的权限才能够运行; 删除文件不可恢复等
+See also QPushButton.
+ +++Member Function Documentation
+ +DWarningButton::DWarningButton(QWidget *parent = nullptr)
+构造函数 parent 本控件的父对象
+ + ++
[protected]
void DWarningButton::initStyleOption(int *option) const初始化风格属性 option 用来初始化本控件的基础的风格属性
+ +List of All Members for DWaterProgress | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget-dwaterprogress.html b/dtk-widget-dwaterprogress.html new file mode 100644 index 0000000..6d7c3d6 --- /dev/null +++ b/dtk-widget-dwaterprogress.html @@ -0,0 +1,130 @@ + + + + + +++++ +++++++ +List of All Members for DWaterProgress
+This is the complete list of members for Dtk::Widget::DWaterProgress, including inherited members.
++
+- setTextVisible(bool )
+- setValue(int )
+- start()
+- stop()
+- valueChanged()
+- value() const : int
+DWaterProgress Class | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget-dwindowmaxbutton-members.html b/dtk-widget-dwindowmaxbutton-members.html new file mode 100644 index 0000000..cfcb42b --- /dev/null +++ b/dtk-widget-dwindowmaxbutton-members.html @@ -0,0 +1,60 @@ + + + + + +++++ +++++++ +DWaterProgress Class
+class Dtk::Widget::DWaterProgress + +可以使用 DWaterProgress 类快速创建圆形容器内水位高低指示进度的动画控件. More...
+ ++ ++
Header: #include <DWaterProgress> + Public Functions
++ ++
+ int value() const Public Slots
++ ++
+ void setTextVisible(bool visible) + void setValue(int value) + void start() + void stop() Signals
++ + ++
+ void valueChanged() ++ +Detailed Description
+
可以使用 DWaterProgress 类快速创建圆形容器内水位高低指示进度的动画控件。并提供了可选的是否显示进度文字的选项。 Use DWaterProgress to create an new water animation progress. There is also an optional progress text can be set as visible via setTextVisible().
+++Member Function Documentation
+ ++
[slot]
void DWaterProgress::setTextVisible(bool visible)set progress text visible or not
+设置是否显示进度
+set the progress text value(like 50% when value is 50) visible. 设置进度文字是否显示,如值为 50 时显示 50% 。
+ + ++
[slot]
void DWaterProgress::setValue(int value)set the current progress value (range: 0~100)
+设置当前进度值,(范围 0~100)
+Note: Setter function for property value.
+See also value().
+ + ++
[slot]
void DWaterProgress::start()star water animation.
+开始水位动画
+ + ++
[slot]
void DWaterProgress::stop()stop water animation.
+停止水位动画
+ + +int DWaterProgress::value() const
+get the current progress value
+当前进度值
+Note: Getter function for property value.
+See also setValue().
+ +List of All Members for DWindowMaxButton | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget-dwindowmaxbutton.html b/dtk-widget-dwindowmaxbutton.html new file mode 100644 index 0000000..474ccc0 --- /dev/null +++ b/dtk-widget-dwindowmaxbutton.html @@ -0,0 +1,125 @@ + + + + + +++++ +++++++ +List of All Members for DWindowMaxButton
+This is the complete list of members for Dtk::Widget::DWindowMaxButton, including inherited members.
++
+- DWindowMaxButton(QWidget *)
+- maximizedChanged(bool )
+- setMaximized(bool )
+- isMaximized() const : bool
+DWindowMaxButton Class | Dtk Reference Documentation 1.0.0 + + + + +++ + + diff --git a/dtk-widget.html b/dtk-widget.html index ae84687..a51f324 100644 --- a/dtk-widget.html +++ b/dtk-widget.html @@ -61,21 +61,27 @@++++ +++++++ +DWindowMaxButton Class
+class Dtk::Widget::DWindowMaxButton + +The DWindowMaxButton class is used as the unified window maximize button. More...
+ ++ ++
Header: #include <DWindowMaxButton> + Inherits: Dtk::Widget::DIconButton Properties
++
+ +- isMaximized : bool
+Public Functions
++ ++
+ DWindowMaxButton(QWidget *parent = 0) + bool isMaximized() const Public Slots
++ ++
+ void setMaximized(bool isMaximized) Signals
++ + ++
+ void maximizedChanged(bool isMaximized) ++Detailed Description
+It's actually a special DImageButton which has the appearance of maximize button. 它有两种状态,一种表示窗口已经进入最大化状态,点击按钮窗口恢复为普通状态; 另一种表示窗口处于普通状态,点击按钮窗口进入最大化状态。
+See also DWindowMaxButton::isMaximized().
+ +++Property Documentation
+ + +isMaximized indicates whether the button state is maximized or not.
+It's true if it's set to maximized, otherwise false.
+isMaximized 属性标示了这个按钮当前所处于的状态。 值为 true 表示按钮处于最大化状态,false 表示窗口处于正常状态。
+ +++Member Function Documentation
+ +DWindowMaxButton::DWindowMaxButton(QWidget *parent = 0)
+DWindowMaxButton::DWindowMaxButton 是 DWindowMaxButton 的构造 函数,返回 DWindowMaxButton 对象,普通程序一般无需使用。 parent 为创建对象的父控件。
+ + ++
[signal]
void DWindowMaxButton::maximizedChanged(bool isMaximized)isMaximizedChanged 信号在 isMaximized 属性发生变化时触发.
+isMaximized 是否时最大化状态.
+Note: Notifier signal for property isMaximized.
+ +Classes
class DAnchors class DAnchorsBase + class DApplicationSettings + class DArrowRectangle class DBlurEffectWidget class DBoxWidget class DButtonBox class DButtonBoxButton + class DClipEffectWidget class DColoredProgressBar class DCommandLinkButton class DDialog + class DEnhancedWidget class DExpandGroup class DFloatingMessage class DFlowLayout class DFontSizeManager class DGraphicsClipEffect class DHBoxWidget + class DHiDPIHelper class DIpv4LineEdit class DPlatformWindowHandle + class DPrintPreviewDialog class DSimpleListView class DStackWidget class DStandardItem @@ -83,11 +89,17 @@ class DStyle Classes
class DStyleOptionButton class DStyleOptionLineEdit + class DStyledIconEngine class DSuggestButton + class DSwitchHeaderLine class DSwitchLineExpand + class DTabBar class DTipLabel class DToolTip class DVBoxWidget + class DViewItemAction + class DWarningButton + class DWaterProgress class DWindowMaxButton
DAnchorsBase 提供了一种指定 QWidget 与其它 QWidget 之间的关系来确定 其位置的方法. More...
+DAnchorsBase 提供了一种指定 QWidget 与其它 QWidget 之间的关系来确定 其位置的方法. More...
DApplicationSettings保存应用程序的设置. More...
+DArrowRectangle 提供了可以在四个边中的任意一个边显示箭头的矩形控件. More...
+ +用于实现主窗口或控件背景的实时模糊效果. More...
+The DBoxWidget class provides widget born with QBoxLayout set. More...
+The DBoxWidget class provides widget born with QBoxLayout set. More...
DButtonBox 类似于 QButtonGroup 的类. More...
+DButtonBox 类似于 QButtonGroup 的类. More...
DButtonBoxButton 提供了修改了样式的按钮. More...
@@ -126,13 +144,19 @@用于裁剪窗口的绘制内容. More...
+DColoredProgressBar is the same as QProgressBar, except it can change its appearance depending on the value displayed. More...
+DCommandLinkButton 一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮. More...
+DCommandLinkButton 一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮. More...
可以使用 DDialog 类快速创建符合 DDE 风格的简要对话框窗口. More...
-封装了一组 DBaseExpand 控件(当然也可以是其子类), 并保证同一时间只有一个 DBaseExpand 处于展开状态. More...
+ +一个浮动消息的类. More...
用于裁剪窗口的绘制内容. More...
The DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight. More...
+The DHBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight. More...
The DHiDPIHelper class provides helper to help applications support hiDPI. More...
+类DIpv4LineEdit是专门用于输入ipv4格式文本的编辑框. More...
+Dtk 风格的打印预览页面. More...
+DSimpleListView 是 deepin 基于 QWidget 从零绘制的列表控件. More...
+一个可定制切换动画的容器控件. More...
@@ -172,23 +202,41 @@Dtk::Widget::DLineEdit使用的样式配置. More...
DStyledIconEngine一个修改的 QIconEngine 类. More...
+DStyledIconEngine一个修改的 QIconEngine 类. More...
+这个控件提供了DTK中默认的按钮样式. More...
+DSwitchHeaderLine 类用于提供 DSwitchLineExpand 的标题栏. More...
+DSwitchHeaderLine 类用于提供 DSwitchLineExpand 的标题栏. More...
+DSwitchLineExpand 类提供了一种通过开关按钮来展开/合上显示内容的控件. More...
+DTabBar 是一个标签栏控件,是在 QTabBar 基础之上进行扩展增强. More...
+DTabBar 是一个标签栏控件,是在 QTabBar 基础之上进行扩展增强. More...
+DTipLabel一个重新实现的 QLabel. More...
+DToolTip类似于 QToolTip 功能的类. More...
+DToolTip类似于 QToolTip 功能的类. More...
The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom. More...
+The DVBoxWidget class is DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom. More...
是一个 action 活动, 其默认是不能被点击的. More...
+警告按钮控件, 继承于 DPushButton 控件, 主要替换了文字和背景的颜色. More...
+ +可以使用 DWaterProgress 类快速创建圆形容器内水位高低指示进度的动画控件. More...
+ +The DWindowMaxButton class is used as the unified window maximize button. More...
+ diff --git a/dtkcore-module.html b/dtkcore-module.html index f868aba..1acabe4 100644 --- a/dtkcore-module.html +++ b/dtkcore-module.html @@ -40,6 +40,7 @@DTK 总命名空间
DTK Core 命名空间
The simple appender that writes the log records to the std::cerr output stream | |
配置后端的抽象接口 | |
Handling desktop entry files | |
是用来获取磁盘容量单位的类, 通过枚举值 | |
Can help you manage file watchers and get signal when file got changed | |
The deepin user application log manager | |
Storage DSetttings to an QSettings |
是一个模板类,在 DAnchorsBase 的基础上保存了一个控件指针, 将控件和锚定绑定在一起使用,相当于把“锚线”属性附加到了控件本身
提供了一种指定 QWidget 与其它 QWidget 之间的关系来确定 其位置的方法
DApplicationSettings保存应用程序的设置
提供了可以在四个边中的任意一个边显示箭头的矩形控件
用于实现主窗口或控件背景的实时模糊效果
Widget born with QBoxLayout set
类似于 QButtonGroup 的类
提供了修改了样式的按钮
用于裁剪窗口的绘制内容
一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮
可以使用 DDialog 类快速创建符合 DDE 风格的简要对话框窗口
The same as QProgressBar, except it can change its appearance depending on the value displayed
一个继承于 QAbstractButton 的按钮,外形和链接很像; 也可以是带有箭头的链接。常用于点击之后,跳转到另外一个窗口或者页面,比如浏览器的前进后退按钮
可以使用 DDialog 类快速创建符合 DDE 风格的简要对话框窗口
封装了一组 DBaseExpand 控件(当然也可以是其子类), 并保证同一时间只有一个 DBaseExpand 处于展开状态
一个浮动消息的类
类提供了一个简便的流布局
字体大小设置的一个类,系统默认只设置T6
用于裁剪窗口的绘制内容
DBoxWidget with DBoxWidget::direction set to QBoxLayout::LeftToRight
Helper to help applications support hiDPI
Dtk 风格的打印预览页面
类DIpv4LineEdit是专门用于输入ipv4格式文本的编辑框
Dtk 风格的打印预览页面
是 deepin 基于 QWidget 从零绘制的列表控件
一个可定制切换动画的容器控件
提供标准项 item,通常用于模型/视图,或模型-代理-视图里面,用以提供标准的 item 控件
提供了一个 Dtk 控件的基础类
Dtk 样式统一的按钮样式配置
Dtk::Widget::DLineEdit使用的样式配置
DStyledIconEngine一个修改的 QIconEngine 类
类用于提供 DSwitchLineExpand 的标题栏
这个控件提供了DTK中默认的按钮样式
类用于提供 DSwitchLineExpand 的标题栏
类提供了一种通过开关按钮来展开/合上显示内容的控件
是一个标签栏控件,是在 QTabBar 基础之上进行扩展增强
DToolTip类似于 QToolTip 功能的类
DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom
是一个 action 活动, 其默认是不能被点击的
DTipLabel一个重新实现的 QLabel
DToolTip类似于 QToolTip 功能的类
DBoxWidget with DBoxWidget::direction set to QBoxLayout::TopToBottom
是一个 action 活动, 其默认是不能被点击的
警告按钮控件, 继承于 DPushButton 控件, 主要替换了文字和背景的颜色
可以使用 DWaterProgress 类快速创建圆形容器内水位高低指示进度的动画控件
Used as the unified window maximize button