00001 /****************************************************************************** 00002 * This file is part of the Gluon Development Platform 00003 * Copyright (c) 2010 Dan Leinir Turthra Jensen <admin@leinir.dk> 00004 * Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl> 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 #ifndef GLUONCREATOR_ENUMPROPERTYWIDGETITEM_H 00021 #define GLUONCREATOR_ENUMPROPERTYWIDGETITEM_H 00022 00023 #include "propertywidgetitem.h" 00024 00025 namespace GluonCreator 00026 { 00027 class EnumPWIPrivate; 00028 class EnumPropertyWidgetItem : public PropertyWidgetItem 00029 { 00030 Q_OBJECT 00031 public: 00032 explicit EnumPropertyWidgetItem( const QString& typeName, QWidget* parent = 0, Qt::WindowFlags f = 0 ); 00033 ~EnumPropertyWidgetItem(); 00034 00035 virtual PropertyWidgetItem* instantiate(); 00036 virtual QStringList supportedDataTypes() const; 00037 00038 public slots: 00039 virtual void setEditObject( QObject* editThis ); 00040 virtual void setEditValue( const QVariant& value ); 00041 virtual void indexChanged( int newIndex ); 00042 00043 private: 00044 EnumPWIPrivate* d; 00045 }; 00046 } 00047 00048 #endif // GLUONCREATOR_ENUMPROPERTYWIDGETITEM_H