dialogranderdosrenyi.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.2
4  Written in Qt
5 
6  dialogranderdosrenyi.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 DIALOGRANDERDOSRENYI_H
29 #define DIALOGRANDERDOSRENYI_H
30 
31 #include <QDialog>
32 
33 #include "ui_dialogranderdosrenyi.h"
34 
35 class DialogRandErdosRenyi : public QDialog
36 {
37  Q_OBJECT
38 public:
39  explicit DialogRandErdosRenyi(QWidget *parent=0, const float eprob = 0);
40 
41 public slots:
42  void checkErrors();
43  void gatherData();
44  void gnmModel();
45  void gnpModel();
46  void setModeDirected();
47  void setModeUndirected();
48  void setDiag();
49 
50 signals:
51  void userChoices( const int nodes,
52  const QString model,
53  const int edges,
54  const float eprob,
55  const QString mode,
56  const bool diag);
57 private:
58  QString model;
59  QString mode;
60  int nodes, edges;
61 
62  bool diag;
63  Ui::DialogRandErdosRenyi ui;
64 };
65 
66 #endif
void checkErrors()
Definition: dialogranderdosrenyi.cpp:118
void gatherData()
Definition: dialogranderdosrenyi.cpp:139
void setModeDirected()
Definition: dialogranderdosrenyi.cpp:100
void userChoices(const int nodes, const QString model, const int edges, const float eprob, const QString mode, const bool diag)
Definition: dialogranderdosrenyi.h:35
int nodes
Definition: dialogranderdosrenyi.h:60
DialogRandErdosRenyi(QWidget *parent=0, const float eprob=0)
Definition: dialogranderdosrenyi.cpp:37
void gnpModel()
Definition: dialogranderdosrenyi.cpp:87
int edges
Definition: dialogranderdosrenyi.h:60
QString model
Definition: dialogranderdosrenyi.h:58
void setModeUndirected()
Definition: dialogranderdosrenyi.cpp:106
void gnmModel()
Definition: dialogranderdosrenyi.cpp:94
QString mode
Definition: dialogranderdosrenyi.h:59
Ui::DialogRandErdosRenyi ui
Definition: dialogranderdosrenyi.h:63
void setDiag()
Definition: dialogranderdosrenyi.cpp:111
bool diag
Definition: dialogranderdosrenyi.h:62