#include <filechooser.h>
Public Member Functions | |
virtual GtkWidget * | getPreviewWidget ()=0 |
virtual void | onFileSelectionChanged (const std::string &newFileName, FileChooser &fileChooser)=0 |
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.
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.