/[pcsx2_0.9.7]/trunk/common/include/Utilities/pxEvents.h
ViewVC logotype

Diff of /trunk/common/include/Utilities/pxEvents.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/common/include/Utilities/pxEvents.h	2010/12/23 11:48:33	279
+++ trunk/common/include/Utilities/pxEvents.h	2010/12/23 12:02:12	280
@@ -233,7 +233,8 @@
 			m_Close		:1;
 	BITFIELD_END
 
-	wxString m_CustomLabel;
+	wxString	m_CustomLabel;
+	wxString	m_CustomLabelId;
 
 public:
 	MsgButtons() { bitset = 0; }
@@ -251,9 +252,12 @@
 	MsgButtons& Reset()		{ m_Reset		= true; return *this; }
 	MsgButtons& Close()		{ m_Close		= true; return *this; }
 
-	MsgButtons& Custom( const wxString& label)
+	// label - native language label displayed to user
+	// id - raw ASCII identifier used in the config file (do not translate, hence char*)
+	MsgButtons& Custom( const wxString& label, const char* id )
 	{
 		m_CustomLabel = label;
+		m_CustomLabelId = fromUTF8(id);
 		return *this;
 	}
 
@@ -274,7 +278,8 @@
 	bool HasClose() const	{ return m_Close; }
 
 	bool HasCustom() const	{ return !m_CustomLabel.IsEmpty(); }
-	const wxString& GetCustomLabel() const { return m_CustomLabel; }
+	const wxString& GetCustomLabel() const		{ return m_CustomLabel; }
+	const wxString& GetCustomLabelId() const	{ return m_CustomLabelId; }
 
 	bool Allows( wxWindowID id ) const;
 	void SetBestFocus( wxWindow* dialog ) const;

 

  ViewVC Help
Powered by ViewVC 1.1.22