added nice progressbar which is shown when copying files
[xbmc:xbmc-antiquated.git] / XBMC / guilib / GUIProgressControl.h
1 #ifndef GUILIB_GUIPROGRESSCONTROL_H
2 #define GUILIB_GUIPROGRESSCONTROL_H
3
4 #pragma once
5 #include "gui3d.h"
6 #include "guicontrol.h"
7 #include "guimessage.h"
8 #include "guiImage.h"
9 #include "stdstring.h"
10 using namespace std;
11
12 class CGUIProgressControl :
13   public CGUIControl
14 {
15 public:
16   CGUIProgressControl(DWORD dwParentID, DWORD dwControlId, DWORD dwPosX, DWORD dwPosY, DWORD dwWidth, DWORD dwHeight, CStdString& strBackGroundTexture,CStdString& strLeftTexture,CStdString& strMidTexture,CStdString& strRightTexture);
17   virtual ~CGUIProgressControl(void);
18   virtual void Render();
19   virtual bool CanFocus() const;  
20         virtual void AllocResources();
21   virtual void FreeResources();
22   virtual bool OnMessage(CGUIMessage& message);
23         void                             SetPercentage(int iPercent);
24         int                              GetPercentage() const;
25 protected:
26         CGUIImage                               m_guiBackground;
27         CGUIImage                               m_guiLeft;
28         CGUIImage                               m_guiRight;
29         CGUIImage                               m_guiMid;
30         int                                                     m_iPercent;
31 };
32 #endif