rezilla-commits Mailing List for Rezilla (Page 183)
Brought to you by:
bdesgraupes
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(4) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
(134) |
Mar
(223) |
Apr
(87) |
May
(70) |
Jun
(186) |
Jul
(13) |
Aug
(202) |
Sep
(128) |
Oct
(145) |
Nov
(306) |
Dec
(296) |
2005 |
Jan
(376) |
Feb
(265) |
Mar
(176) |
Apr
(147) |
May
(233) |
Jun
(211) |
Jul
(43) |
Aug
|
Sep
(195) |
Oct
(41) |
Nov
|
Dec
|
2006 |
Jan
(32) |
Feb
(288) |
Mar
(157) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(282) |
Oct
(183) |
Nov
(156) |
Dec
|
From: <bde...@us...> - 2004-02-28 15:23:29
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22737/RezillaSource/Rezilla_Src/Features Modified Files: CWEViewActions.h Log Message: 1.0.1a1 Index: CWEViewActions.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CWEViewActions.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CWEViewActions.h 4 Jul 2003 18:58:07 -0000 1.1.1.1 +++ CWEViewActions.h 28 Feb 2004 15:06:06 -0000 1.2 @@ -1,13 +1,15 @@ // =========================================================================== // CWEViewActions.h // -// Created : 2001-09-08 07:05:27 -// Last modification : 2003-05-03 19:48:04 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2001-2003 +// Created: 2001-09-08 07:05:27 +// Last modification: 2004-02-22 19:29:08 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2001-2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // // This file is part of the CWasteEditView package vs 1.5 // =========================================================================== @@ -295,3 +297,4 @@ #endif + |
From: <bde...@us...> - 2004-02-28 15:23:21
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22677/RezillaSource/Rezilla_Src/Features Modified Files: CWEViewActions.cp Log Message: 1.0.1a1 Index: CWEViewActions.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CWEViewActions.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CWEViewActions.cp 4 Jul 2003 18:58:07 -0000 1.1.1.1 +++ CWEViewActions.cp 28 Feb 2004 15:05:58 -0000 1.2 @@ -1,17 +1,19 @@ // =========================================================================== // CWEViewActions.cp // -// Created : 2001-09-08 07:05:27 -// Last modification : 2003-05-03 19:49:07 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2001-2003 +// Created: 2001-09-08 07:05:27 +// Last modification: 2004-02-22 19:29:21 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2001-2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // // Description : CWaste is a class designed to interface between -// the Waste Edit text engine (©1993-2000 by Marco Piovanelli) -// and CodeWarrior's PowerPlant 2.1 library (©1993-2000 Metrowerks Inc.) +// the Waste Edit text engine (¬©1993-2000 by Marco Piovanelli) +// and CodeWarrior's PowerPlant 2.1 library (¬©1993-2000 Metrowerks Inc.) // // This file is part of the CWasteEditView package vs 1.5 // =========================================================================== @@ -44,7 +46,7 @@ // --------------------------------------------------------------------------- -// CWETextActions Constructor [public] +// ¬ CWETextActions Constructor [public] // --------------------------------------------------------------------------- CWETextActions::CWETextActions( @@ -89,7 +91,7 @@ // --------------------------------------------------------------------------- -// ~CWETextActions Destructor [public] +// ¬ ~CWETextActions Destructor [public] // --------------------------------------------------------------------------- CWETextActions::~CWETextActions() @@ -105,7 +107,7 @@ // --------------------------------------------------------------------------- -// Redo +// ¬ Redo // --------------------------------------------------------------------------- void @@ -121,7 +123,7 @@ // --------------------------------------------------------------------------- -// Undo +// ¬ Undo // --------------------------------------------------------------------------- void @@ -137,7 +139,7 @@ // --------------------------------------------------------------------------- -// CanRedo +// ¬ CanRedo // --------------------------------------------------------------------------- Boolean @@ -148,7 +150,7 @@ // --------------------------------------------------------------------------- -// CanUndo +// ¬ CanUndo // --------------------------------------------------------------------------- Boolean @@ -159,7 +161,7 @@ // --------------------------------------------------------------------------- -// IsPostable +// ¬ IsPostable // --------------------------------------------------------------------------- Boolean @@ -173,7 +175,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -192,7 +194,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewCutAction Constructor [public] +// ¬ CWEViewCutAction Constructor [public] // --------------------------------------------------------------------------- CWEViewCutAction::CWEViewCutAction( @@ -207,7 +209,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -235,7 +237,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewPasteAction Constructor [public] +// ¬ CWEViewPasteAction Constructor [public] // --------------------------------------------------------------------------- CWEViewPasteAction::CWEViewPasteAction( @@ -267,7 +269,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewPasteAction Destructor [public] +// ¬ ~CWEViewPasteAction Destructor [public] // --------------------------------------------------------------------------- CWEViewPasteAction::~CWEViewPasteAction() @@ -283,7 +285,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -308,7 +310,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -334,7 +336,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewClearAction Constructor [public] +// ¬ CWEViewClearAction Constructor [public] // --------------------------------------------------------------------------- CWEViewClearAction::CWEViewClearAction( @@ -349,7 +351,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -369,7 +371,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewTypingAction Constructor [public] +// ¬ CWEViewTypingAction Constructor [public] // --------------------------------------------------------------------------- CWEViewTypingAction::CWEViewTypingAction( @@ -387,7 +389,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewTypingAction Destructor [public] +// ¬ ~CWEViewTypingAction Destructor [public] // --------------------------------------------------------------------------- CWEViewTypingAction::~CWEViewTypingAction() @@ -410,7 +412,7 @@ // --------------------------------------------------------------------------- -// Reset +// ¬ Reset // --------------------------------------------------------------------------- // Re-initialize state of TypingAction @@ -460,7 +462,7 @@ // --------------------------------------------------------------------------- -// InputCharacter +// ¬ InputCharacter // --------------------------------------------------------------------------- // Handle an input character typing action // @@ -487,7 +489,7 @@ // --------------------------------------------------------------------------- -// BackwardErase +// ¬ BackwardErase // --------------------------------------------------------------------------- // Handle Backward Delete typing action // @@ -541,7 +543,7 @@ // --------------------------------------------------------------------------- -// ForwardErase +// ¬ ForwardErase // --------------------------------------------------------------------------- // Handle Forward Delete typing action // @@ -589,7 +591,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- // Redo a TypingAction by restoring the last typing sequence @@ -612,7 +614,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- // Undo a TypingAction by restoring the text and selection that // existed before the current typing sequence started @@ -662,7 +664,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEStyleActions Constructor [public] +// ¬ CWEStyleActions Constructor [public] // --------------------------------------------------------------------------- // A "base" class for the style actions (font, size, style/face, align/just, // color) to encapsulate some common functionality. @@ -684,7 +686,7 @@ // --------------------------------------------------------------------------- -// CWEStyleActions Destructor [public] +// ¬ CWEStyleActions Destructor [public] // --------------------------------------------------------------------------- CWEStyleActions::~CWEStyleActions() @@ -693,7 +695,7 @@ // --------------------------------------------------------------------------- -// CanRedo +// ¬ CanRedo // --------------------------------------------------------------------------- Boolean @@ -705,7 +707,7 @@ // --------------------------------------------------------------------------- -// CanUndo +// ¬ CanUndo // --------------------------------------------------------------------------- Boolean @@ -719,7 +721,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewFontAction Constructor [public] +// ¬ CWEViewFontAction Constructor [public] // --------------------------------------------------------------------------- CWEViewFontAction::CWEViewFontAction( @@ -737,7 +739,7 @@ // --------------------------------------------------------------------------- -// CWEViewFontAction Constructor [public] +// ¬ CWEViewFontAction Constructor [public] // --------------------------------------------------------------------------- CWEViewFontAction::CWEViewFontAction( @@ -755,7 +757,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewFontAction Destructor [public] +// ¬ ~CWEViewFontAction Destructor [public] // --------------------------------------------------------------------------- CWEViewFontAction::~CWEViewFontAction() @@ -764,7 +766,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -788,7 +790,7 @@ } // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -813,7 +815,7 @@ #pragma mark- // --------------------------------------------------------------------------- -// CWEViewSizeAction Constructor [public] +// ¬ CWEViewSizeAction Constructor [public] // --------------------------------------------------------------------------- CWEViewSizeAction::CWEViewSizeAction( @@ -831,7 +833,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewSizeAction Destructor [public] +// ¬ ~CWEViewSizeAction Destructor [public] // --------------------------------------------------------------------------- CWEViewSizeAction::~CWEViewSizeAction() @@ -840,7 +842,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -864,7 +866,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -890,7 +892,7 @@ #pragma mark- // --------------------------------------------------------------------------- -// CWEViewFaceAction Constructor [public] +// ¬ CWEViewFaceAction Constructor [public] // --------------------------------------------------------------------------- CWEViewFaceAction::CWEViewFaceAction( @@ -910,7 +912,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewFaceAction Destructor [public] +// ¬ ~CWEViewFaceAction Destructor [public] // --------------------------------------------------------------------------- CWEViewFaceAction::~CWEViewFaceAction() @@ -919,7 +921,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -950,7 +952,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -984,7 +986,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewAlignAction Constructor [public] +// ¬ CWEViewAlignAction Constructor [public] // --------------------------------------------------------------------------- CWEViewAlignAction::CWEViewAlignAction( @@ -1002,7 +1004,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewAlignAction Destructor [public] +// ¬ ~CWEViewAlignAction Destructor [public] // --------------------------------------------------------------------------- CWEViewAlignAction::~CWEViewAlignAction() @@ -1011,7 +1013,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -1031,7 +1033,7 @@ } // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -1052,7 +1054,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CWEViewColorAction Constructor [public] +// ¬ CWEViewColorAction Constructor [public] // --------------------------------------------------------------------------- CWEViewColorAction::CWEViewColorAction( @@ -1069,7 +1071,7 @@ // --------------------------------------------------------------------------- -// ~CWEViewColorAction Destructor [public] +// ¬ ~CWEViewColorAction Destructor [public] // --------------------------------------------------------------------------- CWEViewColorAction::~CWEViewColorAction() @@ -1078,7 +1080,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -1095,7 +1097,7 @@ } // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -1113,3 +1115,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:23:14
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22649/RezillaSource/Rezilla_Src/Features Modified Files: CRezMapDragDrop.h Log Message: 1.0.1a1 Index: CRezMapDragDrop.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CRezMapDragDrop.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezMapDragDrop.h 4 Jul 2003 18:58:05 -0000 1.1.1.1 +++ CRezMapDragDrop.h 28 Feb 2004 15:05:49 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CRezMapDragDrop.h -// Created : 2003-05-30 22:23:58 -// Last modification : 2003-06-01 11:40:50 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-30 22:23:58 +// Last modification: 2004-02-22 19:29:33 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -58,11 +60,11 @@ #pragma mark - // =========================================================================== -// Stack-based classes +// ¬ Stack-based classes // =========================================================================== // --------------------------------------------------------------------------- -// class StDragSendDataUPP +// ¬ class StDragSendDataUPP // --------------------------------------------------------------------------- class StDragSendDataUPP { @@ -218,3 +220,4 @@ #endif #endif + |
From: <bde...@us...> - 2004-02-28 15:23:06
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22621/RezillaSource/Rezilla_Src/Features Modified Files: CRezMapDragDrop.cp Log Message: 1.0.1a1 Index: CRezMapDragDrop.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CRezMapDragDrop.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezMapDragDrop.cp 4 Jul 2003 18:58:03 -0000 1.1.1.1 +++ CRezMapDragDrop.cp 28 Feb 2004 15:05:41 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CRezMapDragDrop.cp -// Created : 2003-05-30 22:23:58 -// Last modification : 2003-06-01 11:40:43 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-30 22:23:58 +// Last modification: 2004-02-22 19:29:38 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -34,7 +36,7 @@ // Mix-in class for adding Drag and Drop support to a RezMapTable // --------------------------------------------------------------------------- -// CRezMapDragDrop Constructor [public] +// ¬ CRezMapDragDrop Constructor [public] // --------------------------------------------------------------------------- // inMacWindow is the Toolbox window containing the DragAndDrop. // It may be nil if the DragAndDrop is not in a window (eg if printing @@ -57,7 +59,7 @@ // --------------------------------------------------------------------------- -// ~CRezMapDragDrop Destructor [public] +// ¬ ~CRezMapDragDrop Destructor [public] // --------------------------------------------------------------------------- CRezMapDragDrop::~CRezMapDragDrop() @@ -66,7 +68,7 @@ // --------------------------------------------------------------------------- -// PointInDropArea [public] +// ¬ PointInDropArea [public] // --------------------------------------------------------------------------- // Return whether a Point, in Global coords, is inside a DropArea @@ -80,7 +82,7 @@ // --------------------------------------------------------------------------- -// FocusDropArea [public] +// ¬ FocusDropArea [public] // --------------------------------------------------------------------------- // Set up local coordinate system and clipping region for a DropArea @@ -92,7 +94,7 @@ // --------------------------------------------------------------------------- -// HiliteDropArea [protected] +// ¬ HiliteDropArea [protected] // --------------------------------------------------------------------------- // Hilite a DropArea to indicate that it can accept the current Drag // @@ -120,7 +122,7 @@ // --------------------------------------------------------------------------- -// UnhiliteDropArea [protected] +// ¬ UnhiliteDropArea [protected] // --------------------------------------------------------------------------- // Unhilite a DropArea when a drag leaves the area @@ -144,7 +146,7 @@ // --------------------------------------------------------------------------- -// MySendDataProc [protected] +// ¬ MySendDataProc [protected] // --------------------------------------------------------------------------- pascal OSErr @@ -159,7 +161,7 @@ // =========================================================================== -// Stack-based classes +// ¬ Stack-based classes // =========================================================================== // ===================================== @@ -167,7 +169,7 @@ // ===================================== // --------------------------------------------------------------------------- -// StDragSendDataUPP Constructor [public] +// ¬ StDragSendDataUPP Constructor [public] // --------------------------------------------------------------------------- // Constructor allocates and installs a DragSendDataUPP @@ -195,7 +197,7 @@ // --------------------------------------------------------------------------- -// ~StDragSendDataUPP Destructor [public] +// ¬ ~StDragSendDataUPP Destructor [public] // --------------------------------------------------------------------------- StDragSendDataUPP::~StDragSendDataUPP() @@ -208,7 +210,7 @@ // // --------------------------------------------------------------------------- -// // SetSendDataProc [public, virtual] +// // ¬ SetSendDataProc [public, virtual] // // --------------------------------------------------------------------------- // // Allows to specify an own data sending code. // // Disposes of the existing SendDataProc, if any. @@ -232,3 +234,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:22:56
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22563/RezillaSource/Rezilla_Src/Features Modified Files: CRezClipboard.h Log Message: 1.0.1a1 Index: CRezClipboard.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CRezClipboard.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezClipboard.h 4 Jul 2003 18:58:03 -0000 1.1.1.1 +++ CRezClipboard.h 28 Feb 2004 15:05:31 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CRezClipboard.h -// Created : 2003-05-11 21:05:08 -// Last modification : 2003-05-29 09:26:05 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-11 21:05:08 +// Last modification: 2004-02-22 19:29:44 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -74,3 +76,4 @@ #endif #endif + |
From: <bde...@us...> - 2004-02-28 15:22:46
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22535/RezillaSource/Rezilla_Src/Features Modified Files: CRezClipboard.cp Log Message: 1.0.1a1 Index: CRezClipboard.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CRezClipboard.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezClipboard.cp 4 Jul 2003 18:58:03 -0000 1.1.1.1 +++ CRezClipboard.cp 28 Feb 2004 15:05:22 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CRezClipboard.cp -// Created : 2003-05-11 21:05:08 -// Last modification : 2003-05-29 09:26:13 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-11 21:05:08 +// Last modification: 2004-02-22 19:29:53 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -29,7 +31,7 @@ SInt32 CRezClipboard::sScrapContext = 0; // --------------------------------------------------------------------------- -// CRezClipboard Default Constructor [public] +// ¬ CRezClipboard Default Constructor [public] // --------------------------------------------------------------------------- CRezClipboard::CRezClipboard() @@ -40,7 +42,7 @@ // --------------------------------------------------------------------------- -// ~CRezClipboard Destructor [public] +// ¬ ~CRezClipboard Destructor [public] // --------------------------------------------------------------------------- CRezClipboard::~CRezClipboard() @@ -60,7 +62,7 @@ // --------------------------------------------------------------------------- -// GetDataSelf [protected] +// ¬ GetDataSelf [protected] // --------------------------------------------------------------------------- // Pass back the data in the Clipboard of the specified type in a Handle // and return the size of the data @@ -99,7 +101,7 @@ // --------------------------------------------------------------------------- -// SetDataSelf [protected] +// ¬ SetDataSelf [protected] // --------------------------------------------------------------------------- // Set the Clipboard contents to the data specified by a pointer and length // @@ -134,7 +136,7 @@ // --------------------------------------------------------------------------- -// ImportSelf [protected] +// ¬ ImportSelf [protected] // --------------------------------------------------------------------------- // Import the data in the global scrap to a local scrap // @@ -149,7 +151,7 @@ // --------------------------------------------------------------------------- -// ExportSelf [protected] +// ¬ ExportSelf [protected] // --------------------------------------------------------------------------- // Export the data in a local scrap to the global scrap // @@ -164,7 +166,7 @@ // --------------------------------------------------------------------------- -// ContentsIsValidHex [protected] +// ¬ ContentsIsValidHex [protected] // --------------------------------------------------------------------------- // Check it the actual contents of the scrap are valid hexadecimal data // (only 0-9, a-f, A-F). @@ -181,3 +183,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:22:37
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22503/RezillaSource/Rezilla_Src/Features Modified Files: CHexEditorActions.h Log Message: 1.0.1a1 Index: CHexEditorActions.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CHexEditorActions.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CHexEditorActions.h 4 Jul 2003 18:58:03 -0000 1.1.1.1 +++ CHexEditorActions.h 28 Feb 2004 15:05:15 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CHexEditorActions.h -// Created : 2003-05-29 21:13:13 -// Last modification : 2003-05-29 21:20:20 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-29 21:13:13 +// Last modification: 2004-02-22 19:30:01 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -108,3 +110,4 @@ #endif + |
From: <bde...@us...> - 2004-02-28 15:22:29
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22480/RezillaSource/Rezilla_Src/Features Modified Files: CHexEditorActions.cp Log Message: 1.0.1a1 Index: CHexEditorActions.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/CHexEditorActions.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CHexEditorActions.cp 4 Jul 2003 18:58:02 -0000 1.1.1.1 +++ CHexEditorActions.cp 28 Feb 2004 15:05:07 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CHexEditorActions.cp -// Created : 2003-05-29 21:13:13 -// Last modification : 2003-06-02 19:23:55 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-05-29 21:13:13 +// Last modification: 2004-02-22 19:30:07 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -39,7 +41,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CHexEditorCutAction Constructor [public] +// ¬ CHexEditorCutAction Constructor [public] // --------------------------------------------------------------------------- CHexEditorCutAction::CHexEditorCutAction( @@ -53,7 +55,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -81,7 +83,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CHexEditorPasteAction Constructor [public] +// ¬ CHexEditorPasteAction Constructor [public] // --------------------------------------------------------------------------- CHexEditorPasteAction::CHexEditorPasteAction( @@ -112,7 +114,7 @@ // --------------------------------------------------------------------------- -// ~CHexEditorPasteAction Destructor [public] +// ¬ ~CHexEditorPasteAction Destructor [public] // --------------------------------------------------------------------------- CHexEditorPasteAction::~CHexEditorPasteAction() @@ -128,7 +130,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -153,7 +155,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- void @@ -179,7 +181,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CHexEditorClearAction Constructor [public] +// ¬ CHexEditorClearAction Constructor [public] // --------------------------------------------------------------------------- CHexEditorClearAction::CHexEditorClearAction( @@ -193,7 +195,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- void @@ -213,7 +215,7 @@ #pragma mark - // --------------------------------------------------------------------------- -// CHexEditorTypingAction Constructor [public] +// ¬ CHexEditorTypingAction Constructor [public] // --------------------------------------------------------------------------- CHexEditorTypingAction::CHexEditorTypingAction( @@ -227,7 +229,7 @@ // --------------------------------------------------------------------------- -// ~CHexEditorTypingAction Destructor [public] +// ¬ ~CHexEditorTypingAction Destructor [public] // --------------------------------------------------------------------------- CHexEditorTypingAction::~CHexEditorTypingAction() @@ -250,7 +252,7 @@ // --------------------------------------------------------------------------- -// RedoSelf +// ¬ RedoSelf // --------------------------------------------------------------------------- // Redo a TypingAction by restoring the last typing sequence @@ -273,7 +275,7 @@ // --------------------------------------------------------------------------- -// UndoSelf +// ¬ UndoSelf // --------------------------------------------------------------------------- // Undo a TypingAction by restoring the text and selection that // existed before the current typing sequence started @@ -322,3 +324,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:22:23
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22393/RezillaSource/Rezilla_Src/Features Modified Files: ABalloon.h Log Message: 1.0.1a1 Index: ABalloon.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/ABalloon.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ABalloon.h 4 Jul 2003 18:58:02 -0000 1.1.1.1 +++ ABalloon.h 28 Feb 2004 15:04:58 -0000 1.2 @@ -1,3 +1,15 @@ +// =========================================================================== +// ABalloon.h +// Modified for the Rezilla project (http://www.sourceforge.net/rezilla) +// Author: Bernard Desgraupes +// $Date$ +// $Revision$ +// +// +// Original header and copyright below +// =========================================================================== + + #pragma once /* --------------------------------------------------------------------------------------------- @@ -22,7 +34,7 @@ If you want the help to appear without delay when the control key is pressed, you must call EnableControlKeyPop(). - Copyright: ABalloon is ©1998-2002 by James W. Walker. + Copyright: ABalloon is ¬©1998-2002 by James W. Walker. Permission is granted for use of ABalloon free of charge, other than acknowledgement of James W. Walker in any program using ABalloon @@ -146,3 +158,4 @@ SInt16 mLongOffEnabledIndex; SInt16 mLongOnEnabledIndex; }; + |
From: <bde...@us...> - 2004-02-28 15:22:13
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22358/RezillaSource/Rezilla_Src/Features Modified Files: ABalloon-Carbon.cp Log Message: 1.0.1a1 Index: ABalloon-Carbon.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Features/ABalloon-Carbon.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- ABalloon-Carbon.cp 4 Jul 2003 18:58:02 -0000 1.1.1.1 +++ ABalloon-Carbon.cp 28 Feb 2004 15:04:50 -0000 1.2 @@ -1,3 +1,15 @@ +// =========================================================================== +// ABalloon-Carbon.cp +// Modified for the Rezilla project (http://www.sourceforge.net/rezilla) +// Author: Bernard Desgraupes +// $Date$ +// $Revision$ +// +// +// Original header and copyright below +// =========================================================================== + + #include "ABalloon.h" #include <LCheckBox.h> @@ -50,7 +62,7 @@ If you want the help to appear without delay when the control key is pressed, you must call EnableControlKeyPop(). - Copyright: ABalloon is ©1998-2002 by James W. Walker. + Copyright: ABalloon is ¬©1998-2002 by James W. Walker. Permission is granted for use of ABalloon free of charge, other than acknowledgement of James W. Walker in any program using ABalloon @@ -64,111 +76,111 @@ History: 1.0 2/28/98 First release. 1.1 4/11/98 - Don¹t show balloons for invisible panes + ¬ Donït show balloons for invisible panes (Thanks, Daniel Chiaramello, for the correction) - Rolled ABalloonHelper::CreateABalloonHelper into + ¬ Rolled ABalloonHelper::CreateABalloonHelper into ABalloonHelper::AddABalloon. - sBalloonAttachments is now a TArray<ABalloon*> + ¬ sBalloonAttachments is now a TArray<ABalloon*> instead of TArray<LAttachment*>. - In the HMShowBalloon call, use kHMRegularWindow + ¬ In the HMShowBalloon call, use kHMRegularWindow instead of kHMSaveBitsNoWindow, because IM says that the former should normally be used. 1.2 6/7/98...6/28/98 - New feature of automatically showing a balloon when + ¬ New feature of automatically showing a balloon when the cursor is motionless over a pane for a certain length of time. (Thanks to Fabrice for getting me started on this and helping to implement it.) - New subclass that automatically shows a balloon even + ¬ New subclass that automatically shows a balloon even if you have not globally enabled automatic balloons. - Added pragmas to get rid of annoying TArray warnings. - Made the TArray an ordinary member rather than a + ¬ Added pragmas to get rid of annoying TArray warnings. + ¬ Made the TArray an ordinary member rather than a static member of ABalloonHelper. - Changed the balloon mode to kHMSaveBitsWindow to fix + ¬ Changed the balloon mode to kHMSaveBitsWindow to fix an update problem when a balloon was removed by the appearance of a modal dialog. 1.3 10/3/98, 10/25/98 - New function CalcExposedPortFrame used in FindBalloonPane. + ¬ New function CalcExposedPortFrame used in FindBalloonPane. This is so that a pane inside a scrolling view will show its balloon even if it is only partially visible. Thanks to Rainer Brockerhoff for reporting this problem. - Implemented an option to make balloons appear immediately + ¬ Implemented an option to make balloons appear immediately when the control key is down. This was contributed by Bill Modesitt. 1.4 11/27/98 - Added the helper class ABalloonTip, which controls the + ¬ Added the helper class ABalloonTip, which controls the location of the balloon tip and the variant of the balloon window. - Added another special case to provide good tip + ¬ Added another special case to provide good tip placement for LCheckBoxGroupBox. 1.5 3/2/99-3/26/99 - Modified ABalloonHelper::SpendTime so that it would + ¬ Modified ABalloonHelper::SpendTime so that it would not continually call FindBalloonPane unless the mouse position or the state of the control key is changing. - Treat LPopupGroupBox like LCheckBoxGroupBox. + ¬ Treat LPopupGroupBox like LCheckBoxGroupBox. 1.6 3/25/2000 - Replaced Int16 type by SInt16 - Added more #includes so it would compile without + ¬ Replaced Int16 type by SInt16 + ¬ Added more #includes so it would compile without precompiled PowerPlant headers 1.7 4/16/2000 - Improved control key behavior, e.g., if you start pressing + ¬ Improved control key behavior, e.g., if you start pressing the control key when the cursor is not over a window, and then move the cursor over an item with a balloon, a balloon will appear. This was contributed by Richard Falk. - In FindBalloonPane, the order of the loop has been reversed. + ¬ In FindBalloonPane, the order of the loop has been reversed. This is so that if two panes overlap, neither containing the other in the view hierarchy, then the frontmost pane will control the balloon for the area of overlap. - In ABalloon::ShowBalloon, removed the test of the string + ¬ In ABalloon::ShowBalloon, removed the test of the string list ID. As Richard Falk pointed out, this was unnecessary. - Added a few static casts to avoid warnings about implicit + ¬ Added a few static casts to avoid warnings about implicit conversions. 2.0b1 7/10/2000 - First draft of Carbon version. - Simplified the public interface so that the Carbon and + ¬ First draft of Carbon version. + ¬ Simplified the public interface so that the Carbon and Classic versions could have the same header. - The new function CalcPortExposedFrame, replacing + ¬ The new function CalcPortExposedFrame, replacing ABalloon::CalcExposedPortFrame, gives a smaller hot rectangle for LCheckboxGroupBox and LPopupGroupBox. 2.0b2 10/8/2000 - Updated not to use the WrapHack for CarbonLib 1.1. + ¬ Updated not to use the WrapHack for CarbonLib 1.1. 2.0b3 11/2/2000 - Changed the Carbon implementation to use balloons instead of + ¬ Changed the Carbon implementation to use balloons instead of tags when running under CarbonLib 1.0.x. I did this because of the CarbonLib bug where tags appear behind modal dialogs. - Call LView::OutOfFocus( nil ) at the end of the window content + ¬ Call LView::OutOfFocus( nil ) at the end of the window content callback. Without this change, my app's insertion point was flashing within the help tag. 2.0b4 11/17/2000 - As suggested by Isaac Wankerl, conditionalized the code so + ¬ As suggested by Isaac Wankerl, conditionalized the code so that it would compile with Universal Interfaces 3.3.2, which lacked CarbonEvents.h. - Manfred Schubert pointed out the little event loop when + ¬ Manfred Schubert pointed out the little event loop when showing a balloon did not give any time to cooperative threads. So now I imitate more of what LApplication:: ProcessNextEvent does, giving idle time to idlers, repeaters, and event attachments. 2.0b5 12/10/2000 - Overhauled class hierarchy. There is now an abstract base + ¬ Overhauled class hierarchy. There is now an abstract base class ABalloonBase, making it easier to write a subclass that finds its help text any way you want. - Renamed CalcPortExposedFrame to CalcPortHotRect, and made it + ¬ Renamed CalcPortExposedFrame to CalcPortHotRect, and made it a method of ABalloonHelper. - Removed the WrapHack, because I am using balloons for + ¬ Removed the WrapHack, because I am using balloons for CarbonLib 1.0 and the hack is not necessary in CarbonLib 1.1. - Changed back to the kHMRegularWindow balloon method. See + ¬ Changed back to the kHMRegularWindow balloon method. See comments in ABalloonHelperBalloon::ShowBalloon. 2.0b6 7/29/2001 - The UPP for the window content callback is now held in a + ¬ The UPP for the window content callback is now held in a static variable and never disposed, instead of being a member variable of ABalloonHelperTag. This fixes a crash that could happen if you deleted all the ABalloon attachments but didn't delete the window. Thanks to John Spicer for reporting this bug. 2.0 3/23/2002 - Added new method GetLongHelpString to the base class. - New subclass ATag for Carbon only. - In the Carbon implementation, the auto-pop option is now on + ¬ Added new method GetLongHelpString to the base class. + ¬ New subclass ATag for Carbon only. + ¬ In the Carbon implementation, the auto-pop option is now on by default, since that is how Carbon Help tags normally work. --------------------------------------------------------------------------------------------- */ @@ -1233,3 +1245,4 @@ ::GetIndString( outString, mStringListID, whichString ); } + |
From: <bde...@us...> - 2004-02-28 15:21:51
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22315/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regexec.c Log Message: 1.0.1a1 Index: regexec.c =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regexec.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regexec.c 4 Jul 2003 18:57:59 -0000 1.1.1.1 +++ regexec.c 28 Feb 2004 15:04:29 -0000 1.2 @@ -3231,3 +3231,4 @@ sctx->check_subexp = check_subexp; re_node_set_init_empty (&sctx->limits); } + |
From: <bde...@us...> - 2004-02-28 15:21:42
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22289/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regex_internal.h Log Message: 1.0.1a1 Index: regex_internal.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regex_internal.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regex_internal.h 4 Jul 2003 18:57:44 -0000 1.1.1.1 +++ regex_internal.h 28 Feb 2004 15:04:14 -0000 1.2 @@ -637,3 +637,4 @@ #endif /* RE_ENABLE_I18N */ #endif /* _REGEX_INTERNAL_H */ + |
From: <bde...@us...> - 2004-02-28 15:21:29
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22256/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regex_internal.c Log Message: 1.0.1a1 Index: regex_internal.c =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regex_internal.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regex_internal.c 4 Jul 2003 18:57:43 -0000 1.1.1.1 +++ regex_internal.c 28 Feb 2004 15:04:06 -0000 1.2 @@ -1228,3 +1228,4 @@ err = register_state (dfa, newstate, hash); return (err != REG_NOERROR) ? NULL : newstate; } + |
From: <bde...@us...> - 2004-02-28 15:21:21
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22196/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regex.h Log Message: 1.0.1a1 Index: regex.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regex.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regex.h 4 Jul 2003 18:57:41 -0000 1.1.1.1 +++ regex.h 28 Feb 2004 15:03:56 -0000 1.2 @@ -572,3 +572,4 @@ trim-versions-without-asking: nil End: */ + |
From: <bde...@us...> - 2004-02-28 15:21:09
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22092/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regex.c Log Message: 1.0.1a1 Index: regex.c =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regex.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regex.c 4 Jul 2003 18:57:39 -0000 1.1.1.1 +++ regex.c 28 Feb 2004 15:03:46 -0000 1.2 @@ -60,3 +60,4 @@ int re_max_failures = 2000; # endif #endif + |
From: <bde...@us...> - 2004-02-28 15:20:48
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22065/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: regcomp.c Log Message: 1.0.1a1 Index: regcomp.c =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/regcomp.c,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- regcomp.c 4 Jul 2003 18:57:39 -0000 1.1.1.1 +++ regcomp.c 28 Feb 2004 15:03:24 -0000 1.2 @@ -3540,3 +3540,4 @@ } return new_tree; } + |
From: <bde...@us...> - 2004-02-28 15:20:32
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22042/RezillaSource/Rezilla_Src/Extras/Regex Modified Files: re_comp.h Log Message: 1.0.1a1 Index: re_comp.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Extras/Regex/re_comp.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- re_comp.h 4 Jul 2003 18:57:32 -0000 1.1.1.1 +++ re_comp.h 28 Feb 2004 15:03:10 -0000 1.2 @@ -24,3 +24,4 @@ #include <regex.h> #endif /* re_comp.h */ + |
From: <bde...@us...> - 2004-02-28 15:20:12
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21951/RezillaSource/Rezilla_Src/Documents Modified Files: CRezMapDoc.h Log Message: 1.0.1a1 Index: CRezMapDoc.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents/CRezMapDoc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezMapDoc.h 4 Jul 2003 18:57:32 -0000 1.1.1.1 +++ CRezMapDoc.h 28 Feb 2004 15:02:47 -0000 1.2 @@ -1,13 +1,15 @@ // =========================================================================== // CRezMapDoc.h // -// Created : 2003-04-29 07:11:00 -// Last modification : 2003-06-02 21:09:44 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> +// Created: 2003-04-29 07:11:00 +// Last modification: 2003-06-02 21:09:44 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> // (c) Copyright : Bernard Desgraupes, 2003 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== #ifndef _H_CRezMapDoc @@ -29,18 +31,21 @@ class CRezMapWindow; class CRezObj; class CRezObjItem; +class CRezEditor; // --------------------------------------------------------------------------- class CRezMapDoc : public LDocument, public LListener { public: + CRezMapDoc(LCommander* inSuper); CRezMapDoc(LCommander* inSuper, FSSpec* inFileSpec); CRezMapDoc(LCommander *inSuper, FSSpec * inFileSpec, SInt16 inFork, short inRefnum); - CRezMapDoc(LCommander* inSuper); + CRezMapDoc(LCommander *inSuper, + CRezFile * inRezFile); virtual ~CRezMapDoc(); @@ -102,12 +107,19 @@ Str255* inName = nil, short inAttrs = 0); + CRezEditor * GetRezEditor(ResType inType, short inID); + + TArray<CRezEditor *>* GetOpenedEditors() { return mOpenedEditors ;} + protected: SInt16 mFork; CRezMap * mRezMap; CRezMapWindow * mRezMapWindow; CRezFile * mRezFile; TArray<ResType>* mTypesArray; // Maintain a sorted array of ResTypes + TArray<CRezEditor *> * mOpenedEditors; // Maintain an array of editor docs + // dependent from this doc (all edit + // windows for resources in this map) Boolean mUpdateOnClose; void NameNewDoc(); @@ -126,3 +138,4 @@ #endif #endif + |
From: <bde...@us...> - 2004-02-28 15:20:02
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21918/RezillaSource/Rezilla_Src/Documents Modified Files: CRezMapDoc.cp Log Message: 1.0.1a1 Index: CRezMapDoc.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents/CRezMapDoc.cp,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CRezMapDoc.cp 14 Jul 2003 09:07:44 -0000 1.2 +++ CRezMapDoc.cp 28 Feb 2004 15:02:39 -0000 1.3 @@ -1,13 +1,15 @@ // =========================================================================== // CRezMapDoc.cp // -// Created : 2003-04-29 07:11:00 -// Last modification : 2003-06-10 15:01:15 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> +// Created: 2003-04-29 07:11:00 +// Last modification: 2003-06-10 15:01:15 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> // (c) Copyright : Bernard Desgraupes, 2003 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== PP_Begin_Namespace_PowerPlant @@ -65,25 +67,39 @@ extern CWindowMenu * gWindowMenu; -extern const Str255 Rzil_NavSaveItems[]; // --------------------------------------------------------------------------- -// CRezMapDoc Constructor [public] +// ¬ CRezMapDoc Default Constructor [public] +// --------------------------------------------------------------------------- + +CRezMapDoc::CRezMapDoc(LCommander *inSuper) + : LDocument( inSuper ) +{ + mFork = CRezillaApp::sDefaultCreatingFork; + mRezFile = nil; + + Initialize(nil, refnum_undefined); +} + + +// --------------------------------------------------------------------------- +// ¬ CRezMapDoc Constructor [public] // --------------------------------------------------------------------------- CRezMapDoc::CRezMapDoc(LCommander *inSuper, FSSpec * inFileSpec) : LDocument( inSuper ) { - mFork = to_samefork; + mFork = CRezillaApp::sDefaultCreatingFork; + mRezFile = nil; Initialize(inFileSpec, refnum_undefined); } // --------------------------------------------------------------------------- -// CRezMapDoc Constructor [public] +// ¬ CRezMapDoc Constructor [public] // --------------------------------------------------------------------------- CRezMapDoc::CRezMapDoc(LCommander *inSuper, @@ -93,27 +109,32 @@ : LDocument( inSuper ) { mFork = inFork; + mRezFile = nil; Initialize(inFileSpec, inRefnum); } // --------------------------------------------------------------------------- -// CRezMapDoc Default Constructor [public] +// ¬ CRezMapDoc Constructor [public] // --------------------------------------------------------------------------- -CRezMapDoc::CRezMapDoc(LCommander *inSuper) +CRezMapDoc::CRezMapDoc(LCommander *inSuper, + CRezFile * inRezFile) : LDocument( inSuper ) { - mFork = to_samefork; + FSSpec theFileSpec; - Initialize(nil, refnum_undefined); + mFork = inRezFile->GetUsedFork(); + mRezFile = inRezFile; + inRezFile->GetSpecifier(theFileSpec); + + Initialize(&theFileSpec, inRezFile->GetRefNum()); } - // --------------------------------------------------------------------------- -// ~CRezMapDoc Destructor [public] +// ¬ ~CRezMapDoc Destructor [public] // --------------------------------------------------------------------------- CRezMapDoc::~CRezMapDoc() @@ -133,7 +154,10 @@ delete mRezFile; } - // Clear the Inspector if it contains info about a resource in this rezmap + // Unregister from the static RezMapDocs list + CRezillaApp::sRezMapDocList.Remove(this); + + // Clear the Inspector if it contains info about a resource belonging to this rezmap if (CRezillaApp::sInspectorWindow != nil && CRezillaApp::sInspectorWindow->GetRezObjItem() != nil && CRezillaApp::sInspectorWindow->GetRezObjItem()->GetOwnerRezMapTable()->GetOwnerDoc() == this @@ -141,6 +165,15 @@ CRezillaApp::sInspectorWindow->ClearValues(); } + // Delete all the editor windows depending from this rezmap + if (mOpenedEditors != nil) { + TArrayIterator<CRezEditor *> iterator(*mOpenedEditors); + CRezEditor* theRezEditor = nil; + while (iterator.Next(theRezEditor)) { + delete theRezEditor; + } + } + if (mRezMapWindow != nil) { // Remove the window from the window menu. gWindowMenu->RemoveWindow( mRezMapWindow ); @@ -153,7 +186,7 @@ // --------------------------------------------------------------------------- -// Initialize [public] +// ¬ Initialize [public] // --------------------------------------------------------------------------- void @@ -161,15 +194,20 @@ { mUpdateOnClose = true; - if (inFileSpec != nil) { - mRezFile = new CRezFile(*inFileSpec, inRefnum, mFork); - SetSpecified(true); - } else { - mRezFile = new CRezFile(); - } + if (mRezFile == nil) { + if (inFileSpec != nil) { + mRezFile = new CRezFile(*inFileSpec, inRefnum, mFork); + SetSpecified(true); + } else { + mRezFile = new CRezFile(); + } + } mRezFile->SetOwnerDoc(this); + // Register to the static RezMapDocs list + CRezillaApp::sRezMapDocList.AddItem(this); + // Create the CRezMap class instance mRezMap = new CRezMap(inRefnum); @@ -189,9 +227,12 @@ mRezMapWindow->SetDescriptor( inFileSpec->name ); } + // Initialize the array of edited resources + mOpenedEditors = new TArray<CRezEditor *>(); + // Populate the RezTable - CTypeComparator* theCompare = new CTypeComparator; - mTypesArray = new TArray<ResType>( theCompare, true); + CTypeComparator* theComparator = new CTypeComparator; + mTypesArray = new TArray<ResType>( theComparator, true); mRezMap->GetAllTypes(mTypesArray); mRezMapWindow->GetRezMapTable()->Populate(mTypesArray); @@ -210,7 +251,7 @@ // --------------------------------------------------------------------------- -// ObeyCommand [public, virtual] +// ¬ ObeyCommand [public, virtual] // --------------------------------------------------------------------------- Boolean @@ -245,6 +286,9 @@ // break; // } + case cmd_ExportSubMenu: + break; + case cmd_NewRez: NewResDialog(); mRezMapWindow->UpdateCountFields(); @@ -360,7 +404,7 @@ // --------------------------------------------------------------------------------- -// NameNewDoc +// ¬ NameNewDoc // --------------------------------------------------------------------------------- void @@ -386,7 +430,7 @@ // --------------------------------------------------------------------------------- -// IsModified +// ¬ IsModified // --------------------------------------------------------------------------------- // The Resource Manager sets the mapChanged attribute for the resource fork // when you call the ChangedResource, the AddResource, or the RemoveResource @@ -407,7 +451,7 @@ // --------------------------------------------------------------------------- -// GetDescriptor [public] +// ¬ GetDescriptor [public] // --------------------------------------------------------------------------- // Pass back the name of a Document @@ -427,7 +471,7 @@ // --------------------------------------------------------------------------- -// GetOwnerRefnum [public] +// ¬ GetOwnerRefnum [public] // --------------------------------------------------------------------------- short @@ -438,7 +482,7 @@ // --------------------------------------------------------------------------- -// GetOwnerRefnum [public] +// ¬ GetOwnerRefnum [public] // --------------------------------------------------------------------------- void @@ -449,7 +493,7 @@ // --------------------------------------------------------------------------- -// UsesFileSpec [public] +// ¬ UsesFileSpec [public] // --------------------------------------------------------------------------- // Returns whether the Document's File has the given refnum @@ -463,7 +507,7 @@ // --------------------------------------------------------------------------- -// AttemptClose [public] +// ¬ AttemptClose [public] // --------------------------------------------------------------------------- // Try to close an edited resource map. @@ -512,7 +556,7 @@ // --------------------------------------------------------------------------- -// AskSaveChanges [public] +// ¬ AskSaveChanges [public] // --------------------------------------------------------------------------- // Ask user whether to save changes before closing the Document or // quitting the Application @@ -533,7 +577,7 @@ // --------------------------------------------------------------------------------- -// DoAESave +// ¬ DoAESave // --------------------------------------------------------------------------------- void @@ -541,7 +585,7 @@ FSSpec &inFileSpec) { short oldRefnum = GetRefnum(); - if (mFork == to_samefork) { + if (mFork == fork_samefork) { mFork = mRezFile->GetUsedFork(); } @@ -575,7 +619,7 @@ // --------------------------------------------------------------------------------- -// DoSave +// ¬ DoSave // --------------------------------------------------------------------------------- void @@ -585,7 +629,7 @@ } // --------------------------------------------------------------------------- -// AskSaveAs [public] +// ¬ AskSaveAs [public] // --------------------------------------------------------------------------- // Ask the user to save a Document and give it a name // Returns false if the user cancels the operation @@ -633,7 +677,7 @@ // --------------------------------------------------------------------------- -// DesignateOutFile [public static] +// ¬ DesignateOutFile [public static] // --------------------------------------------------------------------------- Boolean @@ -643,23 +687,8 @@ bool openOK = false; Str255 theString; - mFork = to_samefork; - - // Build the forks popup - NavMenuItemSpecHandle theMenuItemHandle ; - NavMenuItemSpecPtr theNavMenuItemSpecPtr; + mFork = fork_samefork; - theMenuItemHandle = (NavMenuItemSpec**) NewHandleClear( 3 * sizeof(NavMenuItemSpec) ); - if (theMenuItemHandle != NULL) { - for (SInt16 theIndex = 0; theIndex < 3; theIndex++) { - theNavMenuItemSpecPtr = *theMenuItemHandle + theIndex; - (*theNavMenuItemSpecPtr).version = kNavMenuItemSpecVersion; - (*theNavMenuItemSpecPtr).menuCreator = FOUR_CHAR_CODE('Rzil'); - (*theNavMenuItemSpecPtr).menuType = 'TEXT'; - BlockMoveData(Rzil_NavSaveItems[theIndex], (*theNavMenuItemSpecPtr).menuItemName, Rzil_NavSaveItems[theIndex][0] + 1); - } - } - // Deactivate the desktop. ::UDesktop::Deactivate(); @@ -668,16 +697,15 @@ // File designator setup designator.SetEventFilterProc(Rzil_SaveAsNavEventFilterUPP); - designator.SetPopupExtension(theMenuItemHandle); designator.SetOptionFlags(kNavDontAutoTranslate); designator.SetUserData( (void *) &mFork); // Retrieve strings from STR# resource - GetIndString(theString, STRx_NavServStrings, index_RezillaAppName); + GetIndString(theString, STRx_NavStrings, index_RezillaAppName); designator.SetClientName(theString); - GetIndString(theString, STRx_NavServStrings, index_SaveRezFileAs); + GetIndString(theString, STRx_NavStrings, index_SaveRezFileAs); designator.SetMessage(theString); - GetIndString(theString, STRx_NavServStrings, index_SaveUntitledRsrc); + GetIndString(theString, STRx_NavStrings, index_SaveUntitledRsrc); designator.SetSavedFileName(theString); openOK = designator.AskDesignateFile(); @@ -695,7 +723,7 @@ // --------------------------------------------------------------------------------- -// FindCommandStatus +// ¬ FindCommandStatus // --------------------------------------------------------------------------------- void @@ -715,6 +743,7 @@ break; case cmd_Find: + case cmd_ExportSubMenu: outEnabled = false; break; @@ -762,7 +791,7 @@ // --------------------------------------------------------------------------- -// AllowSubRemoval [public] +// ¬ AllowSubRemoval [public] // --------------------------------------------------------------------------- Boolean @@ -779,7 +808,7 @@ // // --------------------------------------------------------------------------- -// // AttemptClose [public] +// // ¬ AttemptClose [public] // // --------------------------------------------------------------------------- // // Try to close a Document. // // @@ -822,7 +851,7 @@ // --------------------------------------------------------------------------- -// AskSaveOne [public] +// ¬ AskSaveOne [public] // --------------------------------------------------------------------------- // Ask user whether to save changes before closing the Document or // quitting the Application @@ -859,7 +888,7 @@ // --------------------------------------------------------------------------- -// ListenToMessage [public] +// ¬ ListenToMessage [public] // --------------------------------------------------------------------------- void @@ -885,7 +914,7 @@ // --------------------------------------------------------------------------- -// HasSelection [public] +// ¬ HasSelection [public] // --------------------------------------------------------------------------- Boolean @@ -896,7 +925,7 @@ // --------------------------------------------------------------------------- -// GetFirstSelected [public] +// ¬ GetFirstSelected [public] // --------------------------------------------------------------------------- TableIndexT @@ -908,7 +937,7 @@ // --------------------------------------------------------------------------- -// NewResDialog [public] +// ¬ NewResDialog [public] // --------------------------------------------------------------------------- // Note: Linking Listeners and Broadcasters is done in the StDialogBoxHandler constructor @@ -1040,7 +1069,7 @@ // --------------------------------------------------------------------------- -// CreateNewRes [public] +// ¬ CreateNewRes [public] // --------------------------------------------------------------------------- void @@ -1080,7 +1109,31 @@ // --------------------------------------------------------------------------- -// DuplicateResource [public] +// ¬ GetRezEditor [public] +// --------------------------------------------------------------------------- +// ResType is an unsigned long + +CRezEditor * +CRezMapDoc::GetRezEditor(ResType inType, short inID) +{ + CRezEditor * result = nil; + TArrayIterator<CRezEditor *> iterator(*mOpenedEditors); + CRezEditor* theRezEditor = nil; + + // CRezillaApp class maintains a list of all CRezMapDoc's that we created + while (iterator.Next(theRezEditor)) { + if (inType == theRezEditor->GetRezObj()->GetType() && inID == theRezEditor->GetRezObj()->GetID() ) { + result = theRezEditor; + break; + } + } + + return result; +} + + +// --------------------------------------------------------------------------- +// ¬ DuplicateResource [public] // --------------------------------------------------------------------------- void @@ -1133,14 +1186,14 @@ // --------------------------------------------------------------------------- -// RemoveResource [public] +// ¬ RemoveResource [public] // --------------------------------------------------------------------------- // The RemoveResource function does not dispose of the handle you pass into // it; to do so you must call the Memory Manager function DisposeHandle after // calling RemoveResource. You should dispose the handle if you want to // release the memory before updating or closing the resource fork. // -// If you¹ve removed a resource, the Resource Manager writes the entire +// If youïve removed a resource, the Resource Manager writes the entire // resource map when it updates the resource fork, and all changes made to the // resource map become permanent. If you want any of the changes to be // temporary, you should restore the original information before the Resource @@ -1175,7 +1228,7 @@ // --------------------------------------------------------------------------- -// PasteResource [public] +// ¬ PasteResource [public] // --------------------------------------------------------------------------- void @@ -1227,7 +1280,7 @@ // --------------------------------------------------------------------------- -// UpdateRefNum [public] +// ¬ UpdateRefNum [public] // --------------------------------------------------------------------------- // Takes care of updating the refnum in all the sub objects which store a // copy of this value: @@ -1263,3 +1316,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:19:52
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21868/RezillaSource/Rezilla_Src/Documents Modified Files: CHexEditorDoc.h Log Message: 1.0.1a1 Index: CHexEditorDoc.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents/CHexEditorDoc.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CHexEditorDoc.h 4 Jul 2003 18:57:29 -0000 1.1.1.1 +++ CHexEditorDoc.h 28 Feb 2004 15:02:30 -0000 1.2 @@ -1,21 +1,23 @@ // =========================================================================== // CHexEditorDoc.h // -// Created : 2003-05-04 19:16:00 -// Last modification : 2003-05-04 19:16:03 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> +// Created: 2003-05-04 19:16:00 +// Last modification: 2003-05-04 19:16:03 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> // (c) Copyright : Bernard Desgraupes, 2003 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== #ifndef _H_CHexEditorDoc #define _H_CHexEditorDoc #pragma once -#include <LDocument.h> -#include <LListener.h> +#include "CRezEditor.h" + #if PP_Uses_Pragma_Import #pragma import on @@ -25,14 +27,13 @@ class CRezFile; class CRezMapTable; -class CRezMapWindow; class CRezObj; class CHexEditorWindow; // --------------------------------------------------------------------------- -class CHexEditorDoc : public LDocument, public LListener { +class CHexEditorDoc : public CRezEditor { public: CHexEditorDoc(LCommander* inSuper, CRezMapTable* inSuperMap, CRezObj* inRezObj); @@ -66,10 +67,7 @@ void SetRezObj(CRezObj* theRezObj) {mRezObj = theRezObj ;} protected: - CRezObj * mRezObj; - CRezMapTable * mOwnerRezMapTable; CHexEditorWindow * mHexEditWindow; - short mRefnum; Str255 mSearchString; SInt32 mMatchStart; SInt32 mMatchEnd; @@ -94,3 +92,4 @@ #endif #endif + |
From: <bde...@us...> - 2004-02-28 15:19:48
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21848/RezillaSource/Rezilla_Src/Documents Modified Files: CHexEditorDoc.cp Log Message: 1.0.1a1 Index: CHexEditorDoc.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents/CHexEditorDoc.cp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CHexEditorDoc.cp 4 Jul 2003 18:57:29 -0000 1.1.1.1 +++ CHexEditorDoc.cp 28 Feb 2004 15:02:13 -0000 1.2 @@ -1,13 +1,15 @@ // =========================================================================== // CHexEditorDoc.cp // -// Created : 2003-05-04 19:16:00 -// Last modification : 2003-06-10 05:37:37 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> +// Created: 2003-05-04 19:16:00 +// Last modification: 2003-06-10 05:37:37 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> // (c) Copyright : Bernard Desgraupes, 2003 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== PP_Begin_Namespace_PowerPlant @@ -58,25 +60,21 @@ // --------------------------------------------------------------------------- -// CHexEditorDoc Constructor [public] +// ¬ CHexEditorDoc Constructor [public] // --------------------------------------------------------------------------- // : CEditorController( inSuperMap ) CHexEditorDoc::CHexEditorDoc(LCommander* inSuper, CRezMapTable* inSuperMap, CRezObj* inRezObj) - : LDocument(inSuper) + : CRezEditor(inSuper, inSuperMap, inRezObj) { - mRezObj = inRezObj; - mOwnerRezMapTable = inSuperMap; - mRefnum = mOwnerRezMapTable->GetOwnerRefnum(); - Initialize(); } // --------------------------------------------------------------------------- -// ~CHexEditorDoc Destructor [public] +// ¬ ~CHexEditorDoc Destructor [public] // --------------------------------------------------------------------------- CHexEditorDoc::~CHexEditorDoc() @@ -92,7 +90,7 @@ // --------------------------------------------------------------------------- -// Initialize [public] +// ¬ Initialize [public] // --------------------------------------------------------------------------- void @@ -119,9 +117,8 @@ if (mRezObj != nil) { Handle rezData = mRezObj->GetData(); - if (rezData != nil) { - mHexEditWindow->InstallResourceInWaste(rezData); + mHexEditWindow->InstallBackStoreData(rezData); mHexEditWindow->SetMaxScrollerValue(); SInt32 byteCount = ::GetHandleSize(rezData); @@ -143,7 +140,7 @@ // --------------------------------------------------------------------------- -// ObeyCommand [public, virtual] +// ¬ ObeyCommand [public, virtual] // --------------------------------------------------------------------------- Boolean @@ -178,7 +175,7 @@ // --------------------------------------------------------------------------------- -// NameNewHexDoc +// ¬ NameNewHexDoc // --------------------------------------------------------------------------------- // ("\p") void @@ -187,7 +184,7 @@ FSSpec theFileSpec; mOwnerRezMapTable->GetOwnerDoc()->GetRezFile()->GetSpecifier(theFileSpec); LStr255 theTitle(theFileSpec.name); - theTitle.Append("\p '"); + theTitle.Append("\p ë '"); if ( mRezObj != nil ) { Str255 theString; @@ -217,7 +214,7 @@ // --------------------------------------------------------------------------------- -// FindDialog +// ¬ FindDialog // --------------------------------------------------------------------------------- void @@ -303,7 +300,7 @@ // --------------------------------------------------------------------------------- -// FindInPane +// ¬ FindInPane // --------------------------------------------------------------------------------- OSErr @@ -350,7 +347,7 @@ // --------------------------------------------------------------------------------- -// IsModified +// ¬ IsModified // --------------------------------------------------------------------------------- Boolean @@ -363,7 +360,7 @@ // --------------------------------------------------------------------------- -// GetDescriptor [public] +// ¬ GetDescriptor [public] // --------------------------------------------------------------------------- // Pass back the name of a Document @@ -384,7 +381,7 @@ // --------------------------------------------------------------------------------- -// FindCommandStatus +// ¬ FindCommandStatus // --------------------------------------------------------------------------------- void @@ -425,7 +422,7 @@ // --------------------------------------------------------------------------- -// AllowSubRemoval [public] +// ¬ AllowSubRemoval [public] // --------------------------------------------------------------------------- Boolean @@ -442,7 +439,7 @@ // --------------------------------------------------------------------------- -// AskSaveChanges [public] +// ¬ AskSaveChanges [public] // --------------------------------------------------------------------------- // Ask user whether to save changes before closing the Document or // quitting the Application @@ -456,7 +453,7 @@ // --------------------------------------------------------------------------- -// AttemptClose [public] +// ¬ AttemptClose [public] // --------------------------------------------------------------------------- // Try to close an edited resource. // @@ -488,23 +485,16 @@ // --------------------------------------------------------------------------- -// DoSaveHex [public] +// ¬ DoSaveHex [public] // --------------------------------------------------------------------------- void CHexEditorDoc::DoSaveHex() { - Handle hexData = mHexEditWindow->GetHexDataWE()->GetTextHandle(); - - // Strip blanks - StStripPeriodicalTranslator blankstripper(hexData, 3); - blankstripper.FilterOutPeriodical(); - // Convert hex code to bytes code - StHexToCodeTranslator translator(blankstripper.GetOutHandle()); - translator.HexToCode(); - + Handle theHandle = WEGetText(mHexEditWindow->GetInMemoryWasteRef()); + // Copy to resource's data handle - mRezObj->SetData( translator.GetOutHandle() ); + mRezObj->SetData(theHandle); // Mark the resource as modified in the rez map mRezObj->Changed(); @@ -512,13 +502,13 @@ // Tell the rezmap doc that there has been a modification mOwnerRezMapTable->GetOwnerDoc()->SetModified(true); // Refresh the view - mRezObj->SetSize( translator.GetOutSize() ); + mRezObj->SetSize( ::GetHandleSize(theHandle) ); mOwnerRezMapTable->Refresh(); } // --------------------------------------------------------------------------- -// ListenToMessage [public] +// ¬ ListenToMessage [public] // --------------------------------------------------------------------------- void @@ -535,3 +525,4 @@ PP_End_Namespace_PowerPlant + |
From: <bde...@us...> - 2004-02-28 15:19:13
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21785/RezillaSource/Rezilla_Src/Application Modified Files: CRezillaApp.h Log Message: 1.0.1a1 Index: CRezillaApp.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application/CRezillaApp.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- CRezillaApp.h 4 Jul 2003 18:57:28 -0000 1.1.1.1 +++ CRezillaApp.h 28 Feb 2004 15:01:47 -0000 1.2 @@ -1,12 +1,14 @@ // =========================================================================== // CRezillaApp.h -// Created : 2003-04-16 22:13:54 -// Last modification : 2003-04-12 14:28:53 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2002, 2003 +// Created: 2003-04-16 22:13:54 +// Last modification: 2004-02-22 18:22:48 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2002-2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -14,7 +16,16 @@ #include <LApplication.h> + +//Used Internally to implement Standard File System Open Dialog +//the hook data is used to set the default location +typedef struct Rzil_OpenFileUD{ + UInt16 whichFork; + Boolean isReadOnly; +} Rzil_OpenFileUD; + class CInspectorWindow; +class CRezMapDoc; class CRezillaApp : public LDocApplication, public LListener { @@ -32,23 +43,43 @@ Boolean ChooseAFile(FSSpec & fileSpec); Boolean ChooseAFile(const LFileTypeList & inFileTypes, FSSpec & fileSpec); - Boolean PreOpen(FSSpec & inFileSpec, SInt16 & outFork, short & outRefnum); Boolean DesignateNewMap( FSSpec& outFileSpec, bool & outReplacing); + OSErr PreOpen(FSSpec & inFileSpec, SInt16 & outFork, short & outRefnum); + OSErr OpenFork(FSSpec & inFileSpec); virtual void ShowAboutBox(); + + virtual void HandleAppleEvent( + const AppleEvent &inAppleEvent, + AppleEvent &outAEReply, + AEDesc &outResult, + SInt32 inAENumber); + + virtual void HandleOpenDocsEvent( + const AppleEvent &inAppleEvent, + AppleEvent &outAEReply, + AEDesc &outResult); + static LStr255 VersionFromResource(); static SInt16 GetOwnRefNum() { return sOwnRefNum;} // static void SetOwnRefNum(SInt16 theCurrentRefNum) {sOwnRefNum = theCurrentRefNum ;} + static CRezMapDoc* FetchRezMapDoc(FSSpec * inFileSpecPtr); + static const LStr255 sVersionNumber; static short sOwnRefNum; static CInspectorWindow * sInspectorWindow; + static TArray<CRezMapDoc *> sRezMapDocList; + static SInt16 sDefaultCreatingFork; + protected: LDialogBox * mAboutWindow; + SInt16 mCreatingFork; SInt16 mOpeningFork; + Boolean mIsReadOnly; virtual void StartUp(); @@ -60,7 +91,10 @@ private: - void InstallWindowMenu() ; + void InstallWindowMenu() ; + void ReportOpenForkError(OSErr inError, FSSpec * inFileSpecPtr); + }; + |
From: <bde...@us...> - 2004-02-28 15:19:02
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21718/RezillaSource/Rezilla_Src/Application Modified Files: CRezillaApp.cp Log Message: 1.0.1a1 Index: CRezillaApp.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application/CRezillaApp.cp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CRezillaApp.cp 3 Oct 2003 15:02:18 -0000 1.3 +++ CRezillaApp.cp 28 Feb 2004 15:01:39 -0000 1.4 @@ -1,12 +1,14 @@ // =========================================================================== // CRezillaApp.cp -// Created : 2003-04-16 22:13:54 -// Last modification : 2003-06-10 07:02:44 -// Author : Bernard Desgraupes -// e-mail : <bde...@ea...> -// www : <http://webperso.easyconnect.fr/bdesgraupes/> -// © Copyright : Bernard Desgraupes 2003 +// Created: 2003-04-16 22:13:54 +// Last modification: 2004-02-24 17:20:41 +// Author: Bernard Desgraupes +// e-mail: <bde...@ea...> +// www: <http://webperso.easyconnect.fr/bdesgraupes/> +// ¬© Copyright: Bernard Desgraupes 2003, 2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== @@ -92,27 +94,17 @@ "\pfrom data fork" }; -extern const Str255 Rzil_NavSaveItems[] = { - "\pto same fork", - "\pto resource fork", - "\pto data fork" -}; - -extern const Str255 Rzil_NavNewItems[] = { - "\pin resource fork", - "\pin data fork" -}; - // Statics CInspectorWindow * CRezillaApp::sInspectorWindow = nil; -const LStr255 CRezillaApp::sVersionNumber( VersionFromResource() ); -SInt16 CRezillaApp::sOwnRefNum; - +const LStr255 CRezillaApp::sVersionNumber( VersionFromResource() ); +SInt16 CRezillaApp::sOwnRefNum; +TArray<CRezMapDoc *> CRezillaApp::sRezMapDocList; +SInt16 CRezillaApp::sDefaultCreatingFork; // =========================================================================== -// Main Program +// ¬ Main Program // =========================================================================== int main() @@ -144,7 +136,7 @@ // --------------------------------------------------------------------------- -// CRezillaApp +// ¬ CRezillaApp // --------------------------------------------------------------------------- // Constructor @@ -156,12 +148,11 @@ } RegisterClasses(); - } // --------------------------------------------------------------------------- -// ~CRezillaApp +// ¬ ~CRezillaApp // --------------------------------------------------------------------------- // Destructor // @@ -173,7 +164,7 @@ // --------------------------------------------------------------------------- -// Initialize [protected] +// ¬ Initialize [protected] // --------------------------------------------------------------------------- // Last chance to initialize the application before processing events @@ -232,13 +223,17 @@ // ABalloonBase::EnableControlKeyPop(); // ABalloonBase::SetAutoPopDelay(20); - mOpeningFork = from_anyfork; - + mOpeningFork = fork_anyfork; + mIsReadOnly = false; + + // TODO: replace by preference + sDefaultCreatingFork = fork_datafork; + mCreatingFork = sDefaultCreatingFork; } // --------------------------------------------------------------------------- -// RegisterClasses [protected] +// ¬ RegisterClasses [protected] // --------------------------------------------------------------------------- // To reduce clutter within the Application object's constructor, class // registrations appear here in this seperate function for ease of use. @@ -290,7 +285,7 @@ // --------------------------------------------------------------------------- -// StartUp +// ¬ StartUp // --------------------------------------------------------------------------- void @@ -301,7 +296,7 @@ // --------------------------------------------------------------------------- -// ObeyCommand +// ¬ ObeyCommand // --------------------------------------------------------------------------- Boolean @@ -315,26 +310,30 @@ case cmd_New: { FSSpec theFileSpec; - short theRefnum; bool replacing; if ( DesignateNewMap(theFileSpec, replacing) ) { if (replacing) { - // Check if a rezmap is already opened for this file - - // todo... - - UMessageDialogs::SimpleMessageFromLocalizable(CFSTR("RezMapAlreadyOpened"), rPPob_SimpleMessage); - return true; + SInt16 theAnswer; + CRezMapDoc * theRezMapDocPtr = FetchRezMapDoc(&theFileSpec); + // Check if a RezMapDoc is already opened for this file and close it + if (theRezMapDocPtr != nil) { + theRezMapDocPtr->Close(); + } + theAnswer = UMessageDialogs::AskIfFromLocalizable(CFSTR("NewRezMapReplaceExisting"), rPPob_AskIfMessage); + if (theAnswer == answer_Cancel) { + return false; + } else { + FSpDelete(&theFileSpec); + } } // Make a new file object. - CRezFile * theFile = new CRezFile( theFileSpec, refnum_undefined, mOpeningFork ); + CRezFile * theRezFile = new CRezFile( theFileSpec, refnum_undefined, mCreatingFork ); // Make new resource file on disk - if (theFile->CreateNewFile() == noErr) { + if (theRezFile->CreateNewFile() == noErr) { // Open the resource file. - theFile->OpenFile(fsRdWrPerm); + theRezFile->OpenFile(fsRdWrPerm); } - new CRezMapDoc(this, &theFileSpec, mOpeningFork, theFile->GetRefNum() ); - delete theFile; + new CRezMapDoc(this, theRezFile); } break; } @@ -348,10 +347,12 @@ case cmd_Open: { FSSpec theFileSpec; - SInt16 theFork; - short theRefnum; - if ( ChooseAFile(theFileSpec) && PreOpen(theFileSpec, theFork, theRefnum)) { - new CRezMapDoc(this, &theFileSpec, theFork, theRefnum); + OSErr error; + if ( ChooseAFile(theFileSpec) ) { + error = OpenFork(theFileSpec); + if (error != noErr) { + ReportOpenForkError(error, &theFileSpec); + } } break; } @@ -367,7 +368,7 @@ // --------------------------------------------------------------------------- -// FindCommandStatus +// ¬ FindCommandStatus // --------------------------------------------------------------------------- void @@ -387,6 +388,7 @@ outEnabled = true; break; + case cmd_ExportSubMenu: case cmd_Find: case cmd_NewRez: case cmd_EditRez: @@ -407,7 +409,7 @@ // --------------------------------------------------------------------------- -// ListenToMessage [public] +// ¬ ListenToMessage [public] // --------------------------------------------------------------------------- void @@ -436,7 +438,7 @@ // --------------------------------------------------------------------------- -// MakeAboutBox [public] +// ¬ MakeAboutBox [public] // --------------------------------------------------------------------------- void @@ -455,7 +457,7 @@ // --------------------------------------------------------------------------- -// ShowAboutBox [public] +// ¬ ShowAboutBox [public] // --------------------------------------------------------------------------- // Display the About Box for the Application @@ -468,7 +470,7 @@ // --------------------------------------------------------------------------- -// InstallWindowMenu [protected] +// ¬ InstallWindowMenu [protected] // --------------------------------------------------------------------------- void @@ -513,7 +515,7 @@ // --------------------------------------------------------------------------- -// RegisterHelpBook [private] +// ¬ RegisterHelpBook [private] // --------------------------------------------------------------------------- // Under Carbon and OSX, register a Help folder // @@ -549,7 +551,7 @@ // --------------------------------------------------------------------------- -// VersionFromResource [public] +// ¬ VersionFromResource [public] // --------------------------------------------------------------------------- // Retrieve the version number from the 'vers' resources. @@ -582,10 +584,11 @@ } return theString; } - +// 01014000000007312e302e3161312752657a696c6c6120312e302e31613120a9203230303420627920422e2044657367726175706573 +// øø@øøøø1.0.1a1'Rezilla.1.0.1a1..2004.by.B..Desgraupes // --------------------------------------------------------------------------- -// ChooseAFile [public static] +// ¬ ChooseAFile [public static] // --------------------------------------------------------------------------- Boolean @@ -593,23 +596,10 @@ { LFileTypeList fileTypes(fileTypes_All); bool openOK = false; + struct Rzil_OpenFileUD theUserData; - mOpeningFork = from_anyfork; - - // Build the forks popup - NavMenuItemSpecHandle theMenuItemHandle ; - NavMenuItemSpecPtr theNavMenuItemSpecPtr; - - theMenuItemHandle = (NavMenuItemSpec**) NewHandleClear( 3 * sizeof(NavMenuItemSpec) ); - if (theMenuItemHandle != NULL) { - for (SInt16 theIndex = 0; theIndex < 3; theIndex++) { - theNavMenuItemSpecPtr = *theMenuItemHandle + theIndex; - (*theNavMenuItemSpecPtr).version = kNavMenuItemSpecVersion; - (*theNavMenuItemSpecPtr).menuCreator = FOUR_CHAR_CODE('Rzil'); - (*theNavMenuItemSpecPtr).menuType = 'TEXT'; - BlockMoveData(Rzil_NavOpenItems[theIndex], (*theNavMenuItemSpecPtr).menuItemName, Rzil_NavOpenItems[theIndex][0] + 1); - } - } + theUserData.whichFork = fork_anyfork; + theUserData.isReadOnly = false; // Deactivate the desktop. ::UDesktop::Deactivate(); @@ -617,14 +607,19 @@ // Browse for a document. UNavigationDialogs::CNavFileChooser chooser; chooser.SetEventFilterProc(Rzil_OpenNavEventFilterUPP); - chooser.SetPopupExtension(theMenuItemHandle); - chooser.SetOptionFlags(kNavAllowStationery + kNavDontAutoTranslate); - chooser.SetUserData( (void *) &mOpeningFork); + chooser.SetOptionFlags(kNavNoTypePopup + + kNavDontAutoTranslate + + kNavSupportPackages + + kNavAllowOpenPackages); +// + chooser.SetUserData( (void *) &theUserData); openOK = chooser.AskOpenFile(fileTypes); if (openOK) { chooser.GetFileSpec(1, outFileSpec); + mOpeningFork = theUserData.whichFork; + mIsReadOnly = theUserData.isReadOnly; } // Activate the desktop. @@ -635,7 +630,7 @@ // --------------------------------------------------------------------------- -// ChooseAFile [public static] +// ¬ ChooseAFile [public static] // --------------------------------------------------------------------------- Boolean @@ -658,11 +653,64 @@ } + // --------------------------------------------------------------------------- -// PreOpen [public static] +// ¬ OpenFork [public static] // --------------------------------------------------------------------------- -Boolean +OSErr +CRezillaApp::OpenFork(FSSpec & inFileSpec) +{ + SInt16 theFork; + short theRefnum; + OSErr error; + + // Check if a RezMapDoc is already opened for this file + CRezMapDoc * theRezMapDocPtr = FetchRezMapDoc(&inFileSpec); + if (theRezMapDocPtr != nil) { + theRezMapDocPtr->GetRezMapWindow()->Select(); + return true; + } + error = PreOpen(inFileSpec, theFork, theRefnum); + if ( error == noErr ) { + new CRezMapDoc(this, &inFileSpec, theFork, theRefnum); + } else { + } + return error; +} + + +// --------------------------------------------------------------------------- +// ¬ PreOpen [public static] +// --------------------------------------------------------------------------- +// theRefNum = OpenOrCreateResFile(WinFSSpecPtr(inWinP), fsRdWrPerm, &theErr); +// if (kInvalidFileRefNum_ == theRefNum) +// { +// if (theErr == opWrErr || theErr == permErr) { +// OSErrorAlert("\pResource fork is opened from another application. Could not save any extra information.", theErr); +// } else { +// OSErrorAlert("\pCould not save any extra information.", theErr); +// } +// goto RETURN; +// } +// file already open with write permission +// Str255 theTitle; +// char * theCStr = new char[255]; +// CFStringRef formatStr = NULL, messageStr = NULL; +// mWindow->GetDescriptor(theTitle); +// CopyPascalStringToC(theTitle,theCStr); +// formatStr = CFCopyLocalizedString(CFSTR("SaveDictKey"), NULL); +// if (formatStr != NULL) { +// messageStr = CFStringCreateWithFormat(NULL, NULL, formatStr, theCStr); +// if (messageStr != NULL) +// { +// theAnswer = UMessageDialogs::AskYesNoFromLocalizable(messageStr, rPPob_AskYesNoMessage); +// CFRelease(messageStr); +// } +// CFRelease(formatStr); +// } + +OSErr CRezillaApp::PreOpen(FSSpec & inFileSpec, SInt16 & outFork, short & outRefnum) { Boolean openOK = false; @@ -671,7 +719,7 @@ StRezReferenceSaver saver( ::CurResFile() ); - if (mOpeningFork != from_rezfork) { + if (mOpeningFork != fork_rezfork) { // Try to open the file as a datafork resource file error = FSpMakeFSRef( &inFileSpec, &inFileRef ); SetResLoad( false ); @@ -680,16 +728,21 @@ if (error == noErr) { openOK = true; - outFork = from_datafork; + outFork = fork_datafork; goto done; - } else if (mOpeningFork == from_datafork) { - // If this failed (eofErr), the file has no resource in data fork - UMessageDialogs::SimpleMessageFromLocalizable(CFSTR("NoRezInDataFork"), rPPob_SimpleMessage); - goto done; - } + } else if (error == mapReadErr || error == eofErr) { + if (mOpeningFork == fork_datafork) { + // If this failed with mapReadErr or eofErr, the file has no resource + // map in data fork or it is empty + error = err_NoRezInDataFork; + goto done; + } + } else { + goto done; + } } - if (mOpeningFork != from_datafork) { + if (mOpeningFork != fork_datafork) { // If this failed (mapReadErr), try to open as a resourcefork resource file SetResLoad( false ); outRefnum = FSpOpenResFile( &inFileSpec, fsRdWrPerm); @@ -697,25 +750,91 @@ SetResLoad( true ); if (error == noErr) { openOK = true; - outFork = from_rezfork; - goto done; - } else { - // If this failed (eofErr), the file has no resource in resource fork - if (mOpeningFork == from_anyfork) { - UMessageDialogs::SimpleMessageFromLocalizable(CFSTR("NoRezInAnyFork"), rPPob_SimpleMessage); + outFork = fork_rezfork; + } else if (error == mapReadErr || error == eofErr) { + // If this failed with mapReadErr or eofErr, the file has no resource + // map in resource fork or it is empty + if (mOpeningFork == fork_anyfork) { + error = err_NoRezInAnyFork; } else { - UMessageDialogs::SimpleMessageFromLocalizable(CFSTR("NoRezInRezFork"), rPPob_SimpleMessage); + error = err_NoRezInRezFork; } - } + } } done: - return openOK; + return error; } // --------------------------------------------------------------------------- -// DesignateNewMap [public static] +// ¬ ReportOpenForkError [public static] +// --------------------------------------------------------------------------- +// Str255 theTitle; +// char * theCStr = new char[255]; +// CFStringRef formatStr = NULL, messageStr = NULL; +// mWindow->GetDescriptor(theTitle); +// CopyPascalStringToC(theTitle,theCStr); +// formatStr = CFCopyLocalizedString(CFSTR("SaveDictKey"), NULL); +// if (formatStr != NULL) { +// messageStr = CFStringCreateWithFormat(NULL, NULL, formatStr, theCStr); +// if (messageStr != NULL) +// { +// theAnswer = UMessageDialogs::AskYesNoFromLocalizable(messageStr, rPPob_AskYesNoMessage); +// CFRelease(messageStr); +// } +// CFRelease(formatStr); +// } + +void +CRezillaApp::ReportOpenForkError(OSErr inError, FSSpec * inFileSpecPtr) +{ + char * theCStr = new char[255]; + CFStringRef formatStr = NULL, messageStr = NULL; + + CopyPascalStringToC(inFileSpecPtr->name,theCStr); + + switch (inError) { + case err_NoRezInDataFork: + formatStr = CFCopyLocalizedString(CFSTR("NoRezInDataFork"), NULL); + break; + + case err_NoRezInRezFork: + formatStr = CFCopyLocalizedString(CFSTR("NoRezInRezFork"), NULL); + break; + + case err_NoRezInAnyFork: + formatStr = CFCopyLocalizedString(CFSTR("NoRezInAnyFork"), NULL); + break; + + case opWrErr: + formatStr = CFCopyLocalizedString(CFSTR("NoOpenWritePermission"), NULL); + break; + + case permErr: + formatStr = CFCopyLocalizedString(CFSTR("PermissionError"), NULL); + break; + + default: + UMessageDialogs::ErrorMessageFromLocalizable(CFSTR("SystemError"), inError, rPPob_SimpleMessage); + return; + } + + if (formatStr != NULL) { + messageStr = CFStringCreateWithFormat(NULL, NULL, formatStr, theCStr); + if (messageStr != NULL) + { + UMessageDialogs::SimpleMessageFromLocalizable(messageStr, rPPob_SimpleMessage); + CFRelease(messageStr); + } + CFRelease(formatStr); + } +} + + + +// --------------------------------------------------------------------------- +// ¬ DesignateNewMap [public static] // --------------------------------------------------------------------------- Boolean @@ -725,21 +844,8 @@ bool openOK = false; Str255 theString; - // Build the forks popup - NavMenuItemSpecHandle theMenuItemHandle ; - NavMenuItemSpecPtr theNavMenuItemSpecPtr; + mCreatingFork = sDefaultCreatingFork; - theMenuItemHandle = (NavMenuItemSpec**) NewHandleClear( 2 * sizeof(NavMenuItemSpec) ); - if (theMenuItemHandle != NULL) { - for (SInt16 theIndex = 0; theIndex < 2; theIndex++) { - theNavMenuItemSpecPtr = *theMenuItemHandle + theIndex; - (*theNavMenuItemSpecPtr).version = kNavMenuItemSpecVersion; - (*theNavMenuItemSpecPtr).menuCreator = FOUR_CHAR_CODE('Rzil'); - (*theNavMenuItemSpecPtr).menuType = 'TEXT'; - BlockMoveData(Rzil_NavNewItems[theIndex], (*theNavMenuItemSpecPtr).menuItemName, Rzil_NavNewItems[theIndex][0] + 1); - } - } - // Deactivate the desktop. ::UDesktop::Deactivate(); @@ -748,16 +854,15 @@ // File designator setup designator.SetEventFilterProc(Rzil_NewMapNavEventFilterUPP); - designator.SetPopupExtension(theMenuItemHandle); - designator.SetOptionFlags(kNavDontAutoTranslate); - designator.SetUserData( (void *) &mOpeningFork); + designator.SetOptionFlags(kNavNoTypePopup + kNavDontAutoTranslate); + designator.SetUserData( (void *) &mCreatingFork); // Retrieve strings from STR# resource - GetIndString(theString, STRx_NavServStrings, index_RezillaAppName); + GetIndString(theString, STRx_NavStrings, index_RezillaAppName); designator.SetClientName(theString); - GetIndString(theString, STRx_NavServStrings, index_CreateNewRezMap); + GetIndString(theString, STRx_NavStrings, index_CreateNewRezMap); designator.SetMessage(theString); - GetIndString(theString, STRx_NavServStrings, index_CreateUntitled); + GetIndString(theString, STRx_NavStrings, index_CreateUntitled); designator.SetSavedFileName(theString); openOK = designator.AskDesignateFile(); @@ -774,4 +879,101 @@ } +// --------------------------------------------------------------------------- +// ¬ FetchRezMapDoc [static] +// --------------------------------------------------------------------------- +// Returns nil if no RezMapDoc exists corresponding to the given FSSpec + +CRezMapDoc* +CRezillaApp::FetchRezMapDoc(FSSpec * inFileSpecPtr) +{ + CRezMapDoc* result = nil; + + if (inFileSpecPtr != nil) { + TArrayIterator<CRezMapDoc *> iterator(sRezMapDocList); + FSSpec theFileSpec; + CRezMapDoc* theRezMapDoc = nil; + + // CRezillaApp class maintains a list of all CRezMapDoc's that we created + while (iterator.Next(theRezMapDoc)) { + theRezMapDoc->GetRezFile()->GetSpecifier(theFileSpec); + if ( LFile::EqualFileSpec(theFileSpec, *inFileSpecPtr) ) { + result = theRezMapDoc; + break; + } + } + } + + return result; +} + + +// --------------------------------------------------------------------------- +// ¬ HandleAppleEvent [public] +// --------------------------------------------------------------------------- + +void +CRezillaApp::HandleAppleEvent( + const AppleEvent& inAppleEvent, + AppleEvent& outAEReply, + AEDesc& outResult, + long inAENumber) +{ + OSErr error, ignoreErr; + AEDesc duplicateAppleEvent; + + switch (inAENumber) { + + case ae_OpenDoc: + HandleOpenDocsEvent(inAppleEvent, outAEReply, outResult); + break; + + case ae_ApplicationDied: + break; + + default: + LApplication::HandleAppleEvent(inAppleEvent, outAEReply, outResult, inAENumber); + break; + } +} + + +// --------------------------------------------------------------------------- +// ¬ HandleAppleEvent [public] +// --------------------------------------------------------------------------- + +void +CRezillaApp::HandleOpenDocsEvent( + const AppleEvent& inAppleEvent, + AppleEvent& outAEReply, + AEDesc& outResult) +{ + OSErr error; + AEDesc theDocList; + AEKeyword theKey; + DescType theType; + FSSpec theFileSpec; + Size theSize; + SInt32 numDocs; + + error = ::AEGetParamDesc(&inAppleEvent, keyDirectObject, + typeAEList, &theDocList); + ThrowIfOSErr_(error); + error = ::AECountItems(&theDocList, &numDocs); + ThrowIfOSErr_(error); + + for ( UInt16 i = 1; i <= numDocs; i++ ) { + error = ::AEGetNthPtr(&theDocList, i, typeFSS, &theKey, &theType, + (Ptr) &theFileSpec, sizeof(FSSpec), &theSize); + ThrowIfOSErr_(error); + + OpenFork(theFileSpec); + } + + if (theDocList.descriptorType != typeNull) ::AEDisposeDesc(&theDocList); +} + + + + |
From: <bde...@us...> - 2004-02-28 15:17:59
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21607/RezillaSource/Rezilla_Src Modified Files: RezillaConstants.h Log Message: 1.0.1a1 Index: RezillaConstants.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/RezillaConstants.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- RezillaConstants.h 3 Oct 2003 14:55:43 -0000 1.3 +++ RezillaConstants.h 28 Feb 2004 15:00:35 -0000 1.4 @@ -2,12 +2,14 @@ // RezillaConstants.h // // Created : 2003-04-16 22:52:54 -// Last modification : 2003-10-03 16:54:49 +// Last modification : 2004-02-25 15:57:30 // Author : Bernard Desgraupes // e-mail : <bde...@ea...> // www : <http://webperso.easyconnect.fr/bdesgraupes/> -// (c) Copyright : Bernard Desgraupes, 2003 +// (c) Copyright : Bernard Desgraupes, 2003-2004 // All rights reserved. +// $Date$ +// $Revision$ // =========================================================================== #pragma once @@ -19,23 +21,11 @@ // Fork indices enum { - from_anyfork = 0, - from_rezfork, - from_datafork -}; - -enum -{ - to_undefinedfork = -1, - to_samefork = 0, - to_rezfork, - to_datafork -}; - -enum -{ - new_rezfork = 0, - new_datafork + fork_undefinedfork = -1, + fork_anyfork = 0, + fork_samefork = 0, + fork_rezfork, + fork_datafork }; @@ -72,6 +62,10 @@ const ResIDT icon_Document = 20000; const ResIDT icon_App = 25000; +const ResIDT DITL_NewMap = 10001; +const ResIDT DITL_OpenMap = 10002; +const ResIDT DITL_SaveMap = 10003; + const ResIDT PPob_SelectVolDialog = 1128; const ResIDT PPob_EditTable = 1129; @@ -96,20 +90,20 @@ const ResIDT STRx_RzilErrorStrings = 1000; const ResIDT STRx_RzilMessageStrings = 1001; -const ResIDT STRx_NavServStrings = 1002; +const ResIDT STRx_NavStrings = 1002; const ResIDT STRx_FileExtensions = 1003; const ResIDT STRx_PrefsCtrlList = 1004; const ResIDT STRx_DefaultDocTitles = 1500; const ResIDT STRx_RzilWinMenuItem = 1510; // Menu resources -const ResIDT rMENU_File = 1000; -const ResIDT rMENU_Edit = 1100; +const ResIDT baseMENU_File = 1000; +const ResIDT baseMENU_Edit = 1100; const ResIDT rMENU_Resource = 1200; +const ResIDT rMENU_Export = 140; // rMENU_Window is not a resource. It is built // in CRezillaApp::InstallWindowMenu() const ResIDT rMENU_Window = 1300; -const ResIDT rMENU_Export = 1400; const ResIDT rMENU_Help = 2000; // Icon resources @@ -156,9 +150,10 @@ const MessageT cmd_RemoveRez = rMENU_Resource + 4; const MessageT cmd_DuplicateRez = rMENU_Resource + 5; // File menu items +const MessageT cmd_ExportSubMenu = baseMENU_File + 1; // Edit menu items -const MessageT cmd_Find = rMENU_Edit + 1; -const MessageT cmd_FindNext = rMENU_Edit + 2; +const MessageT cmd_Find = baseMENU_Edit + 1; +const MessageT cmd_FindNext = baseMENU_Edit + 2; // Export submenu items const MessageT cmd_ExportAsText = rMENU_Export + 1; const MessageT cmd_ExportAsXML = rMENU_Export + 2; @@ -224,6 +219,26 @@ const PaneIDT item_FindRegexp = 5; const PaneIDT item_FindInPaneRGV = 6; +// Navigation dialogs custom items +// ------------------------------- +enum { + DITLitm_NewMapRF = 1, + DITLitm_NewMapDF = 2 +}; + +enum { + DITLitm_OpenMapAny = 1, + DITLitm_OpenMapRF = 2, + DITLitm_OpenMapDF = 3, + DITLitm_OpenMapRO = 4 +}; + +enum { + DITLitm_SaveMapSame = 1, + DITLitm_SaveMapRF = 2, + DITLitm_SaveMapDF = 3 +}; + // Messages ID's // ============= @@ -293,6 +308,18 @@ const long ae_Version = 5001; +// Error constants +enum +{ + err_NoRezInDataFork = 1001, + err_NoRezInRezFork, + err_NoRezInAnyFork, + err_NoOpenPermission, + err_OpenForkError +}; + + + // Misc constants // ============== // Signatures @@ -312,8 +339,11 @@ const SInt16 kRzilHexLineCount = 32; const SInt16 kRzilHexPerLine = 16; const SInt16 kRzilHexPerPane = 512; - + + +const ResType ResType_DITL = FOUR_CHAR_CODE('DITL'); // #define kFirstSizeMenuItem 1 // #define kLastSizeMenuItem 9 + |
From: <bde...@us...> - 2004-02-28 15:17:19
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21438/RezillaSource/Rezilla_Src Added Files: RezillaID.h Log Message: First checkin --- NEW FILE: RezillaID.h --- // =========================================================================== // RezillaID.h // Created: 2004-02-23 15:26:13 // Last modification: 2004-02-27 16:43:59 // Author: Bernard Desgraupes // e-mail: <bde...@ea...> // www: <http://webperso.easyconnect.fr/bdesgraupes/> // © Copyright: Bernard Desgraupes 2004 // All rights reserved. // $Date: 2004/02/28 14:59:57 $ // $Revision: 1.1 $ // =========================================================================== #define REZILLA_MAJOR 1 #define REZILLA_MINOR 0 #define REZILLA_SUBMINOR 1 #define REZILLA_STAGE alphaStage #define REZILLA_DEVEL 2 // developStage 0x20 // alphaStage 0x40 // betaStage 0x60 // finalStage 0x80 // Version number string #define REZILLA_VERSION_STRING "1.0.1a2" |