Cosmetics

This commit is contained in:
Brian Ferguson 2013-08-25 22:47:20 -06:00
parent fb059da295
commit df84ba961c
3 changed files with 5 additions and 7 deletions

View File

@ -715,7 +715,7 @@ void CommandHandler::DoManageBang(std::vector<std::wstring>& args, MeterWindow*
const size_t argsSize = args.size(); const size_t argsSize = args.size();
if (argsSize >= 2 && argsSize <= 3) if (argsSize >= 2 && argsSize <= 3)
{ {
DialogManage::OpenSkin(args[0].c_str(), DialogManage::Open(args[0].c_str(),
args[1].c_str(), args[1].c_str(),
(argsSize == 3) ? args[2].c_str() : L""); (argsSize == 3) ? args[2].c_str() : L"");
} }

View File

@ -118,25 +118,23 @@ void DialogManage::OpenSkin(MeterWindow* meterWindow)
} }
/* /*
** Opens the Manage dialog Skins tab with config and/or skin selected. ** Opens the Manage dialog tab with parameters
** **
*/ */
void DialogManage::OpenSkin(const WCHAR* tabName, const WCHAR* param1, const WCHAR* param2) void DialogManage::Open(const WCHAR* tabName, const WCHAR* param1, const WCHAR* param2)
{ {
Open(tabName); Open(tabName);
if (c_Dialog) if (c_Dialog)
{ {
// Make sure "Skins" was defined in the bang // "Skins" tab
if (_wcsicmp(tabName, L"Skins") == 0) if (_wcsicmp(tabName, L"Skins") == 0)
{ {
// For "Skins":
// |param1| represents the config (ie. "illustro\Clock") // |param1| represents the config (ie. "illustro\Clock")
// |param2| represents the file (ie. "Clock.ini") // |param2| represents the file (ie. "Clock.ini")
std::wstring name = param1; std::wstring name = param1;
// Allow just a config to be selected
if (param2) if (param2)
{ {
name += L'\\'; name += L'\\';

View File

@ -30,10 +30,10 @@ public:
static Dialog* GetDialog() { return c_Dialog; } static Dialog* GetDialog() { return c_Dialog; }
static void Open(const WCHAR* tabName, const WCHAR* param1, const WCHAR* param2);
static void Open(const WCHAR* name); static void Open(const WCHAR* name);
static void Open(int tab = 0); static void Open(int tab = 0);
static void OpenSkin(MeterWindow* meterWindow); static void OpenSkin(MeterWindow* meterWindow);
static void OpenSkin(const WCHAR* tabName, const WCHAR* param1, const WCHAR* param2);
static void UpdateSkins(MeterWindow* meterWindow, bool deleted = false); static void UpdateSkins(MeterWindow* meterWindow, bool deleted = false);