home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
t
/
translate
/
!Translate
/
!Help
< prev
next >
Wrap
Text File
|
1997-02-25
|
6KB
|
155 lines
Translate 1.02 (25-Feb-97)
Purpose: ArtWorks module for object translation
Author: Martin Würthner
Status: FreeWare (see [5] for details)
Welcome to a free ArtWorks module!
This module provides a tool which allows you to translate objects by
specific amounts (e.g. 1cm to the right). This does not sound too
spectacular, but it is a feature which was really missing from
ArtWorks. Try it and you will see that it is useful.
If you are upgrading please read section 2.2.
There is a much more interesting non-commercial ArtWorks module called
"Polygon" (also written by me) which is ShareWare and allows you to create
and edit regular polygons and stars in ArtWorks.
1) Installation
---------------
Copy the !Translate application inside the !ArtWorks.Auto directory.
This will cause ArtWorks to load the module automatically next time
it is started.
If you are not using the 'Quick start' feature of ArtWorks, then this
is it already. Otherwise (this is recognized by the fact the ArtWorks
only displays one icon 'Quick start' when starting up) you have to go on:
If the 'Quick start' option is selected in the ArtWorks choices window
you have to perform the following steps in order for ArtWorks to recognize
the new module:
* Load ArtWorks
* Open the ArtWorks choices window (icon bar menu 'Choices...', then
click on the ArtWorks icon in the ArtWorks global choices window)
* Deselect 'Quick start' and click on 'Save'
* Quit ArtWorks
* Reload ArtWorks - while loading ArtWorks shows every module it loads
* Open the ArtWorks choices window
* Select 'Quick start' and click on 'Save'
If you ever should want to deinstall the module, remove the !Translate
directory from the !ArtWorks.Auto directory. Then, if you are using
the 'Quick start' option, you must repeat the same steps above.
2) The Translate module
-----------------------
2.1) How it works
The Translate module displays an additional tool, the Translate tool,
in the ArtWorks tool box. The tool looks like four arrows pointing
to the left, the right, the top and the bottom.
When you select the tool, the info bar displays the fields 'Offset X',
and 'Offset Y' and the action button 'Get Grid'. Also, it displays
the standard ArtWorks 3 by 3 matrix of small buttons (with the
button in the middle missing).
While the tool is selected, you may move the current selection by
the amount specified in the 'Offset X' and 'Offset Y' fields by
either clicking on one of the small buttons in the 3 by 3 matrix
or by using the arrow keys (or Ctrl-Shift-arrow keys). The reason
for allowing the arrow keys with Ctrl-Shift as well is that while
the caret is in one of the writable fields, the cursor keys are
used to move the caret, so you have to use Ctrl-Shift-arrow to move
the selection.
The value in 'Offset X' is taken for horizontal moves, the value in
'Offset Y' is taken for vertical moves. Note that you can move the
selection diagonally if you use the corresponding buttons on the
3 by 3 matrix. To change the offset values, enter a new value in
any unit of measurement allowed by ArtWorks and press Return. The
values are remembered even if you change the tool. Note that after
you entered a new value, the caret is still in the writable field,
so the cursor keys cannot be used to move the selection. Use Ctrl-
Shift-cursor key instead or simply click in the main window to
take the caret away from the input field.
By clicking on 'Get Grid' the current values of the grid are filled
in, e.g. if your current grid is 1cm with 2 subdivisions, the offsets
are both changed to 5mm. This option works independent of the 'Lock
to grid' setting.
The module fully supports the Undo system of ArtWorks. The name of
the operation is 'translate', so the Menu will show 'Undo translate'
if your last operation was to translate an object or a selection of
objects.
2.2) Changes
** New features of version 1.02 **
The user interface has been modified to fit in better with the rest
of ArtWorks: If you press Return, both offsets are read from their
fields in the info bar (as opposed to only the one in the field the
caret is in as it happened with version 1.01). Pressing any other key
(e.g. up/down arrow) no longer does this.
By popular demand Translate saves the currently used values in the
global ArtWorks !Choices file if you choose "Save choices" from the
ArtWorks info bar menu. These will then be taken as the default
values next time you load ArtWorks.
German messages added.
** New features of version 1.01 **
Version 1.00 of Translate was incompatible with the Precision Tool
(available from CC) because the latter is using some codes which are
in fact allocated to me. As it is improbable that there will be a fix
for the Precision Tool I have applied for some new codes and modified
all my modules to use these. So this module should now work as expected
even if you have got Precision.
3) Take part in creating new ArtWorks modules!
----------------------------------------------
If you have some spare time and you are wondering what to do with it:
What about writing a new ArtWorks module? You will need the ArtWorks
SDK first, which costs about £40, but it is worth the money. Lots of
documentation and most of the source code for the standard ArtWorks
modules.
This module took less than 2 days to write. So come on, try it yourself.
4) Contacting me:
-----------------
Martin Wuerthner
Jahnstrasse 18
71116 Gaertringen
Germany
Phone: +49-7034-928986
Fax: +49-7034-928915 (*new*)
e-mail: wuerthne@trick.informatik.uni-stuttgart.de
5) Copyright:
-------------
This ArtWorks module including all related files is Copyright 1997,
by Martin Würthner and is FREEWARE.
This means that you may copy it freely provided that
(a) all files of this application are distributed together without
modification
(b) this application is not sold for profit without my explicit written
permission
I retain the copyright on all files.