dialograndsmallworld.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.2
4  Written in Qt
5 
6  dialograndsmallworld.h - description
7  -------------------
8  copyright : (C) 2005-2017 by Dimitris B. Kalamaras
9  project site : http://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 = 0);
40 
41 public slots:
42  void checkErrors();
43  void gatherData();
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 float prob,
53  const QString mode,
54  const bool diag);
55 private:
56  QString mode;
57  int nodes, degree;
58  float bprob;
59  bool diag;
60  Ui::DialogRandSmallWorld *ui;
61 
62 };
63 
64 #endif
int degree
Definition: dialograndsmallworld.h:57
void setDiag()
Definition: dialograndsmallworld.cpp:98
DialogRandSmallWorld(QWidget *parent=0)
Definition: dialograndsmallworld.cpp:38
void modifyDegree(int value)
Definition: dialograndsmallworld.cpp:82
void checkErrors()
Definition: dialograndsmallworld.cpp:105
void setModeUndirected()
Definition: dialograndsmallworld.cpp:93
void userChoices(const int nodes, const int degree, const float prob, const QString mode, const bool diag)
int nodes
Definition: dialograndsmallworld.h:57
QString mode
Definition: dialograndsmallworld.h:56
void gatherData()
Definition: dialograndsmallworld.cpp:123
Definition: dialograndsmallworld.h:35
void setModeDirected()
Definition: dialograndsmallworld.cpp:87
bool diag
Definition: dialograndsmallworld.h:59
Ui::DialogRandSmallWorld * ui
Definition: dialograndsmallworld.h:60
float bprob
Definition: dialograndsmallworld.h:58