⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 synth-gui.html

📁 ecos 文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- Copyright (C) 2003 Red Hat, Inc.                                -->
<!-- This material may be distributed only subject to the terms      -->
<!-- and conditions set forth in the Open Publication License, v1.0  -->
<!-- or later (the latest version is presently available at          -->
<!-- http://www.opencontent.org/openpub/).                           -->
<!-- Distribution of the work or derivative of the work in any       -->
<!-- standard (paper) book form is prohibited unless prior           -->
<!-- permission is obtained from the copyright holder.               -->
<HTML
><HEAD
><TITLE
>The I/O Auxiliary's User Interface</TITLE
><meta name="MSSmartTagsPreventParsing" content="TRUE">
<META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"><LINK
REL="HOME"
TITLE="eCos Reference Manual"
HREF="ecos-ref.html"><LINK
REL="UP"
TITLE="eCos Synthetic Target"
HREF="hal-synth-arch.html"><LINK
REL="PREVIOUS"
TITLE="Running a Synthetic Target Application"
HREF="synth-running.html"><LINK
REL="NEXT"
TITLE="The Console Device"
HREF="synth-console.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>eCos Reference Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="synth-running.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="synth-console.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="SYNTH-GUI">The I/O Auxiliary's User Interface</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN17968"
></A
><H2
>Name</H2
>User Interface&nbsp;--&nbsp;Controlling the I/O Auxiliary</DIV
><DIV
CLASS="REFSECT1"
><A
NAME="SYNTH-GUI-DESCRIPTION"
></A
><H2
>Description</H2
><P
>The synthetic target auxiliary is designed to support both extensions
and user customization. Support for the desired devices is dynamically
loaded, and each device can extend the user interface. For example it
is possible for a device to add menu options, place new buttons on the
toolbar, create its own sub-window within the overall layout, or even
create entire new toplevel windows. These subwindows or toplevels
could show graphs of activity such as interrupts or packets being
transferred. They could also allow users to interact with the eCos
application, for example by showing a number of buttons which will be
mapped on to digital inputs in the eCos application. Different
applications will have their own I/O requirements, changing the
host-side support files that get loaded and that may modify the user
interface. The I/O auxiliary also reads in user configuration scripts
which can enhance the interface in the same way. Therefore the exact
user interface will depend on the user and on the eCos application
being run. However the overall layout is likely to remain the same.
    </P
><DIV
CLASS="INFORMALFIGURE"
><A
NAME="AEN17974"><P
></P
><DIV
CLASS="MEDIAOBJECT"
><P
><IMG
SRC="screen_main.gif"
ALIGN="CENTER"></P
></DIV
><P
></P
></DIV
><P
>The title bar identifies the window as belonging to an eCos synthetic
target application and lists both the application name and its process
id. The latter is especially useful if the application was started
directly from a shell prompt and the user now wants to attach a gdb
session. The window has a conventional menu bar with the usual
entries, plus a toolbar with buttons for common operations such as cut
and paste. Balloon help is supported.
    </P
><P
>There is a central <A
HREF="synth-gui.html#SYNTH-GUI-TEXT"
>text window</A
>,
possibly surrounded by various sub-windows for various devices. For
example there could be a row of emulated LED's above the text window,
and monitors of ethernet traffic and interrupt activity on the right.
At the bottom of the window is a status line, including a small
animation that shows whether or not the eCos application is still
running.
    </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="SYNTH-GUI-MENUS"
></A
><H2
>Menus and the Toolbar</H2
><P
>Usually there will be four menus on the menu bar:
<SPAN
CLASS="GUIMENU"
>File</SPAN
>, <SPAN
CLASS="GUIMENU"
>Edit</SPAN
>,
<SPAN
CLASS="GUIMENU"
>View</SPAN
> and <SPAN
CLASS="GUIMENU"
>Help</SPAN
>.
    </P
><DIV
CLASS="INFORMALFIGURE"
><A
NAME="AEN17988"><P
></P
><DIV
CLASS="MEDIAOBJECT"
><P
><IMG
SRC="menu_file.gif"
ALIGN="CENTER"></P
></DIV
><P
></P
></DIV
><P
>On the <SPAN
CLASS="GUIMENU"
>File</SPAN
> menu there are three entries related to
saving the current contents of the central text window.
<SPAN
CLASS="GUIMENUITEM"
>Save</SPAN
> is used to save the currently visible
contents of the text window. Any text that is hidden because of
filters will not be written to the savefile. If there has been a
previous <SPAN
CLASS="GUIMENUITEM"
>Save</SPAN
> or <SPAN
CLASS="GUIMENUITEM"
>Save
As</SPAN
> operation then the existing savefile will be re-used,
otherwise the user will be asked to select a suitable file.
<SPAN
CLASS="GUIMENUITEM"
>Save As</SPAN
> also saves just the currently
visible contents but will always prompt the user for a filename.
<SPAN
CLASS="GUIMENUITEM"
>Save All</SPAN
> can be used to save the full
contents of the text window, including any text that is currently
hidden. It will always prompt for a new filename, to avoid confusion
with partial savefiles.
    </P
><P
>Usually the eCos application will be run from inside gdb or from a
shell prompt. Killing off the application while it is being debugged
in a gdb session is not a good idea, it would be better to use gdb's
own <B
CLASS="COMMAND"
>kill</B
> command. Alternatively the eCos
application itself can use the <TT
CLASS="FUNCTION"
>CYG_TEST_EXIT</TT
> or
<TT
CLASS="FILENAME"
>cyg_hal_sys_exit</TT
> functionality. However it is
possible to terminate the application from the I/O auxiliary using
<SPAN
CLASS="GUIMENUITEM"
>Kill eCos</SPAN
>. A clean shutdown will be
attempted, but that can fail if the application is currently halted
inside gdb or if it has crashed completely. As a last resort
<TT
CLASS="CONSTANT"
>SIGKILL</TT
> will be used.
    </P
><P
>When operating in graphical mode the I/O auxiliary will normally
continue to run even after the eCos application has exited. This
allows the user to examine the last few lines of output, and perhaps
perform actions such as saving the output to a file. The
<SPAN
CLASS="GUIMENUITEM"
>Exit</SPAN
> menu item can be used to shut down the
auxiliary. Note that this behaviour can be changed with command line
arguments <A
HREF="synth-running.html#SYNTH-RUNNING-ARGUMENTS"
><TT
CLASS="OPTION"
>--exit</TT
></A
> and
<A
HREF="synth-running.html#SYNTH-RUNNING-ARGUMENTS"
><TT
CLASS="OPTION"
>--no-exit</TT
></A
>.
    </P
><P
>If <SPAN
CLASS="GUIMENUITEM"
>Exit</SPAN
> is used while the eCos application
is still running then the I/O auxiliary will first attempt to
terminate the application cleanly, and then exit.
    </P
><DIV
CLASS="INFORMALFIGURE"
><A
NAME="AEN18013"><P
></P
><DIV
CLASS="MEDIAOBJECT"
><P
><IMG
SRC="menu_edit.gif"
ALIGN="CENTER"></P
></DIV
><P
></P
></DIV
><P
>The <SPAN
CLASS="GUIMENU"
>Edit</SPAN
> menu contains the usual entries for
text manipulation: <SPAN
CLASS="GUIMENUITEM"
>Cut</SPAN
>,
<SPAN
CLASS="GUIMENUITEM"
>Copy</SPAN
>, <SPAN
CLASS="GUIMENUITEM"
>Paste</SPAN
>,
<SPAN
CLASS="GUIMENUITEM"
>Clear</SPAN
> and <SPAN
CLASS="GUIMENUITEM"
>Select
All</SPAN
>. These all operate on the central text window. By
default this window cannot be edited so the cut, paste and clear
operations are disabled. If the user wants to edit the contents of the
text window then the <SPAN
CLASS="GUIMENUITEM"
>Read Only</SPAN
> checkbutton
should be toggled.
    </P
><P
>The <SPAN
CLASS="GUIMENUITEM"
>Preferences</SPAN
> menu item brings up a
miscellaneous preferences dialog. One of the preferences relates to
online help: the I/O auxiliary does not currently have a built-in html
viewer; instead it will execute an external browser of some sort. With
the example settings shown, the I/O auxiliary will first attempt to
interact with an existing mozilla session. If that fails it will try
to run a new mozilla instance, or as a last result use the Gnome help
viewer. 
    </P
><DIV
CLASS="INFORMALFIGURE"
><A
NAME="AEN18027"><P
></P
><DIV
CLASS="MEDIAOBJECT"
><P
><IMG
SRC="preferences.gif"
ALIGN="CENTER"></P
></DIV
><P
></P
></DIV
><P
>The <SPAN
CLASS="GUIMENU"
>View</SPAN
> menu contains the <SPAN
CLASS="GUIMENUITEM"
>System
Filters</SPAN
> entry, used to edit the settings for the current
<A
HREF="synth-gui.html#SYNTH-GUI-TEXT"
>filters</A

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -