<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY appversion "2.19">
<!ENTITY manrevision "2.5">
<!ENTITY date "December 2005">
<!ENTITY app "GHex">
]>
<!-- 
      (Do not remove this comment block.)
  Maintained by the GNOME Documentation Project
  http://developer.gnome.org/projects/gdp
  Template version: 2.0 beta
  Template last modified Feb 12, 2002
  
-->
<!-- =============Document Header ============================= -->
<article id="index" lang="sl">
<!-- please do not change the id; for translations, change lang to -->
<!-- appropriate code -->
  <articleinfo> 
    <title>User manual for GHex</title>

    <abstract role="description">
      <para>
      GHex is a simple binary editor. It lets users view and edit a binary
      file in both hex and ascii with a multiple level undo/redo mechanism.
      Features include find and replace functions, conversion between binary,
      octal, decimal and hexadecimal values, and use of an alternative,
      user-configurable MDI concept that lets users edit multiple documents
      with multiple views of each.
      </para>
    </abstract>

    <copyright> 
      <year>2002</year> 
      <year>2003</year> 
      <year>2004</year> 
      <holder>Sun Microsystems</holder> 
    </copyright> 
    <copyright> 
      <year>1998-2000</year>	 
      <holder>Jaka Mocnik</holder> 
    </copyright>
	<!-- translators: uncomment this:
  	<copyright>
   	  <year>2002</year>
      <holder>ME-THE-TRANSLATOR (Latin translation)</holder>
  	</copyright>
   	-->

    <publisher role="maintainer">
      <publishername> GNOME Documentation Project </publishername> 
    </publisher> 

    <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="legal.xml"/>
    <!-- This file  contains link to license for the documentation (GNU FDL), and
        other legal stuff such as "NO WARRANTY" statement. Please do not change 
	any of this. -->

    <authorgroup> 
      <author> 
		<firstname>Sun</firstname> 
		<surname>GNOME Documentation Team</surname> 
		<affiliation> 
	  		<orgname>Sun Microsystems</orgname>
	  		<address/> 
		</affiliation> 
      </author> 
      <author> 
		<firstname>Jaka</firstname> 
		<surname>Mocnik</surname> 
		<affiliation> 
	  		<orgname>GNOME Documentation Project</orgname> 
	  		<address> <email>jaka@gnu.org</email> </address> 
		</affiliation> 
      </author> 
<!-- This is appropriate place for other contributors: translators,
      maintainers,  etc. Commented out by default.
      <othercredit role="translator">
		<firstname>Latin</firstname> 
		<surname>Translator 1</surname> 
		<affiliation> 
	 		<orgname>Latin Translation Team</orgname> 
	  		<address> <email>translator@gnome.org</email> </address> 
		</affiliation>
		<contrib>Latin translation</contrib>
      </othercredit>
-->
    </authorgroup>
 
    <revhistory>
      <revision> 
			<revnumber>GHex Manual V2.5</revnumber> 
			<date>December 2005</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V2.4</revnumber> 
			<date>April 2003</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.3</revnumber> 
			<date>August 2002</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.2</revnumber> 
			<date>August 2002</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision>
      <revision> 
			<revnumber>GHex Manual V2.1</revnumber> 
			<date>July 2002</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V2.0</revnumber> 
			<date>March 2002</date> 
			<revdescription> 
	  			<para role="author">Sun GNOME Documentation Team</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
      <revision> 
			<revnumber>GHex Manual V1.0</revnumber> 
			<date>2000</date> 
			<revdescription> 
	  			<para role="author">Jaka Mocnik
	    		<email>jaka@gnu.org</email>
	  			</para>
	  			<para role="publisher">GNOME Documentation Project</para>
			</revdescription> 
      </revision> 
    </revhistory> 

    <releaseinfo>This manual describes version 2.19 of GHex.
    </releaseinfo> 
    <legalnotice> 
      <title>Odziv</title> 
      <para>To report a bug or make a suggestion regarding the GHex application or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>. 
      </para>
<!-- Translators may also add here feedback address for translations -->
    </legalnotice> 
  </articleinfo> 

  <indexterm> 
    <primary>GHex</primary> 
  </indexterm> 


<!-- ============= Document Body ============================= -->

<!-- ============= Introduction ============================== -->

