home *** CD-ROM | disk | FTP | other *** search
- #ifndef __DIALOGWINDOW__
- #define __DIALOGWINDOW__ 1
-
- #ifndef __BLJSTANDARDINCLUDES__
- #include "BLJStandardIncludes.h"
- #endif
-
- // 10 Aug 94 PL Add SelectWindow and SetItemText capability
- // 7 July 94 PL change to include <Dialogs.h>, rather than self-include
- #ifndef __DIALOGS__
- #include <Dialogs.h>
- #endif
-
- /*
- File: DialogWindow.h
-
- Copyright: © 1991-1994 by Apple Computer, Inc.
- All rights reserved.
-
- Part of the AOCE Sample SMSAM Package. Consult the license
- which came with this software for your specific legal rights.
-
- */
-
-
-
- class TDialogWindow : public TDirectObject {
-
- public: TDialogWindow ( short dialogID, short stringsSTRPoundID );
- virtual ~TDialogWindow ( );
-
- virtual Boolean HandleEvent ( EventRecord & event ); // return true if handled event
-
- virtual void ShowWindow();
- virtual void SelectWindow();
- virtual void HideWindow();
-
- virtual void SetItemText ( short whichItem, Str255 itemValue );
- virtual void SetItemText ( short whichItem, CStr255 itemValue );
-
- virtual void SetTextItem ( short whichItem, const CStr255& itemName );
- virtual void SetTextItem ( short whichItem, short stringItemID );
-
- virtual void GetTextItem ( short whichItem, CStr255& itemValue );
-
- virtual void HandleButtonPress ( short whichButton );
- virtual void SetButtonTitle ( short whichButton, Str255 buttonTitle );
-
- virtual void DrawUserItem ( short whichItem );
-
- virtual short PoseModally ( );
-
- static Boolean HandleAnEvent ( EventRecord& event );
-
- protected:
- void HandleMouseDown (EventRecord& event, short where ) ;
-
- DialogPtr fDialogWindow;
- short fDialogID;
- Boolean fPosedModally;
- short fItemWhichDismissedDialog;
-
- short fStringsSTRPoundID;
-
- short fStringItemsCount;
- short fStringItemNumbers[20];
-
- short fButtonItemsCount;
- short fButtonItemNumbers[20];
-
- short fUserItemsCount;
- short fUserItemNumbers [ 20 ];
- Rect fUserItemRect [ 20 ];
- };
-
- /***********************************|****************************************/
-
- Boolean GetDefaultWindowInformation ( short dialogID, Boolean& visible, Rect & screenRect );
- Boolean SetDefaultWindowInformation ( DialogPtr dP, short dialogID );
-
- #endif // __DIALOGWINDOW__
-