1 /*************************************************************************** 2 * copyright : (C) 2003-2017 by Pascal Brachet * 3 * http://www.xm1math.net/texmaker/ * 4 * * 5 * This program is free software; you can redistribute it and/or modify * 6 * it under the terms of the GNU General Public License as published by * 7 * the Free Software Foundation; either version 2 of the License, or * 8 * (at your option) any later version. * 9 * * 10 ***************************************************************************/ 11 12 #ifndef FINDWIDGET_H 13 #define FINDWIDGET_H 14 15 #include "ui_findwidget.h" 16 #include "latexeditor.h" 17 18 class FindWidget : public QWidget 19 { 20 Q_OBJECT 21 22 public: 23 FindWidget(QWidget* parent = 0); 24 ~FindWidget(); 25 Ui::FindWidget ui; 26 public slots: 27 virtual void doFind(); 28 void SetEditor(LatexEditor *ed); 29 void doHide(); 30 private slots: 31 void expand(bool e); 32 void updateSelection(bool e); 33 private : 34 int startpos, endpos; 35 protected: 36 LatexEditor *editor; 37 void keyPressEvent ( QKeyEvent * e ); 38 signals: 39 void requestHide(); 40 void requestExtension(); 41 }; 42 43 #endif 44