<sect1 id="ghex-intro">
<title>Uvod</title>
<para>The <application>GHex</application> application enables you to perform the following actions:</para>
<itemizedlist>
<listitem><para>View a file in ASCII or hexadecimal format simultaneously. </para>
</listitem>
<listitem><para>Edit a file in either ASCII or hexadecimal format.</para>
</listitem>
</itemizedlist>
</sect1>

<!-- ============= Getting Started ============================== -->

<sect1 id="ghex-getting-started">
<title>Getting Started</title>

<!-- ============= To Start GHex ============================== -->

<sect2 id="ghex-to-start">
<title>To Start GHex</title>

<para>You can start <application>GHex</application> in the following ways:</para>
<variablelist>
<varlistentry>
<term><guimenu>Applications</guimenu> menu</term>
<listitem>
<para>Choose <menuchoice><guisubmenu>Accessories</guisubmenu><guimenuitem>Hex Editor</guimenuitem></menuchoice>. </para>
</listitem>
</varlistentry>
<varlistentry>
<term>Command line</term>
<listitem>
<para>Execute the following command: <command>ghex</command></para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2 id="ghex-when-you-start">
<title>When You Start GHex</title>

<para>When you start <application>GHex</application>, the following window is displayed.</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-empty">
<title>GHex Window Before You Open a File</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_empty.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>Shows GHex main window before you open a file.</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

</sect2>


<!-- ============= To Open a file ============================== -->

<sect2 id="ghex-open-file">
<title>To Open a File</title>
<para>To open a file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Open</guimenuitem></menuchoice>. Select the file that you want to open, then click <guibutton>OK</guibutton>. You can open multiple files in <application>GHex</application>. <application>GHex</application> displays each file in a new window.</para>
<para>When you open a file in <application>GHex</application>, the application displays the file in the following window.</para>

<!-- ==== Figure ==== -->
<figure id="ghex-window-open">
<title>GHex Window with an Open File</title>
<screenshot>
 <mediaobject>
   <imageobject>
     <imagedata fileref="figures/ghex_window_open.png" format="PNG"/>
   </imageobject>
 <textobject>
   <phrase>Shows GHex main window with an open file</phrase>
 </textobject>
 </mediaobject>
</screenshot>
</figure>
<!-- ==== End of Figure ==== -->

<para>The <application>GHex</application> window contains the following elements: </para>
<variablelist>
<varlistentry>
<term>Menubar</term>
<listitem>
<para>The menus on the menubar contain all the commands that you need to work with files in <application>GHex</application>.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Cursor offsets column</term>
<listitem>
<para>The cursor offset is the distance between the beginning of the file and the first byte in each line. By default, <application>GHex</application> displays the cursor offsets column to the left of the hexadecimal view.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Display pane on left side</term>
<listitem>
<para>The display pane on the left side of the display area displays a hexadecimal view of the file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Display pane on right side</term>
<listitem>
<para>The display pane on the right side of the display area displays an ASCII view of the file.</para>
</listitem>
</varlistentry>
<varlistentry>
<term>Type conversion dialog</term>
<listitem>
<para>The type conversion dialog below the display area displays the value of the selected character in several different numeric types.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

<!-- ============= Usage ============================== -->

<sect1 id="ghex-usage">
<title>Usage</title>

<!-- ============= To Edit a File ============================== -->

<sect2 id="ghex-edit-file">
<title>To Edit a File</title>
<para>To edit a file, perform the following steps: </para>
<orderedlist>
<listitem><para>Click in the hexadecimal or ASCII view of the file. The view in which the cursor is active displays a full cursor. The view in which the cursor is not active displays an outline of the cursor. </para>
</listitem>
<listitem><para>Use any of the following methods to move the cursor around the file:</para>
<itemizedlist>
<listitem><para>Use the scrollbar on the window or the arrow keys on the keyboard to scroll through the file.</para>
</listitem>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Goto Byte</guimenuitem></menuchoice>, type the cursor offset as a decimal or hexadecimal value, then click <guibutton>OK</guibutton>. The format of the hexadecimal value must be 0x followed by the offset, for example 0x3.</para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Edit the ASCII format in the same way you edit a normal text file. To edit the hexadecimal format, use the values 0 to 9 and a to f.</para>
</listitem>
</orderedlist>
<para>To insert data and not overwrite existing data, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Insert Mode</guimenuitem></menuchoice>.</para>
<para>To cut, copy, and paste data, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Cut</guimenuitem></menuchoice>, <menuchoice><guimenu>Edit</guimenu><guimenuitem>Copy</guimenuitem></menuchoice>, and <menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem></menuchoice>.</para>
<para>To undo an edit, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Undo</guimenuitem></menuchoice>. To redo an edit, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Redo</guimenuitem></menuchoice>. The number of previous edits that you can undo is determined by the <guilabel>Maximum number of undo levels</guilabel> setting in the <xref linkend="ghex-prefs-editing"/> tabbed section of the <guilabel>Preferences</guilabel> dialog.  </para>
</sect2>

