Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2010-02-27 21:09:28 +0300
committerXhmikosR <xhmikosr@users.sourceforge.net>2010-02-27 21:09:28 +0300
commit5eaf216d56403d13fe6f934bf960b018ef0a0945 (patch)
tree61cb3492dce345829bd35df92569d55610badb88 /src/apps/mplayerc/PlayerToolBar.h
parent5488fa491d3c92893b69bff56a7bf565ee973e24 (diff)
Added code such that the player loads (if any) the file "toolbar.bmp" to get the icons for the toolbar (play, pause, etc) buttons; else it uses built-in icons.
"Toolbar.bmp" can be of bitdepth <= 24, in which case RGB(255, 0, 255) is considered transparent or of bitdepth 32, in which case the alpha channel is used for transparency / gradients; 32 bit bitmaps mustn't use any compression in order to load properly; its resolution should be 15h x h to load, each icon being h x h in size for bigger toolbar.bmp files, the player minimum width is set so that all icons remain visible. The volume slider isn't modified yet - it keeps its size. Patch by foxx1337 git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1706 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerToolBar.h')
-rw-r--r--src/apps/mplayerc/PlayerToolBar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/apps/mplayerc/PlayerToolBar.h b/src/apps/mplayerc/PlayerToolBar.h
index 784dac8e3..54063bbf1 100644
--- a/src/apps/mplayerc/PlayerToolBar.h
+++ b/src/apps/mplayerc/PlayerToolBar.h
@@ -34,13 +34,15 @@ class CPlayerToolBar : public CToolBar
private:
bool IsMuted();
- void SetMute(bool fMute = true);
+ void SetMute(bool fMute = true);
+ int m_nButtonHeight;
public:
CPlayerToolBar();
virtual ~CPlayerToolBar();
int GetVolume();
+ int GetMinWidth();
void SetVolume(int volume);
__declspec(property(get=GetVolume, put=SetVolume)) int Volume;