2 * (GLABELS) Label and Business Card Creation program for GNOME
4 * tools.c: toolbar module
6 * Copyright (C) 2001-2002 Jim Evins <evins@snaught.com>.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "merge-properties.h"
29 /*===========================================*/
31 /*===========================================*/
33 /*===========================================*/
34 /* Private globals. */
35 /*===========================================*/
37 /*===========================================*/
38 /* Private function prototypes. */
39 /*===========================================*/
43 /*****************************************************************************/
45 /*****************************************************************************/
47 gl_tools_arrow (BonoboUIComponent *uic,
49 const gchar* verbname)
53 view = glabels_get_active_view ();
55 gl_view_arrow_mode (view);
59 /*****************************************************************************/
61 /*****************************************************************************/
63 gl_tools_text (BonoboUIComponent *uic,
65 const gchar* verbname)
70 view = glabels_get_active_view ();
72 gl_view_object_create_mode (view, GL_LABEL_OBJECT_TEXT);
76 /*****************************************************************************/
78 /*****************************************************************************/
80 gl_tools_box (BonoboUIComponent *uic,
82 const gchar* verbname)
87 view = glabels_get_active_view ();
89 gl_view_object_create_mode (view, GL_LABEL_OBJECT_BOX);
93 /*****************************************************************************/
95 /*****************************************************************************/
97 gl_tools_line (BonoboUIComponent *uic,
99 const gchar* verbname)
104 view = glabels_get_active_view ();
106 gl_view_object_create_mode (view, GL_LABEL_OBJECT_LINE);
110 /*****************************************************************************/
111 /* ellipse callback. */
112 /*****************************************************************************/
114 gl_tools_ellipse (BonoboUIComponent *uic,
116 const gchar* verbname)
121 view = glabels_get_active_view ();
123 gl_view_object_create_mode (view,
124 GL_LABEL_OBJECT_ELLIPSE);
128 /*****************************************************************************/
129 /* image callback. */
130 /*****************************************************************************/
132 gl_tools_image (BonoboUIComponent *uic,
134 const gchar* verbname)
139 view = glabels_get_active_view ();
141 gl_view_object_create_mode (view, GL_LABEL_OBJECT_IMAGE);
145 /*****************************************************************************/
146 /* barcode callback. */
147 /*****************************************************************************/
149 gl_tools_barcode (BonoboUIComponent *uic,
151 const gchar* verbname)
156 view = glabels_get_active_view ();
158 gl_view_object_create_mode (view,
159 GL_LABEL_OBJECT_BARCODE);
163 /*****************************************************************************/
164 /* zoom in callback. */
165 /*****************************************************************************/
167 gl_tools_zoomin (BonoboUIComponent *uic,
169 const gchar* verbname)
174 view = glabels_get_active_view ();
176 gl_view_zoom_in (view);
180 /*****************************************************************************/
181 /* zoom out callback. */
182 /*****************************************************************************/
184 gl_tools_zoomout (BonoboUIComponent *uic,
186 const gchar* verbname)
191 view = glabels_get_active_view ();
193 gl_view_zoom_out (view);
197 /*****************************************************************************/
198 /* zoom 1:1 callback. */
199 /*****************************************************************************/
201 gl_tools_zoom1to1 (BonoboUIComponent *uic,
203 const gchar* verbname)
208 view = glabels_get_active_view ();
210 gl_view_set_zoom (view, 1.0);
214 /*****************************************************************************/
215 /* edit merge properties callback. */
216 /*****************************************************************************/
218 gl_tools_merge_properties (BonoboUIComponent *uic,
220 const gchar* verbname)
225 view = glabels_get_active_view ();
227 gl_merge_properties_dialog (view);