#include <Flu_File_Chooser.h>
Inheritance diagram for Flu_File_Chooser::PreviewWidgetBase:
Public Member Functions | |
virtual int | preview (const char *filename)=0 |
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.