dialogsettings.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.2
4  Written in Qt
5 
6  dialogsettings.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 DIALOGSETTINGS_H
29 #define DIALOGSETTINGS_H
30 
31 #include <QDialog>
32 #include <QMap>
33 
34 namespace Ui {
35 class DialogSettings;
36 }
37 
38 class DialogSettings : public QDialog
39 {
40  Q_OBJECT
41 
42 
43 public:
44  explicit DialogSettings(QMap<QString, QString> &appSettings, QWidget *parent = 0 );
45  ~DialogSettings();
46 
47 public slots:
48  void getDataDir();
49  void getBgColor();
50  void getBgImage();
51  void validateSettings();
52  void getNodeColor();
53  void getNodeShape();
54  void getNodeSize(int);
55  void getNodeNumbersVisibility (bool toggle);
56  void getNodeNumbersInside(bool toggle);
57  void getNodeNumberColor();
58  void getNodeNumberSize(const int);
59  void getNodeNumberDistance(const int);
60  void getNodeLabelsVisibility (bool toggle);
61  void getNodeLabelColor();
62  void getNodeLabelSize(const int);
63  void getNodeLabelDistance(const int);
64  void getEdgesVisibility (const bool &toggle);
65  void getEdgeArrowsVisibility (const bool &toggle);
66  void getEdgeColor();
67  void getEdgeColorNegative();
68  void getEdgeShape();
69  void getEdgeWeightNumbersVisibility(const bool &toggle);
70  void getEdgeLabelsVisibility(const bool &toggle);
71 
72 signals:
73  void setProgressBars(bool);
74  void setToolBar(bool);
75  void setStatusBar(bool);
76  void setAntialiasing(bool);
77  void setPrintLogo(bool);
78  void setDebugMsgs(bool);
79  void setBgColor(const QColor);
80  void setBgImage();
81  void setRightPanel(bool);
82  void setLeftPanel(bool);
83  void setNodeColor(QColor);
84  void setNodeShape(const QString, const long int);
85  void setNodeSize(int, const bool &);
86  void setNodeNumbersVisibility(bool);
87  void setNodeNumbersInside(bool);
88  void setNodeNumberSize(const int v, const int &size, const bool prompt);
89  void setNodeNumberDistance(const int v, const int &);
90  void setNodeNumberColor(const QColor);
91  void setNodeLabelsVisibility(const bool &);
92  void setNodeLabelColor(const QColor);
93  void setNodeLabelSize(const int v, const int &);
94  void setNodeLabelDistance(const int v, const int &);
95  void setEdgesVisibility (const bool &toggle);
96  void setEdgeArrowsVisibility (const bool &toggle);
97  void setEdgeColor(const QColor, const int &);
98  void setEdgeShape(const QString, const long int);
99  void setEdgeWeightNumbersVisibility(const bool &toggle);
100  void setEdgeLabelsVisibility(const bool &toggle);
101  void saveSettings();
102 private:
103  QMap<QString, QString> &m_appSettings ;
104  Ui::DialogSettings *ui;
105  QPixmap m_pixmap;
106  //QString m_nodeShape;
107  QColor m_bgColor, m_nodeColor, m_nodeNumberColor, m_nodeLabelColor;
108  QColor m_edgeColor, m_edgeColorNegative, m_edgeWeightNumberColor;
109 };
110 
111 #endif
QColor m_nodeNumberColor
Definition: dialogsettings.h:107
Definition: dialogsettings.h:38
Ui::DialogSettings * ui
Definition: dialogsettings.h:104
QColor m_edgeWeightNumberColor
Definition: dialogsettings.h:108
Definition: dialogsettings.h:34
QPixmap m_pixmap
Definition: dialogsettings.h:105
QMap< QString, QString > & m_appSettings
Definition: dialogsettings.h:103