Documentation:Windows Section 5

From POV-Wiki
Revision as of 17:46, 10 March 2009 by Jholsenback (talk | contribs) (1 revision(s))
Jump to navigation Jump to search

This document is protected, so submissions, corrections and discussions should be held on this documents talk page.


Menus

File Menu

The File Menu contains commands that, in general, relate to loading and saving files.

-

NOTE: In the interest of brevity, we will not explain 'obvious' file menu entries. We assume that all readers will understand 'Save', 'Save As', etc., as these are basic Windows knowledge issues.

New File

This creates a new file in a new window in the internal editor. The language type will be set to 'none', so unless you change this from the editor properties, syntax highlighting will not occur until you do a Save As.

Open File

This creates a new window in the internal editor and opens the specified file in it. POV-Ray will attempt to set the language type according to the extension. .POV and .INC files are assumed to be POV-Ray files and will have POV syntax highlighting. If you use a different file extension for POV source code, you can set the language type manually after you open it.

Note that POVWIN will not let you load more than one copy of the same file. If you attempt to load an already-loaded file, that file will be selected as the current file in the editor, but nothing else will happen.

Close

This closes the file open in the currently-selected internal editor.

Close All

This closes all files currently open in the internal editor.

Print

Provides a dialog that allows selection of printing options for the currently selected editor file (does not work with the message window). You can even choose two-up printing (that is, printing two pages on a single sheet of paper by splitting it down the middle). Note that the printing will not reflect any colored syntax highlighting in the editor; printing is always done in monochrome.

Exit

This option lets you exit POV-Ray for Windows. If you have Save Settings on Exit selected, your current POV-Ray for Windows settings will be saved for your next session.

If you shut down your computer without exiting POV-Ray for Windows first, POV-Ray will load itself again next time you log in as the same user. Note that we do not recommend shutting down your computer without saving any edited files first (this may seem obvious, but we have had at least one complaint from a user who did this ...). While the editor will attempt to do the right thing with unsaved files during a shutdown, to a great extent it is at the mercy of the operating system.

MRU List

The MRU (most recently used) file list holds up to nine (9) files. The Older Files menu (see above) holds up to 32 additional files. After a file scrolls off the bottom of the MRU list it goes into the top of the Older Files menu.

When you select a file from the MRU list, if it is already open in the editor, it is selected and moved to the top of the MRU list. Otherwise, it is opened and moved to the top of the list. The MRU list remembers several things about files, including the last line, column, and top line number, plus the tab, language, and indent settings. The comments in this paragraph also apply to the Older Files menu.

Older Files

After files have scrolled off the bottom of the MRU (Most Recently Used) list that appears at the bottom of the File Menu, they will appear in the Older Files menu. The MRU list holds up to nine (9) files, the Older Files menu holds up to 32 additional files. If there are no files in the Older Files menu (such as when POV-Ray is initially installed), it will be disabled.

Edit Menu

The Edit Menu contains commands relating to altering, cutting, copying, and pasting text. Note that there are actually two edit menus, though you only ever see one at a time. These are the edit menu that is displayed when the message window is selected, and the edit menu that is displayed when any of the editor windows are selected. The contents are different since the windows have different functions.

-

Note: The Message Window shortcut keys for Cut, Copy, etc. have been changed to the newer Ctrl-C, Ctrl-V style. The old shortcuts (Ctrl-Ins etc.) will still work, however, even though they're not shown in the menu.

The shortcut keys assigned when the Editor Windows are selected are set according to your preferences. See the "Configuring the Internal Editor" section for more information as to how to do this.

Copy Pane

This command lets you copy all the text currently displayed in the POV-Ray window to the clipboard. From there you can paste it into any text file for modification with a text editor or word processor. This can be particularly useful for bug reporting. Note: This command only appears if the currently selected window is the Messages window.

Clear Messages

Clears all messages in the Message Window. This command only appears if the currently selected window is the Messages window.

Undo

This command, and the remaining ones, only appear if the current window is an editor window.

The Undo command 'undoes' (reverses or remedies) the last change made to the text. Consecutive Undo operations can be used to revert to earlier and earlier text. The editor keeps seperate Undo and Redo histories for each open file.

Redo

Redoes the last change undone with Undo. Can only be used immediately following an Undo operation; editing the text will erase the Redo history. Consecutive Redo operations are possible if consecutive Undo operations were performed. The editor keeps seperate Undo and Redo histories for each open file.

Cut

Deletes the selected text and places it on the clipboard.

