]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QSearch.C
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QSearch.C
index 698ce9b5a108dead95d336fd5d861dc18f427b63..d4ecf42e2f0e466c0ca9f6d407e74d6944f11102 100644 (file)
@@ -1,34 +1,37 @@
 /**
  * \file QSearch.C
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author John Levon <moz@compsoc.man.ac.uk>
+ * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
-#include <fstream>
 
 #ifdef __GNUG__
 #pragma implementation
 #endif
 
-#include <qpushbutton.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
+#include "LyXView.h"
+#include "ControlSearch.h"
+#include "gettext.h"
 
-#include "QSearchDialog.h"
 #include "QSearch.h"
+#include "QSearchDialog.h"
 #include "Qt2BC.h"
-#include "gettext.h"
 
-#include "QtLyXView.h"
-#include "ControlSearch.h"
+#include <qpushbutton.h>
+#include <qcheckbox.h>
+#include <qcombobox.h>
+
 
 typedef Qt2CB<ControlSearch, Qt2DB<QSearchDialog> > base_class;
 
-QSearch::QSearch(ControlSearch & c)
-       : base_class(c, _("Search"))
+
+QSearch::QSearch()
+       : base_class(_("Search"))
 {
 }
 
@@ -50,7 +53,8 @@ void QSearch::build_dialog()
 }
 
 
-void QSearch::find(string const & str, bool casesens, bool words, bool backwards)
+void QSearch::find(string const & str, bool casesens,
+                  bool words, bool backwards)
 {
        controller().find(str, casesens, words, !backwards);
 }