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
|
|
|
|
2006-04-05 16:38:33 +08:00
|
|
|
GimpPlugInProcedure *file_proc;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2006-03-29 01:08:36 +08:00
|
|
|
GimpImage *image;
|
2008-10-05 23:21:02 +08:00
|
|
|
gboolean open_as_layers;
|
2004-11-16 21:37:36 +08:00
|
|
|
gboolean save_a_copy;
|
2009-04-25 16:51:07 +08:00
|
|
|
gboolean export;
|
2007-01-21 03:38:09 +08:00
|
|
|
gboolean close_after_saving;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2004-07-17 05:24:39 +08:00
|
|
|
GtkWidget *thumb_box;
|
|
|
|
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;
|
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
|
|
|
};
|
|
|
|
|
|
|
|
|
2008-05-08 19:30:54 +08:00
|
|
|
typedef struct _GimpFileDialogState GimpFileDialogState;
|
|
|
|
|
|
|
|
|
2008-10-05 23:21:02 +08:00
|
|
|
GType gimp_file_dialog_get_type (void) G_GNUC_CONST;
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2008-10-05 23:21:02 +08:00
|
|
|
GtkWidget * gimp_file_dialog_new (Gimp *gimp,
|
2009-04-24 13:36:41 +08:00
|
|
|
GimpFileChooserAction action,
|
2008-10-05 23:21:02 +08:00
|
|
|
const gchar *title,
|
|
|
|
const gchar *role,
|
|
|
|
const gchar *stock_id,
|
|
|
|
const gchar *help_id);
|
2004-04-16 00:28:26 +08:00
|
|
|
|
2008-10-05 23:21:02 +08:00
|
|
|
void gimp_file_dialog_set_sensitive (GimpFileDialog *dialog,
|
|
|
|
gboolean sensitive);
|
2004-08-11 05:20:38 +08:00
|
|
|
|
2008-10-05 23:21:02 +08:00
|
|
|
void gimp_file_dialog_set_file_proc (GimpFileDialog *dialog,
|
|
|
|
GimpPlugInProcedure *file_proc);
|
2004-02-27 22:20:19 +08:00
|
|
|
|
2008-10-05 23:21:02 +08:00
|
|
|
void gimp_file_dialog_set_open_image (GimpFileDialog *dialog,
|
|
|
|
GimpImage *image,
|
|
|
|
gboolean open_as_layers);
|
|
|
|
void gimp_file_dialog_set_save_image (GimpFileDialog *dialog,
|
2009-05-01 18:22:41 +08:00
|
|
|
Gimp *gimp,
|
2008-10-05 23:21:02 +08:00
|
|
|
GimpImage *image,
|
|
|
|
gboolean save_a_copy,
|
2009-04-25 16:51:07 +08:00
|
|
|
gboolean export,
|
2008-10-05 23:21:02 +08:00
|
|
|
gboolean close_after_saving);
|
2004-03-01 20:27:33 +08:00
|
|
|
|
2008-05-08 19:30:54 +08:00
|
|
|
GimpFileDialogState * gimp_file_dialog_get_state (GimpFileDialog *dialog);
|
|
|
|
void gimp_file_dialog_set_state (GimpFileDialog *dialog,
|
|
|
|
GimpFileDialogState *state);
|
|
|
|
void gimp_file_dialog_state_destroy (GimpFileDialogState *state);
|
|
|
|
|
|
|
|
|
2004-02-27 22:20:19 +08:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GIMP_FILE_DIALOG_H__ */
|