You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _software/duse.html
+35-36Lines changed: 35 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
layout: "programs-tplt"
3
3
group: apps
4
4
priority: 1.5
5
-
version: "0.2.1-beta"
6
-
release-date: "2022-11-03"
5
+
version: "0.3.0"
6
+
release-date: "2023-06-23"
7
7
os: Windows 7 / Windows Server 2012 R2 & later
8
-
title: "Unit2NS"
8
+
title: "DUSE"
9
9
precis: "Finds the unit scope that a given Pascal unit belongs to."
10
10
summary: "Maintains one or more 'mappings' of Delphi Pascal units to the unit scopes to which they may belong. Copies the fully qualified unit name to the clipboard for pasting into Pascal code. "
11
-
meta-title: "Unit2NS: Utility That Finds Fully Qualified Delphi Unit Names | Open Source | 32 & 64 bit"
11
+
meta-title: "DUSE: Utility That Finds Fully Qualified Delphi Unit Names | Open Source | 32 & 64 bit"
12
12
meta-desc: "Windows utility program that looks up a Delphi Pascal unit name and finds all fully qualified unit scopes it belongs to. Open source. Written in Delphi Pascal."
<strong>At the next release <em>Unit2NS</em> is being renamed to <em>DUSE</em>.</strong>
30
-
</p>
31
-
<p>
32
-
Some changes to the GitHub repository and this web site have already been made in preparation for this:
33
-
</p>
34
-
<ulclass="wide">
35
-
<li>
36
-
The GitHub repository has been transferred from <code>delphidabbler/unit2ns</code> to <code>ddabapps/duse</code>.
37
-
</li>
38
-
<li>
39
-
All links on this page affected by the change of repository have been updated.
40
-
</li>
41
-
<li>
42
-
This web page's URL has been changed to <code>https://delphidabbler.com/software/duse</code>. The old <code>https://delphidabbler.com/software/unit2ns</code> URL has been configured to redirect to the new URL.
43
-
</li>
44
-
</ul>
45
-
<p>
46
-
This page will continue to refer to <em>Unit2NS</em> until the next release is made. Following that release this page will be updated to use the new name.
47
-
</p>
48
-
</div>
49
27
<p>
50
-
<em>Unit2NS</em> is a little tool for Delphi programmers to find the <ahref="https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Unit_Scope_Names">unit scope(s)</a> that a unit belongs to and copies the fully qualified unit name to the clipboard.
28
+
<em>DUSE</em> is a little Windows GUI tool for Delphi programmers to find the <ahref="https://docwiki.embarcadero.com/RADStudio/Alexandria/en/Unit_Scope_Names">unit scope(s)</a> that a unit belongs to and copies the fully qualified unit name to the clipboard.
29
+
</p>
30
+
<p>
31
+
Since the introduction of unit scopes to Delphi I've been struggling to remember which scopes some units belong to. OK, sometimes the code editor pops up a list of unit names in a scope, but what I wanted was to type in a unit name and be told what unit scopes(s) the unit may belong to.
51
32
</p>
52
33
<p>
53
-
Since the introduction of unit scopes to Delphi I've been struggling to remember which scopes some units belong to. OK, sometimes the code editor pops up a list of unit names in a scope, but what I wanted was to type in a unit name and be told what unit scopes(s) the unit may belong to.
34
+
This program does that. When you have found the required unit scope name you can copy the fully qualified unit name to the clipboard ready for pasting into your code editor. It will also let you examine a unit scope to see what units it contains.
54
35
</p>
55
36
<p>
56
-
This program does that. When you have found the required unit scope name you can copy the fully qualified unit name to the clipboard ready for pasting into your code editor. It will also let you examine a unit scope to see what units it contains.
37
+
You have to teach <em>DUSE</em> about what units exist and the unit scopes they belong to. The program makes this easy to do. It finds installed versions of Delphi and can automatically read the units in an installation's source code directory. Alternatively it can scan directory trees and extract the unit names from any <code>.pas</code> or <code>.dcu</code> files that it finds. <em>DUSE</em> can remember more than one set of unit-scope name "mappings", which makes it useful for using with different versions of Delphi.
57
38
</p>
58
39
<p>
59
-
You have to teach <em>Unit2NS</em> about what units exist and the unit scopes they belong to. The program makes this easy to do by being able to scan directory trees of source code. <em>Unit2NS</em> can remember more than one set of unit-scope name "mappings", which makes it useful for using with different versions of Delphi.
40
+
The program is available in either 64 bit 32 bit Windows versions. You should always use the 64 bit version if you are running 64 bit Windows.
60
41
</p>
61
42
<p>
62
-
The program is available as either 32 or 64 bit versions.
43
+
No non-Windows version is (or will be) available, simply because the program is designed for use alongside the Windows-only Delphi IDE.
63
44
</p>
45
+
<aside>
46
+
<p>
47
+
Why <em>DUSE</em>? <strong>D</strong>elphi <strong>U</strong>nit <strong>S</strong>cope <strong>E</strong>xpander. And you can think of the tool being used with <strong>D</strong>elphi <strong>use</strong>s statements.
48
+
</p>
49
+
</aside>
50
+
<aside>
51
+
<pclass="alert alert-info glyph">
52
+
Before release v0.3.0 <em>DUSE</em> was named <em>Unit2NS</em>, which stood for <em>Unit to namespace</em>. But someone pointed out that the program wasn't dealing with namespaces, but with unit scope names. Which buggered up using "NS" to stand for "namespace". Cue the rewriting of the UI and docs and, eventually, a new name!
53
+
</p>
54
+
</aside>
64
55
</div>
65
56
</section>
66
57
@@ -72,25 +63,33 @@ <h2 class="panel-title">
72
63
</div>
73
64
<divclass="panel-body">
74
65
<p>
75
-
This program is hosted on GitHub in the <code><ahref="{{ page.repo-url }}">ddabapps/duse</a></code> repository. The 32 and 64 bit versions are available as separate downloads from the repository's <em><ahref="{{ page.repo-url }}/releases">Releases</a></em> section.
66
+
This program is hosted on GitHub in the <code><ahref="{{ page.repo-url }}">ddabapps/duse</a></code> repository. The 64 and 32 bit versions are available as separate downloads from the repository's <em><ahref="{{ page.repo-url }}/releases">Releases</a></em> section.
76
67
</p>
77
68
<p>
78
-
Each release gives the option of downloading either the programs in executable format or the source code. Your options are:
69
+
Each release gives the option of downloading the program in executable format or as source code. From release v0.3.0 the following files can be downloaded:
79
70
</p>
80
71
<ul>
81
72
<li>
82
-
Choose <code>unit2ns-32bit-{{page.version}}.zip</code>to download a zip file containing the 32 bit version of <em>UNit2NS</em>or <code>unit2ns-64bit-{{page.version}}.zip</code> for the 64 bit version. Extract the content of the chosen <code>.zip</code> file. The included read-me file (<code>README.txt</code>) explains how to install the program.
73
+
<code>duse-64bit-{{page.version}}.zip</code>– contains the 64 bit version of <em>DUSE</em>(<code>DUSE.exe</code>). The included<code>README.txt</code> file explains how to install the program. <em>Always</em> use this version on 64 bit Windows.
83
74
</li>
84
75
<li>
85
-
Choose <code>Source code.zip</code>to download the source code in <code>.zip</code>format.
76
+
<code>duse-32bit-{{page.version}}.zip</code>– contains the 32 bit version of <em>DUSE</em> (<code>DUSE32.exe</code>). The included<code>README.txt</code>file explains how to install the program. <em>Only</em> use this version on 32 bit Windows.
86
77
</li>
87
78
<li>
88
-
Choose <code>Source code.tar.gz</code> to download the source code as a g-zipped tarball.
79
+
<code>Source code.zip</code> – contains the source code in <code>.zip</code> format.
80
+
</li>
81
+
<li>
82
+
<code>Source code.tar.gz</code> – contains the source code as a g-zipped tarball.
89
83
</li>
90
84
</ul>
91
85
<pclass="text-center">
92
86
<aclass="btn btn-primary" role="button" href="{{ page.download-base-url }}{{ page.version }}" aria-label="Go to release v{{ page.version}} on GitHub">Get <spanclass="hidden-xs">release </span>v{{ page.version }} from GitHub</a>
93
87
</p>
88
+
<aside>
89
+
<pclass="alert alert-warning glyph">
90
+
This is early development code. Always use the latest release, currently v{{page.version}}.
0 commit comments