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:
authorAleksoid <aleksoid@users.sourceforge.net>2008-12-04 06:41:38 +0300
committerAleksoid <aleksoid@users.sourceforge.net>2008-12-04 06:41:38 +0300
commit8dbf8ff5d86ae669a39bd5d641b5e2db0b4b69cc (patch)
tree3dee95f434259666c5f1490d62a595aff1b8cbad /src/apps/mplayerc/PlayerPlaylistBar.cpp
parent31966e2d21f247c373b3c94c8b59e452fd9d3b06 (diff)
CHANGE : Gui option(in Playlist popupmenu) for rev.912
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@913 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/PlayerPlaylistBar.cpp')
-rw-r--r--src/apps/mplayerc/PlayerPlaylistBar.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/apps/mplayerc/PlayerPlaylistBar.cpp b/src/apps/mplayerc/PlayerPlaylistBar.cpp
index e4f9fd079..e9b140690 100644
--- a/src/apps/mplayerc/PlayerPlaylistBar.cpp
+++ b/src/apps/mplayerc/PlayerPlaylistBar.cpp
@@ -1201,7 +1201,7 @@ void CPlayerPlaylistBar::OnContextMenu(CWnd* /*pWnd*/, CPoint p)
{
M_OPEN=1, M_ADD, M_REMOVE, M_CLIPBOARD, M_SAVEAS,
M_SORTBYNAME, M_SORTBYPATH, M_RANDOMIZE, M_SORTBYID,
- M_REMEMBERPLAYLIST, M_SHUFFLE
+ M_REMEMBERPLAYLIST, M_SHUFFLE, M_HIDEFULLSCREEN
};
m.AppendMenu(MF_STRING|(!fOnItem?(MF_DISABLED|MF_GRAYED):MF_ENABLED), M_OPEN, ResStr(IDS_PLAYLIST_OPEN));
@@ -1218,6 +1218,8 @@ void CPlayerPlaylistBar::OnContextMenu(CWnd* /*pWnd*/, CPoint p)
m.AppendMenu(MF_SEPARATOR);
m.AppendMenu(MF_STRING|MF_ENABLED|(AfxGetApp()->GetProfileInt(ResStr(IDS_R_SETTINGS), _T("ShufflePlaylistItems"), FALSE)?MF_CHECKED:0), M_SHUFFLE, ResStr(IDS_PLAYLIST_SHUFFLE));
m.AppendMenu(MF_STRING|MF_ENABLED|(AfxGetApp()->GetProfileInt(ResStr(IDS_R_SETTINGS), _T("RememberPlaylistItems"), TRUE)?MF_CHECKED:0), M_REMEMBERPLAYLIST, ResStr(IDS_PLAYLIST_REMEBERITEMS));
+ m.AppendMenu(MF_SEPARATOR);
+ m.AppendMenu(MF_STRING|MF_ENABLED|(AfxGetApp()->GetProfileInt(ResStr(IDS_R_SETTINGS), _T("HidePlaylistFullScreen"), FALSE)?MF_CHECKED:0), M_HIDEFULLSCREEN, ResStr(IDS_PLAYLIST_HIDEFS));
CMainFrame* pMainFrm = (CMainFrame*)AfxGetMainWnd();
@@ -1418,6 +1420,10 @@ void CPlayerPlaylistBar::OnContextMenu(CWnd* /*pWnd*/, CPoint p)
AfxGetApp()->WriteProfileInt(ResStr(IDS_R_SETTINGS), _T("ShufflePlaylistItems"),
!AfxGetApp()->GetProfileInt(ResStr(IDS_R_SETTINGS), _T("ShufflePlaylistItems"), FALSE));
break;
+ case M_HIDEFULLSCREEN:
+ AfxGetApp()->WriteProfileInt(ResStr(IDS_R_SETTINGS), _T("HidePlaylistFullScreen"),
+ !AfxGetApp()->GetProfileInt(ResStr(IDS_R_SETTINGS), _T("HidePlaylistFullScreen"), FALSE));
+ break;
default:
break;
}