]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QSearchDialog.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / QSearchDialog.h
index 972dd1c4240f3b311b8986e2629ad2927f2dccee..95d365344a3a4800c5efc563fc731507610770aa 100644 (file)
@@ -1,54 +1,47 @@
+// -*- C++ -*-
 /**
  * \file QSearchDialog.h
- * 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 Edwin Leuven
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #ifndef QSEARCHDIALOG_H
 #define QSEARCHDIALOG_H
 
-#include <config.h>
+#ifdef __GNUG__
+#pragma interface
+#endif
+
 #include "ui/QSearchDialogBase.h"
-#include "QSearch.h"
+#include "LString.h"
 
+class QSearch;
 class QCloseEvent;
+class QComboBox;
 
-class QSearchDialog : public QSearchDialogBase
-{ Q_OBJECT
-
+class QSearchDialog : public QSearchDialogBase {
+       Q_OBJECT
 public:
-       QSearchDialog(QSearch * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
-       ~QSearchDialog();
-       
-       void setReadOnly(bool);
-       
-       void Replace(bool replaceall = false);
+       QSearchDialog(QSearch * form);
+
+       virtual void show();
+protected slots:
+       void findChanged();
+       void findClicked();
+       void replaceClicked();
+       void replaceallClicked();
 protected:
-       void closeEvent(QCloseEvent * e);
+       virtual void closeEvent(QCloseEvent * e);
 
 private:
-       QSearch * form_;
-
-protected slots:
+       // add a string to the combo if needed
+       void remember(string const & find, QComboBox & combo);
 
-       void Find();
-       void Replace() {
-               Replace(false);
-       };
-       void ReplaceAll() {
-               Replace(true);
-       };
-
-       void cancel_adaptor() {
-               form_->close();
-               hide();
-       }
+       QSearch * form_;
 };
 
 #endif // QSEARCHDIALOG_H