dialognodefind.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialognodefind.h - description
7  -------------------
8  copyright : (C) 2005-2023 by Dimitris B. Kalamaras
9  project site : https://socnetv.org
10 
11  ***************************************************************************/
12 
13 /*******************************************************************************
14 * This program is free software: you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation, either version 3 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
26 ********************************************************************************/
27 
28 #ifndef DIALOGNODEFIND_H
29 #define DIALOGNODEFIND_H
30 
31 #include <QDialog>
32 
33 namespace Ui {
34 class DialogNodeFind;
35 }
36 
37 class DialogNodeFind : public QDialog
38 {
39  Q_OBJECT
40 
41 public:
42  explicit DialogNodeFind(QWidget *parent = Q_NULLPTR, QStringList indexList=QStringList());
44 public slots:
45  void setError(const bool &toggle);
46  void getIndex(const QString &indexStr);
47  void checkErrors ();
48  void getUserChoices ();
49 signals:
50  void userChoices( const QStringList &list,
51  const QString &type,
52  const QString &selectedIndex=QString());
53 private:
54  Ui::DialogNodeFind *ui;
55  QStringList list;
56  QString searchType;
57  QStringList tempListA;
58  QStringList tempListB;
59  QString str;
60  QString selectedIndex;
61 };
62 
63 #endif // DIALOGNODEFIND_H
Definition: dialognodefind.h:38
void userChoices(const QStringList &list, const QString &type, const QString &selectedIndex=QString())
QStringList list
Definition: dialognodefind.h:55
QString str
Definition: dialognodefind.h:59
QString selectedIndex
Definition: dialognodefind.h:60
~DialogNodeFind()
Definition: dialognodefind.cpp:73
void checkErrors()
Checks for various input errors.
Definition: dialognodefind.cpp:110
QString searchType
Definition: dialognodefind.h:56
QStringList tempListA
Definition: dialognodefind.h:57
void getIndex(const QString &indexStr)
Gets the selected index.
Definition: dialognodefind.cpp:99
QStringList tempListB
Definition: dialognodefind.h:58
void setError(const bool &toggle)
Definition: dialognodefind.cpp:81
DialogNodeFind(QWidget *parent=Q_NULLPTR, QStringList indexList=QStringList())
Definition: dialognodefind.cpp:37
void getUserChoices()
Gathers user input and emits userChoices signal.
Definition: dialognodefind.cpp:241
Ui::DialogNodeFind * ui
Definition: dialognodefind.h:54
Definition: dialogexportimage.h:34