28 widget = gtk_file_chooser_dialog_new (
"File", NULL, GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
33 FileDialog(
const std::string title, GtkWindow *parent, GtkFileChooserAction action,
const char *stockImageName) {
34 widget = gtk_file_chooser_dialog_new (title.c_str(), parent, action, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, stockImageName, GTK_RESPONSE_ACCEPT, NULL);
44 gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(
widget), name.c_str());
52 gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(
widget), name.c_str());
59 char *fn=gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(
widget));
90 return gtk_dialog_run(GTK_DIALOG(
widget));
102 gtk_file_chooser_set_do_overwrite_confirmation(GTK_FILE_CHOOSER(
widget), TRUE);
125 #endif // FILEDIALOG_H_ FileOpenDialog(const std::string title)
FileSaveDialog(const std::string title)
virtual ~FileDialog()
Destructor.
FolderCreateDialog(const std::string title)
void setDirectory(const std::string name)
FolderSelectDialog(const std::string title)
FileDialog(const std::string title, GtkWindow *parent, GtkFileChooserAction action, const char *stockImageName)
void setFileName(const std::string name)