Copy

Places the selected text on the clipboard.

Paste

Inserts text from the clipboard, overwriting any selected text. If no text is selected, the pasted text is inserted at the current caret position, even if the editor is in overwrite mode.

Delete

Deletes the selected text.

Select All

Selects all text in the current window.

Selection

The Selection sub-menu contains commands which relate to operations on blocks of selected text. If there is no text selected in the editor, all of these commands will be disabled.

-

See Using the Mouse for a description of the various ways you can select text (including full line blocks, stream blocks, and column blocks).

Indent

Inserts a tab (or spaces, depending on your tab settings) at the beginning of the selection on each line. You must have multiple lines and/or a newline selected, or the selected text will be replaced by a tab instead.

Indent To Previous

Moves the caret to the position of the next text on the previous line.

Undent

Removes one level of indent from the beginning of the selected lines.

Uppercase

Converts all alphabetical characters in the selected text to uppercase.

Lowercase

Converts all alphabetical characters in the selected text to lowercase.

Convert Spaces To Tabs

Converts sequences of space characters to tabs. (Note: The tab size can be set under the Text menu.)

Convert Tabs To Spaces

Converts tabs to sequences of space characters. (Note: The editor does this automatically by default. This behavior can be turned off in the Language/Tabs section of the Editor Preferences.)

Search Menu

The Search Menu, which is only displayed when an edit pane is active, contains commands related to searching for and replacing text.

-

Find

Searches the file for the first occurance of a specific string of text and highlights/selects it.

-

Match Whole Word Only

If this option is checked, partial matches will not occur (for example, the search string 'Persist' will not find the word 'Persistence', whereas normally it would).

Match Case

If this option is checked, then the case of the search string and the searched-for text will be the same.

Wildcard Search

The search string allows the following wildcard characters if the "Wildcard Search" option is checked -

? Matches any single character
+ Matches one or more of the previous character or item (which may be a wildcard

or group), up to a maximum of the end of the line. For example, ?+ will match from the next character to the end of the line, and [0-9.]+ will match any number, with or without a decimal point.

* This operator works like '+' above, but matches zero or more rather than one or more.

Put another way, it makes the previous character or item optional.

[] Characters enclosed in square brackets will be treated as an inclusive set.

Character ranges may be specified with a '-' (e.g. [a-c] would match the characters 'a', 'b', or 'c').

| Subexpressions may be ORed together with the | pipe symbol.
() A wildcard expression may be enclosed within parentheses and will be treated as a unit.
Sequences such as \t, etc. will be substituted for an equivalent single character.

To represent a literal backslash, use two (e.g. \\).

Be aware that the wildcard search facility does have some bugs in it and may not always match correctly (e.g. [0-9A-Za-z] will match all alphanumerics, but [A-Za-z0-9] does not match numbers, even though it should).

Replace

Searches the file for any occurrences of a specific string of text and replaces them with a different string.

-

Users of other programmer's editors should note that there is no means of back-referencing wildcard groups from the search expression during a replace operation.

Find Next

Finds the next occurence of the string specified in the last Find operation.

Match Brace

Finds and highlights/selects the other brace for the block of code enclosed by the brace at the caret. For example, if you had the edit caret on a '{' character, it would be moved to the matching '}', taking into account the nesting of any '{}' blocks between them. Note that this also works in reverse.

Text Menu

The Text Menu contains options and operations that act on text which is displayed in the editor. It is only displayed when an editor pane is chosen.

-

Show White Space

Indicate where white space is using a dot. Note that this does not affect the file itself, just how it is shown on the screen.

Set Repeat Count

Most editor commands can be automatically repeated a specified number of times. By setting the repeat count, you cause the next editor command you issue to be repeated that number of times (this includes caret positioning using the keyboard).

Tab Size

The Tab size setting only applies to the current file and any subsequently opened files. Changing the tab spacing for one file does not automatically change it for all the other files that are already open. The tab setting you choose is stored with the MRU list, so if you re-open a file from the MRU, the old setting comes back (for that file only).

Note that the new value you apply to the tab setting becomes the default for any file opened or created after that point (apart from those in the MRU list). So if you change the tab setting to, say, 3, the setting for the current file changes, but not that of any other open file. Any new file that you create or load from that point, however, will be created with a default tab spacing of 3.

Indent

-

See the Selection Sub-Menu.

Auto-Indent Style

-


The Render Window None


This document is protected, so submissions, corrections and discussions should be held on this documents talk page.