Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 76909b5763edb96a2bc7bd7fb5b301b8 > files > 23

cuiterm-0.9.9-1mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><TITLE>CuiFileMenu</TITLE><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Cuiterm Reference Manual" HREF="index.html"><LINK REL="UP" TITLE="Cuiterm Documentation 0.5" HREF="c4.html"><LINK REL="PREVIOUS" TITLE="CuiPopupMenu" HREF="cuipopupmenu.html"><LINK REL="NEXT" TITLE="CuiModeMenu" HREF="cuimodemenu.html"><META NAME="GENERATOR" CONTENT="GTK-Doc V1.3 (SGML mode)"><STYLE TYPE="text/css">.synopsis, .classsynopsis {
    background: #eeeeee;
    border: solid 1px #aaaaaa;
    padding: 0.5em;
}
.programlisting {
    background: #eeeeff;
    border: solid 1px #aaaaff;
    padding: 0.5em;
}
.variablelist {
    padding: 4px;
    margin-left: 3em;
}
.navigation {
    background: #ffeeee;
    border: solid 1px #ffaaaa;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.navigation a {
    color: #770000;
}
.navigation a:visited {
    color: #550000;
}
.navigation .title {
    font-size: 200%;
}</STYLE></HEAD><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"><TABLE WIDTH="100%" CLASS="navigation" SUMMARY="Navigation header" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD><A ACCESSKEY="p" HREF="cuipopupmenu.html"><IMG SRC="left.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Prev"></A></TD><TD><A ACCESSKEY="u" HREF="c4.html"><IMG SRC="up.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Up"></A></TD><TD><A ACCESSKEY="h" HREF="index.html"><IMG SRC="home.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Home"></A></TD><TH WIDTH="100%" align="center">Cuiterm Reference Manual</TH><TD><A ACCESSKEY="n" HREF="cuimodemenu.html"><IMG SRC="right.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Next"></A></TD></TR></TABLE><H1><A NAME="CUIFILEMENU"></A>CuiFileMenu</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN5331"></A><H2>Name</H2>CuiFileMenu&nbsp;--&nbsp;</DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN5334"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS">&#13;#include &lt;history.h&gt;


            <A HREF="cuifilemenu.html#CUIFILEMENU-STRUCT">CuiFileMenu</A>;
<A HREF="cuiwidget.html">CuiWidget</A>*  <A HREF="cuifilemenu.html#CUI-FILE-MENU-NEW">cui_file_menu_new</A>               (void);
<A HREF="cuifilemenu.html">CuiFileMenu</A>* <A HREF="cuifilemenu.html#CUI-FILE-MENU-NEW-FOR-FILENAME">cui_file_menu_new_for_filename</A> (<A HREF="cuiwindow.html">CuiWindow</A> *window,
                                             <A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background,
                                             <A HREF="cuifilename.html">CuiFilename</A> *file,
                                             GtkTextMark *begin,
                                             GtkTextMark *end);
void        <A HREF="cuifilemenu.html#CUI-FILE-MENU-SET-FILENAME">cui_file_menu_set_filename</A>      (<A HREF="cuifilemenu.html">CuiFileMenu</A> *file_menu,
                                             <A HREF="cuifilename.html">CuiFilename</A> *filename);
