From 9a528400f083b3761e0d54565ea1002604f5472a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 4 Sep 2001 13:13:29 +0000 Subject: Doco updates. Add directory-only support to Fl_FileBrowser. Update button and menu drawing code for check and radio buttons. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1582 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_FileChooser.html | 110 +++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 60 deletions(-) (limited to 'documentation/Fl_FileChooser.html') diff --git a/documentation/Fl_FileChooser.html b/documentation/Fl_FileChooser.html index 6a3010702..13846c34d 100644 --- a/documentation/Fl_FileChooser.html +++ b/documentation/Fl_FileChooser.html @@ -1,72 +1,60 @@ - - FileChooser - ESP Widget Set for FLTK - - - Widget Set Home Page - Widget Set Documentation - Download Widget Set - ESP Home Page - FLTK Home Page - - - - + -

class FileChooser

+

class Fl_FileChooser


Class Hierarchy

Include Files

Description

-

The FileChooser widget displays a standard file selection +

The Fl_FileChooser widget displays a standard file selection dialog that supports various selection modes. -

FileChooser widget
+
Fl_FileChooser widget

Methods

-

FileChooser(const char *pathname, const char *pattern, +

Fl_FileChooser(const char *pathname, const char *pattern, int type, const char *title)

-

The constructor creates the FileChooser dialog pictured +

The constructor creates the Fl_FileChooser dialog pictured above. The pathname argument can be a directory name or a complete file name (in which case the corresponding file is highlighted in the list and in the filename input field.) @@ -84,86 +72,88 @@ in the list and in the filename input field.) or more existing files.

  • CREATE - allows the user to select a single, existing file or specify a new filename. +
  • DIRECTORY - allows the user to select a + single, existing directory.

    The title argument is used to set the title bar text for the -FileChooser window. +Fl_FileChooser window. -

    ~FileChooser()

    +

    ~Fl_FileChooser()

    Destroys the widget and frees all memory used by it. -

    void color(Fl_Color c)
    +

    void color(Fl_Color c)
    Fl_Color color()

    Sets or gets the background color of the FileBrowser list. -

    int count()

    +

    int count()

    Returns the number of selected files. -

    void directory(const char *pathname)
    +

    void directory(const char *pathname)
    const char *directory()

    Sets or gets the current directory. -

    void filter(const char *pattern)
    +

    void filter(const char *pattern)
    const char *filter()

    Sets or gets the current filename filter pattern. -

    void hide()

    +

    void hide()

    -

    Hides the FileChooser window. +

    Hides the Fl_FileChooser window. -

    void iconsize(uchar s)
    +

    void iconsize(uchar s)
    uchar iconsize()

    Sets or gets the size of the icons in the FileBrowser. By default the icon size is set to 1.5 times the textsize(). -

    void label(const char *l)
    +

    void label(const char *l)
    const char *label()

    -

    Sets or gets the title bar text for the FileChooser. +

    Sets or gets the title bar text for the Fl_FileChooser. -

    void rescan()

    +

    void rescan()

    Reloads the current directory in the FileBrowser. -

    void show()

    +

    void show()

    -

    Shows the FileChooser window. +

    Shows the Fl_FileChooser window. -

    void textcolor(Fl_Color c)
    +

    void textcolor(Fl_Color c)
    Fl_Color textcolor()

    Sets or gets the current FileBrowser text color. -

    void textfont(uchar f)
    +

    void textfont(uchar f)
    uchar textfont()

    Sets or gets the current FileBrowser text font. -

    void textsize(uchar s)
    +

    void textsize(uchar s)
    uchar textsize()

    Sets or gets the current FileBrowser text size. -

    void type(int t)
    +

    void type(int t)
    int type()

    -

    Sets or gets the current type of FileChooser. +

    Sets or gets the current type of Fl_FileChooser. -

    const char *value(const char *pathname)
    +

    const char *value(const char *pathname)
    const char *value(int file)
    const char *value()

    Sets or gets the current value of the selected file. -

    int visible()

    +

    int visible()

    -

    Returns 1 if the FileChooser window is visible. +

    Returns 1 if the Fl_FileChooser window is visible.


    -- cgit v1.2.3