~ubuntu-branches/ubuntu/breezy/gimp/breezy

« back to all changes in this revision

Viewing changes to app/widgets/gimpsessioninfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-10-04 19:04:46 UTC
  • Revision ID: james.westby@ubuntu.com-20051004190446-ukh32kwk56s4sjhu
Tags: upstream-2.2.8
ImportĀ upstreamĀ versionĀ 2.2.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* The GIMP -- an image manipulation program
 
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
 
3
 *
 
4
 * gimpsessioninfo.h
 
5
 * Copyright (C) 2001-2003 Michael Natterer <mitch@gimp.org>
 
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
 
 
22
#ifndef __GIMP_SESSION_INFO_H__
 
23
#define __GIMP_SESSION_INFO_H__
 
24
 
 
25
 
 
26
struct _GimpSessionInfo
 
27
{
 
28
  gint       x;
 
29
  gint       y;
 
30
  gint       width;
 
31
  gint       height;
 
32
  gboolean   open;   /*  only valid while restoring and saving the session  */
 
33
  gint       screen; /*  only valid while restoring and saving the session  */
 
34
 
 
35
  /*  dialog specific list of GimpSessionInfoAux  */
 
36
  GList     *aux_info;
 
37
 
 
38
  GtkWidget *widget;
 
39
 
 
40
  /*  only one of these is valid  */
 
41
  GimpDialogFactoryEntry *toplevel_entry;
 
42
  GimpDialogFactoryEntry *dockable_entry;
 
43
 
 
44
  /*  list of GimpSessionInfoBook  */
 
45
  GList     *books;
 
46
};
 
47
 
 
48
struct _GimpSessionInfoBook
 
49
{
 
50
  gint       position;
 
51
  gint       current_page;
 
52
 
 
53
  GtkWidget *widget;
 
54
 
 
55
  /*  list of GimpSessionInfoDockable  */
 
56
  GList     *dockables;
 
57
};
 
58
 
 
59
struct _GimpSessionInfoDockable
 
60
{
 
61
  gchar        *identifier;
 
62
  GimpTabStyle  tab_style;
 
63
  gint          preview_size;
 
64
 
 
65
  /*  dialog specific list of GimpSessionInfoAux  */
 
66
  GList        *aux_info;
 
67
};
 
68
 
 
69
struct _GimpSessionInfoAux
 
70
{
 
71
  gchar *name;
 
72
  gchar *value;
 
73
};
 
74
 
 
75
 
 
76
void       gimp_session_info_free          (GimpSessionInfo         *info);
 
77
void       gimp_session_info_book_free     (GimpSessionInfoBook     *book);
 
78
void       gimp_session_info_dockable_free (GimpSessionInfoDockable *dockable);
 
79
 
 
80
GimpSessionInfoAux *
 
81
           gimp_session_info_aux_new       (const gchar             *name,
 
82
                                            const gchar             *value);
 
83
void       gimp_session_info_aux_free      (GimpSessionInfoAux      *aux);
 
84
 
 
85
GList *    gimp_session_info_aux_new_from_props (GObject            *object,
 
86
                                                 ...);
 
87
void       gimp_session_info_aux_set_props      (GObject            *object,
 
88
                                                 GList              *aux,
 
89
                                                 ...);
 
90
 
 
91
void       gimp_session_info_save          (GimpSessionInfo         *info,
 
92
                                            const gchar             *factory_name,
 
93
                                            GimpConfigWriter        *writer);
 
94
GTokenType gimp_session_info_deserialize   (GScanner                *scanner,
 
95
                                            gint                     old_scope);
 
96
void       gimp_session_info_restore       (GimpSessionInfo         *info,
 
97
                                            GimpDialogFactory       *factory);
 
98
 
 
99
void       gimp_session_info_set_geometry  (GimpSessionInfo         *info);
 
100
void       gimp_session_info_get_geometry  (GimpSessionInfo         *info);
 
101
 
 
102
 
 
103
#endif  /*  __GIMP_SESSION_INFO_H__  */