~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to gnome-panel/panel-profile.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.3.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: james.westby@ubuntu.com-20110530110449-ut1tc5t61rpvf9e3
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * panel-profile.h:
3
 
 *
4
 
 * Copyright (C) 2003 Sun Microsystems, Inc.
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU General Public License as
8
 
 * published by the Free Software Foundation; either version 2 of the
9
 
 * License, or (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful, but
12
 
 * WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19
 
 * 02111-1307, USA.
20
 
 *
21
 
 * Authors:
22
 
 *      Mark McLoughlin <mark@skynet.ie>
23
 
 */
24
 
 
25
 
#ifndef __PANEL_PROFILE_H__
26
 
#define __PANEL_PROFILE_H__
27
 
 
28
 
#include <glib.h>
29
 
#include <gdk/gdk.h>
30
 
#include <gconf/gconf-client.h>
31
 
 
32
 
#include "panel-toplevel.h"
33
 
#include "panel-enums.h"
34
 
#include "panel-types.h"
35
 
#include "applet.h"
36
 
 
37
 
G_BEGIN_DECLS
38
 
 
39
 
void panel_profile_load (void);
40
 
 
41
 
const char    *panel_profile_get_toplevel_id    (PanelToplevel     *toplevel);
42
 
PanelToplevel *panel_profile_get_toplevel_by_id (const char        *toplevel_id);
43
 
char          *panel_profile_find_new_id        (PanelGConfKeyType  type);
44
 
 
45
 
 
46
 
gboolean    panel_profile_get_show_program_list   (void);
47
 
void        panel_profile_set_show_program_list   (gboolean show_program_list);
48
 
gboolean    panel_profile_is_writable_show_program_list (void);
49
 
gboolean    panel_profile_get_enable_program_list (void);
50
 
gboolean    panel_profile_get_enable_autocompletion (void);
51
 
 
52
 
 
53
 
void           panel_profile_add_to_list            (PanelGConfKeyType  type,
54
 
                                                     const char        *id);
55
 
void           panel_profile_remove_from_list       (PanelGConfKeyType  type,
56
 
                                                     const char        *id);
57
 
gboolean       panel_profile_id_lists_are_writable  (void);
58
 
void           panel_profile_create_toplevel        (GdkScreen         *screen);
59
 
PanelToplevel *panel_profile_load_toplevel          (GConfClient       *client,
60
 
                                                     const char        *profile_dir,
61
 
                                                     PanelGConfKeyType  type,
62
 
                                                     const char        *toplevel_id);
63
 
void           panel_profile_delete_toplevel        (PanelToplevel     *toplevel);
64
 
char          *panel_profile_prepare_object         (PanelObjectType    object_type,
65
 
                                                     PanelToplevel     *toplevel,
66
 
                                                     int                position,
67
 
                                                     gboolean           right_stick);
68
 
char          *panel_profile_prepare_object_with_id (PanelObjectType    object_type,
69
 
                                                     const char        *toplevel_id,
70
 
                                                     int                position,
71
 
                                                     gboolean           right_stick);
72
 
void           panel_profile_delete_object          (AppletInfo        *applet_info);
73
 
 
74
 
 
75
 
void        panel_profile_set_toplevel_name           (PanelToplevel *toplevel,
76
 
                                                       const char    *name);
77
 
char       *panel_profile_get_toplevel_name           (PanelToplevel *toplevel);
78
 
gboolean    panel_profile_is_writable_toplevel_name   (PanelToplevel *toplevel);
79
 
 
80
 
void        panel_profile_set_toplevel_orientation    (PanelToplevel *toplevel,
81
 
                                                       PanelOrientation orientation);
82
 
PanelOrientation
83
 
            panel_profile_get_toplevel_orientation    (PanelToplevel *toplevel);
84
 
gboolean    panel_profile_is_writable_toplevel_orientation (PanelToplevel *toplevel);
85
 
 
86
 
void        panel_profile_set_toplevel_size           (PanelToplevel *toplevel,
87
 
                                                       int            size);
88
 
int         panel_profile_get_toplevel_size           (PanelToplevel *toplevel);
89
 
gboolean    panel_profile_is_writable_toplevel_size   (PanelToplevel *toplevel);
90
 
 
91
 
void        panel_profile_set_toplevel_expand         (PanelToplevel *toplevel,
92
 
                                                       gboolean       expand);
93
 
gboolean    panel_profile_get_toplevel_expand         (PanelToplevel *toplevel);
94
 
gboolean    panel_profile_is_writable_toplevel_expand (PanelToplevel *toplevel);
95
 
 
96
 
void        panel_profile_set_toplevel_auto_hide      (PanelToplevel *toplevel,
97
 
                                                       gboolean       auto_hide);
98
 
gboolean    panel_profile_get_toplevel_auto_hide      (PanelToplevel *toplevel);
99
 
gboolean    panel_profile_is_writable_toplevel_auto_hide (PanelToplevel *toplevel);
100
 
 
101
 
void        panel_profile_set_toplevel_enable_buttons (PanelToplevel *toplevel,
102
 
                                                       gboolean       enable_buttons);
103
 
gboolean    panel_profile_get_toplevel_enable_buttons (PanelToplevel *toplevel);
104
 
gboolean    panel_profile_is_writable_toplevel_enable_buttons (PanelToplevel *toplevel);
105
 
 
106
 
void        panel_profile_set_toplevel_enable_arrows  (PanelToplevel *toplevel,
107
 
                                                       gboolean       enable_arrows);
108
 
gboolean    panel_profile_get_toplevel_enable_arrows  (PanelToplevel *toplevel);
109
 
gboolean    panel_profile_is_writable_toplevel_enable_arrows (PanelToplevel *toplevel);
110
 
 
111
 
/* We don't set this in the panel, so there is no set accessor */
112
 
void        panel_profile_set_background_type         (PanelToplevel       *toplevel,
113
 
                                                       PanelBackgroundType  background_type);
114
 
PanelBackgroundType
115
 
            panel_profile_get_background_type         (PanelToplevel       *toplevel);
116
 
gboolean    panel_profile_is_writable_background_type (PanelToplevel       *toplevel);
117
 
 
118
 
void        panel_profile_set_background_color        (PanelToplevel       *toplevel,
119
 
                                                       PanelColor          *color);
120
 
void        panel_profile_get_background_color        (PanelToplevel       *toplevel,
121
 
                                                       PanelColor          *color);
122
 
gboolean    panel_profile_is_writable_background_color (PanelToplevel       *toplevel);
123
 
 
124
 
void        panel_profile_set_background_gdk_color    (PanelToplevel       *toplevel,
125
 
                                                       GdkColor            *gdk_color);
126
 
void        panel_profile_get_background_gdk_color    (PanelToplevel       *toplevel,
127
 
                                                       GdkColor            *gdk_color);
128
 
 
129
 
void        panel_profile_set_background_opacity      (PanelToplevel       *toplevel,
130
 
                                                       guint16              opacity);
131
 
guint16     panel_profile_get_background_opacity      (PanelToplevel       *toplevel);
132
 
gboolean    panel_profile_is_writable_background_opacity (PanelToplevel       *toplevel);
133
 
 
134
 
void        panel_profile_set_background_image        (PanelToplevel       *toplevel,
135
 
                                                       const char          *image);
136
 
char       *panel_profile_get_background_image        (PanelToplevel       *toplevel);
137
 
gboolean    panel_profile_is_writable_background_image (PanelToplevel       *toplevel);
138
 
 
139
 
void        panel_profile_set_background_fit          (PanelToplevel       *toplevel,
140
 
                                                       gboolean             fit);
141
 
gboolean    panel_profile_get_background_fit          (PanelToplevel       *toplevel);
142
 
gboolean    panel_profile_is_writable_background_fit  (PanelToplevel *toplevel);
143
 
 
144
 
void        panel_profile_set_background_stretch      (PanelToplevel       *toplevel,
145
 
                                                       gboolean             stretch);
146
 
gboolean    panel_profile_get_background_stretch      (PanelToplevel       *toplevel);
147
 
gboolean    panel_profile_is_writable_background_stretch (PanelToplevel *toplevel);
148
 
 
149
 
void        panel_profile_set_background_rotate       (PanelToplevel       *toplevel,
150
 
                                                       gboolean             rotate);
151
 
gboolean    panel_profile_get_background_rotate       (PanelToplevel       *toplevel);
152
 
gboolean    panel_profile_is_writable_background_rotate (PanelToplevel *toplevel);
153
 
 
154
 
void        panel_profile_set_attached_custom_icon    (PanelToplevel        *toplevel,
155
 
                                                       const char           *custom_icon);
156
 
char       *panel_profile_get_attached_custom_icon    (PanelToplevel        *toplevel);
157
 
gboolean    panel_profile_is_writable_attached_custom_icon (PanelToplevel        *toplevel);
158
 
void        panel_profile_set_attached_tooltip        (PanelToplevel        *toplevel,
159
 
                                                       const char           *custom_icon);
160
 
char       *panel_profile_get_attached_tooltip        (PanelToplevel        *toplevel);
161
 
gboolean    panel_profile_is_writable_attached_tooltip (PanelToplevel        *toplevel);
162
 
 
163
 
guint       panel_profile_toplevel_notify_add         (PanelToplevel         *toplevel,
164
 
                                                       const char            *key,
165
 
                                                       GConfClientNotifyFunc  func,
166
 
                                                       gpointer               data);
167
 
 
168
 
const char *panel_profile_map_orientation             (PanelOrientation       orientation);
169
 
const char *panel_profile_map_background_type         (PanelBackgroundType    background_type);
170
 
gboolean    panel_profile_map_orientation_string      (const char            *str,
171
 
                                                       PanelOrientation      *orientation);
172
 
gboolean    panel_profile_map_speed_string            (const char            *str,
173
 
                                                       PanelAnimationSpeed   *speed);
174
 
gboolean    panel_profile_map_background_type_string  (const char            *str,
175
 
                                                       PanelBackgroundType   *background_type);
176
 
gboolean    panel_profile_map_object_type_string      (const char            *str,
177
 
                                                       PanelObjectType       *object_type);
178
 
 
179
 
/* all keys relevant to moving are writable */
180
 
gboolean    panel_profile_can_be_moved_freely         (PanelToplevel *toplevel);
181
 
 
182
 
G_END_DECLS
183
 
 
184
 
#endif /* __PANEL_PROFILE_H__ */