Main Page | Class Hierarchy | Class List | File List | Class Members

Flu_File_Chooser::PreviewWidgetBase Class Reference

This class must be derived from to create a "preview" widget. More...

#include <Flu_File_Chooser.h>

Inheritance diagram for Flu_File_Chooser::PreviewWidgetBase:

List of all members.

Public Member Functions

virtual int preview (const char *filename)=0

Detailed Description

This class must be derived from to create a "preview" widget.

Simply derive from this class and overload Fl_Group's methods to create a widget able to preview whatever file type you want. Register it with Flu_File_Chooser::add_preview_handler() When a file is previewed, all registered handlers are visited until the preview() virtual function for one of them returns nonzero. When preview() is called, the absolute path of the file is passed in, and the widget should determine whether it can preview the file and update itself accordingly. If it can preview the file, it should return nonzero, else it should return zero.


The documentation for this class was generated from the following file:
Generated on Fri Nov 5 12:41:32 2004 for FLTK Utility Library and Widget Collection (FLU) by doxygen 1.3.5