My Project
D:/source/c++/Programme/sally/sally/sallyAPI/PopUpWindow.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 "AppBase.h"
00031 #include "Button.h"
00032 #include "ImageBox.h"
00033 
00034 namespace SallyAPI
00035 {
00036         namespace GUI
00037         {
00043 
00044                 enum POPUP_BLEND_IN {POPUP_BLEND_IN_BOTTOM, POPUP_BLEND_IN_TOP, POPUP_BLEND_IN_CENTER};
00045 
00054 
00055                 class DLL_API_SALLY CPopUpWindow :
00056                         public SallyAPI::GUI::CAppBase
00057                 {
00058                 protected:
00059                         bool                                            m_bBlendOut;
00060                         bool                                            m_bCloseOnClick;
00061                         POPUP_BLEND_IN                          m_eBlendIn;
00062                         SallyAPI::GUI::CButton*         m_pButtonClose;
00063                         SallyAPI::GUI::CImageBox*       m_pBackground;
00064 
00065                         virtual bool    ProcessMouseDown(int x, int y);
00066                 public:
00067                         CPopUpWindow(SallyAPI::GUI::CGUIBaseObject* parent, int graphicId, const std::string &explicidAppName);
00068                         virtual ~CPopUpWindow();
00069 
00070                         void                    SetBlendIn(POPUP_BLEND_IN value);
00071 
00072                         void                    SetCloseOnClick(bool value);
00073                         bool                    GetCloseOnClick();
00074 
00075                         virtual void    BlendIn();
00076                         virtual void    BlendOut();
00077 
00078                         virtual void Render();
00079                         virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL);
00080                 };
00081         }
00082 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines