Acclaim Lighting PHAROS TPC Installation Guide
Advertisement
Advertisement
Pharos Interface Editor User Manual
v1.1 16-08-2011 Letter © 2010-2011 Pharos Architectural Controls Limited. All rights reserved.
Pharos Interface Editor User Manual
Contents
Interaction with Pharos Designer
- 2 -
Is the free software a cut-down demo version?
Does the Interface Editor software support the Apple Macintosh?
What are the PC minimum requirements for Interface Editor?
What are the minimum Macintosh requirements for Interface Editor?
Are project files compatible across versions and platforms?
Can I have multiple versions of Interface Editor on my computer?
What are the Pharos Interface Editor file extensions?
I have checked the FAQ and troubleshooting but I'm still stuck?
Contents
- 3 -
Pharos Interface Editor User Manual
Welcome
Introduction
Welcome and thank you for using version v1.1 of the Pharos Interface Editor software.
Platforms
Pharos Interface Editor is designed to run on a PC running Microsoft Windows 7, Vista or XP (SP2+) or an Apple
Mac running OS X (10.5.x or later - Intel only).
Help Overview
The Help is split into three major sections:
Those of you experimenting with the software for the first time should work through the Quick Start guide to familiarise yourself with the basics of the software. The Reference section then gives detailed descriptions of every aspect of the software whilst the Troubleshooting section provides help to resolve any problems.
Help Help
This is the PDF version of the online Help and it is available in various formats for printing. The online version, which has the advantage of being fully searchable, can be opened from within Interface Editor by clicking the help button on the main toolbar.
Support
As with all successful control products, support is crucial and the team at Pharos will do everything possible to ensure that your project is a success. Please do not hesitate to contact us with your questions, bug reports and suggestions at:
T: +44-(0)20-7471-9229
Please also visit our website to keep up to date with the latest product news and software releases: www.pharoscontrols.com
.
- 4 -
What's new in v1.1
What's new in v1.1
l l l
Graphical interactive control layout l
Controls can be added and removed from pages l l
Controls can be moved and resized within the page preview with mouse and keyboard
Copy and paste controls between pages and projects l
Various graphical alignment and layout tools
Page switcher navigation can be added, removed and edited
New analogue clock control, with customisable face and hands
- 5 -
Pharos Interface Editor User Manual
Overview
Pharos Interface Editor is a tool for designing custom user interfaces for the Pharos Touch Panel Controller (TPC).
The intuitive
makes it easy to organise multiple pages of controls, configure their behaviour and customise their appearance.
Interface Editor comes with layouts of page controls, e.g. buttons, sliders and colour pickers, though experienced users can create their own layouts using the
xml file format . Users can also
on a page from a layout.
Several themes that govern the appearance of page controls are included with Interface Editor and the built-in
allows users to create their own.
include the page switcher, which has buttons to switch between pages, each showing the icon and the name of the target page. The page switcher can be placed along any edge of a page. Alternatively, any button can be configured to change the current page, either moving to a particular page, or moving forwards or backwards through the page hierarchy.
If security is required for a user interface, Interface Editor allows users to
with a keypad for passcode entry. Keypad controls can be added to any page via layouts for custom passcode behaviour.
Interface Editor project files (.ptc) are associated with TPCs in Pharos Designer, where triggers and actions for the user interface controls are created. Designer combines show programming with the user interface, ready for
to the TPC.
- 6 -
User Interface
User Interface
The software has been designed to present a consistent graphical user interface and so it is worth familiarising yourself with the layout of the main window before proceeding further:
Main toolbar
The buttons on the left of the main toolbar provide overall control of your Interface Editor project.
Create new projects , open existing projects and save your work using the file management
buttons. Use the Undo/Redo buttons to step backwards and forwards through operations that affect your project. Pages can be
on the toolbar provide access to the
,
Project Properties , Preferences, Help and information About the
software.
Edit toolbar
Located just under the main toolbar by default, this is where the controls and page switchers on a page can be edited. See
for a full breakdown of this toolbar.
Page Browser
The Page Browser, located at the left of the screen, displays all pages that exist within the project. Selecting a page will display it in the Page Preview screen and allow page properties to be adjusted in the Property Editor.
Page Preview
The Page Preview area is located in the centre of the window. Any selected page will be displayed in the Page Preview window. Selecting the page or items on the page allows individual properties to be adjusted in the Property
Editor.
- 7 -
Pharos Interface Editor User Manual
Property Editor
The Property Editor displays adjustable properties for any page items that are selected in the Page Preview window.
The page, page switchers, buttons, sliders, colour pickers and keypads all have user-configurable properties.
- 8 -
Keyboard shortcuts
Keyboard shortcuts
For ease and speed of use various keyboard keys map to application commands:
F1
Delete
Ctrl + N
Ctrl + O
Ctrl + S
Ctrl + Z
Ctrl + A
Ctrl + D
Ctrl + C
Ctrl + V
Ctrl + Shift + Z
OR
Ctrl + Y
Launch the online help.
Delete selected item.
New project.
Open project.
Save project.
Undo the last operation.
Select all controls.
Clear selection.
Copy selected controls.
Paste selected controls.
Redo the last operation to be undone.
Notes for Macintosh users
Pharos Interface Editor makes a good deal of use of the two button mouse with right-click being used to invoke context-sensitive menus. As the majority of Mac users have only a single button mouse they must hold Ctrl while clicking to get this functionality. Tapping two fingers on a Mac touch pad is an alternative method, though this may be switched off in System Preferences. Furthermore Macs have an Command key that serves as the alternative to the
Windows Ctrl key. Shift and Alt work as described for Windows.
- 9 -
Pharos Interface Editor User Manual
Project Files
Pharos Interface Editor projects are saved with the file extension ".ptc". Project files also contain all the images and icons used in the project.
Creating a new project
Click or press Ctrl+N. You will be taken through a new project wizard that sets up a first page of the project. The steps are as follows:
1) Name the project, set the project destination, decide upon the orientation of the project.
NOTE:
the orientation cannot be changed once the project has been created.
2) Select a project theme. The
are documented in an appendix.
- 10 -
Project Files
3) Name the first page of the project and add an icon, if appropriate. Page icons are used on page switchers. The icons offered will be from the chosen theme, but you may click the Browse button to choose your own.
- 11 -
Pharos Interface Editor User Manual
4) Set the page background, using either a colour, gradient or image. Some gradients are included with the application, but a gradient editor is provided for you to create your own. The images offered will be from the chosen theme, but you may click the Browse button to choose your own.
- 12 -
5) Select a page layout.
- 13 -
Project Files
Pharos Interface Editor User Manual
6) Select a navigation type for moving between pages, choosing from a page switcher or navigation buttons.
Opening a project
Click or press Ctrl+O. You will be prompted to choose an existing .ptc file to load.
Saving a project
Click or press Ctrl+S.
To save to a different file, click will go to the new file.
. You will be prompted to choose a new location to save to. Subsequent saves
To save to a different file discarding any images and icons that are not used on pages in your project, click the arrow next to the button and select Save As (Minimal).
- 14 -
Creating Pages
Creating Pages
Click to create a new page. You will be taken through a new page wizard which contains the following steps:
1) Name the page and add an icon, if appropriate. Page icons are used on page switchers. The icons offered will be from the chosen theme, but you may click the Browse button to choose your own.
2) Set the page background, using either a colour, gradient or image. Some gradients are included with the application, but a gradient editor is provided for you to create your own. The images offered will be from the chosen theme, but you may click the Browse button to choose your own.
- 15 -
Pharos Interface Editor User Manual
3) Select a page layout. Click to reload
- 16 -
Creating Pages
4) Select a navigation type for moving between pages, choosing from a page switcher or navigation buttons.
- 17 -
Pharos Interface Editor User Manual
- 18 -
Page Operations
Page Operations
Duplicate Pages
Click on the toolbar to duplicate the current selected page. The page is added to the end of the page browser's list and its properties, such as Name and Icon, can be adjusted using the Property Editor.
Changing Page Order
Click the or icons to move the selected page above or below adjacent pages in the page browser. Buttons assigned to change to the
Next
and
Previous
page will use this ordering (see
).
Removing Pages from Project
Click to delete the selected page.
Page Preview Zoom Controls
The or buttons can be used to zoom in and out of the page preview window.
- 19 -
Pharos Interface Editor User Manual
Page Navigation
Configuring Page Navigation
There are two methods for managing navigation between pages for projects that contain multiple pages: l l
Page Switchers
Navigation Buttons
These can be created from the
of the new page wizard or by pressing
Page Switchers
The position of a page switcher on the screen can be set along with its alignment. It is possible to use an existing page switcher from another page, or alternatively you may create a new page switcher and drag the desired pages across from the Available Pages box to the Pages in Page Switcher box.
The pages in the page switcher can be adjusted later by right-clicking the page switcher in the Page Preview window and selecting Edit Page Switcher.
- 20 -
Page Navigation
Navigation Buttons
Navigation buttons can be positioned at the top or bottom of a page. Alignment options are Start, End, Center or
Spread. A maximum of three buttons can be added and each button's function can be set from the following list: l l l l
Next Page (go to the page after this one, governed by the order shown in the page browser)
Previous Page (go to the page before this one, governed by the order shown in the page browser)
Back (go to whichever page was shown before the current page)
Go To Page
The function of navigation buttons can be adjusted at any time by selecting the button in Page Preview and changing the Local Function in the Property Editor:
- 21 -
Pharos Interface Editor User Manual
- 22 -
Property Editor
Property Editor
Using the Property Editor
The Property Editor displays controls associated with a selected page or item. Click the icon, where it appears, provides access to further options to customise the property or import from a file browser. Clicking the icon resets a property to its default value.
Page Properties
The page name (as appears in the page browser and on page switchers) can be edited and a page may be set as the default on TPC startup. An icon can be associated with the page and the background can be set as a colour, gradient and or image.
Page Switcher Properties
After selecting a page switcher in the page preview window, the following properties can be set:
Alignment
- the alignment of the page switcher icons.
Background Gradient
- set by default from the theme; select a new gradient from the gradient library, or click to launch the gradient editor.
Background Opacity
- set by default from the theme.
Font Size
- set by default from the theme; size of the font used to display page names.
Text Colour
- set by default from the theme; colour of the text used to display page names.
Show Page Names
- set by default from the theme; determines whether page names are displayed beneath the icons.
Highlight Colour
- set by default from the theme; colour that surrounds the icon and page name of the currently active page.
Highlight Opacity
- set by default from the theme.
Show Time
- choose whether to show the time. Time layout is customisable.
Show Date
- choose whether to show the date. The format of the date is customisable in a property drop down when selected.
Date/Time Font Size
- set the size of the font used to show the time and date.
- 23 -
Pharos Interface Editor User Manual
Date/Time Position
- choose the position of the time and/or date on the page switcher.
Button Properties
After selecting a button in the page preview window, you may adjust the following properties:
Caption
- the text that appears on a button, defining its purpose. The caption of a control can be changed via the Set
TPC Control Caption trigger action in Designer - see the Designer help for more information about TPC actions.
Key
- the reference for the control within triggers in Pharos Designer. By default this will be set to <control type>XXX, where <control type> is 'button' or 'slider', etc. and XXX is a unique number for the control, which starts at 001 for a new project, e.g. button123. Setting the control key to be the same for two controls will mean that they will fire the same trigger in Designer. A single TPC trigger in Designer can match multiple control keys through the use of variables. See the Designer help for more information on using variables with the TPC triggers.
Startup State
- choose which state the item should be in when the Controller starts up.
X
- The position, in pixels, of the control on the horizontal axis of the screen relative to the top left corner of the control.
Y
- The position, in pixels, of the control on the vertical axis of the screen relative to the top left corner of the control.
Width
- The width of the control in pixels.
Height
- The height of the control in pixels.
Image
- choose an image to display instead of the themed shape of the button. Either choose from button images already used in the project or click to browse for a new image. Images will be stretched to fill the area of the button. Transparency in images is supported. Overall transparency of the button will still be determined by the current theme. Click to remove the image and return the button to the themed shape.
Font Size
- set by default from the theme; size of the font used to display the button caption.
- 24 -
Property Editor
Word Wrap
- set by default from the theme; determines whether the caption of a button will flow onto multiple lines if necessary.
Actuation
- can be set to Momentary or Maintained. Momentary indicates the button will trigger a 'press' and
'release' every time it's touched; Maintained indicates the button will remain depressed when tapped once, and will only release when tapped again.
Held Timeout, Repeat Interval
- specify the length of time the button must be held before 'repeat' triggers begin firing and how rapidly 'repeat' triggers fire.
Local function
- can be set to: None, Next Page, Previous Page, Back, Go To Page, Increase Brightness,
Decrease Brightness, Set Brightness. Each function has associated sub-properties. For example, in the screenshot below the Next Page transition can be set to None, Pan Left or Pan Right and a transition duration can be set.
Click IR Slot
- This associates an IR slot with the button. The IR slot can be activated by an IR remote control, mimicking a button being tapped.
Slider Properties
Control properties for sliders are identical to the control properties for buttons. Properties specific to sliders are:
Show Value
- whether the value of the slider is displayed next to it.
Unit
- this sets whether the value should be displayed as a percentage or 8-bit value (0-255).
Caption Font Size
- set by default from the theme; size of the font used to display the slider caption.
Value Font Size
- set by default from the theme; size of the font used to display the slider value.
- 25 -
Pharos Interface Editor User Manual
Text Spacing
- set by default from the theme; spacing between the slider and the first line of text, and the spacing between the caption and value.
Handle Size
- set by default from the theme; fraction of the slider track that is occupied by the slider handle (0.05 -
0.95).
Increment IR Slot
- this allows an IR slot to be associated with incrementing the slider level.
Decrement IR Slot
- this allows an IR slot to be associated with decrementing the slider level.
Colour Picker Properties
Control properties for colour pickers are identical to the control properties for buttons. Properties specific to colour pickers are:
Font Size
- set by default from the theme; size of the font used to display the colour picker caption.
Text Spacing
- set by default from the theme; spacing between the colour picker wheel and the caption text.
- 26 -
Property Editor
Label Properties
Control properties for labels are identical to the control properties for buttons. Properties specific to labels are:
Font Size
- set by default from the theme; size of the font used to display the caption text in the label.
Word Wrap
- set by default from the theme; determines whether the caption of a label will flow onto multiple lines if necessary.
Keypad Properties
Control properties for keypads are identical to the control properties fo r buttons. Codes entered into keypads can be processed by triggers in Designer - see the Designer help for more information about TPC triggers.
Max Digits
- set the maximum amount of characters that may be entered into a keypad by the user at a time.
Hide Characters
- choose wether the characters entered into a keypad are hidden or shown.
- 27 -
Pharos Interface Editor User Manual
Clock Properties
Control properties for clocks are identical to the control properties for buttons. Properties specific to labels are:
Font Size
- set by default from the theme; size of the font used to display the colour picker caption.
Text Spacing
- set by default from the theme; spacing between the colour picker wheel and the caption text.
- 28 -
Editing Controls
Editing Controls
To add new control items to a page, simply select which control you would like to add then drag and release on the page where you would like the control to be. You can add buttons, sliders, colour pickers, labels, keypads and clocks.
To edit controls that are already on the page, click and then select the controls you would like to edit. You can now edit the controls by using your mouse to move and resize the controls or move the controls by pressing the arrow keys on your keyboard.
You can delete controls by selecting the controls and then clicking .
With multiple controls selected you can use a variety of tools to alter their layout:
Icon: Layout control:
Layout selected controls horizontally
Layout selected controls vertically
Layout selected controls in a grid
Align selected controls to the left
Align selected controls to the right
Align selected controls to the top
Align selected controls to the bottom
Align selected controls to the middle in a vertical line
Effect:
Moves and resizes the selected controls to fill the selection box with spacing between controls dictated by the spacing value. Controls will be laid out horizontally.
Moves and resizes the selected controls to fill the selection box with spacing between controls dictated by the spacing value. Controls will be laid out vertically.
Moves and resizes the selected controls to fill the selection box with spacing between controls dictated by the spacing value. Controls will be laid out in a grid. This grid layout supports controls that span multiple rows or columns.
Moves the controls to the left-most point of the selection box.Does not effect the Y axis or control size.
Moves the controls to the right-most point of the selection box.Does not effect the Y axis or control size.
Moves the controls to the top of the selection box.Does not effect the X axis or control size.
Moves the controls to the bottom of the selection box.Does not effect the X axis or control size.
Moves the controls to the centre of the selection box in a vertical line.Does not effect the Y axis or control size.
- 29 -
Pharos Interface Editor User Manual
Align selected controls to the middle in a horizontal line Moves the controls to the centre of the selection box in a horizontal line.Does not effect the X axis or control size.
- 30 -
Uploading to a Controller
Uploading to a Controller
Interaction with Pharos Designer
To upload a .ptc project onto a TPC, save the configuration in Interface Editor, start Pharos Designer and navigate to the Network view.
Select the appropriate TPC in the Network view and go to the Controller Properties tab on the right of the screen.
In the Screen section, set the .ptc file as the Interface Editor project. Once a .ptc file has been associated with a
TPC in Designer, any changes to the Interface Editor project will be automatically detected and imported into
Designer.
See the Designer help for details of the other properties.
NOTE:
please use Designer version 1.9.4 or later with this version of Interface Editor.
- 31 -
Pharos Interface Editor User Manual
Theme Editor
The theme editor facilitates the creation and editing of custom TPC themes. It allows you to add and edit background images, icons and item states.
Click on the toolbar to launch the theme editor.
Theme editor launch window
When the theme editor launches, it will display a page of options. Here you can choose to edit the theme in the current project, save the current project theme to a file or edit and create a new theme for future use.
Editing a project theme
The theme editor has three tabs for editing different aspects of a theme.
- 32 -
Editing item states
Theme Editor
Default Item Properties
- these set default values for certain properties that will be applied to an item when it's created for the first time. These properties can usually be edited in the main
of Interface Editor.
Item States
- Select a state to edit its properties. The default state is shown with "(Default)" after its name. Doubleclick a state (Windows) or press the Enter key (OS X) to rename the selected state. Click to add a new state.
Click to delete a state (not possible for the default state). Click to duplicate a state. The state of an item can be changed using a trigger action in Designer - see the Designer help for more information about TPC actions.
State Property Editor
- Edit the properties of the selected state. Works in the same way as the main Interface
Editor
.
State Transition Editor
- Edit the transition that is applied to the item properties when the current state is applied to the item. Easing is the curve that property values will follow.
- 33 -
Pharos Interface Editor User Manual
Editing background images
Click to add a new background image from a file. Click to remove the currently selected images from the theme. The image files will not be deleted.
You can set the orientation of images so that they are only offered as backgrounds for projects of the same orientation. If the image isn't specific to an orientation, for example if it's meant for tiling or centering on the screen, then set its orientation to 'Any'. You may filter which images are shown using the drop down near the top of the window.
- 34 -
Editing icons
Theme Editor
Click to add a new icon from a file. Click to remove the currently selected icons from the theme. The image files will not be deleted.
Export project theme
In the launch window for theme editor there is a option to export the theme in the current project. This is useful for using the same theme on different projects.
To export a theme you will have to provide a file name as well as a directory for the theme to be saved to.
- 35 -
Pharos Interface Editor User Manual
Creating a new theme
To create a new theme you will need to select to Browse Theme Library from the launch window. Click on the the top of the window to create a new theme. You'll need to give the new theme a file name and choose a file path.
at
You'll also need to choose a theme to use as a template.
- 36 -
Theme Editor
You will now see the Theme Editor where you can edit item states in the new theme.
Saving changes to a theme
Click Done when you've finished editing the theme and your changes will be saved to the theme file. If you're creating a new theme, the theme will now be shown in the theme browser and offered when you create a
- 37 -
Pharos Interface Editor User Manual
Project Properties
Click file.
on the toolbar to open the Project Properties dialog. Changes made in this dialog affect the current project
Theme
Select a different theme to apply to all the pages in the current project. Click the 'Clear Selection' button to undo selecting a new theme.
Changing a theme will leave the current background images in place. When the theme is changed, Interface Editor will look through the new theme for the same background image and link to the image in the new theme if it is found.
Otherwise the background will be copied into the new theme. The same applies for icons and the default item states.
- 38 -
Project Properties
Security
Enable a lock screen for the project. With this setting enabled, it is possible to lock a TPC by setting up a Lock TPC trigger action in Pharos Designer. The TPC will show a keypad when locked. When the correct unlock code is entered, the TPC will perform the Unlock Function, which is either to return to the page that was visible when the
TPC was locked, or to return to the default page (a property of pages). The TPC may also be configured to lock after a period of inactivity - this timeout can be set here.
IR Settings
The IR Settings tab provides a convenient overview of how IR Slots have been assigned to controls across the pages in the current project. Individual slot assignments may be cleared by clicking , allowing them to be assigned to different controls. All slot assignments may be cleared together by clicking Clear All.
- 39 -
Pharos Interface Editor User Manual
- 40 -
Frequently asked questions
Frequently asked questions
Is the free software a cut-down demo version?
No. The free Interface Editor software is the full software package. Downloads and updates can be found on our website.
Does the Interface Editor software support the Apple Macintosh?
Yes, from v1.0 we have full support for Intel Macs running Apple OS X 10.5 and later. Project files will be compatible, regardless of the operating system on which they are created.
What are the PC minimum requirements for Interface Editor?
l l l l l
Microsoft Windows XP (SP2+ 32bit only), Vista (32/64bit) & 7 (32/64bit)
Intel processor at 1 GHz or above
256MB RAM
100MB free hard disk space
800x600 minimum screen resolution (higher is better)
What are the minimum Macintosh requirements for Interface Editor?
l l l l l
Apple Mac OS X 10.5.x or later (32bit only)
Intel processor at 1 GHz or above
256MB RAM
100MB free hard disk space
800x600 minimum screen resolution (higher is better)
Are project files compatible across versions and platforms?
Any project file saved in an earlier version of Interface Editor can be loaded by a later version. Project files are compatible between the PC and Mac versions of the software. However, projects saved in a later version of Interface
Editor may not be backwards compatible with an earlier version as we reserve the right to make structural changes to improve the product.
Can I have multiple versions of Interface Editor on my computer?
Yes, as long as you install the software to a different location each time. However, this could lead to confusion and a reinstall takes just seconds, so we would recommend keeping the installers on hand and only having one version installed at a time.
What are the Pharos Interface Editor file extensions?
*.ptc
*.tpt
Pharos Interface Editor project file.
Theme bundle.
- 41 -
Pharos Interface Editor User Manual
Troubleshooting
The following section lists common problems and their solutions.
I have checked the
and troubleshooting but I'm still stuck?
Contact
support , please be prepared to send in your project files.
- 42 -
Built-In Themes
Built-In Themes
Pharos Interface Editor comes with some built-in themes that you may use directly in your projects, or edit with the
as required. Knowledge of the states in a theme for each item (e.g. buttons, sliders, etc.) is useful when using the Set TPC Control State action in Designer. Changing the state of an item will change its appearance, and this allows you to provide feedback in your interface.
The built-in themes are as follows: l l l
- 43 -
Pharos Interface Editor User Manual
Aurora Theme
The Aurora theme is included with Interface Editor. It has the following states for items:
Button States
The following states are shown in the image above: l l l l l l l
Silver (default)
Red
Green
Cyan
Magenta
Yellow
Orange
The following states use the same colours as the above, but they cause the opacity of the button to vary over a period of 1 second to attract attention.
l l l l l l l
Silver Flashing
Red Flashing
Green Flashing
Cyan Flashing
Magenta Flashing
Yellow Flashing
Orange Flashing
- 44 -
The following states are shown in the image above: l l l l l l l
Silver Dim
Red Dim
Green Dim
Cyan Dim
Magenta Dim
Yellow Dim
Orange Dim
The following states are shown in the image above: l l l l l
Silver Highlight
Red Highlight
Green Highlight
Cyan Highlight
Magenta Highlight
- 45 -
Aurora Theme
Pharos Interface Editor User Manual l l
Yellow Highlight
Orange Highlight
Slider States
The following states are shown in the image above: l l l l l l l
Silver (default)
Red
Green
Cyan
Magenta
Yellow
Orange
The following states are shown in the image above: l l
Silver Highlight
Red Highlight
- 46 -
l l l l l
Green Highlight
Cyan Highlight
Magenta Highlight
Yellow Highlight
Orange Highlight
Label States
The
Normal
state (default) is shown in the image above.
The
Warning Text
state is shown in the image above.
- 47 -
Aurora Theme
Pharos Interface Editor User Manual
The
Warning Background
state is shown in the image above.
- 48 -
City Theme
The City theme is included with Interface Editor. It has the following states for items:
Button States
City Theme
The following states are shown in the image above: l l l l l l l l l
Sky Blue (default)
Lilac Tint
Pale Lavender
Light Red
Light Pink
Soft Amber
Sea Green
Pale Green
Silver
The following states use the same colours as the above, but they cause the opacity of the button to vary over a period of 1 second to attract attention.
l l l l l l l l l
Sky Blue Flashing
Lilac Tint Flashing
Pale Lavender Flashing
Light Red Flashing
Light Pink Flashing
Soft Amber Flashing
Sea Green Flashing
Pale Green Flashing
Silver Flashing
- 49 -
Pharos Interface Editor User Manual
The following states are shown in the image above: l l l l l l l l l
Sky Blue Dim
Lilac Tint Dim
Pale Lavender Dim
Light Red Dim
Light Pink Dim
Soft Amber Dim
Sea Green Dim
Pale Green Dim
Silver Dim
Slider States
The following states are shown in the image above: l l
Sky Blue (default)
Lilac Tint
- 50 -
l l l l l l l
Pale Lavender
Light Red
Light Pink
Soft Amber
Sea Green
Pale Green
Silver
Label States
The
Default
state is shown in the image above.
The
Warning Text
state is shown in the image above.
- 51 -
City Theme
Pharos Interface Editor User Manual
The
Warning Background
state is shown in the image above.
- 52 -
Lite Theme
The Lite theme is included with Interface Editor. It has the following states for items:
Button States
Lite Theme
The following states are shown in the image above: l l l l
Sand (default)
Olive Green
Red
Blue
The following states are shown in the image above: l l
Sand Dim
Olive Green Dim
- 53 -
Pharos Interface Editor User Manual l l
Red Dim
Blue Dim
Slider States
The following states are shown in the image above: l l l l
Sand (default)
Olive Green
Red
Blue
Label States
The
Default
state is shown in the image above.
- 54 -
Explaining Layouts
Explaining Layouts
Interface Editor comes with several page layouts for you to use, but many projects will require custom layouts.
To create your own layouts for Interface Editor, you will need to understand how the XML in the layout files translates to the positions of items on the screen of the TPC. To help you get started, we will use the example of the ‘4
Button 6 Slider’ layout which comes with Interface Editor. To find the XML file behind this layout on Windows, navigate to /Program Files/Pharos/Interface Editor/library/layout/. On Mac OS X, right-click Pharos Interface Editor in your Applications folder and select ‘Show Package Contents’, then browse to /Content/Resources/layout/. Look for the file named ‘4_button_6_slider.xml’ in this folder. A screenshot containing the text in the XML file is below for reference. It’s a good idea to get a text editor that can handle XML when working with custom layouts, such as Notepad++.
The first line defines the properties of the layout. Here you can change the name of the layout as it appears in the
New Page wizard in Interface Editor, but note that two layouts can’t have the same name, otherwise only one will be available in Interface Editor. You can also change the orientation of the layout between landscape and portrait.
Removing the ‘orientation’ attribute will allow the layout to be used in both orientations – some layouts are more flexible than others.
The next line is the start of an hbox, which stands for ‘horizontal box’. The hbox is one of two types of layout box that are available; the other is the vbox. These boxes are used to contain a number of different items and the direction of the layout of these items is decided by the type of box you put them in. A vbox arranges items from top to bottom and an hbox arranges items from left to right. Boxes can contain other boxes, as shown in this example: the top level hbox contains a vbox and an hbox.
Boxes support a spacing and a margin attribute. The spacing is the measurement in pixels between each item; the margin is the number of pixels between the outline of the box and the items inside.
- 55 -
Pharos Interface Editor User Manual
In the vbox shown, there are four buttons, each 10 pixels from its neighbour. In the XML file, you can see that there’s a spacer at the top and bottom of the list of items in the vbox. The spacers push the items together as far as the box’s spacing attribute will allow – otherwise they’d spread out to fill the space available.
If you look at the button definitions in the XML file, you can see that it’s possible to specify a width and height, though this is optional – items will distribute themselves evenly and expand to fill the available space in their box if you don’t provide this information. The lower hbox in the XML file contains the sliders. You can see that this appears next to the vbox in the image above because it’s inside the top level hbox.
Another way of laying out items is in a grid. This method allows you to easily layout items in rows and columns. The screen shot below shows the XML for the ‘12 buttons’ layout, which you can find in the same folder as the previous layout. As you can see, 4 rows and 3 columns have been specified, along with a spacing and margin of 10 pixels.
This will distribute the listed buttons around the grid and separate them by 10 pixels in each direction. These grids can be used in boxes, allowing for complex, nested layouts to be created with ease.
- 56 -
Explaining Layouts
Grids of controls can be customised with the rowspan and colspan options. For example, a button with a colspan of
2 will span two columns of the grid. Here's some example XML along with the interface produced.
The items that you have available to you are button, slider, label, keypad, colourpicker, spacer and clock.
- 57 -
Pharos Interface Editor User Manual
Creating Custom Layouts
To create custom layouts, it’s a good idea to have a text editor that can handle XML files and use syntax highlighting to make it easier to view and edit these documents. Before we look at how to make a custom layout, it’s a good idea to read
about the fundamentals of how layouts for theTPC work.
The items that you have available to you are button, slider, label, keypad, colourpicker, spacer and clock.
We're going to go through and make a layout that has a keypad in the centre with a slider on either side of the keypad. So our first line would be:
<layout name = "Keypad and Sliders" orientation = "landscape" >
This gives the layout the name of ‘Keypads and Sliders' and sets the orientation of this layout as landscape.
Next, we’ll need to create a box for the items to go in. As we want the items laid out from left to right across the screen, this will be a hbox. So the second line will be:
<hbox spacing = "5" margin = "10" >
The spacing attribute means the hbox will have a minimum of five pixels between each item. The margin means a 10 pixel gap will be left between the edge of the screen and the box, so no items are touching the edge of the screen.
Next we will add in the items we want in the layout:
<slider />
<keypad />
<slider />
Then we finish off the layout by closing the box and the layout with:
</hbox>
</layout>
All of this syntax is crucial, and any error will mean that the layout is not displayed in Interface Editor. Now we go into Interface Editor, create a new page and when we get to selecting a layout, we need to click the refresh button in this dialog so the layout shows up. Here is the layout we have just created:
- 58 -
Creating Custom Layouts
That doesn’t look great, and it probably won’t be very easy to use the keypad, so we're going to set the width of the items so they are better distributed along the screen:
<slider width = "50px" />
<keypad width = "300px" />
<slider width = "50px" />
Now we create a new page to replace the old one, refresh the layout view and when we're done we get this:
Much better, but now we want a button instead of a slider on the left. So we delete the slider line out of the XML and add a button in with the same width properties and add in a height property of 40 pixels.
<button width = "50px" height = "40px" />
So we create a new page to replace the old one, refresh the layout view and when we're done we get this:
Not a great aesthetic with this layout. I want to have the button in the centre of the screen, so I’ll add in a vbox which will automatically centre the button. Here is the final XML for this file and what it looked like after creating this page.
- 59 -
Pharos Interface Editor User Manual
<layout name = "Keypad and Sliders" orientation = "landscape" >
<hbox spacing = "5" margin = "10" >
<vbox spacing = "5" >
<button width = "50px" height = "40px" />
</vbox>
<keypad width = "300px" />
<slider width = "50px" />
</hbox>
</layout>
- 60 -
Layout File Format
Layout File Format
All the layouts included with Interface Editor are generated from xml files stored in the installation directory: l l
On Windows, browse to the installation directory and navigate to \library\layout.
On OS X, right click (or Ctrl-click) on the Interface Editor application and select Show Contents. Navigate to
\library\layout.
The xml schema for Interface Editor layouts is included in this directory - open the file "layout.xsd". If you have any questions, please
You may add your own layouts to the following directory, which is created the first time Interface Editor launches:
Documents/Pharos/Interface Editor/Layouts
Interface Editor will automatically load your layouts the next time it is launched. You can also reload your layouts in the
of the new page wizard.
- 61 -
Download
Advertisement