cvs: php-gtk-doc /manual/en/reference/gtk gtkfilechooserdialog.xml gtkfileselection.xml

From: Date: Tue, 20 Dec 2005 23:01:45 +0000
Subject: cvs: php-gtk-doc /manual/en/reference/gtk gtkfilechooserdialog.xml gtkfileselection.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1717@lists.php.net to get a copy of this message
cweiske Tue Dec 20 23:01:45 2005 EDT Modified files: /php-gtk-doc/manual/en/reference/gtk gtkfilechooserdialog.xml gtkfileselection.xml Log: Seems I forgot to commit that

http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml?r1=1.2&r2=1.3&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml:1.2 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkfilechooserdialog.xml Tue Dec 20 23:01:45 2005 @@ -3,11 +3,21 @@ <classmeta> <classtitle>GtkFileChooserDialog</classtitle> <classparent>GtkDialog</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkfilechooserdialog.png"/> <shortdesc> - + A standard dialog box to choose a file. </shortdesc> <desc> - + <para> + The <classname>GtkFileChooserDialog</classname> provides a standard + dialog box which allows the user to choose a file. The dialog box + implements the <classname>GtkFileChooser</classname> widget to + enable the user to choose a particular file. + </para> + <para> + Note that the <classname>GtkFileChooserDialog</classname> has no + methods of its own. + </para> </desc> </classmeta> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml?r1=1.3&r2=1.4&diff_format=u Index: php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml:1.3 Tue Aug 2 11:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkfileselection.xml Tue Dec 20 23:01:45 2005 @@ -3,14 +3,63 @@ <classmeta> <classtitle>GtkFileSelection</classtitle> <classparent>GtkDialog</classparent> + <classimage fileref="&directory.images;/reference/gtk/gtkfileselection.png"/> <shortdesc> - + Prompts the user for a file/directory name. </shortdesc> <desc> - + <para> + This widget is particularly useful when you want to retrieve a file or + directory name from the user. It is slightly more advanced than the + file selector in two ways: firstly, the user may select a directory + here, and secondly, you have the choice to let the user create + </para> + <para> + You may create a new <classname>GtkFileSelection</classname> by using + its constructor. This will generate a dialog box containing a directory + list, and a file list corresponding to the current working directory. + The file system may be navigated using the directory list or the + drop-down history menu (the visibility of which may be controlled). + </para> + <para> + Note that the TAB key may also be used for completing file/directory + names. + </para> + <note> + The <classname>GtkFileSelection</classname> is actually made of the + following <classname>GtkWidget</classname> fields: + <itemizedlist> + <listitem> + fileop_dialog: This dialog box is used to display the + GtkFileSelection. You may customize it using the standard + <classname>GtkDialog</classname> + functions. + </listitem> + <listitem> + ok_button, cancel_button: These two buttons should be connected + appropriately to handle situations when the user clicks the OK or + Cancel buttons respectively in the + <classname>GtkFileSelection</classname> widget. + </listitem> + <listitem> + history_pulldown: This is effectively a + <classname>GtkOptionMenu</classname> that may be used to control the + drop-down history of directories. + </listitem> + <listitem> + fileop_c_dir, fileop_del_file, fileop_ren_file: These are the operation + buttons that appear at the top of the + <classname>GtkFileSelection</classname> and perform the operations of + creating a directory, deleting a file and renaming a file + respectively. You may use the <function + classname="GtkFileSelection">hide_fileop_buttons</function> and <function + classname="GtkFileSelection">show_fileop_buttons</function> methods + to control their visibility. + </listitem> + </itemizedlist> + </note> </desc> </classmeta> - <constructors> <constructor id="gtk.gtkfileselection.constructor"> @@ -21,10 +70,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a <classname>GtkFileSelection</classname> prompt. </shortdesc> <desc> - + <para> + Use the constructor to create a prompt for the user to select a file or + directory. By default, a <classname>GtkTreeView</classname> of the + application's current working directory and its file listing will be + displayed. Operation buttons and the drop-down history of directories + are also visible. + </para> + <example> + <title>An example for a GtkFileSelection prompt.</title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkfileselection/constructor.phpw" + parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> @@ -40,10 +105,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Matches the given pattern to valid file/directory names. </shortdesc> <desc> - + Use this method to match a particular string to valid file names and + sub-directories in the current directory. If a match is made, the + matched file/directory name will appear in the text entry field of the + file selection prompt. If partial matches have been made, the files are all + listed in the files list (usually on the right hand side) and the + sub-directories in the directories (usually on the left hand side) list. </desc> </method> @@ -55,14 +125,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the selected filename. </shortdesc> <desc> <para> + Use this method to determine the filename selected by the user. The + method will simply return the current filename selected by the user. + See the constructor example for usage. + </para> + <para> See also: <function class="GtkFileSelection">set_filename</function> </para> - </desc> </method> @@ -74,14 +148,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns whether or not multiple selections are allowed. </shortdesc> <desc> <para> + Use this method to determine whether a user is allowed to select + multiple files in the file list. The function returns + <literal>TRUE</literal> if it is allowed, <literal>FALSE</literal> + otherwise. + </para> + <para> See also: <function class="GtkFileSelection">set_select_multiple</function> </para> - </desc> </method> @@ -93,10 +172,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the list of file selection made by the user. </shortdesc> <desc> - + <para> + Use this method to retrieve a list of all the files selected by the + user. Obviously this function may be used only when multiple selections + have been allowed. + </para> </desc> </method> @@ -108,14 +191,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Hides the file operation buttons. </shortdesc> <desc> <para> + Use this method to hide the three operations buttons, namely, file + rename, file delete and folder create; that appear by default on the + top the file selection dialog. + </para> + <para> See also: <function class="GtkFileSelection">show_fileop_buttons</function> </para> - </desc> </method> @@ -127,14 +214,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the default path for the file selector. </shortdesc> <desc> <para> + Use this method to set the default path that is displayed to the user. + If the given filename is actually a directory, then that directory is + set as the current working directory of the file selection dialog. + </para> + <para> See also: <function class="GtkFileSelection">get_filename</function> </para> - </desc> </method> @@ -146,14 +237,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether multiple selections are allowed. </shortdesc> <desc> <para> + Use this method if you want to allow the user to select multiple files + in the file list of the file selection dialog. After selection, you + may use + <function classname="GtkFileSelection">get_select_multiple</function> + to return a list of the files selected by the user. + </para> + <para> See also: <function class="GtkFileSelection">get_select_multiple</function> </para> - </desc> </method> @@ -165,14 +262,22 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Shows the file operation buttons. </shortdesc> <desc> <para> + Use this method if you want to show the three file operation buttons + at the top of the file selection dialog, namely, file rename, file + delete and folder create. + </para> + <note> + The file operation button are shown by default. There is no need to + call this method explicitly. + </note> + <para> See also: <function class="GtkFileSelection">hide_fileop_buttons</function> </para> - </desc> </method> @@ -204,6 +309,7 @@ <propname>cancel_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the cancel button of the file selection prompt. </shortdesc> <desc> @@ -214,6 +320,8 @@ <propname>dir_list</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the directory list displayed on the left of the file + selection prompt. </shortdesc> <desc> @@ -224,6 +332,8 @@ <propname>file_list</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the file list displayed on the right of the file selection + prompt. </shortdesc> <desc> @@ -234,6 +344,7 @@ <propname>fileop_c_dir</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the create directory operation button of the dialog. </shortdesc> <desc> @@ -244,6 +355,7 @@ <propname>fileop_del_file</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the delete file operation button of the dialog. </shortdesc> <desc> @@ -254,6 +366,7 @@ <propname>fileop_dialog</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the dialog that contains the operation buttons. </shortdesc> <desc> @@ -284,6 +397,7 @@ <propname>fileop_ren_file</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the rename file operation button of the dialog. </shortdesc> <desc> @@ -294,6 +408,7 @@ <propname>help_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the help button of the file selection prompt. </shortdesc> <desc> @@ -334,6 +449,7 @@ <propname>ok_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + Refers to the OK button of the file selection prompt. </shortdesc> <desc>
« previous php.gtk.doc (#1717) next »