My Project
|
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 "OptionManager.h" 00031 #include "Form.h" 00032 00033 namespace SallyAPI 00034 { 00035 namespace GUI 00036 { 00045 00046 class DLL_API_SALLY CAppBase : 00047 public SallyAPI::GUI::CForm 00048 { 00049 protected: 00050 int m_iGraphicId; 00051 std::string m_strExplicitAppName; 00052 public: 00053 CAppBase(SallyAPI::GUI::CGUIBaseObject* parent, int graphicId, const std::string& explicidAppName); 00054 virtual ~CAppBase(); 00055 00056 // Helper Functions 00057 int GetGraphicId(); 00058 std::string GetExplicitAppName(); 00059 00060 std::string GetPropertyString(const std::string& ID, const std::string& defaultReturn = ""); 00061 int GetPropertyInt(const std::string& ID, int defaultReturn = -1); 00062 bool GetPropertyBool(const std::string& ID, bool defaultReturn = false); 00063 void SetPropertyString(const std::string& ID, const std::string& s); 00064 void SetPropertyInt(const std::string& ID, int i); 00065 void SetPropertyBool(const std::string& ID, bool i); 00066 int GetPictureID(int iPicture); 00067 00068 virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL); 00069 }; 00070 } 00071 }