Browse Source

kicommon PROGRESS_REPORTER

newinvert
Marek Roszko 2 years ago
parent
commit
c7fa3adcb8
  1. 3
      common/CMakeLists.txt
  2. 4
      include/progress_reporter.h
  3. 2
      include/widgets/progress_reporter_base.h

3
common/CMakeLists.txt

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

4
include/progress_reporter.h

@ -27,13 +27,15 @@
#ifndef PROGRESS_REPORTER_H
#define PROGRESS_REPORTER_H
#include <kicommon.h>
/**
* 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
* only from the main thread (primarily a MSW requirement, which won't allow access to UI objects
* allocated from a separate thread).
*/
class PROGRESS_REPORTER
class KICOMMON_API PROGRESS_REPORTER
{
public:

2
include/widgets/progress_reporter_base.h

@ -34,7 +34,7 @@
/**
* 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:

Loading…
Cancel
Save