dialognodeedit.h
Go to the documentation of this file.
1 /***************************************************************************
2  SocNetV: Social Network Visualizer
3  version: 3.1
4  Written in Qt
5 
6  dialognodeedit.h - description
7  -------------------
8  copyright : (C) 2005-2023 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 
29 #ifndef DIALOGNODEEDIT_H
30 #define DIALOGNODEEDIT_H
31 
32 #include <QDialog>
33 
34 
35 namespace Ui {
36 class DialogNodeEdit;
37 }
38 
39 class DialogNodeEdit : public QDialog
40 {
41  Q_OBJECT
42 public:
43  explicit DialogNodeEdit(QWidget *parent = Q_NULLPTR,
44  const QStringList &nodeShapeList=QStringList(),
45  const QStringList &iconPathList=QStringList(),
46  const QString &label = "",
47  const int &size = 8,
48  const QColor &color= QColor("red"),
49  const QString &shape = "circle",
50  const QString &path=QString());
52 public slots:
53  void checkErrors ();
54  void getNodeShape(const int &nodeShapeIndex);
55  void getNodeIconFile();
56  void getUserChoices ();
57  void selectColor();
58 signals:
59  void userChoices( const QString &label,
60  const int &size,
61  const QString &value,
62  const QColor &color,
63  const QString &shape,
64  const QString &iconPath=QString());
65  void nodeEditDialogError(QString);
66 
67 private:
68  QStringList m_shapeList;
69  QStringList m_iconList;
70  QString nodeLabel;
71  int nodeSize;
72  QColor nodeColor;
73  QString nodeShape;
74  QString iconPath;
75  QString nodeValue;
76  QPixmap pixmap;
77  Ui::DialogNodeEdit *ui;
78 };
79 
80 #endif
Definition: dialognodeedit.h:40
QString iconPath
Definition: dialognodeedit.h:74
QString nodeValue
Definition: dialognodeedit.h:75
QStringList m_shapeList
Definition: dialognodeedit.h:68
QColor nodeColor
Definition: dialognodeedit.h:72
QPixmap pixmap
Definition: dialognodeedit.h:76
void getUserChoices()
DialogNodeEdit::getUserChoices.
Definition: dialognodeedit.cpp:251
int nodeSize
Definition: dialognodeedit.h:71
QStringList m_iconList
Definition: dialognodeedit.h:69
QString nodeShape
Definition: dialognodeedit.h:73
QString nodeLabel
Definition: dialognodeedit.h:70
~DialogNodeEdit()
Definition: dialognodeedit.cpp:354
Ui::DialogNodeEdit * ui
Definition: dialognodeedit.h:77
void checkErrors()
DialogNodeEdit::checkErrors.
Definition: dialognodeedit.cpp:315
void nodeEditDialogError(QString)
void selectColor()
Definition: dialognodeedit.cpp:337
void userChoices(const QString &label, const int &size, const QString &value, const QColor &color, const QString &shape, const QString &iconPath=QString())
void getNodeIconFile()
Definition: dialognodeedit.cpp:222
DialogNodeEdit(QWidget *parent=Q_NULLPTR, const QStringList &nodeShapeList=QStringList(), const QStringList &iconPathList=QStringList(), const QString &label="", const int &size=8, const QColor &color=QColor("red"), const QString &shape="circle", const QString &path=QString())
Definition: dialognodeedit.cpp:47
void getNodeShape(const int &nodeShapeIndex)
DialogNodeEdit::getNodeShape.
Definition: dialognodeedit.cpp:139
Definition: dialogexportimage.h:34