dguiapplicationhelper_zh
2022-04-14 15:19:41

Class::DGuiApplicationHelper

暂无该属性


Detailed Description

~chinese ~chinese

DGuiApplicationHelper 应用程序的 GUI ,如主题、调色板等

DGuiApplicationHelper::D_DECLARE_PRIVATE

[private plain  ]

int D_DECLARE_PRIVATE(DGuiApplicationHelper )

typedef DGuiApplicationHelper::HelperCreator

DGuiApplicationHelper::registerInstanceCreator

[private plain static ]

void registerInstanceCreator(DGuiApplicationHelper::HelperCreator creator) ~chinese

DGuiApplicationHelper::registerInstanceCreator创建 DGuiApplicationHelper 对象 ~chinese creator 函数指针 ~chinese Note: 一定要先调用此函数,再使用

DGuiApplicationHelper::instance

[private plain static ]

DGuiApplicationHelper * instance() ~chinese

DGuiApplicationHelper::instance返回 DGuiApplicationHelper 对象 ~chinese Returns DGuiApplicationHelper 对象

DGuiApplicationHelper::~DGuiApplicationHelper

[private destructor  ]

~DGuiApplicationHelper()

DGuiApplicationHelper::adjustColor

[private plain static ]

int adjustColor(const int &, int , int , int , int , int , int , int ) ~chinese

DGuiApplicationHelper::adjustColor 调整颜色 ~chinese Note: 取值范围均为 -100 ~ 100 ,当三原色参数为-100时,颜色为黑色,参数为100时,颜色为白色. ~chinese 以透明度( alphaFloat )为例,当参数为负数时基础色的 alphaFloat 值减少,现象偏向透明, 参数为正数alphaFloat 值增加,现象偏不透明 ~chinese base基础色 ~chinese hueFloat 色调 ~chinese saturationFloat 饱和度 ~chinese lightnessFloat 亮度 ~chinese redFloat 红色 ~chinese greenFloat 绿色 ~chinese blueFloat 蓝色 ~chinese alphaFloat Alpha通道(透明度) ~chinese Returns 经过调整的颜色

DGuiApplicationHelper::blendColor

[private plain static ]

int blendColor(const int &, const int &) ~chinese

DGuiApplicationHelper::blendColor 将两种颜色混合,合成新的颜色 ~chinese substrate底层颜色 ~chinese superstratum上层颜色 ~chinese Returns 混合颜色

DGuiApplicationHelper::standardPalette

[private plain static ]

DPalette standardPalette(int type) ~chinese

DGuiApplicationHelper::standardPalett 根据主题获取标准调色板 ~chinese type 主题枚举值 ~chinese Returns 调色板

DGuiApplicationHelper::generatePaletteColor

[private plain static ]

void generatePaletteColor(DPalette &base, int role, int type) ~chinese

DGuiApplicationHelper::generatePaletteColor 获取调色板颜色 ~chinese base调色板 ~chinese sa roleQPalette::ColorRole() ~chinese type主题枚举值

DGuiApplicationHelper::generatePaletteColor

[private plain static ]

void generatePaletteColor(DPalette &base, DPalette::ColorType role, int type) ~chinese

DGuiApplicationHelper::generatePaletteColor 获取调色板颜色 ~chinese base调色板 ~chinese role背景颜色 ~chinese type主题枚举值

DGuiApplicationHelper::generatePalette

[private plain static ]

void generatePalette(DPalette &base, int type) ~chinese

DGuiApplicationHelper::generatePalette 根据主题的枚举值获取调色板数据 ~chinese base调色板 ~chinese type主题的枚举值

DGuiApplicationHelper::fetchPalette

[private plain static ]

DPalette fetchPalette(const int *theme) ~chinese

DGuiApplicationHelper::fetchPalette取出主题的调色板 ~chinese theme主题信息 ~chinese Returns 调色板信息

DGuiApplicationHelper::setUseInactiveColorGroup

[private plain static ]

void setUseInactiveColorGroup(bool on) ~chinese

DGuiApplicationHelper::setUseInactiveColorGroup设置是否将调色板的颜色改为半透明模式 ~chinese 一般用在主窗口背景为透明、模糊的程序中 ~chinese on 是否开启

DGuiApplicationHelper::setColorCompositingEnabled

[private plain static ]

void setColorCompositingEnabled(bool on) ~chinese

