Quantum GIS API Documentation  1.8
src/gui/qgsdetaileditemdata.cpp
Go to the documentation of this file.
00001 /***************************************************************************
00002      qgsdetailedlistdata.cpp  -  A data represenation for a rich QItemData subclass
00003                              -------------------
00004     begin                : Sat May 17 2008
00005     copyright            : (C) 2008 Tim Sutton
00006     email                : tim@linfiniti.com
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #include "qgsdetaileditemdata.h"
00019 QgsDetailedItemData::QgsDetailedItemData()
00020 {
00021   mRenderAsWidgetFlag = false;
00022   mEnabledFlag = true;
00023 }
00024 
00025 QgsDetailedItemData::~QgsDetailedItemData()
00026 {
00027 }
00028 
00029 void QgsDetailedItemData::setTitle( const QString theTitle )
00030 {
00031   mTitle = theTitle;
00032 }
00033 
00034 void QgsDetailedItemData::setDetail( const QString theDetail )
00035 {
00036   mDetail = theDetail;
00037 }
00038 
00039 void QgsDetailedItemData::setCategory( const QString theCategory )
00040 {
00041   mCategory = theCategory;
00042 }
00043 
00044 void QgsDetailedItemData::setIcon( const QPixmap theIcon )
00045 {
00046   mPixmap = theIcon;
00047 }
00048 
00049 void QgsDetailedItemData::setCheckable( const bool theFlag )
00050 {
00051   mCheckableFlag = theFlag;
00052 }
00053 
00054 void QgsDetailedItemData::setChecked( const bool theFlag )
00055 {
00056   mCheckedFlag = theFlag;
00057 }
00058 
00059 void QgsDetailedItemData::setRenderAsWidget( const bool theFlag )
00060 {
00061   mRenderAsWidgetFlag = theFlag;
00062 }
00063 
00064 QString QgsDetailedItemData::title() const
00065 {
00066   return mTitle;
00067 }
00068 
00069 QString QgsDetailedItemData::detail() const
00070 {
00071   return mDetail;
00072 }
00073 
00074 QString QgsDetailedItemData::category() const
00075 {
00076   return mCategory;
00077 }
00078 
00079 QPixmap QgsDetailedItemData::icon() const
00080 {
00081   return mPixmap;
00082 }
00083 
00084 bool QgsDetailedItemData::isCheckable() const
00085 {
00086   return mCheckableFlag;
00087 }
00088 
00089 bool QgsDetailedItemData::isChecked() const
00090 {
00091   return mCheckedFlag;
00092 }
00093 
00094 bool QgsDetailedItemData::isRenderedAsWidget() const
00095 {
00096   return mRenderAsWidgetFlag;
00097 }
00098 
00099 void QgsDetailedItemData::setEnabled( bool theFlag )
00100 {
00101   mEnabledFlag = theFlag;
00102 }
00103 
00104 bool QgsDetailedItemData::isEnabled() const
00105 {
00106   return mEnabledFlag;
00107 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines