The Gnome Chemistry Utils
0.14.0
|
#include <gcugtk/filechooser.h>
Public Member Functions | |
FileChooser (Application *App, bool Save, std::list< std::string > mime_types, gcu::Document *pDoc=NULL, char const *title=NULL, GtkWidget *extra_widget=NULL) |
This class is used each time a file name must be choosen. It embeds a GtkFileChooserDialog window.
Definition at line 45 of file filechooser.h.
gcugtk::FileChooser::FileChooser | ( | Application * | App, |
bool | Save, | ||
std::list< std::string > | mime_types, | ||
gcu::Document * | pDoc = NULL , |
||
char const * | title = NULL , |
||
GtkWidget * | extra_widget = NULL |
||
) |
App | the Application instance owning the dialog. |
Save | tells if the requested file is to be saved or loaded. |
mime_types | a std::list of supported mime types. |
pDoc | the document to save, the parameter is optional when loading. Default value is NULL. |
title | an optional title for the dialog box. Default value is NULL. |
extra_widget | an optional widget to add to the GtkFileChooserDialog window. Default value is NULL. |
The constructor shows the GtkFileChooserDialog window, retrieve it's response and calls Application::FileProcess if needed. The dialog is modal (nothing else can be done while it is opened).