STK++ 1.0
STK_PropertyDescriptor.h
Go to the documentation of this file.
00001 /*--------------------------------------------------------------------*/
00002 /*     Copyright (C) 2004-2007  Serge Iovleff
00003 
00004  This program is free software; you can redistribute it and/or modify
00005  it under the terms of the GNU Lesser General Public License as
00006  published by the Free Software Foundation; either version 2 of the
00007  License, or (at your option) any later version.
00008 
00009  This program is distributed in the hope that it will be useful,
00010  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  GNU Lesser General Public License for more details.
00013 
00014  You should have received a copy of the GNU Lesser General Public
00015  License along with this program; if not, write to the
00016  Free Software Foundation, Inc.,
00017  59 Temple Place,
00018  Suite 330,
00019  Boston, MA 02111-1307
00020  USA
00021 
00022  Contact : Serge.Iovleff@stkpp.org
00023  */
00024 
00025 /*
00026  * Project:  stkpp::gui::model
00027  * created on: 6 oct. 2009
00028  * Purpose:  declaration of the PropertyDescritpor class.
00029  * Author:   iovleff, serge.iovleff@stkpp.org
00030  **/
00031 
00036 #ifndef STK_PROPERTYDESCRIPTOR_H
00037 #define STK_PROPERTYDESCRIPTOR_H
00038 
00039 #include "../../../projects/STKernel/include/STK_String.h"
00040 #include "../../../projects/STKernel/include/STK_String_Util.h"
00041 
00042 namespace STK
00043 {
00044 
00061 class PropertyDescriptor
00062 {
00063   private:
00067     String id_;
00068 
00072     String display_;
00073 
00077     String category_;
00078 
00082     String description_;
00083 
00087     String helpId_;
00088 
00089   public:
00099     PropertyDescriptor( String const& id
00100                       , String const& displayName
00101                       , String const& category = STRING_NA
00102                       , String const& description = STRING_NA
00103                       , String const& helpId = STRING_NA
00104                       );
00105 
00109     virtual ~PropertyDescriptor();
00110 
00119     inline String const& category() const
00120     { return category_;}
00121 
00128     inline String const& getDescription() const
00129     { return description_;}
00130 
00137     inline String const& getDisplayName() const
00138     { return display_;}
00139 
00146     inline String const& getHelpContextId() const
00147     { return helpId_;}
00148 
00156     inline String const& getId() const
00157     { return id_;}
00158 
00166     inline void setCategory( String const& category)
00167     { category_ = category;}
00168 
00177     inline void setDescription(String const& description)
00178     { description_ = description;}
00179 
00186     inline void setHelpContextIds(String const& contextId)
00187     { helpId_ = contextId;}
00188 };
00189 
00190 }
00191 
00192 #endif /* STK_PROPERTYDESCRIPTOR_H */