00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGSDETAILEDITEMDATA_H
00019 #define QGSDETAILEDITEMDATA_H
00020
00021
00022 #include <QMetaType>
00023 #include <QString>
00024 #include <QPixmap>
00025
00030 class GUI_EXPORT QgsDetailedItemData
00031 {
00032 public:
00033 QgsDetailedItemData();
00034 ~QgsDetailedItemData();
00035 void setTitle( const QString theTitle );
00036 void setDetail( const QString theDetail );
00037 void setIcon( const QPixmap theIcon );
00038 void setCheckable( const bool theFlag );
00039 void setChecked( const bool theFlag );
00040 void setEnabled( bool theFlag );
00047 void setRenderAsWidget( bool theFlag );
00048
00049 QString title() const;
00050 QString detail() const;
00051 QPixmap icon() const;
00052 bool isCheckable() const;
00053 bool isChecked() const;
00054 bool isEnabled() const;
00055 bool isRenderedAsWidget() const;
00056
00057 private:
00058 QString mTitle;
00059 QString mDetail;
00060 QString mLibraryName;
00061 QPixmap mPixmap;
00062 bool mCheckableFlag;
00063 bool mCheckedFlag;
00064 bool mEnabledFlag;
00065 bool mRenderAsWidgetFlag;
00066 };
00067
00068
00069
00070 Q_DECLARE_METATYPE( QgsDetailedItemData )
00071 #endif //QGSDETAILEDITEMDATA_H