#include "progressui.h" #if defined(_WIN32) #include "progressui_win.cxx" #else #include "progressui_gtk.cxx" #endif #include #include #include void func() { for (int i = 0; i <= 100; ++i) { std::this_thread::sleep_for(std::chrono::milliseconds(200)); UpdateProgressUI(i); } QuitProgressUI(); } int NS_main(int argc, NS_tchar** argv) { InitProgressUI(&argc, &argv); std::thread a(func); /* volatile bool b = false; do { std::this_thread::sleep_for(std::chrono::seconds(1)); } while (!b); */ int result = ShowProgressUI(); std::cout << result << std::endl; a.join(); return 0; } c7d0914a6e1749c16ecec216904'/> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2019-03-05tdf#42949 Fix IWYU warnings in include/cppcanvas/*Gabor Kelemen
2015-09-14boost->stdCaolán McNamara
2015-08-05loplugin:unusedmethodsNoel Grandin