mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-23 21:11:43 +00:00
14d0a3ff07
2001-12-29 Michael Natterer <mitch@gimp.org> * app/gimpprogress.c * app/nav_window.c * app/ops_buttons.c * app/undo_history.c * app/display/gimpdisplayshell.c * app/gui/about-dialog.c * app/gui/brush-editor.c * app/gui/channels-commands.c * app/gui/color-area.c * app/gui/color-notebook.c * app/gui/color-select.c * app/gui/colormap-dialog.c * app/gui/convert-dialog.c * app/gui/device-status-dialog.c * app/gui/file-new-dialog.c * app/gui/file-open-dialog.c * app/gui/file-save-dialog.c * app/gui/gradient-editor.c * app/gui/info-dialog.c * app/gui/layers-commands.c * app/gui/module-browser.c * app/gui/offset-dialog.c * app/gui/palette-editor.c * app/gui/palettes-commands.c * app/gui/paths-dialog.c * app/gui/qmask-commands.c * app/gui/resize-dialog.c * app/gui/resolution-calibrate-dialog.c * app/gui/splash.c * app/gui/tips-dialog.c * app/gui/toolbox.c * app/gui/user-install-dialog.c * app/tools/gimpbrightnesscontrasttool.c * app/tools/gimpbycolorselecttool.c * app/tools/gimpcolorbalancetool.c * app/tools/gimpcolorpickertool.c * app/tools/gimpcroptool.c * app/tools/gimpcurvestool.c * app/tools/gimphuesaturationtool.c * app/tools/gimpinktool.c * app/tools/gimplevelstool.c * app/tools/gimpposterizetool.c * app/tools/gimprotatetool.c * app/tools/gimpthresholdtool.c * app/tools/paint_options.c * app/tools/selection_options.c * app/widgets/gimpchannellistview.c * app/widgets/gimpcolorpanel.c * app/widgets/gimpcomponentlistitem.c * app/widgets/gimpconstrainedhwrapbox.c * app/widgets/gimpcontainergridview.c * app/widgets/gimpcontainerlistview.c * app/widgets/gimpcontainermenuimpl.c * app/widgets/gimpdialogfactory.c * app/widgets/gimpdnd.c * app/widgets/gimpdock.c * app/widgets/gimpdockbook.c * app/widgets/gimpdrawablelistitem.c * app/widgets/gimpdrawablelistview.c * app/widgets/gimpfontselection-dialog.c * app/widgets/gimphistogramview.c * app/widgets/gimpitemfactory.c * app/widgets/gimplayerlistitem.c * app/widgets/gimplistitem.[ch] * app/widgets/gimpmenuitem.c * app/widgets/gimppreview.[ch] * app/widgets/gtkhwrapbox.c * app/widgets/gtkvwrapbox.c * app/widgets/gtkwrapbox.c * libgimp/gimpbrushmenu.c * libgimp/gimpexport.c * libgimp/gimpgradientmenu.c * libgimp/gimpmenu.c * libgimp/gimppatternmenu.c * libgimpwidgets/gimpbutton.c * libgimpwidgets/gimpchainbutton.[ch] * libgimpwidgets/gimpcolorarea.h * libgimpwidgets/gimpcolorbutton.c * libgimpwidgets/gimpfileselection.c * libgimpwidgets/gimphelpui.c * libgimpwidgets/gimpoffsetarea.c * libgimpwidgets/gimppatheditor.c * libgimpwidgets/gimppixmap.h * libgimpwidgets/gimpquerybox.c * libgimpwidgets/gimpstock.[ch] * libgimpwidgets/gimpwidgets.h * plug-ins/FractalExplorer/Dialogs.c * plug-ins/FractalExplorer/Events.c * plug-ins/FractalExplorer/FractalExplorer.c * plug-ins/Lighting/lighting_ui.c * plug-ins/MapObject/mapobject_ui.c * plug-ins/bmp/bmpwrite.c * plug-ins/dbbrowser/dbbrowser_utils.c * plug-ins/fits/fits.c * plug-ins/flame/flame.c * plug-ins/fp/fp_gtk.c * plug-ins/fp/fp_misc.c * plug-ins/gfig/gfig.c * plug-ins/gflare/gflare.c * plug-ins/gfli/gfli.c * plug-ins/gimpressionist/*.c * plug-ins/imagemap/*.[ch] * plug-ins/maze/maze_face.c * plug-ins/mosaic/mosaic.c * plug-ins/pagecurl/pagecurl.c * plug-ins/print/print_gimp.h * plug-ins/rcm/rcm_callback.c * plug-ins/rcm/rcm_dialog.c * plug-ins/rcm/rcm_misc.c * plug-ins/script-fu/script-fu-console.c * plug-ins/script-fu/script-fu-scripts.c * plug-ins/script-fu/script-fu-server.c * plug-ins/sel2path/sel2path.c * plug-ins/sel2path/sel2path_adv_dialog.c * plug-ins/sgi/sgi.c * plug-ins/webbrowser/webbrowser.c * plug-ins/xjt/xjt.c * plug-ins/common/[A-n]*.c: compile with GTK_DISABLE_DEPRECATED defined. Not everything is fully ported yet, had to #undef GTK_DISABLE_DEPRECATED in many places and added #warnings when doing so. * pixmaps/Makefile.am * pixmaps/chain.xpm: removed. * themes/Default/Makefile.am * themes/Default/images/Makefile.am * themes/Default/images/stock-button-hchain-broken.png * themes/Default/images/stock-button-hchain.png * themes/Default/images/stock-button-vchain-broken.png * themes/Default/images/stock-button-vchain.png: new stock icons.
144 lines
4.6 KiB
C
144 lines
4.6 KiB
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* gimppreview.h
|
|
* Copyright (C) 2001 Michael Natterer <mitch@gimp.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (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
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __GIMP_PREVIEW_H__
|
|
#define __GIMP_PREVIEW_H__
|
|
|
|
|
|
#undef GTK_DISABLE_DEPRECATED
|
|
|
|
#include <gtk/gtkpreview.h>
|
|
|
|
#define GTK_DISABLE_DEPRECATED
|
|
|
|
|
|
#define GIMP_TYPE_PREVIEW (gimp_preview_get_type ())
|
|
#define GIMP_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_PREVIEW, GimpPreview))
|
|
#define GIMP_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_PREVIEW, GimpPreviewClass))
|
|
#define GIMP_IS_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GIMP_TYPE_PREVIEW))
|
|
#define GIMP_IS_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_PREVIEW))
|
|
#define GIMP_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_PREVIEW, GimpPreviewClass))
|
|
|
|
|
|
typedef struct _GimpPreviewClass GimpPreviewClass;
|
|
|
|
struct _GimpPreview
|
|
{
|
|
GtkPreview parent_instance;
|
|
|
|
GimpViewable *viewable;
|
|
|
|
gint width;
|
|
gint height;
|
|
gint border_width;
|
|
gboolean dot_for_dot;
|
|
|
|
GimpRGB border_color;
|
|
|
|
gboolean is_popup;
|
|
gboolean clickable;
|
|
gboolean show_popup;
|
|
|
|
/*< private >*/
|
|
gint size;
|
|
gboolean in_button;
|
|
guint press_state;
|
|
guint idle_id;
|
|
guint popup_id;
|
|
gint popup_x;
|
|
gint popup_y;
|
|
};
|
|
|
|
struct _GimpPreviewClass
|
|
{
|
|
GtkPreviewClass parent_class;
|
|
|
|
/* signals */
|
|
void (* clicked) (GimpPreview *preview);
|
|
void (* double_clicked) (GimpPreview *preview);
|
|
void (* extended_clicked) (GimpPreview *preview,
|
|
guint modifier_state);
|
|
void (* context) (GimpPreview *preview);
|
|
|
|
/* virtual functions */
|
|
void (* render) (GimpPreview *preview);
|
|
void (* get_size) (GimpPreview *preview,
|
|
gint size,
|
|
gint *width,
|
|
gint *height);
|
|
gboolean (* needs_popup) (GimpPreview *preview);
|
|
GtkWidget * (* create_popup) (GimpPreview *preview);
|
|
};
|
|
|
|
|
|
GType gimp_preview_get_type (void) G_GNUC_CONST;
|
|
|
|
GtkWidget * gimp_preview_new (GimpViewable *viewable,
|
|
gint size,
|
|
gint border_width,
|
|
gboolean is_popup);
|
|
GtkWidget * gimp_preview_new_full (GimpViewable *viewable,
|
|
gint width,
|
|
gint height,
|
|
gint border_width,
|
|
gboolean is_popup,
|
|
gboolean clickable,
|
|
gboolean show_popup);
|
|
|
|
void gimp_preview_set_viewable (GimpPreview *preview,
|
|
GimpViewable *viewable);
|
|
|
|
void gimp_preview_set_size (GimpPreview *preview,
|
|
gint size,
|
|
gint border_width);
|
|
void gimp_preview_set_size_full (GimpPreview *preview,
|
|
gint width,
|
|
gint height,
|
|
gint border_width);
|
|
|
|
void gimp_preview_set_dot_for_dot (GimpPreview *preview,
|
|
gboolean dot_for_dot);
|
|
|
|
void gimp_preview_set_border_color (GimpPreview *preview,
|
|
const GimpRGB *border_color);
|
|
|
|
void gimp_preview_render (GimpPreview *preview);
|
|
|
|
|
|
/* protected */
|
|
|
|
void gimp_preview_calc_size (GimpPreview *preview,
|
|
gint aspect_width,
|
|
gint aspect_height,
|
|
gint width,
|
|
gint height,
|
|
gdouble xresolution,
|
|
gdouble yresolution,
|
|
gint *return_width,
|
|
gint *return_height,
|
|
gboolean *scaling_up);
|
|
void gimp_preview_render_and_flush (GimpPreview *preview,
|
|
TempBuf *temp_buf,
|
|
gint channel);
|
|
|
|
|
|
#endif /* __GIMP_PREVIEW_H__ */
|