dialogranderdosrenyi.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialogranderdosrenyi.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 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 = Q_NULLPTR, const qreal eprob = 0);
40 
41 public slots:
42  void checkErrors();
43  void getUserChoices();
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 qreal eprob,
55  const QString mode,
56  const bool diag);
57 private:
58  QString model;
59  QString mode;
60  int nodes, edges;
61  bool diag;
62  Ui::DialogRandErdosRenyi ui;
63 };
64 
65 #endif
Definition: dialogranderdosrenyi.h:36
QString model
Definition: dialogranderdosrenyi.h:58
int edges
Definition: dialogranderdosrenyi.h:60
int nodes
Definition: dialogranderdosrenyi.h:60
DialogRandErdosRenyi(QWidget *parent=Q_NULLPTR, const qreal eprob=0)
Definition: dialogranderdosrenyi.cpp:37
Ui::DialogRandErdosRenyi ui
Definition: dialogranderdosrenyi.h:62
void setModeUndirected()
Definition: dialogranderdosrenyi.cpp:106
void userChoices(const int nodes, const QString model, const int edges, const qreal eprob, const QString mode, const bool diag)
void setDiag()
Definition: dialogranderdosrenyi.cpp:111
void setModeDirected()
Definition: dialogranderdosrenyi.cpp:100
void gnmModel()
Definition: dialogranderdosrenyi.cpp:94
void getUserChoices()
Definition: dialogranderdosrenyi.cpp:139
QString mode
Definition: dialogranderdosrenyi.h:59
void gnpModel()
Definition: dialogranderdosrenyi.cpp:87
void checkErrors()
Definition: dialogranderdosrenyi.cpp:118
bool diag
Definition: dialogranderdosrenyi.h:61