home *** CD-ROM | disk | FTP | other *** search
-
- ΓòÉΓòÉΓòÉ 1. GFC ΓòÉΓòÉΓòÉ
-
- GFC is a graphical file comparison program. It compares two files on disk and
- notes lines that are common to both. A bar chart is drawn, giving an overall
- view of which lines match, and the text of either file, or a composite file, is
- displayed. The default view is the composite file. Standard clipboard functions
- can be used for simple editing of the composite file, which may be saved.
-
- GFC recognises UNIX-style files (i.e. files using just a newline character to
- mark the end of a line, rather than OS/2's carriage return - newline
- combination).
-
-
- ΓòÉΓòÉΓòÉ 2. Open Dialog ΓòÉΓòÉΓòÉ
-
- The Open dialog supplies lists of files and directories from which the source
- files can be selected. The full path of the file is made by concatenating the
- file name to the directory, so you can type subdirectories in the name field if
- you want. '..' means the parent directory. If the name of File B is null, the
- name from File A is used.
-
-
- ΓòÉΓòÉΓòÉ 3. Problem Message Box ΓòÉΓòÉΓòÉ
-
- The Problem message box informs the user of a problem in the program. This may
- or may not be fatal. The user is required to acknowledge the message; the
- program will take appropriate action.
-
-
- ΓòÉΓòÉΓòÉ 4. File Menu ΓòÉΓòÉΓòÉ
-
- The File menu contains the following items:
-
- Open
- Allows new source files to be opened.
- Save
- Allows the composite file to be saved.
- Refresh
- Re-opens the files currently being contrasted, so that the latest changes
- made to them are used. This will overwrite any changes made to the
- composite.
- Exit
- Closes GFC.
-
-
- ΓòÉΓòÉΓòÉ 5. Help Menu ΓòÉΓòÉΓòÉ
-
- The Help menu contains the following items:
-
- Help for help
- Explains the use of the help functions.
- Extended help
- Displays general help for GFC.
- Keys help
- Displays help on the keys that can be used in GFC.
- Help index
- Displays a list of selectable help topics.
- About
- Brief information about the application.
-
-
- ΓòÉΓòÉΓòÉ 6. Keys for GFC ΓòÉΓòÉΓòÉ
-
- GFC assigns the following special functions to keys:
-
- Alt+O
- Bring up the Open dialog.
- Alt+V
- Bring up the Save dialog.
- Alt+R
- Rebuild the composite view. This will overwrite any changes made to the
- composite.
- F3
- Exit the GFC program.
- Shift+Delete
- Cut all marked lines from the composite to the clipboard.
- Ctrl+Insert
- Copy all marked lines to the clipboard.
- Shift+Insert
- Paste lines from the clipboard after the current line.
- Alt+Delete
- Delete all marked lines from the composite view.
- Alt+M
- Mark all lines in the composite.
- Alt+W
- Unmark all lines in the composite.
- Alt+A
- Alt+B
- Display file A or B
- Alt+C
- Display the composite file
- Alt+L (toggle)
- Alt+T (toggle)
- Alt+I (toggle)
- Ignore leading, trailing, or all blanks for line comparison. Use the
- Options menu to see the current status.
- Alt+S (toggle)
- Ignore the case of letters when comparing.
- Alt+U (toggle)
- Display lines unique to either source file interleaved, as opposed to in
- blocks for each file.
- Alt+N (toggle)
- Show a line number at the start of each line.
- Alt+D
- Bring up the Define Colours dialog.
- Alt+F
- Bring up the Fonts dialog.
- Alt+T
- Bring up the Tab dialog.
- Arrow keys
- Scroll the displayed file by one character.
- Page Up
- Page Down
- Scroll the file by the height of the text window.
- Space bar
- Marks/unmarks the current line.
-
-
- ΓòÉΓòÉΓòÉ 7. View Menu ΓòÉΓòÉΓòÉ
-
- The View menu changes the text displayed. This can be either of the source
- files, or the composite file.
-
-
- ΓòÉΓòÉΓòÉ 8. Options Menu ΓòÉΓòÉΓòÉ
-
- The Options menu contains the following items:
-
- Ignore leading blanks
- Re-contrasts the files, with white space (i.e. spaces, tabs or nulls) at
- the beginning of lines ignored. Any indenting of programs will thus be
- irrelevant.
- Ignore trailing blanks
- Ignores white space at the end of lines. Some editors can be inconsistent
- about leaving this in files.
- Ignore all blanks
- Disregards all white space, wherever it is in the files. This is useful for
- comparing programs in free-format languages, especially if differing
- editors have been used.
- Case Sensitive
- If this option is in use, upper and lower case alphabetical characters are
- treated as different characters. If it is not in use, the case is ignored,
- i.e. 'A' is treated the same as 'a', 'B' as 'b', etc.
- Interleave unique lines
- Orders unmatching blocks in the composite file so that lines from files A
- and B alternate. If this option is off, unmatching blocks will displayed as
- whole blocks from file A or B.
-
- Altering any of the above options will overwrite any changes made to the
- composite.
- Display line numbers
- Shows the line number of each line. In the composite file, the numbers for
- matched lines are taken from file A. For lines that have been pasted into
- the composite (even if they originally came from GFC), a line number of 0
- is used.
- Define colours used
- Allows user definition of the colours used by GFC.
- Set font used
- Changes the font and style used for the text display.
- Set TAB equivalent
- Changes the number of spaces a TAB character is equivalent to during the
- contrasting process.
-
-
- ΓòÉΓòÉΓòÉ 9. Save Composite Dialog ΓòÉΓòÉΓòÉ
-
- The Save composite dialog allows the composite file to be saved, under whatever
- name you choose.
-
-
- ΓòÉΓòÉΓòÉ 10. Edit Menu ΓòÉΓòÉΓòÉ
-
- The Edit menu contains the following items:
-
- Cut
- Cut all marked lines from the composite, and put them in the OS/2
- clipboard.
- Copy
- Copy all marked lines to the OS/2 clipboard, while leaving them in the
- composite.
- Paste
- Paste lines from the OS/2 clipboard after the current line (indicated by
- the flashing cursor).
- Delete
- Delete all marked lines from the composite view.
- Alt+M
- Mark all lines in the composite.
- Alt+W
- Unmark all lines in the composite.
-
-
- ΓòÉΓòÉΓòÉ 11. Bar Chart ΓòÉΓòÉΓòÉ
-
- The bar chart is a graphical representation of the two source files. Blocks of
- common lines are assigned a colour different from those around them, and drawn
- on the bars representing the files; a line links the matched blocks. The
- matched colours in the bar chart are used as the text colour for the file
- display; the default text colour for unmatched lines is black (red or yellow on
- the chart). Black lines by the bar chart show which parts of the files are
- currently on display.
-
-
- ΓòÉΓòÉΓòÉ 12. Composite ΓòÉΓòÉΓòÉ
-
- The composite file is made from the two source files, using the common lines
- where possible.
-
- This is the default colour scheme:
-
- o Common lines have a white background.
-
- o Lines unique to File A are shown in black on yellow.
-
- o Lines unique to File B are shown in black on red.
-
- o When a block of lines in File B has been moved from where it was in File A,
- the program has to guess whether block 1 was moved up past block 2, or block
- 2 moved down past block 1. It shows the larger block as static, and the other
- as moved in each file. The text shown as moved is written in a matched text
- colour, on a yellow or red background. The bar chart shows the connections.
-
- o Lines pasted into the composite from the clipboard are shown in black on
- white.
-
- The actual colours used are set in the Define colours dialog.
-
-
- ΓòÉΓòÉΓòÉ 13. Colours ΓòÉΓòÉΓòÉ
-
- Default colours are:
-
- Text Background
-
- Yellow
- Lines unique to File A (or moved in File A) Used in bar chart and as text
- background.
- Red
- Lines unique to File B (or moved in File B) Used in bar chart and as text
- background.
- White
- Lines common to File A and File B, or lines pasted into the composite. Text
- background only.
-
- See Composite for how moved blocks are coloured.
-
- Text Foreground
-
- Blue
- Dark pink
- Dark green
- Dark cyan
- Text that has been matched in both files. The same colour is used for the
- identical text in each file; the choice of colour is such that surrounding
- blocks of matched lines use different ones. The same colour is used in the
- bar chart to show the lines.
- Black
- Unmatched text (including lines pasted in).
-
- The actual colours are defined by the user in the Define colours dialog.
-
-
- ΓòÉΓòÉΓòÉ 14. Colours dialog ΓòÉΓòÉΓòÉ
-
- The Colours dialog allows the colours used by GFC to be set to any of 16
- colours provided by Presentation Manager. Five text and three background
- colours need to be defined. They do not have to be all different, but the
- display may be confusing if they are not.
-
- The default button resets all the colours to the program-supplied settings.
-
-
- ΓòÉΓòÉΓòÉ 15. Font Dialog ΓòÉΓòÉΓòÉ
-
- The Font dialog allows any fixed-width font present on the system to be used to
- display the file. If there is no suitable font, the program will use the System
- Proportional font, but text alignment will suffer as a result. The numbers
- given after the font names are point sizes.
-
- The bold checkbox allows the font to be displayed in a different style.
-
-
- ΓòÉΓòÉΓòÉ 16. Set TAB equivalent Dialog ΓòÉΓòÉΓòÉ
-
- The Set TAB dialog allows the user to set the number of spaces to which a
- single TAB character in a file is equivalent, for the contrasting process.
-
-
- ΓòÉΓòÉΓòÉ 17. Line Marking ΓòÉΓòÉΓòÉ
-
- GFC marks individual lines of text. It cannot mark words or characters. Only
- the composite file can be marked; the original A and B files are never changed.
- A marked line is displayed in an italic font, and also indicated by an asterisk
- to the left of the vertical line in the text window. Marking may be done by:
-
- o Using the Space bar to toggle the state of the current line (shown by the
- flashing cursor).
-
- o Clicking on a line with the mouse to toggle its state.
-
- o Marking (or unmarking) several lines at once by dragging the mouse over them
- with the left-hand button held down. If the mouse button was pressed over an
- unmarked line, this will mark all the lines; if it was unmarked, this will
- remove all the marks. The window will scroll up or down if the pointer is
- taken outside the text window.
-
- o Using the Mark all and Unmark all menu options in the Edit menu (accelerator
- keys Alt+M and Alt+W). These mark or unmark all the lines of the composite,
- whatever their previous state.
-
-
- ΓòÉΓòÉΓòÉ 18. Overwriting the Composite ΓòÉΓòÉΓòÉ
-
- If the composite file has been changed, either by deleting or adding lines, and
- a menu option is selected which involves rebuilding the composite, a message
- box is displayed, allowing the user to halt the rebuild, and preserve the
- edited composite.