kicommon PROGRESS_REPORTER

This commit is contained in:
Marek Roszko 2023-12-25 23:22:39 -05:00
parent 5bbe01b570
commit c7fa3adcb8
3 changed files with 6 additions and 3 deletions

View File

@ -95,6 +95,8 @@ set( KICOMMON_SRCS
kicad_curl/kicad_curl.cpp kicad_curl/kicad_curl.cpp
kicad_curl/kicad_curl_easy.cpp kicad_curl/kicad_curl_easy.cpp
widgets/progress_reporter_base.cpp
advanced_config.cpp advanced_config.cpp
asset_archive.cpp asset_archive.cpp
array_axis.cpp array_axis.cpp
@ -309,7 +311,6 @@ set( COMMON_WIDGET_SRCS
widgets/msgpanel.cpp widgets/msgpanel.cpp
widgets/number_badge.cpp widgets/number_badge.cpp
widgets/paged_dialog.cpp widgets/paged_dialog.cpp
widgets/progress_reporter_base.cpp
widgets/properties_panel.cpp widgets/properties_panel.cpp
widgets/search_pane.cpp widgets/search_pane.cpp
widgets/search_pane_base.cpp widgets/search_pane_base.cpp

View File

@ -27,13 +27,15 @@
#ifndef PROGRESS_REPORTER_H #ifndef PROGRESS_REPORTER_H
#define PROGRESS_REPORTER_H #define PROGRESS_REPORTER_H
#include <kicommon.h>
/** /**
* A progress reporter interface for use in multi-threaded environments. The various advancement * A progress reporter interface for use in multi-threaded environments. The various advancement
* and message methods can be called from sub-threads. The KeepRefreshing method *MUST* be called * and message methods can be called from sub-threads. The KeepRefreshing method *MUST* be called
* only from the main thread (primarily a MSW requirement, which won't allow access to UI objects * only from the main thread (primarily a MSW requirement, which won't allow access to UI objects
* allocated from a separate thread). * allocated from a separate thread).
*/ */
class PROGRESS_REPORTER class KICOMMON_API PROGRESS_REPORTER
{ {
public: public:

View File

@ -34,7 +34,7 @@
/** /**
* This implements all the tricky bits for thread safety, but the GUI is left to derived classes. * This implements all the tricky bits for thread safety, but the GUI is left to derived classes.
*/ */
class PROGRESS_REPORTER_BASE : public PROGRESS_REPORTER class KICOMMON_API PROGRESS_REPORTER_BASE : public PROGRESS_REPORTER
{ {
public: public: