![]() |
Tulip
4.6.0
Better Visualization Through Research
|
00001 /* 00002 * 00003 * This file is part of Tulip (www.tulip-software.org) 00004 * 00005 * Authors: David Auber and the Tulip development Team 00006 * from LaBRI, University of Bordeaux 00007 * 00008 * Tulip is free software; you can redistribute it and/or modify 00009 * it under the terms of the GNU Lesser General Public License 00010 * as published by the Free Software Foundation, either version 3 00011 * of the License, or (at your option) any later version. 00012 * 00013 * Tulip is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 * See the GNU General Public License for more details. 00017 * 00018 */ 00019 ///@cond DOXYGEN_HIDDEN 00020 00021 00022 #ifndef VECTOREDITOR_H 00023 #define VECTOREDITOR_H 00024 00025 #include <QDialog> 00026 #include <QAbstractButton> 00027 00028 #include <tulip/tulipconf.h> 00029 00030 namespace Ui { 00031 class VectorEditor; 00032 } 00033 00034 class TLP_QT_SCOPE VectorEditor:public QDialog { 00035 Q_OBJECT 00036 Ui::VectorEditor* _ui; 00037 00038 int _userType; 00039 QVector<QVariant> currentVector; 00040 00041 public: 00042 explicit VectorEditor(QWidget* parent=0); 00043 ~VectorEditor(); 00044 void setVector(const QVector<QVariant>& d, int userType); 00045 const QVector<QVariant>& vector() const { 00046 return currentVector; 00047 } 00048 00049 public slots: 00050 void add(); 00051 void remove(); 00052 void done(int r); 00053 }; 00054 00055 #endif // VECTOREDITIONWIDGET_H 00056 ///@endcond