The Gnome Chemistry Utils  0.14.0
Public Member Functions | List of all members
gcugtk::FileChooser Class Reference

#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)

Detailed Description

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.

Constructor & Destructor Documentation

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 
)
Parameters
Appthe Application instance owning the dialog.
Savetells if the requested file is to be saved or loaded.
mime_typesa std::list of supported mime types.
pDocthe document to save, the parameter is optional when loading. Default value is NULL.
titlean optional title for the dialog box. Default value is NULL.
extra_widgetan 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).


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