<!-- ============= To Save a File ============================== -->

<sect2 id="ghex-save-file">
<title>To Save a File</title>
<para>You can save a file in the following ways:</para>
<itemizedlist>
<listitem><para>To save changes to the current file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>To save the current file under a new filename, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save As</guimenuitem></menuchoice>. Enter a name for the file in the <guilabel>Select a file to save buffer as</guilabel> dialog, then click <guibutton>OK</guibutton>.</para>
</listitem>
</itemizedlist>
</sect2>

<!-- ============= To Revert a File ===================== -->

<sect2 id="ghex-revert">
<title>To Revert to the Last Saved Version of a File</title>
<para>To revert to the last version of the current file that you saved and undo all of the edits that you made to the file since you last saved the file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Revert</guimenuitem></menuchoice>, then click <guibutton>Yes</guibutton> in the <guilabel>Question</guilabel> dialog.</para>
</sect2>

<!-- ============= To Find Data in a File ============================== -->

<sect2 id="ghex-find-data">
<title>To Find Data in a File</title>
<para>To search a file for a hexadecimal or ASCII string, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>Search for hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Search for ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Type the string that you want to find.</para>
</listitem>
<listitem><para>Click <guibutton>Find Next</guibutton> to find the next occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Find Previous</guibutton> to find the previous occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Perform an Advanced Find ============================== -->

<sect2 id="ghex-find-data-adv">
<title>To Perform an Advanced Find</title>
<para>To perform an advanced find, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, select the required search criteria. For information about how to add new search criteria, see <xref linkend="ghex-search-criteria-add"/>.
</para>
</listitem>
<listitem><para>Click <guibutton>Find Next</guibutton> to find the next occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Find Previous</guibutton> to find the previous occurrence of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Close</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Add Search Criteria  ============================== -->

<sect2 id="ghex-search-criteria-add">
<title>To Add Search Criteria</title>
<para>To add search criteria, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, click <guibutton>Add New</guibutton>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data: Add Search</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>Search for hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Search for ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>Type the string that you want to find.</para>
</listitem>
<listitem><para>Use the color wheel or the spin boxes to select a color to highlight the search criteria.
</para>
</listitem>
<listitem><para>Click <guibutton>Add</guibutton>. </para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<sect2 id="ghex-search-criteria-remove">
<title>To Remove Search Criteria</title>
<para>To remove search criteria, perform the following steps: </para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Advanced Find</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find Data</guilabel> dialog, select the search criteria that you want to remove.  </para>
</listitem>
<listitem><para>Click <guibutton>Remove Selected</guibutton>.</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To Find and Replace Data in a File ====================== -->

<sect2 id="ghex-find-replace-data">
<title>To Find and Replace Data in a File</title>
<para>To search a file for a hexadecimal or ASCII string and then replace the string, perform the following steps:</para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Replace</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>In the <guilabel>Find &amp; Replace Data</guilabel> dialog, choose one of the following options:</para>
<itemizedlist>
<listitem><para><guilabel>Replace hex data</guilabel></para>
</listitem>
<listitem><para><guilabel>Replace ASCII data</guilabel></para>
</listitem>
</itemizedlist>
</listitem>
<listitem><para>In the first text box, type the string that you want to find. </para>
</listitem>
<listitem><para>In the second text box, type the string that you want to use to replace the string that you find.</para>
</listitem>
<listitem><para>Click <guibutton>Find Next</guibutton>.</para>
</listitem>
<listitem><para>Click <guibutton>Replace</guibutton> to replace the current occurrence of the string or click <guibutton>Replace All</guibutton> to replace all occurrences of the string.</para>
</listitem>
<listitem><para>Click <guibutton>Cancel</guibutton> to close the <guilabel>Find &amp; Replace Data</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ========== To Add or Remove Additional Views of a File ================ -->

