1/*
2 * Author:      William Chia-Wei Cheng (bill.cheng@acm.org)
3 *
4 * Copyright (C) 2001-2009, William Chia-Wei Cheng.
5 *
6 * This file may be distributed under the terms of the Q Public License
7 * as defined by Trolltech AS of Norway and appearing in the file
8 * LICENSE.QPL included in the packaging of this file.
9 *
10 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING
11 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
12 * PURPOSE.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
13 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
14 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
15 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
16 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 *
18 * @(#)$Header: /mm2/home/cvs/bc-src/tgif/edit.e,v 1.23 2011/05/16 16:21:57 william Exp $
19 */
20
21#ifndef _EDIT_E_
22#define _EDIT_E_
23
24extern struct SelRec *outerSelForFind;
25extern struct SelRec *innerSelForFind;
26
27extern int ignoreObjectShadowInfoInFile;
28extern int objShadowXOffset;
29extern int objShadowYOffset;
30extern char objShadowColorStr[];
31
32extern int pngExportHasTransparentColor;
33
34#ifdef _INCLUDE_FROM_EDIT_C_
35#undef extern
36#define extern
37#endif /*_INCLUDE_FROM_EDIT_C_*/
38
39extern void	CleanOuterInnerSelForFind ARGS_DECL((void));
40extern void	CleanUpEdit ARGS_DECL((void));
41extern void	InitEdit ARGS_DECL((void));
42extern int	CanPerformImageProc ARGS_DECL((void));
43extern void	ConvertIntSpline ARGS_DECL((void));
44extern void	ConvertToBezier ARGS_DECL((void));
45extern int	SetBezierConvertNumSegsValue ARGS_DECL((char*));
46extern void	SetBezierConvertNumSegs ARGS_DECL((char*));
47extern void	ToggleSmoothHinge ARGS_DECL((void));
48extern void	DoBreakUpText ARGS_DECL((char *spec, int forced_justify));
49extern void	BreakUpText ARGS_DECL((char *spec));
50extern void	SetTextFillPatternColor ARGS_DECL((void));
51extern void	MakeRegularPolygon ARGS_DECL((void));
52extern int	DeleteStructuredSplinePoint ARGS_DECL((int index,
53				struct PolyRec *, struct PolygonRec *));
54extern void	DeletePoint ARGS_DECL((void));
55extern void	AddPoint ARGS_DECL((void));
56extern void	FlushUndoBuffer ARGS_DECL((void));
57extern void	RestoreImageWH ARGS_DECL((void));
58extern void	CutMaps ARGS_DECL((void));
59extern void	BreakUpMaps ARGS_DECL((void));
60extern void	RemoveTransparentPixel ARGS_DECL((void));
61extern void	LayoutOnArc ARGS_DECL((void));
62extern void	PreciseRotate ARGS_DECL((void));
63extern void	RotateAllSelObj ARGS_DECL((double degrees));
64extern void	NoTransform ARGS_DECL((void));
65extern void	SetEditTextSize ARGS_DECL((void));
66extern void	FindCaseSensitive ARGS_DECL((void));
67extern void	FindNoCase ARGS_DECL((void));
68extern void	FindAgain ARGS_DECL((void));
69extern int	RefreshEditMenu ARGS_DECL((TgMenu*));
70extern TgMenu	*CreateEditMenu ARGS_DECL((TgMenu*, int X, int Y, TgMenuInfo*,
71		                           int status_str_xlated));
72extern int	EditMenu ARGS_DECL((int X, int Y, int TrackMenubar));
73extern void	FrontProc ARGS_DECL((void));
74extern void	BackProc ARGS_DECL((void));
75extern void	AlignObjsTop ARGS_DECL((void));
76extern void	AlignObjsMiddle ARGS_DECL((void));
77extern void	AlignObjsBottom ARGS_DECL((void));
78extern void	AlignObjsLeft ARGS_DECL((void));
79extern void	AlignObjsCenter ARGS_DECL((void));
80extern void	AlignObjsRight ARGS_DECL((void));
81extern void	AbutHorizontal ARGS_DECL((void));
82extern void	AbutVertical ARGS_DECL((void));
83extern void	RefreshArrangeMenu ARGS_DECL((TgMenu*));
84extern int	ArrangeMenu ARGS_DECL((int X, int Y, int TrackMenubar));
85extern int	RefreshPropertiesMenu ARGS_DECL((TgMenu*));
86extern TgMenu	*CreatePropertiesMenu ARGS_DECL((TgMenu*, int X, int Y,
87		                                 TgMenuInfo*,
88		                                 int status_str_xlated));
89extern int	PropertiesMenu ARGS_DECL((int X, int Y, int TrackMenubar));
90extern void	UpdateSymbols ARGS_DECL((void));
91
92extern void	SizeToWidest ARGS_DECL((void));
93extern void	SizeToNarrowest ARGS_DECL((void));
94extern void	SizeToTallest ARGS_DECL((void));
95extern void	SizeToShortest ARGS_DECL((void));
96extern void	SizeToGivenWidthHeight ARGS_DECL((void));
97extern void	SizeToGivenWidth ARGS_DECL((void));
98extern void	SizeToGivenHeight ARGS_DECL((void));
99extern void	SetObjectShadowColor ARGS_DECL((void));
100extern void	SetObjectShadowOffsets ARGS_DECL((void));
101extern void	AddObjectShadow ARGS_DECL((void));
102extern void	RemoveObjectShadow ARGS_DECL((void));
103extern int	ReadObjectShadowInfo ARGS_DECL((char*));
104extern void	ExtendSegment ARGS_DECL((void));
105extern void	ToggleTighterStructuredSplines ARGS_DECL((void));
106extern int	RefreshPolySplineMenu ARGS_DECL((TgMenu*));
107extern TgMenu	*CreatePolySplineMenu ARGS_DECL((TgMenu*, int X, int Y,
108		                                 TgMenuInfo*,
109		                                 int status_str_xlated));
110
111#ifdef _INCLUDE_FROM_EDIT_C_
112#undef extern
113#ifndef _NO_RECURSIVE_EXTERN
114#define extern extern
115#endif /* ~_NO_RECURSIVE_EXTERN */
116#endif /*_INCLUDE_FROM_EDIT_C_*/
117
118#endif /*_EDIT_E_*/
119