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 00020 /** 00021 * 00022 * This file is part of Tulip (www.tulip-software.org) 00023 * 00024 * Authors: David Auber and the Tulip development Team 00025 * from LaBRI, University of Bordeaux 00026 * 00027 * Tulip is free software; you can redistribute it and/or modify 00028 * it under the terms of the GNU Lesser General Public License 00029 * as published by the Free Software Foundation, either version 3 00030 * of the License, or (at your option) any later version. 00031 * 00032 * Tulip is distributed in the hope that it will be useful, 00033 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00034 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00035 * See the GNU General Public License for more details. 00036 * 00037 */ 00038 #ifndef NODELINKDIAGRAMCOMPONENTINTERACTOR_H 00039 #define NODELINKDIAGRAMCOMPONENTINTERACTOR_H 00040 00041 #include <tulip/GLInteractor.h> 00042 00043 class QLabel; 00044 00045 namespace tlp { 00046 00047 /** \brief Tulip interactor abstract class for NodeLinkDiagramComponent 00048 * 00049 */ 00050 class TLP_QT_SCOPE NodeLinkDiagramComponentInteractor 00051 : public GLInteractorComposite { 00052 QLabel* _label; 00053 unsigned int _priority; 00054 00055 public : 00056 00057 NodeLinkDiagramComponentInteractor(const QString &iconPath, const QString &text, unsigned int priority=0); 00058 00059 virtual ~NodeLinkDiagramComponentInteractor(); 00060 00061 void setConfigurationWidgetText(const QString& text); 00062 00063 virtual QWidget* configurationWidget() const; 00064 00065 virtual unsigned int priority() const; 00066 00067 void setPriority(const unsigned int p); 00068 00069 }; 00070 } 00071 00072 #endif // NODELINKDIAGRAMCOMPONENTINTERACTOR_H