DGuiApplicationHelper::setColorCompositingEnabled设置是否开启混合颜色 ~chinese on 是否开启

DGuiApplicationHelper::isXWindowPlatform

[private plain static ]

bool isXWindowPlatform()

DGuiApplicationHelper::systemTheme

[private plain  ]

int * systemTheme() const ~chinese

DGuiApplicationHelper::systemTheme返回系统主题 ~chinese Returns 系统主题

DGuiApplicationHelper::applicationTheme

[private plain  ]

int * applicationTheme() const ~chinese

DGuiApplicationHelper::applicationTheme返回应用主题对象 ~chinese Returns 应用主题

DGuiApplicationHelper::windowTheme

[private plain  ]

int * windowTheme(int *) const ~chinese

DGuiApplicationHelper::windowTheme返回 QWindow 主题对象 ~chinese windowQWindow 对象 ~chinese Returns QWindow主题

DGuiApplicationHelper::applicationPalette

[private plain  ]

DPalette applicationPalette() const ~chinese

DGuiApplicationHelper::applicationPalette返回应用程序调色板 ~chinese Returns 应用程序调色板

DGuiApplicationHelper::setApplicationPalette

[private plain  ]

void setApplicationPalette(const DPalette &palette) ~chinese

DGuiApplicationHelper::setApplicationPalette设置应用程序调色板 ~chinese palette调色板

DGuiApplicationHelper::windowPalette

[private plain  ]

DPalette windowPalette(int *window) const ~chinese

DGuiApplicationHelper::windowPalette ~chinese window ~chinese Returns 调色板

DGuiApplicationHelper::toColorType

[private plain static ]

int toColorType(const int &) ~chinese

DGuiApplicationHelper::toColorType获取颜色的明亮度,将其转换为主题类型的枚举值。 ~chinese 返回调色板背景颜色 ~chinese palette调色板 ~chinese Returns 主题类型的枚举值

DGuiApplicationHelper::themeType

[private plain  ]

int themeType() const ~chinese

DGuiApplicationHelper::themeType主题类型 ~chinese Dpalette::ColorType 针对某一个控件 ~chinese DGuiApplicationHelper::ColorType 针对整个程序 ~chinese Returns 主题类型的枚举值

DGuiApplicationHelper::paletteType

[private plain  ]

int paletteType() const ~chinese

DGuiApplicationHelper::paletteType ~chinese Returns 主题类型的枚举值 See also setPaletteType()

DGuiApplicationHelper::setSingleInstance

[private plain static ]

bool setSingleInstance(const int &key, DGuiApplicationHelper::SingleScope singleScope) ~chinese

DGuiApplicationHelper::setSingleInstance 设置 DGuiApplicationHelper 实例 ~chinese key 实例关键字 ~chinese singleScope 实例使用范围 ~chinese Returns 设置是否成功 ~chinese Note: 此处所用到DGuiApplicationHelperPrivate::waitTime默认值为3000ms,可通过 ~chinese

Note: DGuiApplicationHelper::setSingleInstanceInterval设置

DGuiApplicationHelper::setSingleInstanceInterval

[private plain static ]

void setSingleInstanceInterval(int interval) ~chinese

DGuiApplicationHelper::setSingelInstanceInterval设置从QLocalServer获取消息的等待时间, ~chinese

用于在重新创建 DGuiApplicationHelper 单例时,检测 DGuiApplicationHelper 单例是否存在且有响应 ~chinese interval等待时间,如 interval 为 -1 则没有超时一直等待,默认和 QLocalSocket 一致 3000ms ~chinese Note: 需要在 DGuiApplicationHelper::setSingleInstance 之前调用否则无效。

DGuiApplicationHelper::setPaletteType

[public plain  ]

void setPaletteType(int paletteType) ~chinese

设置调色板类型 ~chinese paletteType主题类型的枚举值

DGuiApplicationHelper::paletteTypeChanged

[public plain  ]

void paletteTypeChanged(int paletteType)

DGuiApplicationHelper::newProcessInstance

[public plain  ]

void newProcessInstance(int pid, const int &arguments)

DGuiApplicationHelper::DGuiApplicationHelper

[protected constructor  ]

DGuiApplicationHelper()

DGuiApplicationHelper::initialize

[protected plain  virtual]

void initialize()

DGuiApplicationHelper::D_PRIVATE_SLOT

[private plain  ]

int D_PRIVATE_SLOT(void (bool) )