<sect2 id="ghex-add-remove-views">
<title>To Add or Remove Additional Views of a File</title>
<para>To add another view of the current file to your <application>GHex</application> window, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Add View</guimenuitem></menuchoice>. </para>
<para>To remove a view of the current file, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Remove View</guimenuitem></menuchoice>. If you remove the last view that is open, the application exits.</para>
</sect2>

<!-- ========== To Change the Data Grouping ================ -->

<sect2 id="ghex-data-group">
<title>To Change the Data Group Type</title>
<para>To change how <application>GHex</application> displays the hexadecimal content of a file in the <application>GHex</application> window, choose <menuchoice><guimenu>View</guimenu><guimenuitem>Group Data As</guimenuitem></menuchoice>, then select one of the following menu items: </para>
<itemizedlist>
<listitem><para><guilabel>Bytes</guilabel> - single bytes</para>
</listitem>
<listitem><para><guilabel>Words</guilabel> - groups of two bytes</para>
</listitem>
<listitem><para><guilabel>Longwords</guilabel> - groups of four bytes</para>
</listitem>
</itemizedlist>
</sect2>

<!-- ============= To Export the GHex Display to HTML =================== -->

<sect2 id="ghex-export-to-html">
<title>To Export the GHex Display to HTML</title>
<para>To export the data contained in the <application>GHex</application> window to HTML, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Save As HTML</guimenuitem></menuchoice>. Choose a directory and specify a filename for the HTML file, then click <guibutton>OK</guibutton>. <application>GHex</application> implements the following actions: <itemizedlist>
<listitem><para>Creates a separate HTML file for each page of data that is displayed in the <application>GHex</application> window.</para>
</listitem>
<listitem><para>Uses the HTML filename that you specify as the basis for the filename. </para>
</listitem>
<listitem><para>Appends a page number to the filename to differentiate the files.</para>
</listitem>
</itemizedlist> For example, if you specify the filename <filename>log.html</filename>, <application>GHex</application> creates a series of HTML files named <filename>log00000000.html</filename>, <filename>log00000001.html</filename>, <filename>log00000002.html</filename>, and so on.</para>
</sect2>

<!-- ============= To View a Character Table ================ -->

<sect2 id="ghex-view-character-table">
<title>To View a Character Table</title>
<para>To view a table that contains the ASCII, hexadecimal, decimal, octal, and binary representations for the values 0 to 255, choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Character Table</guimenuitem></menuchoice>.</para>
</sect2>

<!-- ============= To View Data Conversions ===================== -->

<sect2 id="ghex-view-data-conversions">
<title>To View Data Conversions</title>
<para>To display the binary, decimal, hexadecimal, and ASCII conversions for up to four bytes of data, perform the following steps:</para>
<orderedlist>
<listitem><para>Choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Base Converter</guimenuitem></menuchoice>.</para>
</listitem>
<listitem><para>Perform one of the following actions:</para>
	<itemizedlist>
	<listitem><para>Type the data that you want to convert in one of the fields in the <guilabel>Base Converter</guilabel> dialog, then press <keycap>Return</keycap>.</para> 
	</listitem>
	<listitem><para>To display the conversions for the data at the cursor position in the current file, click on the <guibutton>Get cursor value</guibutton> button.</para>
	</listitem>
	</itemizedlist>
	<para><application>GHex</application> updates the values of the other fields to display the data conversions. </para>
</listitem>
<listitem><para>Click <guibutton>Close</guibutton> to close the <guilabel>Base Converter</guilabel> dialog.</para>
</listitem>
</orderedlist>
</sect2>

<!-- ============= To View the Type Conversion Dialog ================ -->

<sect2 id="ghex-view-type-conversion">
<title>To Show or Hide the Type Conversion Dialog</title>
<para>To show or hide the type conversion dialog, choose <menuchoice><guimenu>Windows</guimenu><guimenuitem>Type Conversion Dialog</guimenuitem></menuchoice>.</para>
<para>The type conversion dialog displays the value of the selected character in the following representations: </para>
<itemizedlist>
<listitem>
<para><guilabel>Signed 8 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 8 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Signed 16 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 16 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Signed 32 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Unsigned 32 bit</guilabel></para>
</listitem>
<listitem>
<para><guilabel>32 bit float</guilabel></para>
</listitem>
<listitem>
<para><guilabel>64 bit float</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Hexadecimal</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Octal</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Binary</guilabel></para>
</listitem>
<listitem>
<para><guilabel>Stream Length</guilabel></para>
</listitem>
</itemizedlist>
<para>The type conversion dialog also contains the following options: </para>
<variablelist>
<varlistentry>
<term><guilabel>Show little endian decoding</guilabel></term>
<listitem>
<para>Select this option to show little endian decoding.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Show unsigned and float as hexadecimal</guilabel></term>
<listitem>
<para>Select this option to show unsigned and float numbers as hexadecimal numbers.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= To Print a File ===================== -->

