diff --git a/core/document.h b/core/document.h index bf5336df4..da228861c 100644 --- a/core/document.h +++ b/core/document.h @@ -37,6 +37,12 @@ class KActionCollection; class QToolBox; class NotifyRequest; +/** IDs for seaches. Globally defined here. **/ +#define PART_SEARCH_ID 1 +#define PAGEVIEW_SEARCH_ID 2 +#define SW_SEARCH_ID 3 + + /** * @short The Document. Heart of everything. Actions take place here. * diff --git a/part.cpp b/part.cpp index 2f4f71574..f531f1fbf 100644 --- a/part.cpp +++ b/part.cpp @@ -75,9 +75,6 @@ #include "core/generator.h" #include "core/page.h" -// definition of searchID for this class -#define PART_SEARCH_ID 1 - typedef KParts::GenericFactory oKularPartFactory; K_EXPORT_COMPONENT_FACTORY(liboKularpart, oKularPartFactory) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index 03f497e9a..ce83a4e27 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -64,9 +64,6 @@ #define ROUND(x) (int(x + 0.5)) -// definition of searchID for this class -#define PAGEVIEW_SEARCH_ID 2 - // structure used internally by PageView for data storage class PageViewPrivate { diff --git a/ui/searchwidget.h b/ui/searchwidget.h index e8c003488..225609c23 100644 --- a/ui/searchwidget.h +++ b/ui/searchwidget.h @@ -17,9 +17,6 @@ class KLineEdit; class QAction; class QTimer; -// definition of searchID for this class (publicly available to ThumbnailsList) -#define SW_SEARCH_ID 3 - /** * @short A widget for find-as-you-type search. Outputs to the Document. * diff --git a/ui/thumbnaillist.cpp b/ui/thumbnaillist.cpp index 16f2a5982..956b9e907 100644 --- a/ui/thumbnaillist.cpp +++ b/ui/thumbnaillist.cpp @@ -26,7 +26,6 @@ // local includes #include "thumbnaillist.h" #include "pagepainter.h" -#include "searchwidget.h" // for SW_SEARCH_ID #include "core/document.h" #include "core/generator.h" #include "core/page.h"