dialograndscalefree.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.0.2
4  Written in Qt
5 
6  randscalefreeddialog.h - description
7  -------------------
8  copyright : (C) 2005-2021 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 DIALOGRANDSCALEFREE_H
29 #define DIALOGRANDSCALEFREE_H
30 
31 #include <QDialog>
32 
33 #include "ui_dialograndscalefree.h"
34 
35 class DialogRandScaleFree : public QDialog
36 {
37  Q_OBJECT
38 public:
39  explicit DialogRandScaleFree(QWidget *parent = Q_NULLPTR);
40 
41 public slots:
42  void checkErrors();
43  void getUserChoices();
44  void setModeDirected();
45  void setModeUndirected();
46  void setDiag();
47 
48 signals:
49  void userChoices( const int &nodes,
50  const int &power,
51  const int &initialNodes,
52  const int &edgesPerStep,
53  const qreal &zeroAppeal,
54  const QString &mode);
55 private:
56  QString mode;
57  int nodes; // n
58  int initialNodes; // m0
59  int edgesPerStep; //m
60  int power;
61  qreal zeroAppeal; // a
62  bool diag;
63  Ui::DialogRandScaleFree ui;
64 
65 };
66 
67 #endif
Definition: dialograndscalefree.h:35
void checkErrors()
Definition: dialograndscalefree.cpp:92
void setModeUndirected()
Definition: dialograndscalefree.cpp:80
void userChoices(const int &nodes, const int &power, const int &initialNodes, const int &edgesPerStep, const qreal &zeroAppeal, const QString &mode)
qreal zeroAppeal
Definition: dialograndscalefree.h:84
int nodes
Definition: dialograndscalefree.h:80
QString mode
Definition: dialograndscalefree.h:79
void setModeDirected()
Definition: dialograndscalefree.cpp:74
int edgesPerStep
Definition: dialograndscalefree.h:82
Ui::DialogRandScaleFree ui
Definition: dialograndscalefree.h:86
int power
Definition: dialograndscalefree.h:83
void setDiag()
Definition: dialograndscalefree.cpp:85
DialogRandScaleFree(QWidget *parent=Q_NULLPTR)
Definition: dialograndscalefree.cpp:36
void getUserChoices()
Definition: dialograndscalefree.cpp:110
int initialNodes
Definition: dialograndscalefree.h:81
bool diag
Definition: dialograndscalefree.h:85