Commit 91dc3ef0 authored by Pino Toscano's avatar Pino Toscano

move the searchIDs in document.h, like it's done for the observerIDs

svn path=/branches/work/kde4/playground/graphics/okular/; revision=545944
parent b91fb33d
......@@ -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.
*
......
......@@ -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<oKular::Part> oKularPartFactory;
K_EXPORT_COMPONENT_FACTORY(liboKularpart, oKularPartFactory)
......
......@@ -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
{
......
......@@ -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.
*
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment