2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2004-02-27 22:20:19 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimpfiledialog.h
|
|
|
|
* Copyright (C) 2004 Michael Natterer <mitch@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2004-02-27 22:20:19 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2004-02-27 22:20:19 +08:00
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-02-27 22:20:19 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_FILE_DIALOG_H__
|
|
|
|
#define __GIMP_FILE_DIALOG_H__
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_FILE_DIALOG (gimp_file_dialog_get_type ())
|
|
|
|
#define GIMP_FILE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_FILE_DIALOG, GimpFileDialog))
|
|
|
|
#define GIMP_FILE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_FILE_DIALOG, GimpFileDialogClass))
|
|
|
|
#define GIMP_IS_FILE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_FILE_DIALOG))
|
|
|
|
#define GIMP_IS_FILE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_FILE_DIALOG))
|
|
|
|
#define GIMP_FILE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_FILE_DIALOG, GimpFileDialogClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpFileDialogClass GimpFileDialogClass;
|
|
|
|
|
|
|
|
struct _GimpFileDialog
|
|
|
|
{
|
2004-04-16 00:28:26 +08:00
|
|
|
GtkFileChooserDialog parent_instance;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2015-09-01 02:57:37 +08:00
|
|
|
Gimp *gimp;
|
2006-03-29 01:08:36 +08:00
|
|
|
GimpImage *image;
|
2015-09-01 02:57:37 +08:00
|
|
|
|
|
|
|
GimpPlugInProcedure *file_proc;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2004-07-17 05:24:39 +08:00
|
|
|
GtkWidget *thumb_box;
|
2014-10-04 08:26:36 +08:00
|
|
|
GtkWidget *extra_vbox;
|
2004-07-17 05:24:39 +08:00
|
|
|
GtkWidget *proc_expander;
|
|
|
|
GtkWidget *proc_view;
|
2004-08-11 02:47:21 +08:00
|
|
|
GtkWidget *progress;
|
2004-08-11 05:20:38 +08:00
|
|
|
|
|
|
|
gboolean busy;
|
|
|
|
gboolean canceled;
|
2015-09-01 02:57:37 +08:00
|
|
|
|
|
|
|
gchar *help_id;
|
|
|
|
gchar *stock_id;
|
|
|
|
gchar *automatic_help_id;
|
|
|
|
gchar *automatic_label;
|
|
|
|
gchar *file_filter_label;
|
|
|
|
|
|
|
|
GSList *file_procs;
|
|
|
|
GSList *file_procs_all_images;
|
2004-02-27 22:20:19 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpFileDialogClass
|
|
|
|
{
|
2004-04-16 00:28:26 +08:00
|
|
|
GtkFileChooserDialogClass parent_class;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2015-09-09 06:00:50 +08:00
|
|
|
GFile * (* get_default_folder) (GimpFileDialog *dialog);
|
2015-09-09 05:09:06 +08:00
|
|
|
|
|
|
|
void (* save_state) (GimpFileDialog *dialog,
|
|
|
|
const gchar *state_name);
|
|
|
|
void (* load_state) (GimpFileDialog *dialog,
|
|
|
|
const gchar *state_name);
|
2015-09-01 19:49:59 +08:00
|
|
|
};
|
2008-05-08 19:30:54 +08:00
|
|
|
|
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
GType gimp_file_dialog_get_type (void) G_GNUC_CONST;
|
2015-09-09 05:09:06 +08:00
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
void gimp_file_dialog_add_extra_widget (GimpFileDialog *dialog,
|
|
|
|
GtkWidget *widget,
|
|
|
|
gboolean expand,
|
|
|
|
gboolean fill,
|
|
|
|
guint padding);
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
void gimp_file_dialog_set_sensitive (GimpFileDialog *dialog,
|
|
|
|
gboolean sensitive);
|
2015-09-01 02:57:37 +08:00
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
void gimp_file_dialog_set_file_proc (GimpFileDialog *dialog,
|
|
|
|
GimpPlugInProcedure *file_proc);
|
2015-09-01 02:57:37 +08:00
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
GFile * gimp_file_dialog_get_default_folder (GimpFileDialog *dialog);
|
2004-03-01 20:27:33 +08:00
|
|
|
|
2016-01-06 21:10:36 +08:00
|
|
|
void gimp_file_dialog_save_state (GimpFileDialog *dialog,
|
|
|
|
const gchar *state_name);
|
|
|
|
void gimp_file_dialog_load_state (GimpFileDialog *dialog,
|
|
|
|
const gchar *state_name);
|
2008-05-08 19:30:54 +08:00
|
|
|
|
|
|
|
|
2004-02-27 22:20:19 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_FILE_DIALOG_H__ */
|