]> git.saurik.com Git - wxWidgets.git/commitdiff
added stub of GetEscapeId()
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 14 Jul 2005 23:07:10 +0000 (23:07 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 14 Jul 2005 23:07:10 +0000 (23:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dialog.h

index 7564636c382ae4c51c64141b245d2af7994c14b2..5f43cf3e869951ceb8d26d53d6adf145fdae9f60 100644 (file)
@@ -50,6 +50,19 @@ public:
     void SetAffirmativeId(int affirmativeId) { m_affirmativeId = affirmativeId; }
     int GetAffirmativeId() const { return m_affirmativeId; }
 
+    // Identifier for Esc key translation
+#if wxCHECK_VERSION(2, 7, 0)
+    #error "Uncomment SetEscapeId() implementation"
+
+    // this is what we should do in 2.7: remove the "#else" part and add
+    // m_escapeId declaration and the docs for Set/GetEscapeId()
+    void SetEscapeId(int escapeId) { m_escapeId = escapeId; }
+    int GetEscapeId() const { return m_escapeId; }
+#else // 2.6
+    // just a stub for 2.6
+    int GetEscapeId() const { return wxID_ANY; }
+#endif
+
 #if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
     // splits text up at newlines and places the
     // lines into a vertical wxBoxSizer