BambuStudio 自定义加载页面

目录

语言设置:

修改文件:

编译后会生成:

语言设置:

[BambuStudio 自定义加载页面](#BambuStudio 自定义加载页面)

插件下载url:

[version.inc 中设置软件名字:](#version.inc 中设置软件名字:)


语言设置:

cmake --build . --target gettext_po_to_mo --config RelWithDebInfo

修改文件:

BambuStudio_zh_CN.po

编译后会生成:

bash 复制代码
BambuStudio\build\src\RelWithDebInfo\resources\i18n\zh_CN\BambuStudio.mo

findstr /S /I "zh_CN" *.cpp *.h *.cmake

CMakeFiles\VerifyGlobs.cmake: "E:/pro_math/BambuStudio/src/slic3r/GUI/DeviceWeb/device_page/locales/zh_CN.json"

语言设置:

cpp 复制代码
    sort_remove_duplicates(language_infos);
    std::sort(language_infos.begin(), language_infos.end(), [](const wxLanguageInfo *l, const wxLanguageInfo *r) { return l->Description < r->Description; });
    auto item_language = create_item_language_combobox(_L("Language"), page, _L("Language"), 50, "language", language_infos);

    std::vector<wxString> Regions         = {_L("Asia-Pacific"), _L("Chinese Mainland"), _L("Europe"), _L("North America"), _L("Others")};
    auto                  item_region= create_item_region_combobox(_L("Login Region"), page, _L("Login Region"), Regions);

BambuStudio 自定义加载页面

bash 复制代码
cmake --build . --target BambuStudio --config RelWithDebInfo
bash 复制代码
src/slic3r/GUI/GUI_App.cpp
cpp 复制代码
        void init(wxFont init_font)
        {
            // title
            title = wxGetApp().is_editor() ? SLIC3R_APP_FULL_NAME : GCODEVIEWER_APP_NAME;
            title=wxString::FromUTF8("AIGC制造工坊");

            // dynamically get the version to display
//            version = _L("V") + " " + GUI_App::format_display_version();
            version = _L("V02.08.00.50");

            // credits infornation
            credits = "";

            title_font = Label::Head_16;
            version_font = Label::Body_16;
            credits_font = init_font;
        }

插件下载url:

cpp 复制代码
BOOST_LOG_TRIVIAL(info) << "[download_plugin] get_url = " << download_url;

插件目录:

cpp 复制代码
 const size_t len = BBL_INTERNAL_TESTING == 1 ? strlen("\\AppData\\Roaming\\BambuStudioInternal\\user") : strlen("\\AppData\\Roaming\\BambuStudioBeta\\user");

version.inc 中设置软件名字:

缓存目录地址:

C:\Users\ChangJing03\AppData\Roaming\BambuStudioaaaInternal

SLIC3R_APP_NAME

bash 复制代码
# Included by CMakeLists, edited by the build script
# (the version numbers are generated by the build script from the git current label)

set(SLIC3R_APP_NAME "BambuStudio")
set(SLIC3R_APP_KEY "BambuStudio")

if(NOT DEFINED BBL_RELEASE_TO_PUBLIC)
set(BBL_RELEASE_TO_PUBLIC "0")
endif()
if(NOT DEFINED BBL_INTERNAL_TESTING)
set(BBL_INTERNAL_TESTING "1")
endif()

# The build_version should start from 50 in master branch

set(SLIC3R_VERSION "02.08.00.40")

string(REPLACE "." "," SLIC3R_COMMA_SEPARATED_VERSION ${SLIC3R_VERSION})
set(SLIC3R_COMMA_SEPARATED_VERSION "${SLIC3R_COMMA_SEPARATED_VERSION}")
相关推荐
橙子家1 小时前
Extension storage、Interest groups 和 Shared storage 简介-浏览器缓存之【隐私沙盒与扩展专用存储】
前端
是枚小菜鸡儿吖1 小时前
服务器出问题别等用户反馈:用Python和钉钉搭一套轻量告警系统
服务器·python·钉钉
漂流瓶jz2 小时前
理解Webpack插件机制:从插件使用、各类编译对象、Tapable到自定义插件与钩子开发
前端·javascript·webpack
笑锝没心没肺11 小时前
fail2ban工具安装配置及使用
linux·运维·服务器
梦帮科技12 小时前
GRAVIS v4.0:基于Web的极速套利架构设计与实时数据流实现
前端·人工智能·rust·自动化·区块链·智能合约·数字货币
爱勇宝12 小时前
办公资料反复修改、补传、交接混乱,我做了个桌面工具来解决这件事
前端·后端·程序员
zt1985q12 小时前
本地部署开源智能家居集成平台 ioBroker 并实现外部访问( Windows 版本)
运维·服务器·智能家居
微信开发api-视频号协议13 小时前
企业微信外部群开发自动化实践过程
java·前端·微信·自动化·企业微信·ipad
甲维斯13 小时前
Fable5:20美金的顶级设计师!
前端·人工智能