Functions in menu and toolbars

Following functions are called from menu and toolbars and provide user friendly enviroment for simple editing.

Modes in this section can be used to select objects on the displayed page. All modes support move and resize of selected objects, but the real functionality depends on implemented scripts, which perform real action with selected objects (e.g. moving nongraphical operators (text, pictures) and moving annotation activation rectangle, but moving graphical operators (line, rectangle, ...) is not implemented).

When moving selected objects cursor must be in the selected region (cursor pointer will change to cross from arrows pointer). After pressing the mouse left button selection region can be moved. After releasing mouse left button script moving function is executed on the selected operators.

When resizing objects cursor must be moved to the edge of bounding rectangle of selected region (cursor will change to two arrow oriented from each other direction - there are four possibilities how to resize: left-right, top-bottom, (left-top)-(right-bottom) and (left-bottom)-(right-top)). After pressing the left mouse button selected region is resized by cursor movement. Script function for resizing is executed when mouse left button is released.

When cancelling started action press Esc key before releasing left mouse button. If Esc key is pressed during no action all objects on the page are unselected.

This mode is usefull when selecting page objects (without annotations - see mode to select annotations) which are not text (see mode to select text) or graphical (see mode to select graphical operators) operator (line, rectangle, but not image).

When this mode is activated,nonempty areas can be selected pressing the mouse left button, dragging the mouse and releasing left button. All objects within selected area will be selected.

When clicked only once, the one top level object on the page is seleceted. If clicked again the second top most object is selected etc. User doesn't need to know the size of desired object.

This mode is very usefull when because only few objects have the same size Object tree and property editor.

To activate this selection mode just click on appropriate place in the toolbar toolbar Selection modes) or select it in menu (see menu item Edit).

Drawing lines is easy with this mode. First set default properties in the toolbar: foreground color, line width and dash style. Then by pressing the mouse left button and dragging a line is created. After releasing mouse button the line is drawn. The line drawn during dragging is only informative. The viewed part of the page is updated after each added line.

To cancel line drawing press Esc key before releasing the mouse button.

Drawing rectangles and rectangles with background is easy with this mode. First set default properties in the toolbar: background color. Then by pressing the mouse left button and dragging a new rectangle is crated. After releasing mouse button the rectangle is drawn. The rectangle drawn during dragging is only informative. The viewed part of the page is updated after each added line.

To cancel rectangle drawing press Esc key before releasing the mouse button.

This mode enables adding text lines onto the page. First set some default properties on the toolbar like foreground color, font and font size. Then by clicking mouse left button on page an edit box is shown where the added text is written. After pressing Enter the text will be displayed on the page. The viewed part of the page is updated after text addition.

The text is added to the page also if the text edit line losts focus (this can be unpleasant for window managers that set focus to windows under the mouse cursor). To cancel text addition press Esc key.

Note: When pages are rotated the text can appear unrotated. This is because the text uses own transformation matrix than the whole page.

You can easily strike through words, lines with this mode.

Selecting of text is the same as by mode to select text. After endind the selection scipt function is called which draws a line through selected text default colour, dash style and line width (for more details see mode to drawing line).

Highlighting of text is a very desired feature. This mode can highlight selected text.

After activating this mode user can select text the same way as by mode to select text. After ending the selection script function is called which draws filled rectangle under each text operator with default background colour (for more details see mode to drawing rectangles).