Ben Lamb
kde@zurgy.org
Working with &kivio; Opening a Document To open a previously saved document select FileOpen..., a standard &kde; file dialog box will appear. Recently used documents are listed under FileOpen Recent. Saving a Document To save the current document select FileSave or FileSave As... to give an existing file a different name. It is possible to save the document in a format that can be opened by earlier versions of &kivio;. Select the version you require from the Filter: combo box in the save file dialog. Printing The document can be printed by selecting FilePrint.... The standard &kde; printing dialog appears. A preview of the printed output can be obtained by selecting FilePrint Preview.... Importing/Exporting Documents The Import... menu option on the File menu currently loads a &kivio; or &XML; document into a new &kivio; application. The Export... menu option on the File menu currently perform the same functions as File Save As.... These options let you save a document under a different name or into an other format. Documents with Multiple Pages A &kivio; document can contain several pages of diagrams. Adding Pages To add additional pages to a document select PageInsert Page or click with the &RMB; on the page tab and select Insert Page from the context menu. The selector beneath the document view shows tabs for all the pages in the document that have not been hidden. Removing Pages Unwanted pages can be removed by selecting PageRemove Page or click with the &RMB; on the page tab and select Remove Page from the context menu. Renaming Pages The names given to each page can be adjusted by double-clicking on the page name on the page selector or by clicking with the &RMB; on the page tab and select Rename Page... from the context menu. A dialog box will appear allowing the name to be edited. Working with Pages The order of the pages can be adjusted by dragging the tabs on the page selector bar. The arrow buttons on the page selector bar are for scrolling through the page tabs, they do not cycle through the pages themselves. If you have a lot of pages in a document and you do not want to see them all on the page selector you can hide pages by selecting PageHide Page. This will remove the currently selected page from the page selector bar. To reveal a hidden page select PageShow Page... and choose the page you want to see from the list box. Exporting a Page Individual pages can be exported as bitmap graphics files. To export the current page select File Export... or File Save As.... A standard &kde; file dialog box appears. The export format is determined by the name extension you give the file, it must end with one of the extensions listed below. The following formats are supported: PNG Image (.png) JPEG Image (.jpg) BMP Image (.bmp) Encapsulated Postscript Image (.eps) Portable Bitmap (.pbm) PCX Image (.pcx) Portable Pixmap Image (.ppm) SGI Image (RGB) (.rgb) X PixMap Image (.xpm) JPEG 2000 Image (.jp2) Chalk Document (.kra) Adobe Illustrator Document (.ai) TIFF Image (.tiff) ILM EXR Image (.exr) Karbon14 Document (.karbon) GIMP Native Image Format (.xcf) Scalable Vector Graphics (.svg) &Windows; MetaFile (.wmf) You have to confirm the export, because this may result in some loss of formatting. Click the button Save and the Export to Image dialog is displayed. In this dialog you can set some export options: Page: range, the Area to export:, the Custom size (in pixels): and the Margin: of the page. The Grid &kivio; displays a regularly spaced grid over the document to aid stencil positioning. The visibility of the grid can be toggled by selecting ViewShow Grid. Objects edges are snapped to the nearest point on the grid regardless of whether it is visible. To toggle this behavior select ViewSnap Grid. To customize the grid select SettingsConfigure &kivio;... and click on the Grid on the icon list. This dialog box will let you adjust the color the grid is drawn in, the horizontal and vertical spacing and the snap distance. Tip: It is possible to have a non-square grid by specifying different horizontal and vertical spacings. Freestanding Text The text tool can be used to add text to a document that is not associated with any object. This is useful for noting general information about a drawing. To add freestanding text make sure no object is selected by selecting EditDeselect , then activate the text tool by selecting ToolsText Tool. The mouse pointer will change to indicate the text tool is activated. Drag a box to contain the text. A dialog box will appear prompting for the text, enter some text and click OK. The formatting of the text can be adjusted by selecting FormatText... or by using the toolbars. Page Layout The page size, margins and orientation, portrait or landscape, can be adjusted using the Page Size & Margins dialog box. This is accessible by selecting FormatPage Layout.... Using Guides Guides are lines used to help you position stencils. Not only can you use guides as a visual reference when aligning items but, optionally, &kivio; will snap stencils to guides. This means that as soon as the edge of a stencil is within a certain distance to a guide it will immediately move to the guide's position. Adding Guides To add a guide move the mouse pointer over either the horizontal or vertical ruler, depending on the type of guide you require. Hold down the &LMB; and drag the mouse over the document and release the mouse button where you want to position the guide. As you drag the mouse the guide will move accordingly. Or use ViewAdd Guide Line... to open a dialog to select the Orientation and the Position of the guide. Repositioning Guides Once a guide is in place you can reposition it by moving the mouse over it, holding down the &LMB; and dragging. Release the mouse button when the guide is in its new position. Visibility and Snapping To hide guides select ViewGuide Lines, this toggles the visibility. By default stencil edges are snapped to the nearest guide, to toggle this behavior select ViewSnap Grid. Layers &kivio; allows complex diagrams to be split into multiple layers. The visibility of layers can be turned on and off. This functionality is useful if you have a basic diagram, for example a floorplan, and need to create several versions of it for different audiences. The information for each audience can be placed in a different layer. Each page of the document has its own set of layers. The Layer Palette To adjust the current page's layers select ViewPalettesShow Layers . The layer palette allows layers to be created, deleted and renamed. It can also be used to adjust layer visibility, drawing order and select the current layer. &kivio; has the concept of the currently active layer which is the one affected by any editing actions. By default a page contains only one layer which is the active layer. Adding Layers Using the Layers palette you can add new layers by clicking the New Layer button, the first from the left. Layers can be deleted by clicking the second button, Remove Layer. &kivio; numbers the layers consecutively, to rename a layer select it in the list and click Rename Layer. Layer Settings Layers are drawn in the order they are listed. The drawing occurs from the top down so objects in the layer at the bottom of the list are drawn on top of objects in all the other layers. The order of the list can be changed by selecting a layer and using the Move Layer Up and Move Layer Down buttons to change its position. Each layer is listed with four small icons next to its name. From left to right they represent: Visibility (shown as a small eye) Clicking on the icon will toggle the layer's visibility. Printable (shown as a small printer) Toggles if the layer should be printed with the document or not. You might use a non-printing layer to keep notes to yourself, or as a scrapbook to hold images you're not ready to use yet. Editable (shown as a small pencil) Toggles if you can edit a layer or not. You might want to mark some layers non-editable while you work on others, to prevent inadvertant changes. Connectable (shown as a small connector) You can permit connecting of items that lie on different layers with this icon. Arranging Stencils The Align Tool The Align tool rearranges a group of stencils so that they are aligned on one edge or on an invisible centerline. To use the tool select several stencils, then select FormatAlign & Distribute.... If the stencils are arranged in a horizontal row you the choice of aligning along the top or bottom edges or the centerline. For stencils that are arranged in a vertical row the choice is left or right edge or the centerline. The Distribute Tool The Distribute tool arranges a group of stencils so that there is an even amount of spacing between each stencil. First select the stencils you want to rearrange, then select FormatAlign & Distribute... and click on the Distribute tab in the tabbed window that appears. You can choose whether the items should be spaced so that there is equal spacing between two edges, for example, the distance between the lefthand edge of each stencil should be the same. Or, whether the gap between each item should be identical. Choose the Spacing option if you desire this. The second choice is whether the spacing should use the entire extent of the page or just the extent of the selection. If the latter is chosen the stencils will not occupy any more space than they did originally. The option to use the extent of the page takes the page margins into consideration.