diff options
author | jonasno <jonasno@users.sourceforge.net> | 2010-02-28 15:57:09 +0300 |
---|---|---|
committer | jonasno <jonasno@users.sourceforge.net> | 2010-02-28 15:57:09 +0300 |
commit | ce4088335946e47328a8821f3ac72bb3a59bf2ea (patch) | |
tree | fda5fccf2cfb27b86d8b0f8826c4ca3c8605bf04 /src/apps/mplayerc/FavoriteAddDlg.cpp | |
parent | 76eb2916c0c420a78828e0a3e8393717ac70f0df (diff) |
-Implemented 'Quick add favorite' shortcut (default: Shift + Q), will use current settings from 'Add Favorite' dialog
-Made favorites menu look better
-Fixed a & and && confusion
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1717 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/FavoriteAddDlg.cpp')
-rw-r--r-- | src/apps/mplayerc/FavoriteAddDlg.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/apps/mplayerc/FavoriteAddDlg.cpp b/src/apps/mplayerc/FavoriteAddDlg.cpp index 385756ed6..a3e3ed49d 100644 --- a/src/apps/mplayerc/FavoriteAddDlg.cpp +++ b/src/apps/mplayerc/FavoriteAddDlg.cpp @@ -24,6 +24,7 @@ #include "stdafx.h"
#include "mplayerc.h"
#include "FavoriteAddDlg.h"
+#include "SettingsDefines.h"
// CFavoriteAddDlg dialog
@@ -63,8 +64,8 @@ BOOL CFavoriteAddDlg::OnInitDialog() ::CorrectComboListWidth( m_namectrl, GetFont() );
- m_bRememberPos = AfxGetApp()->GetProfileInt(_T("Favorite"), _T("RememberPosition"), TRUE);
- m_bRelativeDrive = AfxGetApp()->GetProfileInt(_T("Favorite"), _T("RelativeDrive"), FALSE);
+ m_bRememberPos = AfxGetApp()->GetProfileInt(IDS_R_FAVORITES, IDS_RS_FAV_REMEMBERPOS, TRUE);
+ m_bRelativeDrive = AfxGetApp()->GetProfileInt(IDS_R_FAVORITES, IDS_RS_FAV_RELATIVEDRIVE, FALSE);
UpdateData(FALSE); // Update UI
@@ -94,8 +95,8 @@ void CFavoriteAddDlg::OnOK() UpdateData(); // Retrieve UI values
// Remember settings
- AfxGetApp()->WriteProfileInt(_T("Favorite"), _T("RememberPosition"), m_bRememberPos);
- AfxGetApp()->WriteProfileInt(_T("Favorite"), _T("RelativeDrive"), m_bRelativeDrive);
+ AfxGetApp()->WriteProfileInt(IDS_R_FAVORITES, IDS_RS_FAV_REMEMBERPOS, m_bRememberPos);
+ AfxGetApp()->WriteProfileInt(IDS_R_FAVORITES, IDS_RS_FAV_RELATIVEDRIVE, m_bRelativeDrive);
CCmdUIDialog::OnOK();
}
|