VPTissue Reference Manual
MyFindDialog.h
Go to the documentation of this file.
1 #ifndef MY_FINDDIALOG_H_INCLUDED
2 #define MY_FINDDIALOG_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include <QCheckBox>
23 #include <QDialog>
24 #include <QLabel>
25 #include <QLineEdit>
26 #include <QPushButton>
27 
28 namespace SimShell {
29 namespace Gui {
30 
36 class MyFindDialog : public QDialog
37 {
38  Q_OBJECT
39 public:
40  MyFindDialog(QWidget* parent = 0);
41 
45  void CorrectFocus();
46 
47 private slots:
48  void Find();
49 
50 signals:
57  void FindNext(QString const & text, bool match_case);
58 
59 private:
60  QPushButton* m_close_button;
61  QPushButton* m_find_button;
62  QLineEdit* m_input;
63  QLabel* m_label;
64  QCheckBox* m_match_case;
65 };
66 
67 } // namespace
68 } // namespace
69 
70 #endif // end_of_inclde_guard
void CorrectFocus()
Sets focus to the text input box so the user can start typing right away.
Dialog window for searching strings.
Definition: MyFindDialog.h:36
see the online Qt documentation
void FindNext(QString const &text, bool match_case)
Emitted when user performs a search query by clicking 'Search' or pressing the Enter button...
Namespace for generic graphical shell for simulators.
Definition: SimSession.h:32
see the online Qt documentation