mirror of
https://gitlab.gnome.org/GNOME/eog
synced 2024-10-19 14:34:42 +00:00
c5cc7a4793
2001-08-21 Lutz Müller <urc8@rz.uni-karlsruhe.de> * .cvsignore: Ignore Evolution-Composer* * Makefile.am: if ENABLE_EVOLUTION, generate Evolution files * cimage.c: (img != NULL) -> IS_CIMAGE (img) * eog-collection-control.[c,h]: EogControl -> EogCollectionControl, eog_control -> eog_collection_control, EOG_CONTROL -> EOG_COLLECTION_CONTROL * eog-collection-model.[c,h]: EOG_COLLECTION_MODEL_TYPE -> EOG_TYPE_COLLECTION_MODEL (eog_collection_model_foreach): New (eog_collection_model_remove_item): New (eog_collection_model_set_select_status): New * eog-collection-view.[c,h]: Implement pop up menu with "Send" (only #ifdef ENABLE_EVOLUTION) and "Move to Trash" items. EOG_COLLECTION_VIEW_TYPE -> EOG_TYPE_COLLECTION_VIEW * eog-item-factory.c: EOG_COLLECTION_MODEL_TYPE -> EOG_TYPE_... * eog-wrap-list.[c,h]: We have now signals here: RIGHT_CLICK and DOUBLE_CLICK. Ifdef'd out unused code. * main.c: eog_control_new -> eog_collection_control_new
84 lines
2.6 KiB
C
84 lines
2.6 KiB
C
/* EogWrapList - view of the image collection
|
||
*
|
||
* Copyright (C) 2001 The Free Software Foundation
|
||
*
|
||
* Author: Jens Finke <jens@gnome.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 EOG_WRAP_LIST_H
|
||
#define EOG_WRAP_LIST_H
|
||
|
||
#include <libgnome/gnome-defs.h>
|
||
#include <libgnomeui/gnome-canvas.h>
|
||
#include "eog-collection-model.h"
|
||
#include "eog-item-factory.h"
|
||
|
||
BEGIN_GNOME_DECLS
|
||
|
||
|
||
|
||
#define EOG_TYPE_WRAP_LIST (eog_wrap_list_get_type ())
|
||
#define EOG_WRAP_LIST(obj) (GTK_CHECK_CAST ((obj), EOG_TYPE_WRAP_LIST, EogWrapList))
|
||
#define EOG_WRAP_LIST_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), EOG_TYPE_WRAP_LIST, \
|
||
EogWrapListClass))
|
||
#define EOG_IS_WRAP_LIST(obj) (GTK_CHECK_TYPE ((obj), EOG_TYPE_WRAP_LIST))
|
||
#define EOG_IS_WRAP_LIST_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), EOG_TYPE_WRAP_LIST))
|
||
|
||
typedef enum {
|
||
EOG_LAYOUT_MODE_VERTICAL,
|
||
EOG_LAYOUT_MODE_HORIZONTAL,
|
||
EOG_LAYOUT_MODE_RECTANGLE
|
||
} EogLayoutMode;
|
||
|
||
typedef struct _EogWrapList EogWrapList;
|
||
typedef struct _EogWrapListPrivate EogWrapListPrivate;
|
||
typedef struct _EogWrapListClass EogWrapListClass;
|
||
|
||
struct _EogWrapList {
|
||
GnomeCanvas parent_object;
|
||
|
||
EogWrapListPrivate *priv;
|
||
};
|
||
|
||
struct _EogWrapListClass {
|
||
GnomeCanvasClass parent_class;
|
||
|
||
gboolean (* right_click) (EogWrapList *, gint unique_id, GdkEvent *);
|
||
void (* double_click) (EogWrapList *, gint unique_id);
|
||
};
|
||
|
||
|
||
GtkType eog_wrap_list_get_type (void);
|
||
|
||
GtkWidget* eog_wrap_list_new (void);
|
||
|
||
void eog_wrap_list_set_model (EogWrapList *wlist, EogCollectionModel *model);
|
||
void eog_wrap_list_set_factory (EogWrapList *wlist, EogItemFactory *factory);
|
||
|
||
void eog_wrap_list_set_col_spacing (EogWrapList *wlist, guint spacing);
|
||
void eog_wrap_list_set_row_spacing (EogWrapList *wlist, guint spacing);
|
||
|
||
void eog_wrap_list_set_layout_mode (EogWrapList *wlist, EogLayoutMode lm);
|
||
|
||
void eog_wrap_list_set_background_color (EogWrapList *wlist, GdkColor *color);
|
||
|
||
|
||
|
||
END_GNOME_DECLS
|
||
|
||
#endif
|