photon_user_guide
photon_user_guide
User’s Guide
Publishing history
November 1995 First edition
December 1996 Second edition
April 1998 Third edition
QNX and Photon microGUI are registered trademarks, and Jump Gate Connectivity, Phindows, PhinX and Ditto are trademarks, of QNX Software Systems in
certain jurisdictions. All other trademarks and registered trademarks belong to their respective owners.
Contents
1 Welcome to Photon 1
What is Photon? 3
Why is it called “Photon”? 3
Why is it called a “microGUI”? 3
What should I do first? 3
2 Getting Started 7
How to start Photon 9
If Photon has just been installed... 9
A typical workspace 10
Using the mouse 12
For a two-button mouse 12
For a three-button mouse 12
Pointers 13
4 Getting Help 37
Using a help button 39
Using pterm help 39
Using the Helpviewer 40
Title bar 41
Helpviewer tabs 42
Divider bar 47
Helpviewer buttons 48
Using the Helpviewer to display other HTML files 49
5 File Manager 51
What is the File Manager? 53
Starting the File Manager 53
The File Manager at a glance 53
Managing folders with the Hotlist 57
Adding a folder 57
Sorting the Hotlist 57
Removing folders 57
Opening a folder 58
Using the Hotlist 58
Using the File list 59
Using the keyboard 59
Finding a file quickly 59
Selecting files 60
Using the mouse and keyboard 60
Using the keyboard 61
Using a menu 62
Deselecting files 62
Creating folders and files 63
Folders 63
Files 64
Viewing or editing files 65
Copying and moving files 65
7 DayMinder 97
What is DayMinder? 99
Starting DayMinder 99
DayMinder at a glance 100
Customizing DayMinder 102
Resizing windows 102
Customizing application preferences 102
Types of scheduled activities 102
Adding appointments 103
Glossary 153
Index 163
Typographical conventions
Throughout this manual, we use certain typographical conventions to
distinguish technical terms. In general, the conventions we use
conform to those found in IEEE POSIX publications. The following
table summarizes our conventions:
Reference Example
Code examples if( stream == NULL )
Command options -lR
Commands make
Environment variables PATH
File and pathnames /dev/null
Function names exit()
Keyboard chords Ctrl – Alt – Delete
Keyboard input something you type
Keyboard keys Enter
Program output login:
Programming constants NULL
Programming data types unsigned short
Programming literals 0xFF, "message string"
Variable names stdin
User-interface components Cancel
We use an arrow (→) in directions for accessing menu items, like this:
!
CAUTION: Cautions tell you about commands or procedures that
may have unwanted or undesirable side effects.
☞ If you have Photon 1.13, your online docs and this printed edition are
in sync. If you have Photon 1.12, your online docs may more
accurately reflect your software than this printed edition.
This new printed edition includes the following item that isn’t in your
1.12 software:
The Helpviewer has two new text fields in the Options pane that
allow you to set the home page and the root path. See “Using the
Helpviewer” in the Getting Help chapter.
Keyboard input
Keys you press look like this:
Enter
Keychords (i.e. keys you press all at once) look like this:
Alt – Enter
Text that you type looks like this:
something you type
Single-step instructions
Single-step instructions are formatted like this:
!
CAUTION: Cautions tell you about commands or procedures that
may have unwanted or undesirable side effects.
In this chapter. . .
What is Photon? 3
What should I do first? 3
What is Photon?
Photon is a graphical user interface (GUI) environment for the QNX
realtime operating system and QNX-based applications. As a GUI,
Photon provides a flexible, easy-to-use environment for you to
interact with your computer.
If you’ve used windowing systems before, Photon’s “look and feel”
will seem quite natural to you. And even if you’ve never used another
windowing system, you’ll find Photon’s simple, intuitive interface
easy to learn and use.
After you’ve read the Getting Started chapter, you should familiarize
yourself with the Photon workspace. Try loading one of the games or
demos, if they’re available on your system. Better yet, check out the
Helpviewer (if you’re reading this online, you’ve obviously already
done that!).
Depending on how your system is set up, you can change the default
settings of your workspace to suit your needs. See the Customizing
Photon chapter.
Once you’ve become comfortable using Photon on one machine, you
may then want to branch out and explore Photon connectivity with the
Message Pad or Jump Gate facilities. See the Using Photon on a
Network chapter.
The following table may help you find your way around this guide:
continued. . .
In this chapter. . .
How to start Photon 9
A typical workspace 10
Using the mouse 12
Pointers 13
Anatomy of a Photon window 14
Using the Window Menu 15
Using the Taskbar 16
Keyboard shortcuts 18
Using the clipboard 20
How to exit Photon 23
Display Driver
Resolut ion & Color Dept h Driv er Accel DPMS Ref resh
1280x 1024
1024x 768
16- Bit High Color/64K rage Yes Yes Hard Low
15- Bit High Color/32K rage Yes Yes Hard Low
8- Bit 256 Color rage Yes Yes Hard Low
800x 600
640x 480
640x 400
Display Settings
highest resolution and color depth that your hardware supports. For
detailed instructions, see “Changing the graphics resolution and color
depth” in the Customizing Photon chapter.
A typical workspace
After Photon has started, it displays a workspace, an area in which
you can run applications and display windows. Here’s a typical
Photon workspace, with some sample applications:
Desktop
Manager
Taskbar
Photon actually works with a much larger area than your screen; your
desktop consists of nine workspaces or consoles. This is somewhat
like your physical desk — the entire desktop is usually bigger than the
area you’re currently using.
Near the bottom of the screen you see the Photon Desktop Manager
(PDM), a convenient tool for launching applications, navigating
around the Photon desktop, and more. For more info on using this
tool, see the chapter on the Photon Desktop Manager.
At the very bottom of the screen, you see the Taskbar, which shows
you at a glance all the applications running on your entire desktop and
lets you quickly switch from one application to another. To learn how
to use the Taskbar, see “Using the Taskbar” in this chapter.
Pointers
As you move the mouse, the pointer sometimes changes to give you
feedback on your actions. Here are the pointers you’ll see most often:
Window
menu
button
Frame
Resize
corner
Frame — changes color to indicate the focus window (i.e. the one
that’s ready for input) on your workspace. The frame is also the
area you grab when you want to resize the window.
Title bar — shows the name of the application. The title bar is also
where you position the pointer in order to move the window.
Or
Move your pointer onto the application’s button in the Taskbar and
click the right mouse button.
Move the window — the window will track your pointer until you
click.
Size the window — as you move your pointer outside the frame,
an outline will track your pointer until you click.
Send the window To Back — pushes the window behind any other
windows that are open on the workspace.
Close the window — closes the application. You can also close the
window by double-clicking on the Window menu button.
!
CAUTION: Selecting the Close item may immediately terminate the
application running in that window without prompting you to confirm.
Always remember to save your work before you click on Close!
As you run more and more applications, the Taskbar fills up. When
there’s no more room for a button, all the buttons get smaller, down to
a set minimum width. Then they start on another row, which is
hidden. To see the other row:
1 Point at the top of the Taskbar. There’s a 2-pixel gap on the top
where your pointer will change into a resize pointer.
Set Time
AM
01 03 00
PM
RTC hh : mm : 00
The time is separated into three fields: hours, minutes, and seconds.
To change the time:
The RTC option sets the clock chip. This option may be disabled on
your system. The hh:mm:00 button sets the seconds field to 00.
Keyboard shortcuts
The following tables summarize the keyboard shortcuts you can use
for:
Workspace operations
Window operations
CUA operations
☞ If the Alt keychords listed below don’t work, it may be because some
character-based applications need to receive Alt key presses. To run
such an application successfully, you need to configure its pterm
window to pass the Alt to the application. See “Configuring pterm” in
the Terminal Window chapter.
To use the following keychords after doing this, press Ctrl – Alt
instead of just Alt.
Workspace operations
Window operations
All of these commands affect the focus window:
continued. . .
CUA operations
Common User Access (CUA) is a standard that defines how a user
can change the keyboard focus within a window.
Here are two of the more common CUA keys:
To go to the: Press:
Next button or text field Tab
Previous button or text field Shift – Tab
You can use either the mouse or keyboard to cut, copy, and paste to
and from the clipboard.
Operations in a pterm
continued. . .
☞ You can also press the right mouse button that invokes the pterm
menu containing the copy and paste options. For more information,
see “Using the pterm menu” in the Terminal Window chapter.
See the pterm utility in the Photon Installation & Configuration
guide for a the complete list of pterm-specific keychords.
!
CAUTION:
Exiting Photon will close all the windows, terminating the
applications running in them without prompting you to confirm. If
this is a problem, you should exit your applications one at a time
before exiting Photon.
☞ The shutdown dialog doesn’t appear when you use this keychord.
In this chapter. . .
The Desktop Manager at a glance 27
Button bar 28
Extended Workspace View 29
Console Selector 30
World View 31
How to know where you are 31
Moving around your entire desktop 32
Group folders 33
Scroll arrows and Mail indicator 36
launch applications
Button bar
At the left of the Desktop Manager, you’ll see a button bar:
Desktop Manager menu
Configuration tool
Desktop Manager Help
2 Enter the name of the command in the text field. For example,
to run the Photon Image Viewer, you could type the following
in the Command Line field:
pv myfile.gif
☞ For information on using pv (or any other Photon utility), see the
Photon Installation & Configuration guide.
Configuration tool
The Configuration tool lets you set up the Desktop Manager the way
you want. You can specify the applications you want to load for
quick-launching, the icons you want to appear, and how they’re
grouped. You can also use this tool to select the backdrop and screen
saver for your workspace.
Photon File
ttyp0: Manager
ksh
Helpv iewer 1.10
Console Selector
The Console Selector represents the nine consoles that make up your
desktop. It indicates:
World View
This is like a map showing you all nine consoles at once:
World View
n Scree
ttyp1: ksh
oom C
ttyp0: ksh
If you move or resize the World View, the Desktop Manager will
remember your changes.
Group folders
Your Desktop Manager may include folders containing icons for
quick-launching applications, demos, games, and development tools.
These folders allow you to group your quick-launch icons; the name
of each group appears on the folder’s tab.
Applications folder
Your Applications folder may contain the following:
Utilities folder
This may contain several tools, including:
Jump
Other tools in the Utilities folder may include diagnostic tools such as
vsin and phsac.
☞ If you have the Photon Toolkit, source code is available for many of
the demos and games.
Group scroll arrows — these appear if you have more Group folder
tabs than can fit in the viewing area. To see the hidden tabs, simply
click on the right arrow. To scroll back to where you were, click on
the left arrow.
In this chapter. . .
Using a help button 39
Using pterm help 39
Using the Helpviewer 40
☞ Photon also gives you help in the form of text labels (called
“balloons”) that may appear when your pointer pauses over a button
or icon.
Pressing the right mouse button to bring up the pterm menu and
selecting the Search help option.
Or
The Helpviewer starts, then searches the table of contents for any
topics that contain the selected text. The first matching topic is
automatically displayed.
You can also simply type something in a pterm window and then
press Ctrl – Alt – H.
Title bar
The Title bar shows you the name of the section you’re in. It also
shows you the name of the HTML file for each hot link you move
your pointer over.
If you move the pointer over the title bar, the Helpviewer will display
the filename of the currently displayed HTML file. To enter a new file
name for the Helpviewer to display:
2 Give the title bar focus by pressing the left mouse button.
4 Press Enter.
If you move the pointer over the entries in the Contents or Search
pane, then the Helpviewer will display the full topic path of the entry
in the title bar.
If you move the pointer over the entries in the History or Bookmarks
pane, then the Helpviewer will display the hypertext link of the entry
in the title bar.
Helpviewer tabs
The Section pane displays information based on the Helpviewer tab
selected:
Contents pane
The Contents pane displays the current table of contents or topic tree.
Each entry in the table of contents is a topic with an associated
HTML page and may contain subtopics. The last selected topic is
highlighted.
To close a topic,
click here
As you move the pointer over a topic, the Helpviewer will display the
topic title in a balloon. The full topic path is also displayed in the title
bar.
To synchronize the topic tree with the currently displayed page, click
on the Where? button. The Helpviewer will open the topic tree to the
matching topic (if it doesn’t, then it can’t find a matching topic, which
means you’re probably looking at help files not included in the current
topic tree).
Search pane
The search pane lets you search the topic tree or the current page for
matching text. Before searching, you should select the appropriate
mode, scope, and method of the search. These options are presented
in comboboxes, which display a list of choices when you press on the
button on their right sides.
Select mode:
Search topic text
Select scope:
Search selected topic
Select method:
Search for substring match
Enter string:
Search
Select section:
The mode combobox lets you select whether to search the topic titles,
the topic text, or the current page. If you search the topic titles or text,
then the titles of matching topics are displayed in the search pane.
Selecting one of these topics will cause the topic text to be displayed.
If you search the current page, then matching text is highlighted and
the Helpviewer will move to the first line containing a match.
The scope combobox lets you select whether to search all the topics in
the table of contents, or just the currently selected topic and all its
subtopics. Narrowing the scope can significantly increase the speed of
a search.
The method combobox lets you select whether to search for an exact
match (case sensitive — only exact characters will match), a word
match (case insensitive — only punctuation-separated words will
match) or substring match (case insensitive — only substrings in a
word will match).
To start a search, enter the search text and either press Enter or click
on the Search button. You can’t view other topics while the
Helpviewer is busy searching. A search can be terminated at any time
by clicking on the Search button again (which is labeled Stop during
the search).
The Helpviewer will progressively display the titles of matching
topics in the search pane. After the search ends, the Helpviewer will
automatically display the text of the first matching topic. If you move
the pointer over the topic titles, the Helpviewer will display the full
topic path in the title bar. Click on the topic title to display the topic.
History pane
The History pane displays the titles of the 50 most recent pages
displayed. If you move the pointer over the history titles, the
Helpviewer will display the Hypertext link of the page in the title bar.
Click on the title to display a page.
The history is saved in the ˜/.photon/helpviewer/history file
and is reloaded every time you start the Helpviewer.
Bookmarks pane
The Bookmarks pane displays the titles of pages you have
bookmarked. If you move the pointer over the bookmark titles, the
Helpviewer will display the Hypertext link of the page in the title bar.
Click on the title to display a page.
You can bookmark the current page by clicking on the bookmark
button in the button bar:
Print pane
The Helpviewer uses the Photon printing mechanism to allow printing
to a variety of printers. The Helpviewer allows the current page to be
printed or saved to a file. Before printing, you should have installed
and selected a default printer.
To configure the properties of the printer, click Select to bring up the
printer selection dialog, and then click Properties.
To print the page, click the Print button in the Print pane or the printer
icon on the button bar.
Options pane
The Options pane lets you set various display options, including the
font type and font size:
Select font ty pe:
Helvetica
Select font size:
12
Enter home page:
/usr/help/product/photon/book
Enter home page — enter the page that you want displayed as the
home page. The home page is the first page the Helpviewer will
display.
Set current page — sets the current page to be the home page.
Enter root topic — enter the topic path that you want to use as a
starting point for locating help topics.
/usr/photon/bin/helpviewer /usr/help/product/photon/bookset.html
Divider bar
The divider bar between the left and right panes of the Helpviewer
can be moved to change the relative sizes of the panes. To do this,
move the pointer over the divider until a resize pointer appears. Then
press and hold down the left mouse button and drag the divider to the
required position:
Helpviewer buttons
The Helpviewer contains these navigational and control buttons:
Print Page Next Bookmark Maximize Text View
Home button — takes you home, i.e. the place where you started
reading in your current Helpviewer session.
Next button — brings you to the section (or chapter or book) that
follows the one you’re in now.
Bookmark button — lets you mark your current “page”; the page
is then added to the list of bookmarks.
Maximize Text View button — lets you hide the left pane of the
Helpviewer for a larger text-viewing area.
Now that you know what the Helpviewer looks like and what its main
parts are used for, you should try using it — if you haven’t done so
already. Thanks to the Helpviewer’s intuitive interface, it’s easy to get
started right away.
1 Select the Run... menu item from the Desktop Manager menu.
☞ You won’t be able to use the Contents pane for HTML files that aren’t
part of the online documentation set.
In this chapter. . .
What is the File Manager? 53
Starting the File Manager 53
The File Manager at a glance 53
Managing folders with the Hotlist 57
Opening a folder 58
Finding a file quickly 59
Selecting files 60
Creating folders and files 63
Viewing or editing files 65
Copying and moving files 65
Deleting files or folders 66
Changing file properties 67
Opening and closing a terminal window 68
Running a command 69
Starting an application from its data files 70
Printing files 70
Changing how files are displayed 71
Controlling which files are displayed 74
Configuring the File Manager 75
Or
If the File Manager is running but hidden, you can find it by clicking
on the File Manager icon in the Taskbar:
Here’s what the main parts of the File Manager enable you to do:
Button bar Lets you quickly create files, run commands, return to
your home folder, update your Hotlist, and more:
Hotlist Lets you keep track of the folders you use most
often and provides quick access to them.
The Hotlist shows only the folders that you’ve added to it, not a
☞ hierarchy of all the directories on your system.
Current path Shows you the pathname of the current folder (in
this case, //222/bedrock/fred).
File list Shows you the contents of the current folder, and
lets you select files for copying, moving, editing,
and so on.
The file icons let you identify the file type:
folder (directory)
data file
program (executable)
link to a folder
link to a data file
link to a program
Popup menus Both the Hotlist and the File list have their own
popup menus. To open them:
Status bar Shows you how many items the current folder
contains or how many files you’ve selected. It also
shows how much disk space is free.
Adding a folder
To add a folder to the Hotlist:
1 Open the folder you want to add to the Hotlist (see “Opening a
folder” below).
Or
Point anywhere in the Hotlist, click the right mouse button, and
choose Add Current to Hotlist.
Removing folders
To remove a folder from the Hotlist:
➤ Click the right mouse button on the folder you want to remove,
then choose Remove Folder from Hotlist.
The folder is removed from the Hotlist, but isn’t deleted from your
system.
Opening a folder
You can open a folder from either the Hotlist or the File list, or by
using the keyboard.
1 Click on the folder. Its contents will appear in the File list.
To select: Press:
The previous or next folder in the list. ↑ or ↓
A child folder of current folder (if any exists). →
The parent folder of current folder. ←
The first or last folder in the list. Home or
End
The folder one page up or down in the list. Pg Up or
Pg Dn
➤ Type its pathname in the Current path field, and press Enter.
2 Type the file’s or folder’s name, or the first few letters of its
name. The File Manager will select the file that best matches
the name you typed.
Once you’re finished typing, the File Manager waits a period of time
— by default this is 1.5 seconds — then lets you type in another name.
Selecting files
To work on any file or folder displayed in the File list, you must first
select it. You can select using the mouse, the keyboard, or a menu.
To select: Do this:
A single file Click on the file.
Two or more files in any order Hold down Ctrl, click on
the first file, then click
on each remaining file.
A range of files (e.g. files from A to D) Hold down Shift, click
on the first file in the
range, then click on the
last file in the range.
3 When you’ve reached the next file you want to select, press
Space.
To select: Press:
Additional files one at a time ↑ or ↓
Using a menu
To select: Do this:
All files in the current folder From the Select menu, choose
Select, then choose All.
All the files that match a text From the Select menu, choose
pattern (e.g. all files ending Select, then choose By Pattern,
with .c) or simply press Ctrl – S, and
enter the desired pattern.
Deselecting files
To deselect: Do this:
A single file using the mouse Hold down Ctrl, then click on
the file.
A single file using the keyboard Hold down Ctrl, press a
direction key (e.g. ↑) to go to
the file you wish to deselect,
then press Space.
All files or all files that match a From the Select menu, choose
text pattern Deselect, then choose All or By
Pattern.
☞ You can also deselect using other techniques similar to the techniques
used for selecting files, such as pressing Shift and ↑. Feel free to
experiment!
1 From the File menu, choose the New item, then choose Folder.
Or
Click on the New Folder icon:
2 You’ll see the Create New Folder dialog. Type the name of the
new folder, then click on Create or press Enter.
The new folder will appear in the File list, according to how
you’ve sorted the list. If there are many files in the current
folder, you may have to scroll to see your new folder.
You can also create a new folder within a folder that’s not currently
open. For example, let’s say you’re in /bedrock and you wish to
create a dino folder under /bedrock/fred. In this case, you could
type the following in the Create New Folder dialog:
fred/dino
Note that you don’t have to type /bedrock, since you’re already
there!
If, however, you wish to create a new folder under another path, you
must type the new folder’s complete pathname. For example, if you’re
in /bedrock/fred and wish to create a letters folder under
/quarry/slate, you’d type:
/quarry/slate/letters
Files
To create a new file in the current folder:
1 From the File menu, choose the New item, then choose File.
Or
Click on the New File icon:
2 You’ll see the Create New File dialog. Type the name of the
new file, then click on Create or press Enter.
4 When you’re finished, save the file and quit the editor. The
pterm window will close and your new file will be added to the
current folder.
☞ If you don’t see the file, click on the Reopen Folder icon to refresh the
File list. Remember that you can use the File Manager’s quick-search
method to locate your new file.
Press F3.
Click the right mouse button and choose View from the displayed
popup menu.
Press F4.
Click the right mouse button and choose Edit from the displayed
popup menu.
☞ To bring up the correct popup menu, make sure the pointer is in the
File list (not the Hotlist) before you click the right mouse button.
Make sure the pointer is in the File list (not the Hotlist), then
click the right mouse button and choose Copy/Move from
the displayed popup menu.
You’ll see the Copy/Move dialog.
!
CAUTION: If you try to copy or move a file from one folder to
another folder, and a file with the same name exists in the target
folder, the new file will overwrite the file in the target folder.
Make sure the pointer is in the File list (not the Hotlist), then
click the right mouse button and choose Delete from the
displayed popup menu.
WARNING:
If you delete a folder, you’ll also delete any files in that folder.
1 Select the file or folder you wish to modify, then do one of the
following:
Press F7.
Open the File menu and choose Properties.
Make sure the pointer is in the File list (not the Hotlist), then
click the right mouse button and choose Properties from the
displayed popup menu.
!
CAUTION: If you’ve selected a folder, you’ll be asked whether you
wish to change the properties of both the folder and its contents. If
you do, any changes you make will affect all folders and all files that
reside under the selected folder.
For info on QNX file attributes and permissions, ask your system
administrator or see the QNX OS Installation & Configuration
manual.
Press F2.
You’re now in the QNX Shell, where you can invoke text-based
utilities and applications as you would from a QNX terminal or
console.
To log off from your session and remove the pterm window:
Type exit.
Or
Press Ctrl – D.
For more info on using and configuring pterm, see the chapter on
pterm in this guide, and see the Photon Installation & Configuration
guide.
Running a command
You can use the File Manager to start a Photon application or other
QNX-based applications and utilities.
☞ The method works only with native Photon applications. If you don’t
know the name or location of a Photon executable, ask your system
administrator or see the documentation that came with the
application.
Printing files
To print a file that’s selected, do one of the following:
Press F5.
Make sure the pointer is in the File list (not the Hotlist), then click
the right mouse button and choose Print from the displayed popup
menu.
☞ If a file doesn’t print, ask your system administrator or check the Print
command in the PFM Configuration dialog (see “Configuring the File
Manager.”)
Using these buttons you can sort your files in any order (by name,
date, etc.) or change which information is displayed for each file.
Sorting files
☞ The File Manager’s quick-search method works only if files are sorted
from A to Z.
1 From the Tools menu, choose the Configure item. You’ll see the
PFM Configuration dialog.
For more info on using the Configuration dialog, see “Configuring the
File Manager.”
1 Move the pointer onto the vertical line that separates the Size
and Date buttons. The pointer changes to a resize pointer:
2 Press the mouse button and drag the pointer to the left until the
Size field is hidden.
3 You’ll now see two vertical lines in front of the Date field: the
first controls the hidden Size field, the second controls the Date
field.
To uncover the Size field, simply drag the second line back to
the right.
☞ Using the above technique, you can also resize any field.
Details at a glance
The following table briefly explains the contents of each field in the
File list.
continued. . .
For more info on symbolic links, owner IDs, and permissions, ask
your system administrator or see the QNX OS Installation &
Configuration guide.
Print Command: lp @
View Options The Folders First button lets you control whether
folders always appear at the top of the File list,
before any other files. The Hide “dot” Files button
lets you hide any files that begin with a dot, such
as .elm, .kshrc, and so on. Typically, these are
configuration files that are rarely accessed.
Courier
AaBbCcXxYyZz
OK Cancel
Terminal Command
Lets you specify how the Photon terminal window,
pterm, starts up. (To start pterm, see “Opening a
Terminal Window” in this chapter.)
View Command Lets you specify the file viewer that appears when
you ask to view a file. The default is less; to
change the command line for invoking this utility,
see the QNX OS Utilities Reference.
Edit Command Lets you specify the file editor that appears when
you ask to edit a file. The default editor is vedit;
to change the command line for invoking this
editor, see its entry in the QNX OS Utilities
Reference.
Print Command Lets you specify the print command that will be
invoked when you ask to print a file. For more
information on print commands, see the QNX OS
Installation & Configuration manual.
Associate
Current Associations:
Done Cancel
When you add or edit a pattern, you can use all the standard
pattern-matching characters, including the asterisk (*), question mark
(?), and brackets ([ ]).
In this chapter. . .
Starting the Printer Setup dialog 83
Print Properties 87
Print Preview dialog 95
Uninstall Install
Installed Printers
Displays the list and location of printers that you have
personally installed for your Photon session.
Available Printers
Displays the list and location of printers that you may
add to your personal configuration. Output that goes
to spool devices is indicated with a printer icon.
Output that is prefiltered and sent directly to a file,
such as a bitmap output, is indicated with a paper icon.
Install Installs the printer(s) that you selected from the list of
available printers.
Uninstall Uninstalls the printer(s) that you selected from the list
of installed printers.
Setting up a printer
You use the Photon Printer Setup dialog to choose a default printer
and optionally select other printers you might use. To set up a printer:
1 Highlight only the printer that you want to make the default
from the list of installed printers. When it’s the only highlighted
printer, the Set Default Printer button is enabled.
2 Click Set Default Printer.
The printer is moved to the top of the list. The Set Default Printer
button changes to Is Default Printer.
Whenever you print from a Photon application, the printer you choose
as the default is displayed in the Printer field. Before you print, you
can accept the default printer, or choose from any of the printers in the
pull-down printer list.
Select Printer
Select a Printer
To select a printer:
continued. . .
Print Properties
You can view the print properties for the selected printer by clicking
the Properties button in the Photon Printer Setup dialog. There are
currently two print property dialogs:
Paper tab
Graphics tab
Margins tab
Other tab
Info tab
☞ For the following tab options, the values for the print properties
displayed on your screen may differ from those in this guide because
the supported values for an option are customized in the printer
definition file. For more information, see the Printing Support chapter
in the Photon Installation & Configuration guide or ask your system
administrator.
Paper tab
You use the Paper tab to select print properties such as paper size,
paper source, type, and orientation.
Orientation:
Paper size Select the paper size from the combobox (e.g.
Letter, Legal, etc.).
Paper source Select the paper source from the combobox (e.g.
Auto, Upper, Envelope, etc.).
Paper Type Select the paper type from the combobox (e.g.
Normal, HighQuality, Draft, etc.).
Graphics tab
You use the Graphics tab to change graphic properties like color
mode, dithering type, ink type, and resolution.
Dithering:
Intensity :
50
Darkest Lightest
Ink Type Specifies the ink type for the graphics (e.g. Normal,
B&W, Color, etc.). Note: color ink is necessary for
color printing.
Margins tab
You use the Margins tab to change the printer margins:
Top:
Right:
Other tab
You use the Other tab to specify single or double-sided printing and
the collating method.
Duplex: Off
Collating Mode:
Collating Method
Select “111” if you want multiple copies of each page all
at once, or “123” if you want a collated set. If you don’t
select either, the pages are printed in the order set by the
printer.
Info tab
You use the Info tab to view the selected printer’s name, location,
spool device, and spool filter information.
Printer I nformation
Filter: Pp.ps
Image Properties
Bitplanes: Dimensions:
As Required
8 bit
As Displayed
24 bit
Scale:
No No
Factor:
Factor: Factor:
Factor:
Bitplanes
Dimensions
Scale
Bitplanes
Print the image using 8 or 24 bits per pixel.
Dimensions
Choose the dimensions of the printed image. You must specify one of
these options:
Scale
Here you choose whether the image will be scaled or not. You can set
the scale separately for the x and y dimensions. You can set the scale
to:
Displayed factor
The image is scaled by the displayed scale factor.
➤ Click Preview
File /tmp/printjob.dscott. 50 %
Zoom closer into the image, or further away from the image by
selecting the magnification.
In this chapter. . .
What is DayMinder? 99
Starting DayMinder 99
DayMinder at a glance 100
Customizing DayMinder 102
Types of scheduled activities 102
Adding appointments 103
Adding reminders 105
Adding a task to your ToDo list 105
Modifying scheduled activities 107
Address Book 108
Group Planner 109
What is DayMinder?
DayMinder provides a simple, graphical way to organize your daily
schedule and activities. With DayMinder, you can schedule
appointments, plan meetings with your coworkers, track your tasks,
and maintain your address book.
DayMinder is designed to be a simple personal information manager
application to suit the needs of small embedded systems. Note that
some features described in this document may not work on your
particular system.
Starting DayMinder
To start DayMinder:
Or
Or
DayMinder at a glance
A typical DayMinder session may look like this:
Menu bar Appointment button bar
Dayminder
button bar
Monthly
calendar Appointments
pane
Weekly Reminders
planner pane
ToDo pane
Menu bar Lets you perform most major functions, from creating
appointments and tasks to setting application
preferences.
Monthly calendar
Displays a month at a glance. You can move forwards
or backwards by a month or year by clicking on the
“next” or “previous” scroll arrows on either side of
the month or year label. The current date is displayed
in bold. The selected date is highlighted.
Weekly planner
Displays your weeks activities at a glance. Black
areas indicate scheduled appointments; blue areas
indicate repeating appointments. A thick horizontal
black line is displayed at the top of each date column
that has a reminder.
Appointments pane
Shows your scheduled appointments for the day
selected on the monthly calendar.
Reminders pane
Shows your reminders (or untimed events) for the day
selected from the monthly calendar.
ToDo pane Shows your ongoing tasks and their details: status,
category, priority, and date due.
Customizing DayMinder
☞ Some of the fields in the DayMinder Preferences dialog may not be
implemented at time of release.
Resizing windows
The Month and Weekly planner panes are fixed sizes, but you can
adjust the pane sizes for the Appointment, Reminders, and ToDo
panes. For example, to resize the Reminders pane:
2 Click and drag the line upwards until the Reminders pane is the
size you want.
Similarly, you can change the size of the fields in the ToDo pane.
Grab the vertical bar that separates the two fields and move it
sideways until the field is the size you want.
Adding appointments
Adding an appointment to your DayMinder is easy:
Repeat
Repeat Until Fri 20- Dec- 1996
None
Yearly Sun Mon Tue Wed Thu Fri Sat
Monthly
Weekly
Daily
OK Cancel
Adding reminders
Adding a Reminder to DayMinder is like adding an appointment, but
in the case of a reminder there’s no specific time assigned.
Or
Move the mouse pointer into the Appointments, Reminders
or ToDo pane, click the right mouse button, and select the
New ToDo item.
Or
From the Edit menu, select the New ToDo. . . item.
To Do
Private Done
Description
Order new bowling shoes
Notes
Shoe size 13
Click the right mouse button and select Edit. . . from the popup
menu.
Address Book
☞ Some of the features in the Address Book may not be implemented at
the time of release.
You can keep track of all your friends and colleagues in the Address
Book. To bring up the Address Book, click on the Address Book icon
in the DayMinder button bar:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Notes:
Address Book
Lets you separate your private and business entries.
Cancel Deletes the current entry and exits the Address Book.
Group Planner
☞ Some of the features in the Group Planner may not be implemented at
the time of release.
You use the Group Planner to plan meetings with your colleagues. To
bring up the Group Planner, click on the Group Planner icon in the
DayMinder button bar:
Group Planner
fred Su Mo Tu We Th Fr Sa
24 25 26 27 28 29 30
wilma 12am
barney 1am
pebbles 2am
3am
bambam
4am
betty 5am
6am
7am
8am
9am
10am
11am
12pm
1pm
2pm
3pm
4pm
5pm
6pm
7pm
8pm
9pm
Thu 28- Nov - 1996 10pm
11pm
Done Schedule... 12am
When you first bring up the Group Planner, only your activities are
displayed. Black areas indicate your scheduled appointments and blue
areas indicate repeating appointments. Empty slots are times when
you are available for appointments. When you select the name or
names of the colleague(s) that you wish to plan a meeting with, their
appointments are displayed in gray.
To schedule an appointment:
1 In the Group Planner week at a glance pane, select the desired
block of time for your appointment. For example, if no one has
a previous appointment on Friday, November 29 at 1 pm to 2
pm, you can schedule an appointment by:
clicking the 1 pm start time on Friday, November 29, and
dragging to the 2 pm end time.
2 Click on the Schedule. . . button located on the bottom left side
of the screen. The Appointment dialog is displayed. You use
☞ When you create an appointment using the Group Planner, you create
an appointment for yourself, not your colleagues.
In this chapter. . .
What is pterm? 115
pterm at a glance 116
Starting and ending pterm 116
Using the pterm menu 117
Configuring pterm 118
What is pterm?
The Photon terminal window (pterm) lets you run text-based QNX
utilities applications from a window on your Photon workspace. You
can open multiple terminal windows, and as a result, run a mix of
text-based applications and Photon applications at the same time.
Note that many text-based applications that use the mouse (e.g. the
vedit text editor) can use the mouse in a terminal window.
The pterm application runs a command interpreter, or shell, that
interprets what you type. The available shells include the QNX shell
(/bin/sh) and the Korn shell (/bin/ksh). The pterm application
determines which shell to use as follows:
pterm at a glance
Here’s a sample pterm session:
tty p1: ksh
$ pwd
//222/bedrock/fred
$ ls -l
total 21
-rw-rw-r-- 1 fred cavemen 13 Oct 22 13:25 bambam
-rw-rw-r-- 1 fred cavemen 12 Oct 22 13:26 barney
-rwxrwxr-x 1 fred cavemen 7 Oct 22 13:42 crush
drwxrwxr-x 2 fred cavemen 2048 Oct 23 09:26 dino
-rw-rw-r-- 1 fred cavemen 6 Oct 22 13:31 flint
-rw-rw-r-- 1 fred cavemen 8 Oct 22 13:32 marble
drwxr-xr-x 2 fred cavemen 2048 Oct 23 09:35 pebbles
-rw-rw-r-- 1 fred cavemen 4 Oct 22 13:32 rubble
-rw-rw-r-- 1 fred cavemen 6 Oct 22 13:33 slate
-rw-rw-r-- 1 fred cavemen 5 Oct 22 13:33 stone
-rw-rw-r-- 1 fred cavemen 4 Oct 22 13:33 triassic
-rw-rw-r-- 1 fred cavemen 6 Oct 22 13:33 tusk
-rw-rw-r-- 1 fred cavemen 4 Oct 22 13:33 volcanic
-rw-rw-r-- 1 fred cavemen 6 Oct 22 13:34 wilma
-rw-rw-r-- 1 fred cavemen 7 Oct 22 13:34 wood
$
In this session, you can see the QNX Shell prompt. From this prompt,
you can run most of the commands and text-based programs available
for QNX — without ever leaving Photon!
Or
Click on the pterm icon in the File Manager:
You’ll see a pterm window. You’re now in the QNX Shell, where you
can invoke text-based utilities and applications as you would from a
QNX terminal or console.
To log off from your session and close the pterm window, do one of
the following:
Type exit.
Or
Press Ctrl – D.
Or
☞ If the application running within the pterm window uses the mouse,
you may have to press Alt before clicking the right mouse button.
Configuring pterm
To change the configuration for pterm, choose Properties. . . from the
popup menu. The Terminal Properties dialog appears:
Terminal Properties
W indow Title
pterm.rc PC Serif 14
You can use this dialog to change the size of the pterm window, the
font for the window, and more.
Some character-based applications need to receive Alt key presses. To
run such an application successfully, you need to configure its pterm
window to pass the Alt to the application. To do this:
For more info on using and configuring pterm, see the Utilities
chapter in the Photon Installation & Configuration guide.
In this chapter. . .
Languages supported 123
Photon compose sequences 123
Languages supported
Photon has keyboard drivers that support these languages:
There are tools available to help you make new keyboard drivers to
support other languages. For more information, see the Keyboard
tables section in the Unicode Multilingual Support chapter in the
Photon Installation & Configuration guide.
☞ These aren’t keychords; press and release each key one after the other.
If your keyboard doesn’t have the following symbols, you can create
them by pressing the Alt key, followed by the first key in the sequence,
followed by the second key in the sequence.
continued. . .
continued. . .
continued. . .
continued. . .
continued. . .
In this chapter. . .
Using the Message Pad 133
Exploring Jump Gates 136
“Dittoing” a remote Photon display 138
Running remote Photon applications 139
Menu button
Title bar
Message area
2 To put a title on your note, click on the title bar. The I-beam
pointer appears, waiting for you to type your title.
4 To close the Message Pad, click on its menu button (top left),
then click on Close.
The menu button also contains a convenient Tips item if you
need help.
☞ Although you’ll find Message Pad quite useful, it’s not meant to be a
substitute for email; it lacks (among other things) the record-keeping
functions of a true email system.
2 Type the name of the person you’re sending your note to and
press Enter. You’ll be prompted for a node number.
3 Type the node number and press Enter. Your note will instantly
appear on the recipient’s current workspace.
☞ After you’ve entered a name/node pair, the Message Pad saves this
information so that next time you can just type the person’s name and
the message will be transported immediately.
If you try to send the message to a person who isn’t running Photon,
the note will stay on your screen and won’t be transported.
You can also type a node number in the Name field if you’re sending a
one-time message and there’s no need to save the person’s name.
The recipient will see:
Jump
!
CAUTION: Although the application window disappears from your
workspace when you send an application, the application itself is still
running on your machine and will die if you power down.
3 Click on the Jump Gate Name field and type the name you want
to give this node-specific Jump Gate. For example, “Betty.”
☞ To ensure speed, it’s a good idea to enter a fully qualified path for the
node number. For example: //250/dev/photon.
6 Click on the Add button. For each new Jump Gate you want to
set up, repeat steps 2 through 6.
2 Enter the node number of the user whose screen you want to
ditto.
You’re now “at” the remote user’s workspace. You can now share the
remote workspace with the remote user (provided you have the
appropriate permissions).
For more information see the phditto utility, and the section on
“Viewing/Using remote Photon sessions” in the Configuring Photon
chapter, in the Photon Installation & Configuration guide.
To end your ditto session, press Alt – F4 simultaneously.
you can take full advantage of the rich variety of tools available under
X as you develop or use your Photon applications.
In this chapter. . .
Customizing your workspace 143
Changing the graphics resolution and color depth 148
Launching an application at startup 151
1 Click on the Window Manager menu button (the one with the
QNX logo) on the Taskbar to bring up the Workspace menu.
Or
Position your pointer anywhere on the workspace background
and click the right mouse button.
Background Color...
Cursor...
Apply Defaults
You’ll see a toggle button beside each option in the dialog. You enable
an option by clicking on its toggle button, and disable it by clicking
again. If a button appears pressed in, you know the option is enabled.
At the bottom of the dialog are four buttons:
☞
Make sure your pointer is on the focus window when you’re entering
text. If it’s not, the characters you type won’t appear in the window.
☞
If you hide the Taskbar, it will reappear temporarily whenever you
move the pointer to the very bottom of your workspace. To keep the
Taskbar on your workspace, just click again on the Taskbar Hide
toggle button.
Window Inactive Frame — Lets you choose the color of the frame
for inactive windows.
Window Title Color — Lets you choose the text color of your
windows’ title.
Cursor — Lets you customize the basic mouse pointer shape and
color.
☞ If you want to specify the background color in this way, turn off any
backdrops. See “Using the Configuration tool” for more information.
Display
Applications Groups Backdrops Screen Sav ers
Group Name
Applications
Application Info
New Application Name:
Voyager Browser
Command:
sh - c "SOCK=1 voyager"
Pterm
Icon:
Brow se...
Change Icon...
Ok Cancel Apply
Screen Savers — Lets you choose the Photon screen saver and set
the wait time.
3 Click on Apply.
☞ You can enter shell (sh) commands in the Command field. For
example, the following command runs Voyager in compact mode in a
shell:
sh -c "SOCK=1 voyager"
Display Driver
Resolut ion & Color Dept h Driv er Accel DPMS Ref resh
1280x 1024
1024x 768
16- Bit High Color/64K rage Yes Yes Hard Low
15- Bit High Color/32K rage Yes Yes Hard Low
8- Bit 256 Color rage Yes Yes Hard Low
800x 600
640x 480
640x 400
Display Settings
The initial settings are the result of a hardware scan Photon did during
the installation. The default selection is a “safe” choice based on this
scan; you’ll probably want to choose something better. The hardware
detection program presents only options that correspond to the kind of
graphics card you have. To save these initial settings, choose the
Done button.
WARNING:
Setting the refresh value incorrectly can damage your monitor.
Consult your monitor and video card manuals first.
accelerator
See hotkey.
active window
The window that currently has focus.
backdrop
An image that’s displayed as a background on your screen.
balloon
A small box that pops up to define or explain part of the user interface.
A balloon is displayed when the pointer pauses over a widget.
bitmap
A color picture consisting of one or more bitplanes.
bitplane
An array of bits representing pixels of a single color in a bitmap.
compose sequence
A sequence of key presses that can be used to type a character that
might not appear on the keyboard.
console
One of nine virtual screens on the desktop. Also called a workspace.
CUA
Common User Access — a standard that defines how you can change
keyboard focus.
cursor
An indicator of a position on a screen, such as a pointer or an
insertion point in a text field.
DayMinder
A Photon application that you can use to organize your daily schedule
and activities.
dead key
A key that, when pressed, doesn’t produce a symbol, but initiates a
compose sequence.
desktop
The virtual screen provided by the Photon Desktop Manager. The
desktop consists of nine consoles or workspaces.
desktop manager
See Photon Desktop Manager.
dithering
A process whereby pixels of two colors are combined to create a
texture or a blended color.
ditto
A QNX utility that lets you attach a local console or terminal to a
remote console. See also phditto.
File Manager
The Photon File Manager (PFM), an application used to maintain and
organize files and directories.
focus
A widget that has focus will receive any key events collected by its
window.
folder
In the Photon File Manager, a metaphor for a directory.
Helpviewer
A Photon application for viewing online documentation.
hotkey
A special key or keychord that invokes an action (such as a menu
item) without actually selecting a widget. Also called an accelerator.
Contrast keyboard shortcut.
hotspot
The part of the pointer that corresponds to the coordinates reported
for the pointer (e.g. the intersection of crosshairs, or the tip of the
arrow of the basic pointer).
HSB
Hue-Saturation-Brightness color model.
HSV
Hue-Saturation-Value color model.
Image Viewer
A Photon application (pv) that displays images.
Jump Gate
A mechanism that “transports” an application from one QNX node to
another.
keyboard shortcut
A key that selects a menu item. The shortcut works only if the menu
is displayed. Contrast hotkey.
Message Pad
A Photon application that lets you post notes on your computer’s
screen or send them to other users over the network.
palette
An array of colors. A hard palette is in hardware; a soft palette is in
software.
PDM
See Photon Desktop Manager.
PDR
See Press-drag-release.
PFM
See Photon File Manager.
PhAB
Photon Application Builder. Visual design tool that generates the
code required to implement a user interface.
phditto
A utility that accesses the Photon workspace on a remote node. See
also ditto.
Phindows
Photon in Windows. An application that accesses Photon from a
Microsoft Windows environment.
PhinX
Photon in X. An application that accesses Photon from an X Window
System environment.
Photon Terminal
An application (pterm) that emulates a character-mode terminal in a
Photon window.
phsac
A utility that displays system activity.
pixmap
A bitmap or image.
pointer
An object on the screen that tracks the position of a pointing device
(e.g. a mouse, tablet, track-ball, or joystick). Photon has several
pointers indicating various states: Basic, Busy, Help, Move, Resize,
I-beam, No-input.
Press-drag-release (PDR)
A method of selecting a menu item by pressing down a mouse button
while pointing to a menu button, dragging until the desired item is
highlighted, and releasing the mouse button.
pterm
A Photon Terminal; an application that emulates a character-mode
terminal in a Photon window.
pv
See Image Viewer.
PWM
See Photon Window Manager.
Snapshot
A Photon application for capturing images of the screen.
Taskbar
An area in which the Photon Window Manager displays icons
representing the applications that are currently running.
topic path
Help information identified by a string of titles that are separated by
slashes.
topic root
A topic path that’s used as a starting point for locating help topics.
topic tree
A hierarchy of help information.
Unicode
The ISO/IEC 10646 16-bit encoding scheme for representing the
characters used in most languages.
UTF-8
The encoding for Unicode characters, where each character is
represented by one, two, or three bytes.
vsin
A utility that displays system information.
widget
A component (e.g. a pushbutton) in a graphical user interface.
Window Manager
See Photon Window Manager.
workspace
See console.
workspace menu
A configurable menu that’s displayed when you press or click the
right mouse button while pointing at the background of the screen.
D F
focus window 14, 17, 19, 31, 145 Maximize Text View button 48
Force front button 28, 46 Next button 48
opening a topic 42
Options pane 42, 46
Previous button 48
G Print button 48
Print pane 42, 46
graphics resolution 9, 149, 150 Reload button 48
Group folders See Photon Desktop retracing your steps 48
Manager (PDM) Search pane 42, 43
specifying a file 41
starting 40
tabs 42
H title bar 41
help See also Helpviewer Where? button 43
application-specific 13, 14, 39
balloons 36, 39, 42
button 13, 14, 39
comprehensive 39, 40
I
in pterm 39, 40 Image Viewer 34
kinds of 39 international characters 123
Message Pad 134
Photon Desktop Manager 29
pointer 13
Helpviewer 33, 40–49 J
Backtrack button 48
Bookmarks pane 42, 45, 48 Jump Gate 34, 136–138
buttons 48 dittoing 138
changing pane sizes 47 node-specific 137
closing a topic 42 returning an application 137
Contents pane 42 sending an application 136
displaying HTML files 49
divider bar 47
forcing to front 46
History pane 42, 45 K
Home button 48
home page 46, 48 keyboard
X
X Window System 139