logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git

18.2.1-wx3.0.patch (3849B)


  1. Description: Fix constants for wxwidgets3.0
  2. The values of wx constants can change between stable release series (and
  3. some have between 2.8 and 3.0), but erlang seems to hardcode these values.
  4. Author: Olly Betts <olly@survex.com>
  5. Bug-Debian: https://bugs.debian.org/766790
  6. Forwarded: no
  7. Last-Update: 2014-11-25
  8. --- a/lib/wx/include/wx.hrl
  9. +++ b/lib/wx/include/wx.hrl
  10. @@ -767,7 +767,7 @@
  11. % From "checkbox.h"
  12. -define(wxCHK_ALLOW_3RD_STATE_FOR_USER, 8192).
  13. -define(wxCHK_3STATE, 4096).
  14. --define(wxCHK_2STATE, 0).
  15. +-define(wxCHK_2STATE, 16384).
  16. % From "checkbox.h": wxCheckBoxState
  17. -define(wxCHK_UNCHECKED, 0).
  18. -define(wxCHK_CHECKED, 1).
  19. @@ -1014,10 +1014,10 @@
  20. -define(wxSIZE_AUTO_WIDTH, 1).
  21. -define(wxSETUP, 131072).
  22. -define(wxMORE, 65536).
  23. --define(wxHELP, 32768).
  24. --define(wxRESET, 16384).
  25. --define(wxBACKWARD, 8192).
  26. --define(wxFORWARD, 4096).
  27. +-define(wxHELP, 4096).
  28. +-define(wxRESET, 32768).
  29. +-define(wxBACKWARD, 16384).
  30. +-define(wxFORWARD, 8192).
  31. -define(wxICON_MASK, (16#00000100 bor 16#00000200 bor 16#00000400 bor 16#00000800)).
  32. -define(wxICON_ASTERISK, ?wxICON_INFORMATION).
  33. -define(wxICON_STOP, ?wxICON_HAND).
  34. @@ -1049,8 +1049,8 @@
  35. -define(wxTC_TOP, 0).
  36. -define(wxTC_FIXEDWIDTH, 32).
  37. -define(wxTC_RIGHTJUSTIFY, 16).
  38. --define(wxSP_WRAP, 8192).
  39. --define(wxSP_ARROW_KEYS, 4096).
  40. +-define(wxSP_WRAP, 32768).
  41. +-define(wxSP_ARROW_KEYS, 16384).
  42. -define(wxSP_VERTICAL, ?wxVERTICAL).
  43. -define(wxSP_HORIZONTAL, ?wxHORIZONTAL).
  44. -define(wxSB_VERTICAL, ?wxVERTICAL).
  45. @@ -1071,8 +1071,8 @@
  46. -define(wxCB_SIMPLE, 4).
  47. -define(wxLB_INT_HEIGHT, 2048).
  48. -define(wxLB_HSCROLL, ?wxHSCROLL).
  49. --define(wxLB_ALWAYS_SB, 1024).
  50. --define(wxLB_NEEDED_SB, 512).
  51. +-define(wxLB_ALWAYS_SB, 512).
  52. +-define(wxLB_NEEDED_SB, 0).
  53. -define(wxLB_OWNERDRAW, 256).
  54. -define(wxLB_EXTENDED, 128).
  55. -define(wxLB_MULTIPLE, 64).
  56. @@ -1548,7 +1548,7 @@
  57. -define(wxUPDATE_UI_FROMIDLE, 2).
  58. % From "dialog.h"
  59. -define(wxDEFAULT_DIALOG_STYLE, (?wxCAPTION bor ?wxSYSTEM_MENU bor ?wxCLOSE_BOX)).
  60. --define(wxDIALOG_NO_PARENT, 1).
  61. +-define(wxDIALOG_NO_PARENT, 32).
  62. % From "dirctrlg.h"
  63. -define(wxDIRCTRL_DIR_ONLY, 16).
  64. -define(wxDIRCTRL_SELECT_FIRST, 32).
  65. @@ -3728,7 +3728,7 @@
  66. -define(wxSTC_KEY_LEFT, 302).
  67. -define(wxSTC_KEY_UP, 301).
  68. -define(wxSTC_KEY_DOWN, 300).
  69. --define(wxSTC_MODEVENTMASKALL, 8191).
  70. +-define(wxSTC_MODEVENTMASKALL, 1048575).
  71. -define(wxSTC_MULTILINEUNDOREDO, 4096).
  72. -define(wxSTC_MOD_BEFOREDELETE, 2048).
  73. -define(wxSTC_MOD_BEFOREINSERT, 1024).
  74. @@ -3810,7 +3810,7 @@
  75. -define(wxSTC_INDIC_TT, 2).
  76. -define(wxSTC_INDIC_SQUIGGLE, 1).
  77. -define(wxSTC_INDIC_PLAIN, 0).
  78. --define(wxSTC_INDIC_MAX, 7).
  79. +-define(wxSTC_INDIC_MAX, 31).
  80. -define(wxSTC_CASE_LOWER, 2).
  81. -define(wxSTC_CASE_UPPER, 1).
  82. -define(wxSTC_CASE_MIXED, 0).
  83. @@ -3835,7 +3835,7 @@
  84. -define(wxSTC_CHARSET_BALTIC, 186).
  85. -define(wxSTC_CHARSET_DEFAULT, 1).
  86. -define(wxSTC_CHARSET_ANSI, 0).
  87. --define(wxSTC_STYLE_MAX, 127).
  88. +-define(wxSTC_STYLE_MAX, 255).
  89. -define(wxSTC_STYLE_LASTPREDEFINED, 39).
  90. -define(wxSTC_STYLE_CALLTIP, 38).
  91. -define(wxSTC_STYLE_INDENTGUIDE, 37).
  92. @@ -3934,9 +3934,9 @@
  93. -define(wxTE_PROCESS_TAB, 64).
  94. -define(wxTE_MULTILINE, 32).
  95. -define(wxTE_READONLY, 16).
  96. --define(wxTE_AUTO_SCROLL, 8).
  97. +-define(wxTE_AUTO_SCROLL, 0).
  98. -define(wxTE_NO_VSCROLL, 2).
  99. --define(wxHAS_TEXT_WINDOW_STREAM, 0).
  100. +-define(wxHAS_TEXT_WINDOW_STREAM, 1).
  101. % From "textctrl.h": wxTextAttrAlignment
  102. -define(wxTEXT_ALIGNMENT_DEFAULT, 0).
  103. -define(wxTEXT_ALIGNMENT_LEFT, 1).
  104. @@ -3986,7 +3986,7 @@
  105. -define(wxDEFAULT_FRAME_STYLE, (?wxSYSTEM_MENU bor ?wxRESIZE_BORDER bor ?wxMINIMIZE_BOX bor ?wxMAXIMIZE_BOX bor ?wxCLOSE_BOX bor ?wxCAPTION bor ?wxCLIP_CHILDREN)).
  106. -define(wxRESIZE_BORDER, 64).
  107. -define(wxTINY_CAPTION_VERT, 128).
  108. --define(wxTINY_CAPTION_HORIZ, 256).
  109. +-define(wxTINY_CAPTION_HORIZ, 128).
  110. -define(wxMAXIMIZE_BOX, 512).
  111. -define(wxMINIMIZE_BOX, 1024).
  112. -define(wxSYSTEM_MENU, 2048).