dialograndsmallworld.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialograndsmallworld.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 DIALOGRANDSMALLWORLD_H
29 #define DIALOGRANDSMALLWORLD_H
30 
31 #include <QDialog>
32 
33 #include "ui_dialograndsmallworld.h"
34 
35 class DialogRandSmallWorld : public QDialog
36 {
37  Q_OBJECT
38 public:
39  explicit DialogRandSmallWorld(QWidget *parent = Q_NULLPTR);
40 
41 public slots:
42  void checkErrors();
43  void getUserChoices();
44  void setModeDirected();
45  void setModeUndirected();
46  void setDiag();
47  void modifyDegree(int value);
48 
49 signals:
50  void userChoices( const int nodes,
51  const int degree,
52  const qreal prob,
53  const QString mode,
54  const bool diag);
55 private:
56  QString mode;
57  int nodes, degree;
58  qreal bprob;
59  bool diag;
60  Ui::DialogRandSmallWorld *ui;
61 
62 };
63 
64 #endif
Definition: dialograndsmallworld.h:36
void getUserChoices()
Definition: dialograndsmallworld.cpp:123
void setModeDirected()
Definition: dialograndsmallworld.cpp:87
void setDiag()
Definition: dialograndsmallworld.cpp:98
int degree
Definition: dialograndsmallworld.h:57
int nodes
Definition: dialograndsmallworld.h:57
bool diag
Definition: dialograndsmallworld.h:59
QString mode
Definition: dialograndsmallworld.h:56
DialogRandSmallWorld(QWidget *parent=Q_NULLPTR)
Definition: dialograndsmallworld.cpp:38
Ui::DialogRandSmallWorld * ui
Definition: dialograndsmallworld.h:60
void modifyDegree(int value)
Definition: dialograndsmallworld.cpp:82
void setModeUndirected()
Definition: dialograndsmallworld.cpp:93
qreal bprob
Definition: dialograndsmallworld.h:58
void userChoices(const int nodes, const int degree, const qreal prob, const QString mode, const bool diag)
void checkErrors()
Definition: dialograndsmallworld.cpp:105