<sect2 id="ghex-print-file">
<title>To Print a File</title>
<para>To print a file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Print</guimenuitem></menuchoice>. Select the print options that you require in the <guilabel>Print</guilabel> dialog, then click <guibutton>OK</guibutton>. </para>
<para>To preview a printed copy of the file, choose <menuchoice><guimenu>File</guimenu><guimenuitem>Print Preview</guimenuitem></menuchoice>.</para>
</sect2>

</sect1>

<!-- ============= Customization ============================== -->

<sect1 id="ghex-prefs">
<title>Preferences</title>
<para>To configure <application>GHex</application>, choose <menuchoice><guimenu>Edit</guimenu><guimenuitem>Preferences</guimenuitem></menuchoice>. The <guilabel>Preferences</guilabel> dialog contains the following tabbed sections:</para>
<itemizedlist>
<listitem><para><xref linkend="ghex-prefs-editing"/></para>
</listitem>
<listitem><para><xref linkend="ghex-prefs-display"/></para>
</listitem>
<listitem><para><xref linkend="ghex-prefs-printing"/></para>
</listitem>
</itemizedlist>

<!-- ============= Editing Tabbed Section ============================== -->

<sect2 id="ghex-prefs-editing">
<title>Editing</title>
<variablelist>
<varlistentry>
<term><guilabel>Maximum number of undo levels</guilabel> </term>
<listitem>
<para>Use this spin box to specify the maximum number of edits that you can undo. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Show cursor offset in statusbar as</guilabel> </term>
<listitem>
<para>Use this drop-down list to select the format in which the cursor offset is displayed. The format can be decimal, hexadecimal, or a custom print style string that only contains the format specifiers x, o, and s. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Show offsets column</guilabel> </term>
<listitem>
<para>Select this option to display the cursor offsets in a column to the left of the hexadecimal view of the <application>GHex</application> window. </para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= Display Tabbed Section ======================== -->

<sect2 id="ghex-prefs-display">
<title>Display</title>
<variablelist>
<varlistentry>
<term><guilabel>Font</guilabel> </term>
<listitem>
<para>Use the font selector list boxes to edit the existing font information or type new font information. Specify a font type, style, and size to display the contents of files in <application>GHex</application>.  </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Default Group Type</guilabel> </term>
<listitem>
<para>Select one of the following options to specify how <application>GHex</application> displays the hexadecimal content of a file in the <application>GHex</application> window: </para>
<itemizedlist>
<listitem><para><guilabel>Bytes</guilabel> - single bytes</para>
</listitem>
<listitem><para><guilabel>Words</guilabel> - groups of two bytes</para>
</listitem>
<listitem><para><guilabel>Longwords</guilabel> - groups of four bytes</para>
</listitem>
</itemizedlist>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<!-- ============= Printing Tabbed Section ============================== -->

<sect2 id="ghex-prefs-printing">
<title>Printing</title>
<variablelist>
<varlistentry>
<term><guilabel>Data font</guilabel> </term>
<listitem>
<para>Click on the <guibutton>Data font</guibutton> button to specify the font type, style, and size to use to print the data contained in a file. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Header font</guilabel> </term>
<listitem>
<para>Click on the <guibutton>Header font</guibutton> button to specify the font type, style, and size to use to print the header information that is contained in the file. </para>
</listitem>
</varlistentry>
<varlistentry>
<term><guilabel>Print shaded box over</guilabel> </term>
<listitem>
<para>Use this spin box to specify the number of lines that <application>GHex</application> alternately prints with a surrounding shaded box. If the value of the spin box is 10, <application>GHex</application> prints the first 10 lines of the file without a shaded box, the next 10 lines with a shaded box, and so on. If the value of the spin box is 0, <application>GHex</application> does not print any shaded box.</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>

</article>
