My Project
D:/source/c++/Programme/sally/sally/sallyAPI/ListViewItem.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include <string>
00031 #include <map>
00032 
00033 namespace SallyAPI
00034 {
00035         namespace GUI
00036         {
00042 
00043                 enum LISTVIEW_LOCALISATION {LISTVIEW_LOCALISATION_FROM_PARENT, LISTVIEW_LOCALISATION_TRUE, LISTVIEW_LOCALISATION_FALSE};
00044 
00045                 enum LISTVIEWITEM_TYPE {LISTVIEWITEM_TYPE_NORMAL, LISTVIEWITEM_TYPE_SORTER};
00046 
00055 
00056                 class DLL_API_SALLY CListViewItem
00057                 {
00058                 private:
00059                         std::string                                                             m_strIdentifier;
00060                         std::map<int, std::string>                              m_mText;
00061                         std::map<int, int>                                              m_mImageId;
00062                         std::map<int, LISTVIEW_LOCALISATION>    m_mLocalisation;
00063                         std::map<int, bool>                                             m_mFont;
00064                         std::map<int, LISTVIEWITEM_TYPE>                m_mType;
00065                         std::map<int, std::string>                              m_mImageText;
00066                 public:
00067                         CListViewItem(const std::string& identifier, const std::string& firstLine = "",
00068                                 int imageIndex = GUI_NO_IMAGE, LISTVIEWITEM_TYPE type = LISTVIEWITEM_TYPE_NORMAL);
00069                         virtual ~CListViewItem();
00070 
00071                         void            SetText(const std::string& value, int number = 0);
00072                         std::string GetText(int number = 0);
00073                         void            SetImageText(const std::string& value, int number = 0);
00074                         std::string GetImageText(int number = 0);
00075                         void            SetIdentifier(const std::string& identifier);
00076                         std::string GetIdentifier();
00077                         void            SetImageId(int value, int number = 0);
00078                         int                     GetImageId(int number = 0);
00079                         void                                    SetLocalised(LISTVIEW_LOCALISATION value, int number = 0);
00080                         LISTVIEW_LOCALISATION   IsLocalised(int number = 0);
00081                         void            SetSmallFont(bool value, int number = 0);
00082                         bool            GetSmallFont(int number = 0);
00083                         void                                    SetType(LISTVIEWITEM_TYPE value, int number = 0);
00084                         LISTVIEWITEM_TYPE               GetType(int number = 0);
00085                 };
00086         }
00087 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines