~ubuntu-branches/ubuntu/quantal/openmotif/quantal

« back to all changes in this revision

Viewing changes to clients/mwm/WmIconBox.h

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bauer
  • Date: 2010-06-23 12:12:31 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100623121231-u89gxdp51sg9wjj2
Tags: 2.3.0-1
* New Maintainer (Closes: #379258) 
* Acknowledge NMU changes
* New upstream release (Closes: #494375)
* Get rid of security patches as they are already part of new upstream
  release (00-xpmvuln.openmotif.patch, 342092-CVE-2005-3964.patch)
* Bump Standards to 3.8.4
* Added {misc:Depends} to make the package lintian cleaner
* Fix weak-library-dev-dependency by adding ${binary:Version}) for the
  -dev Package of openmotif
* Let package depend on autotools-dev to use newer autotools-helper-files
* Work around an autoconf-bug (Gentoo-Bug #1475)
* Added Client-side anti-aliased fonts support via XFT
* Added UTF-8 and UTF8_STRING atom support
* Ability to show text and pixmaps in Label, LabelGadget and all
  derived widgets
* Support of PNG/JPEG image formats in the same way as XPM is supported
* Increase FILE_OFFSET_BITS to 64 to show files >2GB in file-selector
  Idea taken from Magne Oestlyngen (Closes: #288537)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * @OPENGROUP_COPYRIGHT@
 
3
 * COPYRIGHT NOTICE
 
4
 * Copyright (c) 1989, 1990, 1991, 1992 Open Software Foundation, Inc. 
 
5
 * Copyright (c) 1996, 1997, 1998, 1999, 2000 The Open Group
 
6
 * ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
 
7
 * the full copyright text.
 
8
 * 
 
9
 * This software is subject to an open license. It may only be
 
10
 * used on, with or for operating systems which are themselves open
 
11
 * source systems. You must contact The Open Group for a license
 
12
 * allowing distribution and sublicensing of this software on, with,
 
13
 * or for operating systems which are not Open Source programs.
 
14
 * 
 
15
 * See http://www.opengroup.org/openmotif/license for full
 
16
 * details of the license agreement. Any use, reproduction, or
 
17
 * distribution of the program constitutes recipient's acceptance of
 
18
 * this agreement.
 
19
 * 
 
20
 * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
 
21
 * PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
22
 * KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
 
23
 * WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
 
24
 * OR FITNESS FOR A PARTICULAR PURPOSE
 
25
 * 
 
26
 * EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
 
27
 * NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
 
28
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
29
 * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED
 
30
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
31
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
 
32
 * ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE
 
33
 * EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE
 
34
 * POSSIBILITY OF SUCH DAMAGES.
 
35
*/ 
 
36
/* 
 
37
 * Motif Release 1.2
 
38
*/ 
 
39
/*   $XConsortium: WmIconBox.h /main/4 1995/11/01 11:42:06 rswiston $ */
 
40
/*
 
41
 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
 
42
 
 
43
 
 
44
#ifdef WSM
 
45
extern void AddIconBoxForWorkspace (WmWorkspaceData *pWS);
 
46
#endif /* WSM */
 
47
extern void AddNewBox (WmWorkspaceData *pWS, IconBoxData *pIBD);
 
48
extern void ChangeActiveIconboxIconText (Widget icon, caddr_t dummy, 
 
49
                                         XFocusChangeEvent *event);
 
50
extern void CheckIconBoxResize (ClientData *pCD, unsigned int changedValues, 
 
51
                                int newWidth, int newHeight);
 
52
extern Boolean CheckIconBoxSize (IconBoxData *pIBD);
 
53
extern void DeleteIconFromBox (IconBoxData *pIBD, ClientData *pCD);
 
54
extern void DeleteIconInfo (IconBoxData *pIBD, ClientData *pCD);
 
55
extern Boolean ExpandVirtualSpace (IconBoxData *pIBD, int newWidth, 
 
56
                                   int newHeight);
 
57
extern Boolean ExtendIconList (IconBoxData *pIBD, int incr);
 
58
extern void FindNewPosition (Cardinal *newPosition, IconPlacementData *pIPD, 
 
59
                             int newPlace);
 
60
extern MenuItem *GetIconBoxMenuItems (WmScreenData *pSD);
 
61
extern void GetIconBoxIconRootXY (ClientData *pCD, int *pX, int *pY);
 
62
extern void HandleIconBoxButtonMotion (Widget icon, caddr_t client_data, 
 
63
                                       XEvent *pev);
 
64
extern void HandleIconBoxIconKeyPress (Widget icon, caddr_t dummy, 
 
65
                                       XKeyEvent *keyEvent);
 
66
#ifndef MOTIF_ONE_DOT_ONE
 
67
extern void IconScrollVisibleCallback (Widget w, caddr_t client_data, 
 
68
                                  XmAnyCallbackStruct *call_data);
 
69
#endif
 
70
extern void IconActivateCallback (Widget w, caddr_t client_data, 
 
71
                                  XmAnyCallbackStruct *call_data);
 
72
extern Boolean IconVisible (ClientData *pCD);
 
73
extern IconInfo *InsertIconInfo (IconBoxData *pIBD, ClientData *pCD, 
 
74
                                 Widget theWidget);
 
75
extern Boolean InsertIconIntoBox (IconBoxData *pIBD, ClientData *pCD);
 
76
extern void InitIconBox (WmScreenData *pSD);
 
77
extern void InitializeClientData (ClientData *pCD, IconBoxData *pIBD);
 
78
extern void InitializeIconBoxData (WmWorkspaceData *pWS, IconBoxData *pIBD);
 
79
extern Cardinal InsertPosition (Widget w);
 
80
extern void MakeBulletinBoard (WmWorkspaceData *pWS, IconBoxData *pIBD);
 
81
extern void MakeFadeIconGC (WmScreenData *pSD);
 
82
extern Boolean MakeIconBox (WmWorkspaceData *pWS, ClientData *pCD);
 
83
extern void MakeScrolledWindow (WmWorkspaceData *pWS, IconBoxData *pIBD);
 
84
extern void MakeShell (WmWorkspaceData *pWS, IconBoxData *pIBD);
 
85
extern void MakeShrinkWrapIconsGC (WmScreenData *pSD, Pixmap bgPixmap);
 
86
extern void MapIconBoxes (WmWorkspaceData *pWS);
 
87
extern void PackIconBox (IconBoxData *pIBD, Boolean packVert, 
 
88
                         Boolean packHorz, int passedInWidth, 
 
89
                         int passedInHeight);
 
90
extern void RealignIconList (IconBoxData *pIBD, int newCols, int newRows);
 
91
extern void RealizeIconBox (WmWorkspaceData *pWS, IconBoxData *pIBD, 
 
92
                            ClientData *pCD);
 
93
extern void ReorderIconBoxIcons (ClientData *pCD, IconBoxData *pIBD, 
 
94
                                 Widget theIcon, int newX, int newY);
 
95
extern void ResetArrowButtonIncrements (ClientData *pCD);
 
96
extern void ResetIconBoxMaxSize (ClientData *pCD, Widget bBoardWidget);
 
97
extern void SetGeometry (WmWorkspaceData *pWS, ClientData *pCD, 
 
98
                         IconBoxData *pIBD);
 
99
extern void SetGranularity (WmWorkspaceData *pWS, ClientData *pCD, 
 
100
                            IconBoxData *pIBD);
 
101
extern void SetIconBoxInfo (WmWorkspaceData *pWS, ClientData *pCD);
 
102
extern void SetNewBounds (IconBoxData *pIBD);
 
103
extern void ShowClientIconState (ClientData *pCD, int newState);
 
104
#ifdef WSM
 
105
extern void UnmapIconBoxes (WmWorkspaceData *pWS);
 
106
#endif /* WSM */
 
107
extern void UpdateIncrements (Widget sWidget, IconBoxData *pIBD, 
 
108
                              XConfigureEvent *event);
 
109
extern String WmXmStringToString (XmString xmString);
 
110