dialogsettings.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 2.5
4  Written in Qt
5 
6  dialogsettings.h - description
7  -------------------
8  copyright : (C) 2005-2018 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 public:
43  explicit DialogSettings(QMap<QString, QString> &appSettings, QWidget *parent = 0 );
44  ~DialogSettings();
45 
46 public slots:
47  void getDataDir();
48  void getCanvasBgColor();
49  void getCanvasBgImage();
50  void getCanvasUpdateMode(const QString &text);
51  void getCanvasIndexMethod(const QString &text);
52  void validateSettings();
53  void getNodeColor();
54  void getNodeShape();
55  void getNodeSize(int);
56  void getNodeNumbersVisibility (bool toggle);
57  void getNodeNumbersInside(bool toggle);
58  void getNodeNumberColor();
59  void getNodeNumberSize(const int);
60  void getNodeNumberDistance(const int);
61  void getNodeLabelsVisibility (bool toggle);
62  void getNodeLabelColor();
63  void getNodeLabelSize(const int);
64  void getNodeLabelDistance(const int);
65  void getEdgesVisibility (const bool &toggle);
66  void getEdgeArrowsVisibility (const bool &toggle);
67  void getEdgeColor();
68  void getEdgeColorNegative();
69  void getEdgeColorZero();
70  void getEdgeShape();
71  void getEdgeOffsetFromNode( int offset);
72  void getEdgeWeightNumbersVisibility(const bool &toggle);
73  void getEdgeLabelsVisibility(const bool &toggle);
74 
75 signals:
76  void setProgressDialog(bool);
77  void setToolBar(bool);
78  void setStatusBar(bool);
79  void setPrintLogo(bool);
80  void setDebugMsgs(bool);
81  void setRightPanel(bool);
82  void setLeftPanel(bool);
83 
84  void setCanvasBgColor(const QColor);
85  void setCanvasBgImage();
86  void setCanvasAntialiasing(bool);
87  void setCanvasAntialiasingAutoAdjust(bool );
88  void setCanvasSmoothPixmapTransform(bool);
89  void setCanvasSavePainterState(bool);
90  void setCanvasCacheBackground(bool);
91  void setCanvasEdgeHighlighting(bool);
92  void setCanvasUpdateMode(const QString &text);
93  void setCanvasIndexMethod(const QString &text);
94 
95  void setNodeColor(QColor);
96  void setNodeShape(const QString, const long int);
97  void setNodeSize(int, const bool &);
98  void setNodeNumbersVisibility(bool);
99  void setNodeNumbersInside(bool);
100  void setNodeNumberSize(const int v, const int &size, const bool prompt);
101  void setNodeNumberDistance(const int v, const int &);
102  void setNodeNumberColor(const QColor);
103  void setNodeLabelsVisibility(const bool &);
104  void setNodeLabelColor(const QColor);
105  void setNodeLabelSize(const int v, const int &);
106  void setNodeLabelDistance(const int v, const int &);
107 
108  void setEdgesVisibility (const bool &toggle);
109  void setEdgeArrowsVisibility (const bool &toggle);
110  void setEdgeColor(const QColor, const int &);
111  void setEdgeShape(const QString, const long int);
112  void setEdgeOffsetFromNode(const int&offset, const int &v1=0, const int &v2=0);
113  void setEdgeWeightNumbersVisibility(const bool &toggle);
114  void setEdgeLabelsVisibility(const bool &toggle);
115  void saveSettings();
116 private:
117  QMap<QString, QString> &m_appSettings ;
118  Ui::DialogSettings *ui;
119  QPixmap m_pixmap;
120  //QString m_nodeShape;
121  QColor m_bgColor, m_nodeColor, m_nodeNumberColor, m_nodeLabelColor;
122  QColor m_edgeColor, m_edgeColorNegative,m_edgeColorZero, m_edgeWeightNumberColor;
123 };
124 
125 #endif
QColor m_nodeNumberColor
Definition: dialogsettings.h:121
Definition: dialogsettings.h:38
Ui::DialogSettings * ui
Definition: dialogsettings.h:118
QColor m_edgeWeightNumberColor
Definition: dialogsettings.h:122
Definition: dialognodeedit.h:35
QPixmap m_pixmap
Definition: dialogsettings.h:119
QMap< QString, QString > & m_appSettings
Definition: dialogsettings.h:117