当前位置: 首页>>代码示例>>C++>>正文


C++ Theme::setPanelSelectorBinaryValue方法代码示例

本文整理汇总了C++中Theme::setPanelSelectorBinaryValue方法的典型用法代码示例。如果您正苦于以下问题:C++ Theme::setPanelSelectorBinaryValue方法的具体用法?C++ Theme::setPanelSelectorBinaryValue怎么用?C++ Theme::setPanelSelectorBinaryValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Theme的用法示例。


在下文中一共展示了Theme::setPanelSelectorBinaryValue方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Load


//.........这里部分代码省略.........

        char* previewString = g_key_file_get_string(key_file, themename, "Preview", &error);
        if (previewString == NULL) {
            if (error) {
                //g_print("configuration Key (Theme %s Preview ) could not be found. use default\n", themename);
                g_error_free(error);
                error = NULL;
            }
        }



        char* PanelSelectorString = g_key_file_get_string(key_file, themename, "PanelSelector", &error);
        if (PanelSelectorString == NULL) {
            if (error) {
                //g_print("configuration Key (Theme %s PanelSelector ) could not be found. use default\n", themename);
                g_error_free(error);
                error = NULL;
            }
        }



        char* PreviewTitleTextString = g_key_file_get_string(key_file, themename, "PreviewTitleText", &error);
        if (PreviewTitleTextString == NULL) {
            if (error) {
                //g_print("configuration Key (Theme %s PreviewTitleText ) could not be found. use default\n", themename);
                g_error_free(error);
                error = NULL;
            }
        }

        char* PreviewSelectorString = g_key_file_get_string(key_file, themename, "PreviewSelector", &error);
        if (PreviewSelectorString == NULL) {
            if (error) {
                //g_print("configuration Key (Theme %s PreviewSelector ) could not be found. use default\n", themename);
                g_error_free(error);
                error = NULL;
            }
        }

        bool enable;
        double lineWidth;
        double roundedRadius;
        Color background;
        Color foreground;

        m_theme.setPanelScaleOnhover(panelScaleOnHover);


        if (windowString != NULL) {
            getColorFromString(windowString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forWindow().set(enable, background, foreground, lineWidth, roundedRadius);
        }
        if (panelString != NULL) {
            getColorFromString(panelString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPanel().set(enable, background, foreground, lineWidth, roundedRadius);
        }
        if (PanelTitleString != NULL) {
            getColorFromString(PanelTitleString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPanelTitle().set(enable, background, foreground, lineWidth, roundedRadius);
        }
        if (PanelTitleTextString != NULL) {
            getColorFromString(PanelTitleTextString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPanelTitleText().set(enable, background, foreground, lineWidth, roundedRadius);

        }
        if (previewString != NULL) {
            getColorFromString(previewString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPreview().set(enable, background, foreground, lineWidth, roundedRadius);
        }

        if (PanelSelectorString != NULL) {
            getColorFromString(PanelSelectorString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPanelSelector().set(enable, background, foreground, lineWidth, roundedRadius);
        }

        if (PreviewTitleTextString != NULL) {
            getColorFromString(PreviewTitleTextString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPreviewTitleText().set(enable, background, foreground, lineWidth, roundedRadius);
        }

        if (PreviewSelectorString != NULL) {
            getColorFromString(PreviewSelectorString, enable, lineWidth, roundedRadius, background, foreground);
            m_theme.forPreviewSelector().set(enable, background, foreground, lineWidth, roundedRadius);
        }


        m_theme.setPanelBinaryValue(panelLinesBinaryValue);

        m_theme.setPanelSelectorBinaryValue(panelSelectorLinesBinaryValue);

        m_theme.setPreviewBinaryValue(previewlLinesBinaryValue);
        m_theme.setPreviewSelectorBinaryValue(previewSelectorLinesBinaryValue);


        g_key_file_free(key_file);
        return;

    }
开发者ID:yoosamui,项目名称:DockLight,代码行数:101,代码来源:Configuration.cpp


注:本文中的Theme::setPanelSelectorBinaryValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。