itom
Loading...
Searching...
No Matches
widgetFindWord.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef WIDGETFINDWORD_H
24#define WIDGETFINDWORD_H
25
26#include <qwidget.h>
27#include <qstring.h>
28#include <qevent.h>
29
30#include "ui_widgetFindWord.h"
31
32namespace ito
33{
34
35class WidgetFindWord : public QWidget
36{
37 Q_OBJECT
38
39public:
40 WidgetFindWord(QWidget *parent = NULL);
42
43 void setCursorToTextField();
44 void setText(const QString &text);
45
46protected:
47 bool eventFilter(QObject *obj, QEvent *event);
48
49private:
50 Ui::WidgetFindWord ui;
51
52private slots:
53 void on_cmdClose_clicked();
54 void on_txtFind_returnPressed();
55 void on_cmdFindUp_clicked();
56 void on_cmdFindDown_clicked();
57 void on_txtFind_textChanged ( const QString & text );
58
59public slots:
60 void setFindBarEnabled(bool enabled, bool reduced);
61 void setSuccessState(bool successful);
62
63
64signals:
65 void findNext(QString expr, bool regExpr, bool caseSensitive, bool wholeWord, bool wrap, bool forward = true, bool isQuickSeach = true);
66 void hideSearchBar();
67};
68
69} //end namespace ito
70
71#endif
Definition widgetFindWord.h:36
Definition apiFunctionsGraph.cpp:40