<A HREF="cuifilename.html">CuiFilename</A>* <A HREF="cuifilemenu.html#CUI-FILE-MENU-GET-FILENAME">cui_file_menu_get_filename</A>     (<A HREF="cuifilemenu.html">CuiFileMenu</A> *file_menu);
void        <A HREF="cuifilemenu.html#CUI-FILE-MENU-POPUP">cui_file_menu_popup</A>             (<A HREF="cuifilemenu.html">CuiFileMenu</A> *cui_file_menu,
                                             GtkWidget *parent_widget,
                                             GdkEventButton *event);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5359"></A><H2>Object Hierarchy</H2><PRE CLASS="SYNOPSIS">&#13;  GObject
   +----<A HREF="cuiwidget.html">CuiWidget</A>
         +----<A HREF="cuipopupmenu.html">CuiPopupMenu</A>
               +----CuiFileMenu</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5365"></A><H2>Properties</H2><PRE CLASS="SYNOPSIS">&#13;  &quot;<A HREF="cuifilemenu.html#CUIFILEMENU--FILENAME">filename</A>&quot;             gpointer              : Read / Write</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5370"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5373"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN5375"></A><H3><A NAME="CUIFILEMENU-STRUCT"></A>CuiFileMenu</H3><PRE CLASS="PROGRAMLISTING">typedef struct _CuiFileMenu CuiFileMenu;</PRE><P></P></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5382"></A><H3><A NAME="CUI-FILE-MENU-NEW"></A>cui_file_menu_new ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuiwidget.html">CuiWidget</A>*  cui_file_menu_new               (void);</PRE><P>Creates a new use menu.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5392"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new <A HREF="cuiusermenu.html"><SPAN CLASS="TYPE">CuiUserMenu</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5399"></A><H3><A NAME="CUI-FILE-MENU-NEW-FOR-FILENAME"></A>cui_file_menu_new_for_filename ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuifilemenu.html">CuiFileMenu</A>* cui_file_menu_new_for_filename (<A HREF="cuiwindow.html">CuiWindow</A> *window,
                                             <A HREF="cuiterm-background.html#BACKGROUND">Background</A> *background,
                                             <A HREF="cuifilename.html">CuiFilename</A> *file,
                                             GtkTextMark *begin,
                                             GtkTextMark *end);</PRE><P>Creates a new <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A> for the given begin/end points.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5416"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">window</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> this <A HREF="cuiwindow.html"><SPAN CLASS="TYPE">CuiWindow</SPAN></A> will contain the new <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5425"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">background</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <CODE CLASS="PARAMETER">Background</CODE> for the new menu</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5431"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">file</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuifilename.html"><SPAN CLASS="TYPE">CuiFilename</SPAN></A> for the menu</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5438"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">begin</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the begin mark for the new widgets active area</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5443"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">end</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the end mark for the new widgets active area</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5448"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a new <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5455"></A><H3><A NAME="CUI-FILE-MENU-SET-FILENAME"></A>cui_file_menu_set_filename ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_file_menu_set_filename      (<A HREF="cuifilemenu.html">CuiFileMenu</A> *file_menu,
                                             <A HREF="cuifilename.html">CuiFilename</A> *filename);</PRE><P>Sets the file for this <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A>.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5469"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">file_menu</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5476"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">filename</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuifilename.html"><SPAN CLASS="TYPE">CuiFilename</SPAN></A></P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5483"></A><H3><A NAME="CUI-FILE-MENU-GET-FILENAME"></A>cui_file_menu_get_filename ()</H3><PRE CLASS="PROGRAMLISTING"><A HREF="cuifilename.html">CuiFilename</A>* cui_file_menu_get_filename     (<A HREF="cuifilemenu.html">CuiFileMenu</A> *file_menu);</PRE><P>Returns the filename belongs to this filemenu.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5494"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">file_menu</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5501"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the <A HREF="cuifilename.html"><SPAN CLASS="TYPE">CuiFilename</SPAN></A> of the menu</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5508"></A><H3><A NAME="CUI-FILE-MENU-POPUP"></A>cui_file_menu_popup ()</H3><PRE CLASS="PROGRAMLISTING">void        cui_file_menu_popup             (<A HREF="cuifilemenu.html">CuiFileMenu</A> *cui_file_menu,
                                             GtkWidget *parent_widget,
                                             GdkEventButton *event);</PRE><P>Starts up a <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A> on the given location of the screen. This function
is very important since there are a lot of file names on the screen and the
file menu is a rather complicated and powerfull user interface element.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5523"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">cui_file_menu</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> a <A HREF="cuifilemenu.html"><SPAN CLASS="TYPE">CuiFileMenu</SPAN></A> to pop-up</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5530"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">parent_widget</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the parent widget of the menu</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5535"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">event</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the event that caused this opertaion</P></TD></TR></TBODY></TABLE></DIV></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5540"></A><H2>Properties</H2><DIV CLASS="REFSECT2"><A NAME="AEN5542"></A><H3><A NAME="CUIFILEMENU--FILENAME"></A>The &quot;<TT CLASS="LITERAL">filename</TT>&quot; property</H3><PRE CLASS="PROGRAMLISTING">  &quot;filename&quot;             gpointer              : Read / Write</PRE><P>The CuiFilename type file name for the menu.</P></DIV></DIV><TABLE CLASS="navigation" WIDTH="100%" SUMMARY="Navigation footer" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD ALIGN="left"><A ACCESSKEY="p" HREF="cuipopupmenu.html"><B>&lt;&lt;&lt;&nbsp;CuiPopupMenu</B></A></TD><TD ALIGN="right"><A ACCESSKEY="n" HREF="cuimodemenu.html"><B>CuiModeMenu&nbsp;&gt;&gt;&gt;</B></A></TD></TR></TABLE></BODY></HTML>