dialograndscalefree.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.2
4  Written in Qt
5 
6  randscalefreeddialog.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 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 = 0);
40 
41 public slots:
42  void checkErrors();
43  void gatherData();
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 float &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  float zeroAppeal; // a
62  bool diag;
63  Ui::DialogRandScaleFree ui;
64 
65 };
66 
67 #endif
bool diag
Definition: dialograndscalefree.h:62
DialogRandScaleFree(QWidget *parent=0)
Definition: dialograndscalefree.cpp:36
int initialNodes
Definition: dialograndscalefree.h:58
void userChoices(const int &nodes, const int &power, const int &initialNodes, const int &edgesPerStep, const float &zeroAppeal, const QString &mode)
void gatherData()
Definition: dialograndscalefree.cpp:110
void setModeUndirected()
Definition: dialograndscalefree.cpp:80
float zeroAppeal
Definition: dialograndscalefree.h:61
int edgesPerStep
Definition: dialograndscalefree.h:59
void setModeDirected()
Definition: dialograndscalefree.cpp:74
int nodes
Definition: dialograndscalefree.h:57
Definition: dialograndscalefree.h:35
QString mode
Definition: dialograndscalefree.h:56
void checkErrors()
Definition: dialograndscalefree.cpp:92
Ui::DialogRandScaleFree ui
Definition: dialograndscalefree.h:63
int power
Definition: dialograndscalefree.h:60
void setDiag()
Definition: dialograndscalefree.cpp:85