Skip to content

Commit

Permalink
Re-add stripped EN docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrononyan committed Mar 2, 2021
1 parent 43a5798 commit db850b2
Show file tree
Hide file tree
Showing 585 changed files with 19,641 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/cburch/logisim/gui/menu/MenuHelp.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ public MenuHelp(LogisimMenuBar menubar) {
addSeparator();
add(about);
}
disableHelp();
}

public void actionPerformed(ActionEvent e) {
Expand All @@ -95,6 +94,12 @@ private void disableHelp() {
library.setEnabled(false);
}

private void enableHelp() {
guide.setEnabled(true);
tutorial.setEnabled(true);
library.setEnabled(true);
}

private void loadBroker() {
String helpUrl = S.get("helpsetUrl");
if (helpUrl == null) {
Expand Down Expand Up @@ -148,6 +153,7 @@ public void localeChanged() {
helpFrame.setLocale(Locale.getDefault());
loadBroker();
}
enableHelp();
}

private void showHelp(String target) {
Expand Down
16 changes: 16 additions & 0 deletions src/main/resources/doc/_read-me.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Organization of these folders

Th file doc_xx.hs it is the configuration for java help by language.

Th file map_xx.jhm there are the configuration of the help tree in conjunction with the .\xx\contents.xml file...
(xx = abbreviated language (fr/en/it...)

The folder icons contains the icons for doc

The folder img-guide contains the pictures of the guide without translation required

The folder img-libs contains the pictures of the library without translation required

The folders de, el,en,fr,pt,ru,it,nl are the linguistic parts of the documentation

in each of these language folders we find a folder img-guide contains the pictures of the library with translation required.
64 changes: 64 additions & 0 deletions src/main/resources/doc/doc_en.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE helpset
PUBLIC "-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version 2.0//EN"
"http://java.sun.com/products/javahelp/helpset_2_0.dtd">
<helpset version="2.0">
<!-- title -->
<title>Logisim - Help</title>

<!-- maps -->
<maps>
<homeID>top</homeID>
<mapref location="map_en.jhm" />
</maps>

<!-- views -->
<view xml:lang="en" mergetype="javax.help.UniteAppendMerge">
<name>TOC</name>
<label>Table Of Contents</label>
<type>javax.help.TOCView</type>
<data>en/contents.xml</data>
</view>

<view>
<name>Search</name>
<label>Search</label>
<type>javax.help.SearchView</type>
<data engine="com.sun.java.help.search.DefaultSearchEngine">search_lookup_en</data>
</view>

<view>
<name>Favorites</name>
<label>Favorites</label>
<type>javax.help.FavoritesView</type>
</view>

<!-- presentation windows -->

<!-- This window is the default one for the helpset.
* It is a tri-paned window because displayviews, not
* defined, defaults to true and because a toolbar is defined.
* The toolbar has a back arrow, a forward arrow, and
* a home button that has a user-defined image.
-->
<presentation default=true>
<name>main window</name>
<location x="200" y="10" />
<toolbar>
<helpaction>javax.help.BackAction</helpaction>
<helpaction>javax.help.ForwardAction</helpaction>
<helpaction image="homeicon">javax.help.HomeAction</helpaction>
<helpaction>javax.help.SeparatorAction</helpaction>
<helpaction>javax.help.FavoritesAction</helpaction>
</toolbar>
</presentation>

<!-- implementation section -->
<impl>
<helpsetregistry> helpbrokerclass="javax.help.DefaultHelpBroker" </helpsetregistry>
<viewerregistry> viewertype="text/html"
viewerclass="com.sun.java.help.impl.CustomKit" </viewerregistry>
<viewerregistry> viewertype="text/xml"
viewerclass="com.sun.java.help.impl.CustomXMLKit" </viewerregistry>
</impl>
</helpset>
Loading

0 comments on commit db850b2

Please sign in to comment.