eudora-mac/compact.c

1 line
97 KiB
C
Raw Permalink Normal View History

2018-05-23 09:59:15 +00:00
/* Copyright (c) 2017, Computer History Museum All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Computer History Museum nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "compact.h" #define FILE_NUM 8 /* Copyright (c) 1990-1992 by the University of Illinois Board of Trustees */ #pragma segment CompMng /************************************************************************ * private functions ************************************************************************/ void CompSwitchFields(MessHandle messH, Boolean forward); void ScrollWinRect(MyWindowPtr win, Rect *scroll, Rect *good, short offset); void DrawCompWindowBars(MyWindowPtr win); /* MJN *//* new routine */ uLong QueueDate2Secs(UPtr timeStr,UPtr dateStr); Rect *CompIconRect(Rect *r,MessHandle messH,short index); void CompUpdateScore(MyWindowPtr win); void CopyExtraSigs(MenuHandle onto); OSErr CleanseStationery(MyWindowPtr win); short SigIconId(MessHandle messH); short SigMenuItem(MessHandle messH); Boolean GetSigRect(MyWindowPtr win,Rect *pr); Boolean GetAttachRect(MyWindowPtr win,Rect *pr); #ifdef VCARD Boolean GetVCardRect (MyWindowPtr win, Rect *pr); #endif Boolean GetAnalRect(MyWindowPtr win,Rect *pr); void AttachMenu(MyWindowPtr win); void SigMenu(MyWindowPtr win); void SigMenuHelp(MyWindowPtr win, Rect *r); void AttMenuHelp(MyWindowPtr win, Rect *r); void RefreshSigButton(MessHandle messH); #ifdef VCARD void VCardBtnHelp(MyWindowPtr win,Rect *r); #endif OSErr QueueSizeWarning(MessHandle messH); uLong SigFIDByName(PStr string); OSErr SigSpecByName(PStr string,FSSpecPtr spec); OSErr CompDrop(MyWindowPtr win,DragReference drag); void AddrSelect(MessHandle messH); void CompTranslatorHelp(Rect *r,short i); void CompActivate(MyWindowPtr win); OSErr AddSigPopup(MessHandle messH); OSErr AddAttachPopup(MessHandle messH); #ifdef VCARD OSErr AddVCardButton (MessHandle messH); #endif OSErr AddAnalIcon(MessHandle messH); void RefreshSigPopup(MyWindowPtr win); void PersPopup(MyWindowPtr win,Point where); OSErr CompAddPersPopup(MyWindowPtr win); pascal Boolean SendStyleWarningFilter(DialogPtr dgPtr,EventRecord *event,short *item); void CompSendBtnUpdate(MyWindowPtr win); void RedrawPersPopup(MessHandle messH); OSErr InsertGraphicFile(MyWindowPtr win,FSSpecPtr spec); OSErr SendStyleWarning(MessHandle messH); #ifdef USECMM_BAD OSErr CompBuildCMenu( MyWindowPtr win, EventRecord* contextEvent, CMenuInfoHndl* specCMenuInfo ); #endif /* NOTE: the number of elements in the arrays fBits[] and icons[] must be the same as the value of the define ICON_BAR_NUM (defined in compact.h) */ #ifdef T