Difference between revisions of "Documentation:Windows Section 5"

From POV-Wiki
Jump to navigation Jump to search
m (Fixing/updating some index entries in windows docs)
m (added tag admonishment)
 
(19 intermediate revisions by 3 users not shown)
Line 12: Line 12:
 
===File Menu===
 
===File Menu===
 
{{#indexentry:Menus, File Menu}}
 
{{#indexentry:Menus, File Menu}}
 +
<!--BEGIN DO NOT alter or move--->
 +
{{#indexentry:File Menu}}
 +
<!--END DO NOT alter or move--->
 
<table class="centered" width="700x" cellpadding="0" cellspacing="10">
 
<table class="centered" width="700x" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
 
   <td>
 
   <td>
     [[Image:WinImgMenusFile.gif|center|200px<!--left--->]]
+
     [[Image:win-filemenu.png|center|223px<!--left--->]]
 
   </td>
 
   </td>
 
   <td>
 
   <td>
Line 42: Line 45:
 
<p>
 
<p>
 
This creates a new window in the internal editor and opens the specified file in it. POV-Ray  
 
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  
+
will attempt to set the language type according to the extension. .POV, .INC, .MAC and .MCR files are  
 
assumed to be POV-Ray files and will have POV syntax highlighting. If you use a different file  
 
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.
 
extension for POV source code, you can set the language type manually after you open it.
Line 54: Line 57:
  
 
====Close====
 
====Close====
{{#indexentry:Close File}}
 
 
 
<p>
 
<p>
 
This closes the file open in the currently-selected internal editor.
 
This closes the file open in the currently-selected internal editor.
Line 83: Line 84:
 
If you shut down your computer without exiting POV-Ray for Windows first, POV-Ray will load  
 
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
 
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
+
down your computer without saving any edited files first - while the editor will attempt to
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
 
do the right thing with unsaved files during a shutdown, to a great extent it is at the mercy
 
of the operating system.
 
of the operating system.
Line 100: Line 100:
 
and moved to the top of the MRU list. Otherwise, it is opened and moved to the top of the  
 
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  
 
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  
+
top line number, plus the language and indent settings. The comments in this paragraph  
 
also apply to the Older Files menu.
 
also apply to the Older Files menu.
 
</p>
 
</p>
  
====Older Files====
+
====Older Files sub-menu====
 
{{#indexentry:File Menu, Older Files}}
 
{{#indexentry:File Menu, Older Files}}
 +
{{#indexentry:Older Files Menu}}
 
<p>
 
<p>
 
After files have scrolled off the bottom of the MRU (Most Recently Used) list that appears at  
 
After files have scrolled off the bottom of the MRU (Most Recently Used) list that appears at  
Line 114: Line 115:
  
 
===Edit Menu===
 
===Edit Menu===
{{#indexentry:Edit Menu|Menus, Edit Menu}}
+
{{#indexentry:Edit Menu}}
 +
{{#indexentry:Menus, Edit Menu}}
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
 
   <td>
 
   <td>
     [[Image:WinImgMenusEdit.gif|center|176px<!--left--->]]
+
     [[Image:win-editmenu.png|center|214px<!--left--->]]
 
   </td>
 
   </td>
 
   <td>
 
   <td>
Line 203: Line 205:
 
</p>
 
</p>
  
====Selection====
+
====Selection sub-menu====
{{#indexentry:Edit Menu, Selection|Selection Menu}}
+
{{#indexentry:Edit Menu, Selection}}
<table class="centered" width="700x" cellpadding="0" cellspacing="10">
+
{{#indexentry:Selection Menu}}
 +
<p>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.</p>
 +
 
 +
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
 
   <td>
 
   <td>
    <p>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.</p>
+
     [[Image:win-selectionmenu.png|center|420px<!--centered--->]]
    <p>See <!--<linkto "Using the Mouse">Using the Mouse</linkto>--->[[Documentation:Windows Section 2.1#Using the Mouse|Using the Mouse]] for a description of the various ways you can select text (including full line blocks, stream blocks, and column blocks).</p>
 
  <td>
 
     [[Image:WinImgSubMenusSelection.gif|center|450px<!--right--->]]
 
 
   </td>
 
   </td>
 
</tr>
 
</tr>
 
<tr>
 
<tr>
  <td></td>
 
 
   <td>
 
   <td>
     <p class="caption">The Selection Sub-Menu</p>
+
     <p class="caption">The Selection sub-menu</p>
 
   </td>
 
   </td>
 
</tr>
 
</tr>
 
</table>
 
</table>
 +
 +
<p>See <!--<linkto "Using the Mouse">Using the Mouse</linkto>--->[[Documentation:Windows Section 2#Using the Mouse|Using the Mouse]] for a description of the various ways you can select text (including full line blocks, stream blocks, and column blocks).</p>
  
 
=====Indent=====
 
=====Indent=====
Line 263: Line 266:
  
 
===Search Menu===
 
===Search Menu===
{{#indexentry:Search Menu, Menus, Search Menu}}
+
{{#indexentry:Menus, Search Menu}}
 +
{{#indexentry:Search Menu}}
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
 
   <td>
 
   <td>
     [[Image:WinImgMenusSearch.gif|center|178px<!--left--->]]
+
     [[Image:win-searchmenu.png|center|230px<!--left--->]]
 
   </td>
 
   </td>
 
   <td>
 
   <td>
Line 281: Line 285:
 
</table>
 
</table>
  
====Find====
+
====Find dialog====
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<tr>
 
<tr>
 
   <td>
 
   <td>
     [[Image:WinImgDialogsFind.gif|center|362px<!--left--->]]
+
     [[Image:win-finddialog.png|center|372px<!--left--->]]
 
   </td>
 
   </td>
 
   <td>
 
   <td>
Line 368: Line 372:
 
<tr>
 
<tr>
 
   <td>
 
   <td>
     [[Image:WinImgDialogsFindreplace.gif|center|362px<!--left--->]]
+
     [[Image:win-replacedialog.png|center|372px<!--left--->]]
 
   </td>
 
   </td>
 
   <td>
 
   <td>
Line 394: Line 398:
 
also works in reverse.
 
also works in reverse.
 
</p>
 
</p>
 
===Text Menu===
 
{{#indexentry:Text Menu, Menus, Text Menu}}
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<tr>
 
  <td>
 
    [[Image:WinImgMenusText.gif|center|202px<!--left--->]]
 
  </td>
 
  <td>
 
    <p>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.</p>
 
  </td>
 
</tr>
 
<tr>
 
  <td>
 
    <p class="caption">The Text Menu</p>
 
  </td>
 
  <td></td>
 
</tr>
 
</table>
 
 
====Show White Space====
 
<p>
 
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.
 
</p>
 
 
====Set Repeat Count====
 
<p>
 
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).
 
</p>
 
 
====Tab Size====
 
<p>
 
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).
 
</p>
 
 
<p>
 
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.
 
</p>
 
 
====Indent====
 
{{#indexentry:Text Menu, Indent}}
 
<table class="centered" width="660x" cellpadding="0" cellspacing="10">
 
<tr>
 
  <td>
 
    [[Image:WinImgSubMenusIndent.gif|center|400px<!--left--->]]
 
  </td>
 
  <td>
 
    <p>See the <!--<linkto "Selection Menu">Selection Sub-Menu</linkto>--->[[Documentation:Windows Section 5#Selection|Selection Sub-Menu]].</p>
 
  </td>
 
</tr>
 
<tr>
 
  <td>
 
    <p class="caption">The Indent Sub-Menu</p>
 
  </td>
 
  <td></td>
 
</tr>
 
</table>
 
 
=====Auto-Indent Style=====
 
<table class="centered" width="400x" cellpadding="0" cellspacing="10">
 
<tr>
 
  <td>
 
    [[Image:WinImgSubMenusAutoindent.gif|center|380px<!--center--->]]
 
  </td>
 
</tr>
 
<tr>
 
  <td>
 
    <p class="caption">The Autoindent Sub-Menu</p>
 
  </td>
 
</tr>
 
</table>
 
 
<!--<wikinav>--->
 
<!--<wikinav>--->
 
<br>
 
<br>
Line 481: Line 404:
 
[[Documentation:Windows Section 4#The Render Window|The Render Window]]</td>
 
[[Documentation:Windows Section 4#The Render Window|The Render Window]]</td>
 
<td width=50% bgcolor=#EEEEEF align=right>
 
<td width=50% bgcolor=#EEEEEF align=right>
[[Documentation:Windows Section 5.1#None|None]]</td></tr>
+
[[Documentation:Windows Section 5.1#Text Menu|Text Menu]]</td></tr>
 
</table>
 
</table>
 
<!--</wikinav>--->
 
<!--</wikinav>--->

Latest revision as of 13:05, 16 December 2016

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


Menus

File Menu

win-filemenu.png

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.

The File Menu

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, .INC, .MAC and .MCR 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 - 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 language and indent settings. The comments in this paragraph also apply to the Older Files menu.

Older Files sub-menu

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

win-editmenu.png

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.

The Edit Menu

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 sub-menu

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.

win-selectionmenu.png

The Selection sub-menu

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

win-searchmenu.png

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

The Search Menu

Find dialog

win-finddialog.png

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

The Find Dialog

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: 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

win-replacedialog.png

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.

The Replace Dialog

Find Next

Finds the next occurrence 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.


The Render Window Text Menu


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