File 6231-howtos-Change-wxErlang-to-Wx.patch of Package erlang
From 080acf27b311cdb74800611159b8a5d698613b04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Tue, 30 Apr 2024 09:59:01 +0200
Subject: [PATCH] howtos: Change wxErlang to Wx
wxErlang was the old name for the `wx` application. In most places
in Erlang/OTP, it is called Wx or `wx`.
---
HOWTO/DOCUMENTATION.md | 2 +-
HOWTO/INSTALL.md | 8 ++++----
lib/wx/api_gen/README | 4 ++--
lib/wx/doc/guides/chapter.md | 4 ++--
lib/wx/doc/notes.md | 4 ++--
lib/wx/examples/demo/demo.erl | 4 ++--
lib/wx/examples/demo/ex_button.erl | 2 +-
lib/wx/examples/demo/ex_notificationMessage.erl | 2 +-
lib/wx/examples/demo/ex_webview.erl | 2 +-
lib/wx/examples/simple/menu.erl | 12 ++++++------
lib/wx/examples/simple/minimal.erl | 10 +++++-----
lib/wx/src/wx.erl | 8 ++++----
12 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/HOWTO/INSTALL.md b/HOWTO/INSTALL.md
index c200eea284..09049e87be 100644
--- a/HOWTO/INSTALL.md
+++ b/HOWTO/INSTALL.md
@@ -82,7 +82,7 @@ also find the utilities needed for building the documentation.
Download from <http://sourceforge.net/projects/wxwindows/files/3.0.0/>
or get it from GitHub: <https://github.com/wxWidgets/wxWidgets>
- Further instructions on wxWidgets, read [Building with wxErlang][].
+ Further instructions on wxWidgets, read [Building with Wx][].
### Building Documentation ###
@@ -555,7 +555,7 @@ suffix.
If you have Xcode 4.3, or later, you will also need to download
"Command Line Tools" via the Downloads preference pane in Xcode.
-#### Building with wxErlang ####
+#### Building with Wx ####
wxWidgets-3.2.x is recommended for building the `wx` application
(wxWidgets-3.0.x will also work). Download it from
@@ -795,5 +795,5 @@ Operating system
[Required Utilities]: #Required-Utilities
[Optional Utilities]: #Optional-Utilities
[Building on a Mac]: #Advanced-configuration-and-build-of-ErlangOTP_Building_macOS-Darwin
- [Building with wxErlang]: #Advanced-configuration-and-build-of-ErlangOTP_Building_Building-with-wxErlang
+ [Building with Wx]: #Advanced-configuration-and-build-of-ErlangOTP_Building_Building-with-Wx
[libatomic_ops]: https://github.com/ivmai/libatomic_ops/
diff --git a/lib/wx/api_gen/README b/lib/wx/api_gen/README
index 364dbdd9f2..43a1831f0f 100644
--- a/lib/wx/api_gen/README
+++ b/lib/wx/api_gen/README
@@ -1,7 +1,7 @@
API GENERATION:
Most of the code in wx is generated.
- Users of wxErlang should not normally need to regenerate the generated code,
- as it is checked in by wxErlang developers, when changes are made.
+ Users of Wx should not normally need to regenerate the generated code,
+ as it is checked in by Wx developers, when changes are made.
REQUIREMENTS:
The code generation requires doxygen (1.8.17) which is
diff --git a/lib/wx/doc/src/chapter.xml b/lib/wx/doc/src/chapter.xml
index 20e2901bc5..4760d7d9f2 100644
--- a/lib/wx/doc/src/chapter.xml
+++ b/lib/wx/doc/src/chapter.xml
@@ -17,7 +17,7 @@ documentation instead. <em>wx</em> tries
the original API so that the original documentation and examples shall be
as easy as possible to use.</p>
-<p>wxErlang examples and test suite can be found in the erlang src release.
+<p>Wx examples and test suite can be found in the erlang src release.
They can also provide some help on how to use the API.</p>
<p>This is currently a very brief introduction to <em>wx</em>. The
@@ -108,7 +108,7 @@ name and a underscore as in <c>ClassName
<p>Additionally some global functions, i.e. non-class functions, exist in
the <c>wx_misc</c> module.</p>
-<p><em>wxErlang</em> is implemented as a (threaded) driver and a rather direct
+<p><em>Wx</em> is implemented as a (threaded) driver and a rather direct
interface to the C++ API, with the drawback that if the erlang
programmer does an error, it might crash the emulator.</p>
diff --git a/lib/wx/doc/src/notes.xml b/lib/wx/doc/src/notes.xml
index 1ab1196938..39d3d72210 100644
--- a/lib/wx/doc/src/notes.xml
+++ b/lib/wx/doc/src/notes.xml
@@ -22,14 +22,14 @@
</legalnotice>
- <title>wxErlang Release Notes</title>
+ <title>Wx Release Notes</title>
<prepared>otp_appnotes</prepared>
<docno>nil</docno>
<date>nil</date>
<rev>nil</rev>
<file>notes.xml</file>
</header>
- <p>This document describes the changes made to the wxErlang
+ <p>This document describes the changes made to the Wx
application.</p>
<section><title>Wx 2.1.4</title>
diff --git a/lib/wx/examples/demo/demo.erl b/lib/wx/examples/demo/demo.erl
index dfcec2ef1c..758d248cf2 100644
--- a/lib/wx/examples/demo/demo.erl
+++ b/lib/wx/examples/demo/demo.erl
@@ -17,7 +17,7 @@
%%
%% %CopyrightEnd%
-%% This is example of the widgets and usage of wxErlang
+%% This is example of the widgets and usage of Wx.
%% Hopefully it will contain all implemented widgets, it's event handling
%% and some tutorials of how to use sizers and other stuff.
@@ -63,7 +63,7 @@ init(Options) ->
wx:new(Options),
process_flag(trap_exit, true),
- Frame = wxFrame:new(wx:null(), ?wxID_ANY, "wxErlang widgets", [{size,{1400,800}}]),
+ Frame = wxFrame:new(wx:null(), ?wxID_ANY, "Wx widgets", [{size,{1400,800}}]),
MB = wxMenuBar:new(),
File = wxMenu:new([]),
wxMenu:append(File, ?wxID_PRINT, "&Print code"),
diff --git a/lib/wx/examples/demo/ex_button.erl b/lib/wx/examples/demo/ex_button.erl
index a2086b0506..331bb4e06e 100644
--- a/lib/wx/examples/demo/ex_button.erl
+++ b/lib/wx/examples/demo/ex_button.erl
@@ -17,7 +17,7 @@
%%
%% %CopyrightEnd%
-%% This is example of the widgets and usage of wxErlang
+%% This is example of the widgets and usage of Wx.
%% Hopefully it will contain all implemented widgets, it's event handling
%% and some tutorials of how to use sizers and other stuff.
diff --git a/lib/wx/examples/demo/ex_notificationMessage.erl b/lib/wx/examples/demo/ex_notificationMessage.erl
index f2ade0b09b..6073306d87 100644
--- a/lib/wx/examples/demo/ex_notificationMessage.erl
+++ b/lib/wx/examples/demo/ex_notificationMessage.erl
@@ -17,7 +17,7 @@
%%
%% %CopyrightEnd%
-%% This is example of the widgets and usage of wxErlang
+%% This is example of the widgets and usage of Wx.
%% Hopefully it will contain all implemented widgets, it's event handling
%% and some tutorials of how to use sizers and other stuff.
diff --git a/lib/wx/examples/demo/ex_webview.erl b/lib/wx/examples/demo/ex_webview.erl
index a351cd78be..a879049a7d 100644
--- a/lib/wx/examples/demo/ex_webview.erl
+++ b/lib/wx/examples/demo/ex_webview.erl
@@ -17,7 +17,7 @@
%%
%% %CopyrightEnd%
-%% This is example of the widgets and usage of wxErlang
+%% This is example of the widgets and usage of Wx.
%% Hopefully it will contain all implemented widgets, it's event handling
%% and some tutorials of how to use sizers and other stuff.
diff --git a/lib/wx/examples/simple/menu.erl b/lib/wx/examples/simple/menu.erl
index 4a5e9b4729..bcd8e6de0b 100644
--- a/lib/wx/examples/simple/menu.erl
+++ b/lib/wx/examples/simple/menu.erl
@@ -105,7 +105,7 @@ start() ->
%%
%%
create_frame(Wx) ->
- Frame = wxFrame:new(Wx, -1, "wxErlang menu sample", [{size, {600,400}}]),
+ Frame = wxFrame:new(Wx, -1, "Wx menu sample", [{size, {600,400}}]),
Path = code:priv_dir(wx),
wxFrame:setIcon(Frame, wxIcon:new(filename:join(Path,"erlang-logo128.png"), [{type, ?wxBITMAP_TYPE_PNG}])),
@@ -137,7 +137,7 @@ create_frame(Wx) ->
{style, ?wxTE_MULTILINE}]),
wxTextCtrl:setEditable(LogTextCtrl, false),
- ok = wxFrame:setStatusText(Frame, "Welcome to wxErlang menu sample",[]),
+ ok = wxFrame:setStatusText(Frame, "Welcome to Wx menu sample",[]),
ok = wxFrame:connect(Frame, command_menu_selected),
@@ -554,14 +554,14 @@ findLogger(Frame) ->
showDialog(?menuID_HELP_ABOUT, Frame) ->
- String = lists:flatten(io_lib:format("Welcome to wxErlang 0.97.5.26!~n~n"
- "This is the minimal wxErlang sample~n"
+ String = lists:flatten(io_lib:format("Welcome to Wx 0.97.5.26!~n~n"
+ "This is the minimal Wx sample~n"
"running under ~p.",
[wx_misc:getOsDescription()])),
MessageDialog = wxMessageDialog:new(Frame,
String,
[{style, ?wxOK bor ?wxICON_INFORMATION},
- {caption, "About wxErlang minimal sample"}]),
+ {caption, "About Wx minimal sample"}]),
wxDialog:showModal(MessageDialog),
wxDialog:destroy(MessageDialog);
@@ -571,7 +571,7 @@ showDialog(Id, Frame) ->
MessageDialog = wxMessageDialog:new(Frame,
String,
[{style, ?wxOK bor ?wxICON_INFORMATION},
- {caption, "wxErlang minimal sample"}]),
+ {caption, "Wx minimal sample"}]),
wxDialog:showModal(MessageDialog),
wxDialog:destroy(MessageDialog).
diff --git a/lib/wx/examples/simple/minimal.erl b/lib/wx/examples/simple/minimal.erl
index 5741243530..d2c9486eca 100644
--- a/lib/wx/examples/simple/minimal.erl
+++ b/lib/wx/examples/simple/minimal.erl
@@ -40,7 +40,7 @@ start() ->
ok.
create_window(Wx) ->
- Frame = wxFrame:new(Wx, -1, "Minimal wxErlang App", [{size, {600,400}}]),
+ Frame = wxFrame:new(Wx, -1, "Minimal Wx App", [{size, {600,400}}]),
Path = filename:dirname(code:which(?MODULE)),
wxFrame:setIcon(Frame, wxIcon:new(filename:join(Path,"sample.xpm"), [{type, ?wxBITMAP_TYPE_XPM}])),
@@ -68,7 +68,7 @@ create_window(Wx) ->
wxMenuBar:append(MenuBar, HelpM, "&Help"),
wxFrame:setMenuBar(Frame, MenuBar),
- ok = wxFrame:setStatusText(Frame, "Welcome to wxErlang!",[]),
+ ok = wxFrame:setStatusText(Frame, "Welcome to Wx!",[]),
Frame.
loop(Frame) ->
@@ -93,8 +93,8 @@ loop(Frame) ->
end.
dialog(?wxID_ABOUT, Frame) ->
- Str = string:join(["Welcome to wxErlang.",
- "This is the minimal wxErlang sample\n",
+ Str = string:join(["Welcome to Wx.",
+ "This is the minimal Wx sample\n",
"running under ",
wx_misc:getOsDescription(),
"."],
@@ -102,7 +102,7 @@ dialog(?wxID_ABOUT, Frame) ->
MD = wxMessageDialog:new(Frame,
Str,
[{style, ?wxOK bor ?wxICON_INFORMATION},
- {caption, "About wxErlang minimal sample"}]),
+ {caption, "About Wx minimal sample"}]),
wxDialog:showModal(MD),
wxDialog:destroy(MD).
diff --git a/lib/wx/src/wx.erl b/lib/wx/src/wx.erl
index 24ffeb1ccb..eecd168227 100644
--- a/lib/wx/src/wx.erl
+++ b/lib/wx/src/wx.erl
@@ -30,7 +30,7 @@
%% This module contains functions for
%% starting and stopping the wx-server, as well as other utility functions.
%%
-%% wxWidgets is object oriented, and not functional. Thus, in wxErlang a
+%% wxWidgets is object oriented, and not functional. Thus, in Wx a
%% module represents a class, and the object created by this class
%% has an own type, wxCLASS(). This module represents the base
%% class, and all other wxMODULE's are sub-classes of this class.
diff --git a/lib/wx/doc/src/wx.xml b/lib/wx/doc/src/wx.xml
index 24ffeb1ccb..eecd168227 100644
--- a/lib/wx/doc/src/wx.xml
+++ b/lib/wx/doc/src/wx.xml
@@ -20,7 +20,7 @@
This module contains functions for
starting and stopping the wx-server, as well as other utility functions.</p>
- <p>wxWidgets is object oriented, and not functional. Thus, in wxErlang a
+ <p>wxWidgets is object oriented, and not functional. Thus, in Wx a
module represents a class, and the object created by this class
has an own type, wxCLASS(). This module represents the base
class, and all other wxMODULE's are sub-classes of this class.</p>
--
2.35.3