My Project
D:/source/c++/Programme/sally/sally/sallyAPI/DropDownItem.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 
00032 namespace SallyAPI
00033 {
00034         namespace GUI
00035         {
00041 
00042                 enum DROPDOWN_LOCALISATION {DROPDOWN_LOCALISATION_FROM_PARENT, DROPDOWN_LOCALISATION_TRUE, DROPDOWN_LOCALISATION_FALSE};
00043 
00052 
00053                 class DLL_API_SALLY CDropDownItem
00054                 {
00055                 private:
00056                         std::string                             m_strIdentifier;
00057                         std::string                             m_strText;
00058                         int                                             m_iImage;
00059                         DROPDOWN_LOCALISATION   m_eLocalisation;
00060                 public:
00061                         CDropDownItem(const std::string& identifier, const std::string& text, int image = 0);
00062                         ~CDropDownItem();
00063 
00064                         void            SetText(const std::string& text);
00065                         std::string GetText();
00066                         void            SetIdentifier(const std::string& identifier);
00067                         std::string GetIdentifier();
00068                         void            SetImageId(int image);
00069                         int                     GetImageId();
00070                         void            SetLocalised(DROPDOWN_LOCALISATION value);
00071                         DROPDOWN_LOCALISATION   IsLocalised();
00072                 };
00073         }
00074 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines