1 /* -*- Mode: C; tab-width: 3; indent-tabs-mode: nil; c-basic-offset: 3 -*- */
2 
3 /*
4  * GImageView
5  * Copyright (C) 2001 Takuro Ashie
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  *
21  * $Id: gimv_comment_view.h,v 1.1 2003/07/06 16:46:21 makeinu Exp $
22  */
23 
24 #ifndef __GIMV_COMMENT_VIEW_H__
25 #define __GIMV_COMMENT_VIEW_H__
26 
27 #include "gimageview.h"
28 #include "gimv_comment.h"
29 
30 struct GimvCommentView_Tag
31 {
32    GimvComment *comment;
33 
34    GtkWidget *window;
35    GtkWidget *main_vbox;
36    GtkWidget *notebook;
37    GtkWidget *button_area;
38    GtkWidget *inner_button_area;
39 
40    GtkWidget *data_page, *note_page;
41 
42    GtkWidget *comment_clist;
43    gint       selected_row;
44 
45    GtkWidget *key_combo, *value_entry;
46    GtkWidget *selected_item;
47 
48    GtkWidget *note_box;
49 
50    GtkWidget *save_button;
51    GtkWidget *reset_button;
52    GtkWidget *delete_button;
53 
54    GtkAccelGroup *accel_group;
55 
56    gboolean changed;
57 
58    /* for list */
59    GimvImageView *iv;
60    GtkWidget     *next_button;
61    GtkWidget     *prev_button;
62 };
63 
64 
65 void             gimv_comment_view_clear         (GimvCommentView   *cv);
66 gboolean         gimv_comment_view_change_file   (GimvCommentView   *cv,
67                                                   GimvImageInfo *info);
68 GimvCommentView *gimv_comment_view_create        (void);
69 GimvCommentView *gimv_comment_view_create_window (GimvImageInfo *info);
70 
71 #endif /* __GIMV_COMMENT_VIEW_H__ */
72