dialograndlattice.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialograndlattice.h - description
7  -------------------
8  copyright : (C) 2005-2023 by Dimitris B. Kalamaras
9  email : dimitris.kalamaras@gmail.com
10  website: : http://dimitris.apeiro.gr
11  project site : https://socnetv.org
12 
13  ***************************************************************************/
14 
15 /*******************************************************************************
16 * This program is free software: you can redistribute it and/or modify *
17 * it under the terms of the GNU General Public License as published by *
18 * the Free Software Foundation, either version 3 of the License, or *
19 * (at your option) any later version. *
20 * *
21 * This program is distributed in the hope that it will be useful, *
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
24 * GNU General Public License for more details. *
25 * *
26 * You should have received a copy of the GNU General Public License *
27 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
28 ********************************************************************************/
29 
30 
31 #ifndef DIALOGRANDLATTICE_H
32 #define DIALOGRANDLATTICE_H
33 
34 #include <QDialog>
35 
36 #include "ui_dialograndlattice.h"
37 
38 class DialogRandLattice : public QDialog
39 {
40  Q_OBJECT
41 public:
42  explicit DialogRandLattice(QWidget *parent = Q_NULLPTR);
43 
44 signals:
45  void userChoices( const int &nodes,
46  const int &length,
47  const int &dimension,
48  const int &neighLength,
49  const QString &mode,
50  const bool &diag);
51 
52 public slots:
53 // void checkErrors(const int &i);
54  void getUserChoices();
55  void circularChanged(const bool &toggle);
56  void lengthChanged(int l);
57 // void setModeDirected();
58 // void setModeUndirected();
59 // void setDiag();
60 // void modifyDegree(int value);
61 
62 private:
63 
64  Ui::DialogRandLattice ui;
65  int nodes;
66  int length;
67  int dimension;
69  QString mode;
70  bool circular;
71 };
72 
73 #endif
Definition: dialograndlattice.h:39
int neighLength
Definition: dialograndlattice.h:68
int dimension
Definition: dialograndlattice.h:67
void lengthChanged(int l)
Definition: dialograndlattice.cpp:74
Ui::DialogRandLattice ui
Definition: dialograndlattice.h:64
DialogRandLattice(QWidget *parent=Q_NULLPTR)
Definition: dialograndlattice.cpp:42
void userChoices(const int &nodes, const int &length, const int &dimension, const int &neighLength, const QString &mode, const bool &diag)
void getUserChoices()
Definition: dialograndlattice.cpp:80
int length
Definition: dialograndlattice.h:66
bool circular
Definition: dialograndlattice.h:70
QString mode
Definition: dialograndlattice.h:69
void circularChanged(const bool &toggle)
Definition: dialograndlattice.cpp:64
int nodes
Definition: dialograndlattice.h:65