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 #define _USE_MATH_DEFINES 00031 #include <cmath> 00032 #include <cstdlib> 00033 #include "Button.h" 00034 #include "Label.h" 00035 #include "Form.h" 00036 #include "ImageBox.h" 00037 00038 namespace SallyAPI 00039 { 00040 namespace GUI 00041 { 00050 00051 class DLL_API_SALLY C3DCircle : 00052 public SallyAPI::GUI::CForm 00053 { 00054 private: 00055 std::vector<SallyAPI::GUI::CButton*> m_ApplicationButtons; 00056 std::vector<SallyAPI::GUI::CLabel*> m_ApplicationLabels; 00057 int m_iIconSize; 00058 00059 float m_fWinkelCorrection; 00060 float m_iWinkelSize; 00061 float m_iWinkelStart; 00062 bool m_bMovedAtTopX; 00063 bool m_bMovedAtTopY; 00064 bool m_bMoveAnimation; 00065 int m_iMoveAnimationSpeed; 00066 float m_fDeltaStart; 00067 float m_fDeltaLastDifferents; 00068 float m_fDeltaRemainder; 00069 00070 virtual bool ProcessMouseMove(int x, int y); 00071 00072 void UpdateRotation(); 00073 void MoveMenuX(SallyAPI::GUI::SendMessage::CParameterBase* messageParameter); 00074 void MoveMenuY(SallyAPI::GUI::SendMessage::CParameterBase* messageParameter); 00075 void MoveMenuFastXLeft(SallyAPI::GUI::SendMessage::CParameterBase* messageParameter); 00076 void MoveMenuFastXRight(SallyAPI::GUI::SendMessage::CParameterBase* messageParameter); 00077 virtual bool ProcessMouseDown(int x, int y); 00078 virtual void AddChild(SallyAPI::GUI::CControl* control); 00079 public: 00080 C3DCircle(SallyAPI::GUI::CGUIBaseObject* parent, int x, int y, int width, int iconSize = 128); 00081 virtual ~C3DCircle(); 00082 00083 void AddItem(int image, const std::string& text, int controlId); 00084 00085 virtual void Timer(float timeDelta); 00086 virtual void SendMessageToParent(SallyAPI::GUI::CGUIBaseObject* reporter, int reporterId, int messageId, SallyAPI::GUI::SendMessage::CParameterBase* messageParameter = NULL); 00087 }; 00088 } 00089 }