![]() |
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 TULIPFONTWIDGET_H 00023 #define TULIPFONTWIDGET_H 00024 00025 #include <QWidget> 00026 00027 #include <tulip/TulipFont.h> 00028 00029 namespace Ui { 00030 class TulipFontWidget; 00031 } 00032 namespace tlp { 00033 class TLP_QT_SCOPE TulipFontWidget : public QWidget { 00034 Q_OBJECT 00035 Q_PROPERTY(TulipFont font READ font WRITE setFont) 00036 00037 public: 00038 explicit TulipFontWidget(QWidget *parent = NULL); 00039 ~TulipFontWidget(); 00040 void setFont(const TulipFont& font); 00041 TulipFont font()const; 00042 00043 private: 00044 Ui::TulipFontWidget *ui; 00045 00046 private slots: 00047 void editFont(); 00048 }; 00049 } 00050 #endif // TULIPFONTWIDGET_H 00051 ///@endcond