2013-04-17 23:43:35 -04:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2009-03-20 19:12:04 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2009-02-24 19:31:32 +00:00
|
|
|
|
2013-02-27 22:37:38 -06:00
|
|
|
#include <string>
|
|
|
|
#include <wx/string.h>
|
|
|
|
|
2014-02-22 23:36:30 +01:00
|
|
|
class wxBitmap;
|
|
|
|
|
|
|
|
// A shortcut to access the bitmaps
|
|
|
|
#define wxGetBitmapFromMemory(name) WxUtils::_wxGetBitmapFromMemory(name, sizeof(name))
|
|
|
|
|
2013-02-27 22:37:38 -06:00
|
|
|
namespace WxUtils
|
|
|
|
{
|
2009-03-20 19:12:04 +00:00
|
|
|
|
|
|
|
// Launch a file according to its mime type
|
2014-03-12 15:33:41 -04:00
|
|
|
void Launch(const std::string& filename);
|
2009-03-20 19:12:04 +00:00
|
|
|
|
|
|
|
// Launch an file explorer window on a certain path
|
2014-03-12 15:33:41 -04:00
|
|
|
void Explore(const std::string& path);
|
2009-08-07 08:52:04 +00:00
|
|
|
|
2013-09-25 03:05:36 -04:00
|
|
|
double GetCurrentBitmapLogicalScale();
|
|
|
|
|
2014-02-22 23:36:30 +01:00
|
|
|
wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length);
|
|
|
|
|
2009-03-20 19:12:04 +00:00
|
|
|
} // namespace
|
|
|
|
|
2013-02-27 22:37:38 -06:00
|
|
|
std::string WxStrToStr(const wxString& str);
|
|
|
|
wxString StrToWxStr(const std::string& str);
|