gtkutil::FileChooser::Preview Class Reference

#include <filechooser.h>

Inheritance diagram for gtkutil::FileChooser::Preview:
Inheritance graph
[legend]

Public Member Functions

virtual GtkWidgetgetPreviewWidget ()=0
virtual void onFileSelectionChanged (const std::string &newFileName, FileChooser &fileChooser)=0

Detailed Description

greebo: A Preview class can be attached to a FileChooser (in "open" mode), to allow for adding and updating a preview widget to the dialog. The Preview object must provide two methods, one for retrieving the preview widget for addition to the dialog, and one update method which gets called as soon as the dialog emits the selection change signal.

Definition at line 49 of file filechooser.h.


Member Function Documentation

virtual GtkWidget* gtkutil::FileChooser::Preview::getPreviewWidget (  )  [pure virtual]

Implemented in map::MapFileChooserPreview.

virtual void gtkutil::FileChooser::Preview::onFileSelectionChanged ( const std::string newFileName,
FileChooser fileChooser 
) [pure virtual]

Gets called whenever the user changes the file selection. Note: this method must call the setPreviewActive() method on the FileChooser class to indicate whether the widget is active or not.

Implemented in map::MapFileChooserPreview.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2