Tulip  4.7.0
Better Visualization Through Research
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Groups Pages
VectorEditor.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 
22 #ifndef VECTOREDITOR_H
23 #define VECTOREDITOR_H
24 
25 #include <QDialog>
26 #include <QAbstractButton>
27 
28 #include <tulip/tulipconf.h>
29 
30 namespace Ui {
31 class VectorEditor;
32 }
33 
34 class TLP_QT_SCOPE VectorEditor:public QDialog {
35  Q_OBJECT
36  Ui::VectorEditor* _ui;
37 
38  int _userType;
39  QVector<QVariant> currentVector;
40 
41 public:
42  explicit VectorEditor(QWidget* parent=0);
43  ~VectorEditor();
44  void setVector(const QVector<QVariant>& d, int userType);
45  const QVector<QVariant>& vector() const {
46  return currentVector;
47  }
48 
49 public slots:
50  void add();
51  void remove();
52  void done(int r);
53 };
54 
55 #endif // VECTOREDITIONWIDGET_H
56 ///@endcond