<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Gtk::FileSelection class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gtk::FileSelection Class Reference<br> <small> [<a class="el" href="group__Dialogs.html">Dialogs</a>]</small> </h1>Prompt the user for a file or directory name. <a href="#_details">More...</a> <p> Inheritance diagram for Gtk::FileSelection:<p><center><img src="classGtk_1_1FileSelection__inherit__graph.png" border="0" usemap="#Gtk_1_1FileSelection__inherit__map" alt="Inheritance graph"></center> <map name="Gtk_1_1FileSelection__inherit__map"> <area href="classGtk_1_1Dialog.html" shape="rect" coords="27,502,101,521" alt=""> <area href="classGtk_1_1Window.html" shape="rect" coords="21,433,107,452" alt=""> <area href="classGtk_1_1Bin.html" shape="rect" coords="36,364,92,382" alt=""> <area href="classGtk_1_1Container.html" shape="rect" coords="16,294,112,313" alt=""> <area href="classGtk_1_1Widget.html" shape="rect" coords="25,225,103,244" alt=""> <area href="classGtk_1_1Object.html" shape="rect" coords="25,156,103,174" alt=""> <area href="classGlib_1_1Object.html" shape="rect" coords="24,86,104,105" alt=""> <area href="classGlib_1_1ObjectBase.html" shape="rect" coords="9,17,119,36" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1FileSelection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a0">~FileSelection</a> ()</td></tr> <tr><td nowrap align=right valign=top>GtkFileSelection* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a1">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GtkFileSelection* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a2">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a3">FileSelection</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a4">FileSelection</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& title)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a5">set_filename</a> (const std::string& filename)</td></tr> <tr><td> </td><td><font size=-1><em>Sets a default path for the file requestor.</em> <a href="#a5"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>std::string </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a6">get_filename</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>This function returns the selected filename in the on-disk encoding (see Glib::filename_from_utf8()), which may or may not be the same as that used by GTK+ (UTF-8).</em> <a href="#a6"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a7">complete</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& pattern)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a8">show_fileop_buttons</a> ()</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a9">hide_fileop_buttons</a> ()</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a><std::string> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a10">get_selections</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Retrieves the list of file selections the user has made in the dialog box.</em> <a href="#a10"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a11">set_select_multiple</a> (bool select_multiple=true)</td></tr> <tr><td> </td><td><font size=-1><em>Sets whether the user is allowed to select multiple files in the file list.</em> <a href="#a11"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a12">get_select_multiple</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Determines whether or not the user is allowed to select multiple files in the file list.</em> <a href="#a12"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a13">get_dir_list</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a14">get_dir_list</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a15">get_file_list</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a16">get_file_list</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1OptionMenu.html">OptionMenu</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a17">get_history_pulldown</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1OptionMenu.html">OptionMenu</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a18">get_history_pulldown</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Entry.html">Entry</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a19">get_selection_entry</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Entry.html">Entry</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a20">get_selection_entry</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Label.html">Label</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a21">get_selection_text</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Label.html">Label</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a22">get_selection_text</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1VBox.html">VBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a23">get_main_vbox</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1VBox.html">VBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a24">get_main_vbox</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a25">get_ok_button</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a26">get_ok_button</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a27">get_cancel_button</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a28">get_cancel_button</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a29">get_help_button</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Button.html">Button</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a30">get_help_button</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1HButtonBox.html">HButtonBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a31">get_button_area</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1HButtonBox.html">HButtonBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a32">get_button_area</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1HBox.html">HBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a33">get_action_area</a> ()</td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1HBox.html">HBox</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a34">get_action_area</a> () const</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a35">property_show_fileops</a> ()</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><std::string> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a36">property_filename</a> ()</td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#a37">property_select_multiple</a> ()</td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top>Gtk::FileSelection* </td><td valign=bottom><a class="el" href="classGtk_1_1FileSelection.html#k0">wrap</a> (GtkFileSelection* object, bool take_copy=false)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Prompt the user for a file or directory name. <p> Gtk::FileSelection should be used to retrieve file or directory names from the user. It will create a new dialog window containing a directory list, and a file list corresponding to the current working directory. The filesystem can be navigated using the directory list or the drop-down history menu. Alternatively, the TAB key can be used to navigate using filename completion - common in text based editors such as emacs and jed. <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gtk::FileSelection::~FileSelection"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual Gtk::FileSelection::~FileSelection </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Gtk::FileSelection::FileSelection"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::FileSelection::FileSelection </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="Gtk::FileSelection::FileSelection"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::FileSelection::FileSelection </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>title</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a7" doxytag="Gtk::FileSelection::complete"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::FileSelection::complete </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname1" valign="top" nowrap> <em>pattern</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a34" doxytag="Gtk::FileSelection::get_action_area"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1HBox.html">HBox</a>* Gtk::FileSelection::get_action_area </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Dialog.html#a18">Gtk::Dialog</a>. </td> </tr> </table> <a name="a33" doxytag="Gtk::FileSelection::get_action_area"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1HBox.html">HBox</a>* Gtk::FileSelection::get_action_area </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Dialog.html#a17">Gtk::Dialog</a>. </td> </tr> </table> <a name="a32" doxytag="Gtk::FileSelection::get_button_area"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1HButtonBox.html">HButtonBox</a>* Gtk::FileSelection::get_button_area </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a31" doxytag="Gtk::FileSelection::get_button_area"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1HButtonBox.html">HButtonBox</a>* Gtk::FileSelection::get_button_area </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a28" doxytag="Gtk::FileSelection::get_cancel_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_cancel_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a27" doxytag="Gtk::FileSelection::get_cancel_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_cancel_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a14" doxytag="Gtk::FileSelection::get_dir_list"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::FileSelection::get_dir_list </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a13" doxytag="Gtk::FileSelection::get_dir_list"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::FileSelection::get_dir_list </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a16" doxytag="Gtk::FileSelection::get_file_list"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::FileSelection::get_file_list </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a15" doxytag="Gtk::FileSelection::get_file_list"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1TreeView.html">TreeView</a>* Gtk::FileSelection::get_file_list </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Gtk::FileSelection::get_filename"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> std::string Gtk::FileSelection::get_filename </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> This function returns the selected filename in the on-disk encoding (see Glib::filename_from_utf8()), which may or may not be the same as that used by GTK+ (UTF-8). <p> To convert to UTF-8, call <a class="el" href="group__CharsetConv.html#a7">Glib::filename_to_utf8()</a>. The returned string points to a statically allocated buffer and should be copied if you plan to keep it around. <p> If no file is selected then the selected directory path is returned. <dl compact><dt><b>Returns:</b></dt><dd>Currently-selected filename in the on-disk encoding. </dd></dl> </td> </tr> </table> <a name="a30" doxytag="Gtk::FileSelection::get_help_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_help_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a29" doxytag="Gtk::FileSelection::get_help_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_help_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a18" doxytag="Gtk::FileSelection::get_history_pulldown"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1OptionMenu.html">OptionMenu</a>* Gtk::FileSelection::get_history_pulldown </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a17" doxytag="Gtk::FileSelection::get_history_pulldown"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1OptionMenu.html">OptionMenu</a>* Gtk::FileSelection::get_history_pulldown </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a24" doxytag="Gtk::FileSelection::get_main_vbox"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1VBox.html">VBox</a>* Gtk::FileSelection::get_main_vbox </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a23" doxytag="Gtk::FileSelection::get_main_vbox"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1VBox.html">VBox</a>* Gtk::FileSelection::get_main_vbox </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a26" doxytag="Gtk::FileSelection::get_ok_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_ok_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a25" doxytag="Gtk::FileSelection::get_ok_button"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Button.html">Button</a>* Gtk::FileSelection::get_ok_button </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a12" doxytag="Gtk::FileSelection::get_select_multiple"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> bool Gtk::FileSelection::get_select_multiple </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Determines whether or not the user is allowed to select multiple files in the file list. <p> See <a class="el" href="classGtk_1_1FileSelection.html#a11">set_select_multiple()</a>. <dl compact><dt><b>Returns:</b></dt><dd><code>true</code> if the user is allowed to select multiple files in the file list. </dd></dl> </td> </tr> </table> <a name="a20" doxytag="Gtk::FileSelection::get_selection_entry"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Entry.html">Entry</a>* Gtk::FileSelection::get_selection_entry </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a19" doxytag="Gtk::FileSelection::get_selection_entry"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Entry.html">Entry</a>* Gtk::FileSelection::get_selection_entry </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a22" doxytag="Gtk::FileSelection::get_selection_text"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Label.html">Label</a>* Gtk::FileSelection::get_selection_text </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a21" doxytag="Gtk::FileSelection::get_selection_text"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Label.html">Label</a>* Gtk::FileSelection::get_selection_text </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a10" doxytag="Gtk::FileSelection::get_selections"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1ArrayHandle.html">Glib::ArrayHandle</a><std::string> Gtk::FileSelection::get_selections </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Retrieves the list of file selections the user has made in the dialog box. <p> This function is intended for use when the user can select multiple files in the file list. The first file in the list is equivalent to what <a class="el" href="classGtk_1_1FileSelection.html#a6">get_filename()</a> would return. <p> The filenames are in the encoding of <a class="el" href="group__CharsetConv.html#a8">Glib::filename_from_utf8()</a>, which may or may not be the same as that used by GTK+ (UTF-8). To convert to UTF-8, call <a class="el" href="group__CharsetConv.html#a7">Glib::filename_to_utf8()</a> on each string. <dl compact><dt><b>Returns:</b></dt><dd>A newly-allocated <code>0</code>-terminated array of strings. Use Glib::strfreev() to free it. </dd></dl> </td> </tr> </table> <a name="a2" doxytag="Gtk::FileSelection::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GtkFileSelection* Gtk::FileSelection::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Dialog.html#a2">Gtk::Dialog</a>. </td> </tr> </table> <a name="a1" doxytag="Gtk::FileSelection::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkFileSelection* Gtk::FileSelection::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1Dialog.html#a1">Gtk::Dialog</a>. </td> </tr> </table> <a name="a9" doxytag="Gtk::FileSelection::hide_fileop_buttons"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::FileSelection::hide_fileop_buttons </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a36" doxytag="Gtk::FileSelection::property_filename"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><std::string> Gtk::FileSelection::property_filename </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a37" doxytag="Gtk::FileSelection::property_select_multiple"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::FileSelection::property_select_multiple </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a35" doxytag="Gtk::FileSelection::property_show_fileops"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::FileSelection::property_show_fileops </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Gtk::FileSelection::set_filename"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::FileSelection::set_filename </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const std::string& </td> <td class="mdname1" valign="top" nowrap> <em>filename</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets a default path for the file requestor. <p> If <em>filename</em> includes a directory path, then the requestor will open with that path as its current working directory. <p> The encoding of <em>filename</em> is the on-disk encoding, which may not be UTF-8. See <a class="el" href="group__CharsetConv.html#a8">Glib::filename_from_utf8()</a>. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>filename</em> </td><td>A string to set as the default file name. </td></tr> </table> </dl> </td> </tr> </table> <a name="a11" doxytag="Gtk::FileSelection::set_select_multiple"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::FileSelection::set_select_multiple </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">bool </td> <td class="mdname1" valign="top" nowrap> <em>select_multiple</em> = true </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets whether the user is allowed to select multiple files in the file list. <p> Use <a class="el" href="classGtk_1_1FileSelection.html#a10">get_selections()</a> to get the list of selected files. <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>select_multiple</em> </td><td>Whether or not the user is allowed to select multiple files in the file list. </td></tr> </table> </dl> </td> </tr> </table> <a name="a8" doxytag="Gtk::FileSelection::show_fileop_buttons"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::FileSelection::show_fileop_buttons </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gtk::FileSelection::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::FileSelection* wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkFileSelection* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="fileselection_8h.html">fileselection.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>