C++ 应用框架 Softbloks

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 22:28:55

软件介绍

Softbloks 是一款免费的跨平台的应用框架,为开发者提供一个有效的开发模式,自下而上或者自上而下,提高开发效率。

示例代码:

class MainObject : public sb::AbstractSoft
{
    public:
    MainObject()
    {
        // 1) register the property Qt.mainview in read-only mode
        // - the method get_widget is passed as reading accessor (std::bind is
        //   used to convert the method into a std::function bound to this)
        // - empty value (nullptr) is passed as writing accessor
        this->register_property<QWidget*>(
            "Qt.mainview",
            sb::READ_ONLY,
            std::bind(&MySoft::get_widget, this),
            nullptr
        );
    }
    QWidget* get_widget()
    {
        return new QLabel("Hello World!!!");
    }
};
SB_DECLARE_CLASS(
    MainObject,
    "MainObject",
    sb::AbstractSoft
)
// 2) declare the properties of the class
SB_DECLARE_PROPERTIES(
    MainObject,
    {"Qt.mainview", {typeid(QWidget*), sb::READ_ONLY}}
)
SB_DECLARE_MODULE(/*a description should go here*/)
{
    sb::register_object<MainObject>();
}

本文地址:https://codercto.com/soft/d/12382.html

最愚蠢的一代

最愚蠢的一代

马克·鲍尔莱因 / 杨蕾 / 天津社会科学院出版社 / 2011-7 / 39.80元

《最愚蠢的一代》 美国大学教授的鲍尔莱恩认为,数码时代正在使美国的年轻一代成为知识最贫乏的一代人。 美国的青少年和年轻人正在被数码时代各种娱乐消遣性的工具所淹没。这些工具包括手机、社交网络和信息传送等等。他们通过这些工具传达的却是幼稚浮浅的东西,而且这些东西正在妨碍他们同历史、公民义务、国际事务和美术等成年人的现实世界进行重要的接触。 我们想当然地以为,这些善于吸收新技术的美国年......一起来看看 《最愚蠢的一代》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具