Copyright: © 1999 Alden Bates


Introduction

Y.I.K.E.S.

Introduction

YIKES stands for "Yes, I Kan Edit Stuff."  It was designed and built by Alden Bates.

I liked the Editor which came with DOS.  It was small and simple, you could edit text with it, and that was about it.  The Windows95 version let you edit 9 files at a time.  Having used this editor for a while, I realised that there were a few shortcomings it had (like the 9 file limit) and that it ought to be reasonably easy to write something that worked with the Windows GUI system instead of from inside a DOS window.

So I started with TurboPower's Orpheus controls library and started coding.  YIKES was the result.

YIKES can edit text files and (to some degree) raw binary files.  I have tried to keep it as close functionally to the DOS editor as possible, although in some cases this wasn't easy.

Credits

Main Program by Alden Bates.

Alden's Home Page is Tetrapyriarbus: http://tetrap.simplenet.com/

Orpheus controls by TurboPower: http://www.turbopower.com/

YIKES was built in Borland C++ Builder 3: http://www.borland.com/

Alpha/Beta testers: Jason Fraser, Nathan Roberts

The author should not be held responsible for loss of data resulting from use of this program.

Known Bugs

- On occasion when opening a large number of files, the buttons will

not organise themselves into lines properly.  Once a file is opened

or closed, they should reorganise.

When using some versions of WindowBlinds, the window position may not be restored

correctly when restarting YIKES.

Distribution

YIKES may be distributed free of charge only.  It may only be distributed in the original zip file complete with all files.  YIKES may not be distributed for profit unless you give me some.  So there.


Text Files

Editing Text Files under YIKES works in more or less the same way as the DOS Editor.

The following keys may be used:

·	Ctrl+Cursor Up, Ctrl+Cursor Down

Scroll the edit window and keep the text cursor in place.

·	Ctrl+Cursor Left, Ctrl+Cursor Right

Move to the start of the previous/next word

·	Ctrl+Y

Delete current line

·	Ctrl+V

Paste contents of clipboard at cursor position

·	Ctrl+C

Copy selected text to clipboard

·	Ctrl+X

Cut selected text to clipboard

·	F7, F8

Change to previous/next file.

If you select Statistics from the Tools, you'll get a count for the number of bytes, words and lines in the file.


Binary Files

Using YIKES you can view and edit binary files in the following manner:

The File is shown as Hex data:

The first block shows the file offset in hexidecimal.  Following this are 16 hex-pairs describing the line, followed by 16 characters displaying the raw data.  This view is read only; you may copy from it to the clipboard and search, etc, but no changes are possible.

To edit a line, press F5.  (This will fail if the file is read only)

The Hex edit box will pop up, allowing you to make changes to the Hex values for the current line.  Pressing the button with the double arrows will undo the changes made since this line was saved.  Pressing cursor up or down will take you to the previous or next line, saving the changes.  The check button will exit the hex edit window, saving the changes of the current line.

WARNING

Changes made in the Hex edit box are made directly to the file on disk and cannot be undone.  If Binary File backups are turned on, the file will automatically be backed up before changes are made.  The author should not be held responsible for loss of data resulting from use of this program.


File

·	New

·	Open

·	Open Binary

·	Reopen

Functions for opening files.  The Reopen menu is organised with previously open text files at the top and previously open binary files at the bottom.

·	Revert

Reloads the current file, losing all changes.  This is also handy for if the file has been changed by another program and the file needs refreshing in the viewer.

·	Save

·	Save As

·	Save All

Functions for saving the current or all files

·	Close

·	Close All

Functions for closing files.  If the files have been modified, these will prompt to ask if you want to save them before closing.

·	Print

·	Printer Setup

Functions for printing the current file to your default printer.

·	Exit

Bye bye!


Edit

·	Undo

·	Redo

Undo/redo last operation.

·	Cut

·	Copy

·	Paste

·	Clear

Standard Windows clipboard functions.

·	Select all

Selects all the text in the file.


Search

·	Find

Allows entry of a search string.  The user may search all open files if so desired.

·	Repeat Last Find

Repeats the last search or replace operation.

·	Replace

Replaces a search string with alternate text.

·	Goto Line

Pops up an input box then jumps to the line number entered.


View

·	Split/Unsplit Window

Splits the window into two independant panes. (or unsplits it)

·	Font

Allows changing the font used in all file windows.

·	[File Name]

Switches to edit/view the file

·	Windows List

Brings up a dialog showing a list of open files.  Selecting a filename switches to that file.


Tools

·	Statistics

For text files displays the number of bytes, words and lines

For binary files displays the number of byte

·	HexEdit

In non-readonly binary files brings up the hex edit window to allow editing of the data.


Options

·	Settings

Displays the Settings Dialog.

·	Colours

Displays the Colours Dialog.

·	Word Wrap

Turns on word wrap (wraps to window width) for all text files

·	Hex Mask

In all binary files, raw data which consists of non-alpha-numeric or punctuation is displayed as a period


Help

·	Contents

Brings up this help file

·	About

Displays the application about box


Settings

·	Tab Size

Controls the size of the space created by tabs

·	Tool Bar

If this is turned off, the tool bar (the buttons directly below the menu) is removed.  The checkboxes in the box below control the presense of the sets of buttons in this bar

·	Backup Text Files

If this is turned on, all text files are backed up when saved.  They are backed up with the first letter of the extension being '~'. (EG text.txt will be backed up to text.~tx)

·	Backup Bin Files

The first time (and only if a backup file does not already exist) the binary file is edited, it is backed up with the extension "BAK". (EG "bin.dat" is backed up to "bin.bak")

·	AutoIndent

If you press enter at the end of an indented line in a text file, the new line will automatically be indented the same amount.  If this is turned off, the new line will start in the first column.

·	Real Tabs

If this is turned off, pressing the tab key will insert spaces (0x20) otherwise pressing the tab key will insert a tab character (0x09)  This does not affect existing tabs.

·	File Bar

Turns on/off the bar showing the file buttons.

·	Flat File Buttons

If this is turned on, all file buttons are "flat" instead of the regular sticky-outy ones.

·	Alternate Icons

Changes the file status "lights" to be black shapes to make them easier to see/read.

·	Status Fonts Match

If this is turned on, the file bar and status bar use the same font as is set for the edit windows.  If this is turned off, the two bars use the same font as the file buttons.


Colours

The Colour Dialog allows the User to set the colours for the different aspects of the YIKES window.

·	Normal Text

Regular text shown in the file viewer window

·	Selected Text

Text in the file window which has been selected

·	Filename Bar

The bar immediately above the file window which shows the filename

·	Status Bar

The bar at the bottom which shows messages and current file position

When one of these items is selected, the user can select the foreground and background of the item using the left and right mouse buttons respectively on the colour pad.  "DefFG" and "DefBG" represent the colours as set in the Windows Control Panel and will change depending on overall system settings.

The Default button sets all colours to the default grey on blue, with black on grey bars.

The System button sets all colours to use the Windows default colours as set in the Control Panel.