Skip to content

Commit

Permalink
Make Notifications.cpp independent of TextSearch.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Dec 25, 2018
1 parent 6d0e319 commit c69208a
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 14 deletions.
1 change: 1 addition & 0 deletions src/Canvas.cpp
Expand Up @@ -24,6 +24,7 @@
#include "Theme.h"
#include "GlobalPrefs.h"
#include "RenderCache.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"

Expand Down
1 change: 1 addition & 0 deletions src/DisplayModel.cpp
Expand Up @@ -55,6 +55,7 @@
#include "DisplayModel.h"
#include "GlobalPrefs.h"
#include "PdfSync.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"

Expand Down
8 changes: 1 addition & 7 deletions src/Notifications.cpp
Expand Up @@ -4,13 +4,7 @@
#include "BaseUtil.h"
#include "GdiPlusUtil.h"
#include "WinUtil.h"

class BaseEngine;
// TODO: this is just to get ProgressUpdateUI. Move ProgressUpdateUI to
// its own file
#include "TextSelection.h"
#include "TextSearch.h"

#include "ProgressUpdateUI.h"
#include "Colors.h"
#include "Notifications.h"

Expand Down
1 change: 1 addition & 0 deletions src/Print.cpp
Expand Up @@ -15,6 +15,7 @@
#include "ChmModel.h"
#include "DisplayModel.h"
#include "GlobalPrefs.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"

Expand Down
1 change: 1 addition & 0 deletions src/Search.cpp
Expand Up @@ -19,6 +19,7 @@
#include "DisplayModel.h"
#include "GlobalPrefs.h"
#include "PdfSync.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "SumatraPDF.h"
Expand Down
1 change: 1 addition & 0 deletions src/StressTesting.cpp
Expand Up @@ -24,6 +24,7 @@
#include "EbookController.h"
#include "GlobalPrefs.h"
#include "RenderCache.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "SumatraPDF.h"
Expand Down
1 change: 1 addition & 0 deletions src/SumatraPDF.cpp
Expand Up @@ -36,6 +36,7 @@
#include "GlobalPrefs.h"
#include "PdfSync.h"
#include "RenderCache.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "Colors.h"
Expand Down
1 change: 1 addition & 0 deletions src/SumatraStartup.cpp
Expand Up @@ -27,6 +27,7 @@
#include "GlobalPrefs.h"
#include "PdfSync.h"
#include "RenderCache.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "SumatraPDF.h"
Expand Down
1 change: 1 addition & 0 deletions src/TextSearch.cpp
Expand Up @@ -4,6 +4,7 @@
#include "BaseUtil.h"
#include "ScopedWin.h"
#include "BaseEngine.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"

Expand Down
7 changes: 0 additions & 7 deletions src/TextSearch.h
Expand Up @@ -3,13 +3,6 @@

enum class TextSearchDirection : bool { Backward = false, Forward = true };

class ProgressUpdateUI {
public:
virtual void UpdateProgress(int current, int total) = 0;
virtual bool WasCanceled() = 0;
virtual ~ProgressUpdateUI() {}
};

class TextSearch : public TextSelection {
public:
TextSearch(BaseEngine* engine, PageTextCache* textCache);
Expand Down
1 change: 1 addition & 0 deletions src/Toolbar.cpp
Expand Up @@ -12,6 +12,7 @@
#include "Controller.h"
#include "DisplayModel.h"
#include "GlobalPrefs.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "Colors.h"
Expand Down
1 change: 1 addition & 0 deletions src/WindowInfo.cpp
Expand Up @@ -19,6 +19,7 @@
#include "DisplayModel.h"
#include "EbookController.h"
#include "GlobalPrefs.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"
#include "SumatraPDF.h"
Expand Down
1 change: 1 addition & 0 deletions src/regress/Regress.cpp
Expand Up @@ -34,6 +34,7 @@ To write new regression test:
#include "Doc.h"
// For Regress03 (Text Search)
#include "EngineManager.h"
#include "ProgressUpdateUI.h"
#include "TextSelection.h"
#include "TextSearch.h"

Expand Down

0 comments on commit c69208a

Please sign in to comment.