rezilla-commits Mailing List for Rezilla (Page 2)
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: Bernard D. <bde...@us...> - 2006-11-27 21:19:51
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9698 Modified Files: Rezilla_PPob.r Log Message: Derezed ppob Index: Rezilla_PPob.r =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_PPob.r,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- Rezilla_PPob.r 2 Mar 2006 09:50:58 -0000 1.13 +++ Rezilla_PPob.r 27 Nov 2006 21:19:48 -0000 1.14 @@ -1,4 +1,4 @@ -#include <Carbon/Carbon.r> +<Carbon/Carbon.r> data 'CTYP' (128, "Color Pane") { $"0001 6F62 6A64 0000 0021 7670 7465 0A43" /* ..objd...!vpteÂC */ @@ -71,7 +71,29 @@ $"0000 0000 2000 0000 656E 6473 656E 642E" /* .... ...endsend. */ }; -resource 'CURS' (1000, "Hand cursor", preload) { +data 'CTYP' (133, "Drag Table") { [...5164 lines suppressed...] + naturalGlyph } } } }; -resource 'xmnu' (301, "Icon Colors") { +'xmnu' (301, "Icon Colors") { versionZero { { /* array ItemExtensions: 11 elements */ /* [1] */ @@ -11563,7 +12793,7 @@ } }; -resource 'xmnu' (303, "Icon Style") { +'xmnu' (303, "Icon Style") { versionZero { { /* array ItemExtensions: 21 elements */ /* [1] */ |
From: Bernard D. <bde...@us...> - 2006-11-27 21:18:53
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Edit_TEXT In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9308 Modified Files: CTEXT_EditorView.cp Log Message: Fixed synthetic command return value Index: CTEXT_EditorView.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Edit_TEXT/CTEXT_EditorView.cp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- CTEXT_EditorView.cp 16 Feb 2006 18:56:03 -0000 1.17 +++ CTEXT_EditorView.cp 27 Nov 2006 21:18:50 -0000 1.18 @@ -285,8 +285,10 @@ ::GetFNum(fontName, &theFontNum); SetFont(theFontNum); } + } else { + cmdHandled = mOwnerWindow->ObeyCommand(inCommand, ioParam); } - return true; + return cmdHandled; } // Now check for size menu |
From: Bernard D. <bde...@us...> - 2006-11-27 21:18:26
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9265 Modified Files: CPluginEditorWindow.cp Log Message: Ensure self refnum Index: CPluginEditorWindow.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorWindow.cp,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- CPluginEditorWindow.cp 27 Nov 2006 20:40:16 -0000 1.33 +++ CPluginEditorWindow.cp 27 Nov 2006 21:18:17 -0000 1.34 @@ -13,6 +13,7 @@ #include "CPluginEditorWindow.h" #include "CPluginEditorDoc.h" #include "CRezillaPlugin.h" +#include "CRezillaApp.h" #include "CRezObj.h" #include "CWindowMenu.h" #include "RezillaConstants.h" @@ -237,9 +238,8 @@ // Create a Locked/Unlocked icon ControlRef lockRef; ControlButtonContentInfo info; -// const ResIDT ics8_Unlocked = 1500; -// const ResIDT ics8_Locked = 1501; - + StRezRefSaver saver( CRezillaApp::GetSelfRefNum() ); + boundsRect.left = kEditorLockIconLeft; boundsRect.right = boundsRect.left + kEditorLockIconSize; boundsRect.top = kEditorLockIconTop; @@ -274,6 +274,7 @@ HIViewRef viewRef = NULL; ControlRef lockRef; SInt16 resID; + StRezRefSaver saver( CRezillaApp::GetSelfRefNum() ); error = HIViewFindByID(HIViewGetRoot( GetMacWindow() ), ctrlID, &lockRef); |
From: Bernard D. <bde...@us...> - 2006-11-27 20:41:54
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Tables In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27049 Modified Files: CRezMapTable.cp Log Message: Removed DoKeyCHeck Index: CRezMapTable.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Tables/CRezMapTable.cp,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- CRezMapTable.cp 3 Oct 2006 13:14:16 -0000 1.44 +++ CRezMapTable.cp 27 Nov 2006 20:41:50 -0000 1.45 @@ -884,7 +884,6 @@ // --------------------------------------------------------------------------- // HandleKeyPress // --------------------------------------------------------------------------- -static Boolean DoKeyCheck( const EventRecord & ); Boolean CRezMapTable::HandleKeyPress( @@ -894,38 +893,11 @@ if (theChar == char_Backspace) { GetOwnerDoc()->ObeyCommand(cmd_RemoveRez, nil); return true; - } - - if ( DoKeyCheck( inKeyEvent )) { - return true; } else { return LCommander::HandleKeyPress(inKeyEvent); } } -static Boolean DoKeyCheck( const EventRecord &inKeyEvent ) -{ - static short numInBuffer = 0; - static char *matchString = "BERNARDO"; - unsigned char theChar = inKeyEvent.message & charCodeMask; - - if ( !(inKeyEvent.modifiers & cmdKey) && (inKeyEvent.modifiers & shiftKey) ) { - if ( (numInBuffer < 8) && (theChar == matchString[ numInBuffer ]) ) - { - ++numInBuffer; - if ( numInBuffer == 8 ) - { - UMessageDialogs::SimpleMessage("\pLes insensÂs s'agitent, le sage se prÂlasse !", PPob_SimpleMessage); - return true; - } - return false; - } - } - - numInBuffer = 0; - return false; -} - // --------------------------------------------------------------------------- // CreateItemIfNecessary [public] |
From: Bernard D. <bde...@us...> - 2006-11-27 20:41:28
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Layouts In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv27029 Modified Files: CEditorWindow.cp Log Message: Modif date Index: CEditorWindow.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Layouts/CEditorWindow.cp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- CEditorWindow.cp 9 Oct 2006 16:45:27 -0000 1.30 +++ CEditorWindow.cp 27 Nov 2006 20:41:25 -0000 1.31 @@ -2,7 +2,7 @@ // CEditorWindow.cp // // Created: 2004-06-10 14:50:31 -// Last modification: 2006-02-21 15:31:46 +// Last modification: 2006-11-27 20:09:59 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> |
From: Bernard D. <bde...@us...> - 2006-11-27 20:40:43
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26642 Modified Files: CPluginEditorDoc.cp Log Message: Set owner doc early (for lock icon) Index: CPluginEditorDoc.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorDoc.cp,v retrieving revision 1.35 retrieving revision 1.36 diff -u -d -r1.35 -r1.36 --- CPluginEditorDoc.cp 25 Nov 2006 11:59:59 -0000 1.35 +++ CPluginEditorDoc.cp 27 Nov 2006 20:40:39 -0000 1.36 @@ -410,6 +410,7 @@ GetEventTypeCount(winSpec), winSpec, (void *) thePluginWindow, NULL); + thePluginWindow->SetOwnerDoc(this); thePluginWindow->CreateControls(inPlugAttrs); return thePluginWindow; |
From: Bernard D. <bde...@us...> - 2006-11-27 20:40:24
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26572 Modified Files: CPluginEditorWindow.cp CPluginEditorWindow.h Log Message: Lock icon in plugin windows Index: CPluginEditorWindow.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorWindow.cp,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- CPluginEditorWindow.cp 18 Nov 2006 06:53:10 -0000 1.32 +++ CPluginEditorWindow.cp 27 Nov 2006 20:40:16 -0000 1.33 @@ -2,7 +2,7 @@ // CPluginEditorWindow.cp // // Created: 2005-10-02 08:41:52 -// Last modification: 2006-10-03 15:05:45 +// Last modification: 2006-11-27 17:19:45 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -89,8 +89,7 @@ char theStr[256]; OSErr error; - // Set mOwnerDoc - SetOwnerDoc(inEditorDoc); + // Note: mOwnerDoc has already been set in CreatePluginWindow SetSuperModel(inEditorDoc); mInterface = dynamic_cast<CPluginEditorDoc *>(mOwnerDoc)->GetPlugin()->GetInterface(); @@ -101,7 +100,7 @@ error = ::SetControlData(mNameRef, kControlNoPart, kControlStaticTextTextTag, strlen(theStr), theStr); ::HIViewSetNeedsDisplay(mNameRef, true); } - + // Add the window to the window menu. gWindowMenu->InsertWindow(this); } @@ -236,21 +235,61 @@ } if ( (inPlugAttrs & kPluginEditorHasLockIcon) != 0) { // Create a Locked/Unlocked icon -// OSStatus -// CreateIconControl( -// WindowRef inWindow, /* can be NULL */ -// const Rect * inBoundsRect, -// const ControlButtonContentInfo * inIconContent, -// Boolean inDontTrack, -// ControlRef * outControl) - - + ControlRef lockRef; + ControlButtonContentInfo info; +// const ResIDT ics8_Unlocked = 1500; +// const ResIDT ics8_Locked = 1501; + + boundsRect.left = kEditorLockIconLeft; + boundsRect.right = boundsRect.left + kEditorLockIconSize; + boundsRect.top = kEditorLockIconTop; + boundsRect.bottom = boundsRect.top + kEditorLockIconSize ; + info.contentType = kControlContentIconSuiteRes; + if (mOwnerDoc->IsReadOnly()) { + info.u.resID = ics8_Locked; + } else { + info.u.resID = ics8_Unlocked; + } + + error = CreateIconControl(NULL, &boundsRect, &info, true, &lockRef); + ThrowIfOSErr_(error); + ctrlID.id = item_ReadOnlyIcon; + SetControlID(lockRef, &ctrlID); + HIViewAddSubview(mFooterRef, lockRef); + HIViewSetVisible(lockRef, true); } } } // --------------------------------------------------------------------------- +// InstallReadOnlyIcon [public] +// --------------------------------------------------------------------------- + +void +CPluginEditorWindow::InstallReadOnlyIcon() +{ + ControlID ctrlID = {kRezillaSig, item_ReadOnlyIcon}; + OSStatus error; + HIViewRef viewRef = NULL; + ControlRef lockRef; + SInt16 resID; + + error = HIViewFindByID(HIViewGetRoot( GetMacWindow() ), ctrlID, &lockRef); + + if (lockRef != NULL) { + if (mOwnerDoc->IsReadOnly()) { + resID = ics8_Locked; + } else { + resID = ics8_Unlocked; + } + error = ::SetControlProperty(lockRef, kRezillaSig, kControlIconResourceIDTag, + sizeof(SInt16), &resID); + } +} + + +// --------------------------------------------------------------------------- // MoveControls [public] // --------------------------------------------------------------------------- @@ -494,6 +533,25 @@ // after a click in the contents area of the plugin window (but it // works after a click in the title bar). Dunno why. gWindowMenu->ForceMarkWindow( (LWindow*) this ); + LCommander::SetUpdateCommandStatus(true); + // Similar issue with the Import/Export menu items. Once in a while + // they are not correctly updated so change them manually. + { + LMenuBar * theBar = LMenuBar::GetCurrentMenuBar(); + ResIDT theMENUid; + MenuHandle theMenu; + SInt16 theItem; + + theBar->FindMenuItem(cmd_Export, theMENUid, theMenu, theItem); + if (theMenu) { + ::SetMenuItemText(theMenu, theItem, "\pExport..."); + ::DisableMenuItem(theMenu, theItem); + } + theBar->FindMenuItem(cmd_Import, theMENUid, theMenu, theItem); + if (theMenu) { + ::SetMenuItemText(theMenu, theItem, "\pImport..."); + } + } } @@ -680,8 +738,8 @@ break; case kEventWindowActivated: - LCommander::SetUpdateCommandStatus(true); plugWin->Activate(); + LCommander::SetUpdateCommandStatus(true); result = noErr; break; @@ -692,14 +750,15 @@ break; case kEventWindowGetClickActivation: { - // kDoNotActivateAndIgnoreClick kDoNotActivateAndHandleClick - // kActivateAndIgnoreClick kActivateAndHandleClick -// UInt32 activationResult = kActivateAndIgnoreClick; -// result = SetEventParameter(inEvent, kEventParamClickActivation, typeClickActivationResult, -// sizeof(ClickActivationResult), &activationResult); + // kDoNotActivateAndIgnoreClick, kDoNotActivateAndHandleClick, + // kActivateAndIgnoreClick, kActivateAndHandleClick + UInt32 activationResult = kActivateAndIgnoreClick; + result = SetEventParameter(inEvent, kEventParamClickActivation, typeClickActivationResult, + sizeof(ClickActivationResult), &activationResult); result = noErr; plugWin->Select(); LCommander::SetUpdateCommandStatus(true); + result = eventNotHandledErr; break; } @@ -709,29 +768,34 @@ switch (command.commandID) { case kHICommandOK: plugWin->ListenToMessage(msg_EditorSave, NULL); + result = noErr; break; case kHICommandCancel: plugWin->ListenToMessage(msg_EditorCancel, NULL); + result = noErr; break; case kHICommandRevert: plugWin->ListenToMessage(msg_EditorRevert, NULL); + result = noErr; break; case kHICommandPreferences: plugWin->ObeyCommand(cmd_Preferences, NULL); + result = noErr; break; case kHICommandQuit: plugWin->ObeyCommand(cmd_Quit, NULL); + result = noErr; break; default: plugWin->HandleMenuItem(command.menu.menuRef, command.menu.menuItemIndex); + result = noErr; break; } - result = noErr; break; } } Index: CPluginEditorWindow.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorWindow.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- CPluginEditorWindow.h 27 Oct 2006 09:38:53 -0000 1.17 +++ CPluginEditorWindow.h 27 Nov 2006 20:40:17 -0000 1.18 @@ -2,7 +2,7 @@ // CPluginEditorWindow.h // // Created: 2005-10-02 08:41:52 -// Last modification: 2006-10-26 14:06:58 +// Last modification: 2006-11-27 19:18:34 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -57,6 +57,8 @@ virtual void SpendTime( const EventRecord& inMacEvent ); + void InstallReadOnlyIcon(); + void GetContentsRect(Rect &outRect) const; void ResizeWindowBy( |
From: Bernard D. <bde...@us...> - 2006-11-27 20:39:57
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv26212 Modified Files: RezillaConstants.h Log Message: Lock icon pos in plugin windows Index: RezillaConstants.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/RezillaConstants.h,v retrieving revision 1.263 retrieving revision 1.264 diff -u -d -r1.263 -r1.264 --- RezillaConstants.h 25 Nov 2006 11:59:25 -0000 1.263 +++ RezillaConstants.h 27 Nov 2006 20:39:48 -0000 1.264 @@ -1719,7 +1719,8 @@ const UInt16 kPluginHeaderHeight = 24; const UInt16 kPluginFooterHeight = 40; const UInt16 kEditorLockIconSize = 16; -const UInt16 kEditorLockIconLeft = 9; +const UInt16 kEditorLockIconLeft = 7; +const UInt16 kEditorLockIconTop = 12; const UInt16 kEditorRevertLeftPos = 28; const UInt16 kEditorCancelRightPos = 164; const UInt16 kEditorSaveRightPos = 86; |
From: Bernard D. <bde...@us...> - 2006-11-25 18:51:07
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Layouts In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1615 Modified Files: CAboutWindow.cp Log Message: Self refnum Index: CAboutWindow.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Layouts/CAboutWindow.cp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- CAboutWindow.cp 5 Oct 2006 17:01:52 -0000 1.6 +++ CAboutWindow.cp 25 Nov 2006 18:51:01 -0000 1.7 @@ -2,7 +2,7 @@ // CAboutWindow.cp // // Created: 2005-03-08 14:22:24 -// Last modification: 2006-10-03 14:39:46 +// Last modification: 2006-11-25 19:36:16 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -15,6 +15,7 @@ #include "RezillaConstants.h" #include "CRezillaApp.h" #include "CStaticTextURL.h" +#include "UResources.h" #include <LStaticText.h> @@ -144,8 +145,9 @@ break; case msg_AboutLicenceButton: - WindowPtr theWinPtr = UWindows::FindNamedWindow("\pRezilla Licence"); + WindowPtr theWinPtr = UWindows::FindNamedWindow("\pRezilla License"); if (!theWinPtr) { + StRezRefSaver saver( CRezillaApp::GetSelfRefNum() ); LWindow* theWindow = LWindow::CreateWindow( PPob_LicenceWindow, this->GetSuperCommander() ); ThrowIfNil_(theWindow); theWinPtr = theWindow->GetMacWindow(); |
From: Bernard D. <bde...@us...> - 2006-11-25 17:16:58
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28331 Modified Files: Rezilla_STR#.r Log Message: Updated Browse CVS URL Index: Rezilla_STR#.r =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_STR#.r,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- Rezilla_STR#.r 5 Oct 2006 17:06:05 -0000 1.32 +++ Rezilla_STR#.r 25 Nov 2006 17:16:54 -0000 1.33 @@ -70,7 +70,7 @@ /* [3] */ "Binary releases", /* [4] */ "http://sourceforge.net/project/showfiles.php?group_id=83267", /* [5] */ "Browse CVS repository", -/* [6] */ "http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla", +/* [6] */ "http://rezilla.cvs.sourceforge.net/rezilla/", /* [7] */ "Bug tracker", /* [8] */ "http://sourceforge.net/tracker/?atid=568882&group_id=83267&func=browse", /* [9] */ "Subscribe to mailing list", |
From: Bernard D. <bde...@us...> - 2006-11-25 12:06:06
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32141 Modified Files: PluginSample_FR.aida Log Message: Typo Index: PluginSample_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/PluginSample_FR.aida,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PluginSample_FR.aida 18 Sep 2006 13:28:46 -0000 1.2 +++ PluginSample_FR.aida 25 Nov 2006 12:05:59 -0000 1.3 @@ -10,7 +10,7 @@ de dveloppement de Rezilla (((i Rezilla SDK i))) pour servir la fois d'exemple et de modle pour la cration d'un plugin pour Rezilla. Un fichier de projet XCode est aussi fourni. Le plugin ((b Sample b)) met en -relief les diverss aspects des tches de programmation ncessaires pour la +relief les divers aspects des tches de programmation ncessaires pour la cration d'un plugin Rezilla. Le code source lui-mme contient par ailleurs des commentaires dtaills. |
From: Bernard D. <bde...@us...> - 2006-11-25 12:05:49
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/WhatsNew In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32127 Modified Files: NewFeatures_1.1.aida Log Message: Ultimate 1.1 corrs Index: NewFeatures_1.1.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/WhatsNew/NewFeatures_1.1.aida,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- NewFeatures_1.1.aida 18 Nov 2006 07:00:37 -0000 1.7 +++ NewFeatures_1.1.aida 25 Nov 2006 12:05:46 -0000 1.8 @@ -18,20 +18,20 @@ ".icns" image data file. Possibility of exploding or imploding the contents of an 'icns'. -((li introduced ((b resource pickers b)), that is to say special windows for -displaying graphically all the resources of a particular type. Pickers +((li introduced ((b resource pickers b)) for +displaying graphically and easily manipulating all the resources of a particular type. Pickers have been defined for the following types: ((q ((s [join [rzil::getPickerTypes] ", "] s)) q)) ((li new ((i Plugins i)) command in the ((i File i)) menu to get info about the plugins and rearrange their order -((li possibility of importing a resource map from XML +((li possibility of importing/exporting an entire resource map from/to XML ((li new ((i Import i)) command in the ((i File i)) menu to import data in some resource editors -((li XML export correctly escapes the standard entities and writes in +((li XML export now correctly escapes the standard entities and writes in utf-8 encoding ((li new WCOL and LCOL tags in the Template editor for RGB colors stored on @@ -44,21 +44,21 @@ ((li aliases are now followed for templates located in ((i Application Support i)) folders +((li improved edition of resource ID tags (RSID) in the Template editor. A dynamic +popup offers the currently available choices. + +((li added new templates for the Templates editor (there are now more than +400 templates) + ((li improved clipboard handling of hexadecimal data strings ((li Tab key navigation through the fields of the Template editor's windows ((li in the Template editor, the "+" key simulates a click on the Plus Button -((li improved edition of resource ID (RSID) tags in the Template editor. A dynamic -popup offers the currently available choices. - -((li added new templates for the Templates editor (there are now more than -400 templates) - ((li extended AppleScript terminology to support plugins and pickers -((li 10 new sample ((i AppleScript i)) scripts to demonstrate the new commands +((li more sample ((i AppleScript i)) scripts to demonstrate the new commands !! !! ClosePicker.scr !! !! GetPickerProperty.scr !! !! GetPluginProperties.scr |
From: Bernard D. <bde...@us...> - 2006-11-25 12:05:39
|
Update of /cvsroot/rezilla/RezillaExtras/Aida In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32105 Modified Files: RezillaHome.aida RezillaReadme.aida Log Message: Ultimate 1.1 corrs Index: RezillaReadme.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/RezillaReadme.aida,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- RezillaReadme.aida 1 Nov 2006 16:59:36 -0000 1.25 +++ RezillaReadme.aida 25 Nov 2006 12:05:33 -0000 1.26 @@ -19,14 +19,14 @@ :Source: ../Tcl/RezillaCommon.tcl :Source: RezillaAidaMacros.tcl :TclCmd: set releaseNumber [rzil::getVersion] -:TclCmd: set releaseNumber 1.1 +!! !! :TclCmd: set releaseNumber 1.1 ((b Rezilla b)) ((b Rezilla b)) is a resource forks editor for the Macintosh. This is version ((s [rzil::getVersion] s)). -This new version brings the following features: +This new version is a major upgrade and brings the following new features: ((inp WhatsNew/NewFeatures_$releaseNumber.aida Previous versions already implemented the following features: @@ -40,8 +40,8 @@ Please read the doc contained in the help files. It is accessible via the ((i Rezilla Help i)) command in the ((i Help i)) menu when Rezilla is running. You can also read it online -((lk http://webperso.easyconnect.fr/bdesgraupes/DocHTML/EN/RezillaHelp/index.html )) in english lk)) or -((lk http://webperso.easyconnect.fr/bdesgraupes/DocHTML/FR/RezillaHelp/index.html )) in french lk)). +((lk http://perso.orange.fr/bdesgraupes/DocHTML/EN/RezillaHelp/index.html )) in english lk)) or +((lk http://perso.orange.fr/bdesgraupes/DocHTML/FR/RezillaHelp/index.html )) in french lk)). ((b Rezilla b)) is a free software. Index: RezillaHome.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/RezillaHome.aida,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- RezillaHome.aida 18 Nov 2006 07:00:23 -0000 1.29 +++ RezillaHome.aida 25 Nov 2006 12:05:33 -0000 1.30 @@ -65,7 +65,7 @@ ((lk rzil_utxt_editor_img.html )) the Unicode editor lk)), ((lk rzil_icns_editor_img.html )) the Icns editor lk)), ((lk rzil_icns_picker_img.html )) a resource picker lk)), -and a few more images of Rezilla's interface can also be found in the +((nl A few more images of Rezilla's interface can also be found in the ((lk http://sourceforge.net/project/screenshots.php?group_id=83267 )) screenshots area lk)) at SourceForge. @@ -88,7 +88,7 @@ !! !! versions were in beta testing stage) and is also the last of the 1.0.x !! !! series: next version will be 1.1 and will implement a plugin architecture !! !! in order to support third party editors. -As usual, it comes without any warranty (see the license terms). That said, it +It comes without any warranty (see the license terms). That said, it has been thoroughly tested and has proven quite stable and reliable. @@ -125,7 +125,7 @@ ((s1 Source Code -((b Rezilla b)) is an Open Source Project. Its source code is public and can +((b Rezilla b)) is an ((i Open Source Project i)). Its source code is public and can be found on the SourceForge site at the following address: <http://sourceforge.net/projects/rezilla> @@ -136,8 +136,8 @@ ((nl You can ((lk http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla )) browse the cvs repository lk)) online. -((nl You can also get -((lk http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2 )) nightly tarballs lk)). +!! !! ((nl You can also get +!! !! ((lk http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2 )) nightly tarballs lk)). Rezilla is built with ((lk www.metrowerks.com )) Metrowerks CodeWarrior lk)) and relies on their @@ -145,8 +145,8 @@ source files. Starting with version 1.0.7, project files for XCode 1.5 and XCode 2.1 have been added for those who prefer using ((lk http://developer.apple.com )) Apple's Developer Tools lk)). In any -case, you will need the PowerPlant library if you want to build Rezilla -from source. +case, you will need the ((lk http://sourceforge.net/projects/open-powerplant )) PowerPlant library lk)) if you want to build Rezilla +from source (PowerPlant is open source since January 2006)). Detailed ((b compiling notes b)) and instructions can be found on this site ((lk http://perso.orange.fr/bdesgraupes/DocHTML/EN/CompilingNotes.html )) in english lk)) or @@ -163,7 +163,8 @@ kind. ((li ((i extensible i)) means that it offers a plugin architecture -(introduced in version 1.1) to support the addition of external editors. +(introduced in version 1.1) to support the addition of external editors. +See the ((i Plugins i)) section below. lu)) @@ -174,7 +175,7 @@ should start reading the ((b Rezilla Plugins Howto b)) document which gives all the necessary informations, and get the Rezilla SDK which is part of the -((lk http://sourceforge.net/project/showfiles.php?group_id=83267 ))sources distribution lk)) +((lk http://sourceforge.net/project/showfiles.php?group_id=83267 ))source distribution lk)) and has a ((b Sample plugin b)) which can be used as a template to create a new one. The ((b Rezilla Plugins Howto b)) can be found on this site |
From: Bernard D. <bde...@us...> - 2006-11-25 12:05:25
|
Update of /cvsroot/rezilla/RezillaExtras/Aida In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32075 Modified Files: RezillaHelp_EN.aida RezillaHelp_FR.aida Log Message: Ultimate 1.1 corrs Index: RezillaHelp_EN.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/RezillaHelp_EN.aida,v retrieving revision 1.54 retrieving revision 1.55 diff -u -d -r1.54 -r1.55 --- RezillaHelp_EN.aida 1 Nov 2006 16:59:36 -0000 1.54 +++ RezillaHelp_EN.aida 25 Nov 2006 12:05:22 -0000 1.55 @@ -39,8 +39,6 @@ ((nl This file documents version ((s [rzil::getVersion] s)) of Rezilla. /)) -((toc - ((inp Docs_Input/Introduction_EN.aida ((inp Docs_Input/ResourceMapTable_EN.aida Index: RezillaHelp_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/RezillaHelp_FR.aida,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- RezillaHelp_FR.aida 1 Nov 2006 16:59:36 -0000 1.44 +++ RezillaHelp_FR.aida 25 Nov 2006 12:05:22 -0000 1.45 @@ -38,7 +38,6 @@ ((nl Ce fichier documente la version ((s [rzil::getVersion] s)) de Rezilla. /)) -((toc ((inp Docs_Input/Introduction_FR.aida ((inp Docs_Input/ResourceMapTable_FR.aida |
From: Bernard D. <bde...@us...> - 2006-11-25 12:05:15
|
Update of /cvsroot/rezilla/RezillaExtras/Aida In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv32038 Modified Files: RezillaAnnounce.aida Log Message: Ultimate 1.1 corrs Index: RezillaAnnounce.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/RezillaAnnounce.aida,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RezillaAnnounce.aida 15 Feb 2006 16:51:03 -0000 1.2 +++ RezillaAnnounce.aida 25 Nov 2006 12:05:10 -0000 1.3 @@ -46,7 +46,7 @@ ((nl Besides these "official" releases, you will also find more recent builds on my page at: -http://webperso.easyconnect.fr/bdesgraupes/rezilla.html +http://perso.orange.fr/bdesgraupes/rezilla.html ((nl Bugs can be reported via the ((lk http://sourceforge.net/tracker/?atid=568882&group_id=83267&func=browse )) Bug Tracker lk)) |
From: Bernard D. <bde...@us...> - 2006-11-25 12:04:49
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31698 Added Files: 82.html Log Message: Ultimate 1.1 corrs --- NEW FILE: 82.html --- <HTML> <HEAD> <TITLE></TITLE> <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1"> <META NAME="generator" CONTENT="Aida Mode"> <META HTTP-EQUIV="Content-Language" CONTENT="en-GB"> <META NAME="keywords" CONTENT="resources, forks, Mac OS"> </HEAD> <BODY> <A HREF="index.html">Top</A> | <A HREF="81.html">Prev</A><HR><P> </P> <H3><A NAME="M126"></A>Rezilla plugins reference</H3><P>Here is, as a reference, a summary of Rezilla's client plugins public data.<P>A <I>RezPlugRef</I> is a pointer to plugin defined client data: <PRE> typedef void * RezPlugRef; </PRE><P><H4><A NAME="M127"></A>Structures</H4><P><H5>SPluginEditorInterface</H5> <PRE> typedef struct SPluginEditorInterface { IUNKNOWN_C_GUTS; Boolean (*AcceptResource)(void *myInstance, ResType inType, short inID, Handle inDataH, RezPlugInfo * outInfo); OSErr (*EditResource)(RezPlugRef inPlugref, RezHostInfo inInfo); Handle (*ReturnResource)(RezPlugRef inPlugref, Boolean * outRelease, OSErr * outError); OSErr (*RevertResource)(RezPlugRef inPlugref, Handle inDataH); Boolean (*IsModified)(RezPlugRef inPlugref); void (*CleanUp)(RezPlugRef inPlugref); void (*Refresh)(RezPlugRef inPlugref); OSErr (*ResizeBy)(RezPlugRef inPlugref, SInt16 inWidthDelta, SInt16 inHeightDelta); void (*HandleMenu)(RezPlugRef inPlugref, MenuRef menu, SInt16 inMenuItem); void (*HandleClick)(RezPlugRef inPlugref, const EventRecord * inMacEvent, Point inPortCoords); void (*HandleKeyDown)(RezPlugRef inPlugref, const EventRecord * inKeyEvent); Boolean (*HandleCommand)(RezPlugRef inPlugref, SInt16 inCommand); } </PRE><P><H5>RezPlugInfo</H5> <PRE> typedef struct RezPlugInfo { RezPlugRef plugref; UInt32 attributes; Rect winbounds; UInt8 menucount; MenuID * menuIDs; OSErr error; } </PRE><P><H5>RezHostInfo</H5> <PRE> typedef struct RezHostInfo { CFBundleRef bundleref; short refnum; WindowRef winref; UInt8 menucount; MenuRef * menurefs; Rect editrect; Boolean readonly; } </PRE><P><H4><A NAME="M128"></A>Enumerations</H4><P><H5>RezillaPluginFlags</H5> <PRE> enum RezillaPluginFlags { kPluginNoAttributes = 0L, kPluginEditorHasSaveButton = (1L << 0), kPluginEditorHasCancelButton = (1L << 1), kPluginEditorHasRevertButton = (1L << 2), kPluginEditorHasLockIcon = (1L << 3), kPluginEditorHasNameField = (1L << 4), kPluginEditorStandardControls = (kPluginEditorHasSaveButton | kPluginEditorHasCancelButton | kPluginEditorHasRevertButton | kPluginEditorHasLockIcon), kPluginWinHasCollapseBox = (1L << 5), kPluginWinIsResizable = (1L << 6), kPluginSupportCut = (1L << 10), kPluginSupportCopy = (1L << 11), kPluginSupportPaste = (1L << 12), kPluginSupportClear = (1L << 13), kPluginSupportSelectAll = (1L << 14), kPluginSupportFind = (1L << 15), kPluginSupportFindNext = (1L << 16), kPluginSupportImport = (1L << 17), kPluginSupportExport = (1L << 18), kPluginSupportEditCommands = (kPluginSupportCut | kPluginSupportCopy | kPluginSupportPaste | kPluginSupportClear) } </PRE><P><H5>RezillaPluginCmdIDs</H5> <PRE> enum RezillaPluginCmdIDs { kPluginCommandCut = 1, kPluginCommandCopy, kPluginCommandPaste, kPluginCommandClear, kPluginCommandSelectAll, kPluginCommandFind, kPluginCommandFindNext, kPluginCommandImport, kPluginCommandExport } </PRE><P><H5>RezillaPluginErrors</H5> <PRE> enum RezillaPluginErrors { plugErr_Generic = 5000, plugErr_InitializationFailed, plugErr_UnsupportedType, plugErr_UnsupportedID, plugErr_InvalidData, plugErr_UnsupportedResourceFormat, plugErr_UnsupportedResourceVersion, plugErr_EditResourceFailed, plugErr_ReturnResourceFailed, plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><HR> <P> Rezilla help last updated 2006-11-25 12:45:00<P> </BODY> </HTML> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:04:26
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31670 Modified Files: 66.html Log Message: Ultimate 1.1 corrs Index: 66.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp/66.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- 66.html 1 Nov 2006 16:57:03 -0000 1.8 +++ 66.html 25 Nov 2006 12:04:21 -0000 1.9 @@ -32,6 +32,7 @@ <TR><TD>1017</TD><TD>There is no picker for this resource type</TD></TR> <TR><TD>1018</TD><TD>Open resource picker failed</TD></TR> <TR><TD>1019</TD><TD>Invalid resource data</TD></TR> +<TR><TD>1020</TD><TD>Invalid map for comparison</TD></TR> <TR><TD>1900</TD><TD>Import Generic error</TD></TR> <TR><TD>1901</TD><TD>Invalid resource type. A type must have 4 characters.</TD></TR> <TR><TD>1902</TD><TD>Can't get Xml data</TD></TR> @@ -106,6 +107,7 @@ <TR><TD>4002</TD><TD>Get plugin info failed</TD></TR> <TR><TD>4003</TD><TD>Plugin not found</TD></TR> <TR><TD>4004</TD><TD>Plugin index not found</TD></TR> +<TR><TD>4005</TD><TD>Plugin rejected resource</TD></TR> <TR><TD>5000</TD><TD>Plugin error</TD></TR> <TR><TD>5001</TD><TD>Plugin error: initialization failed</TD></TR> <TR><TD>5002</TD><TD>Plugin error: this type is not supported</TD></TR> @@ -117,7 +119,8 @@ <TR><TD>5008</TD><TD>Plugin error: getting modified resource failed</TD></TR> <TR><TD>5009</TD><TD>Plugin error: revert resource failed</TD></TR> <TR><TD>5010</TD><TD>Plugin error: can't resize window</TD></TR> -<TR><TD>5011</TD><TD>Plugin error: can't handle menu command</TD></TR> +<TR><TD>5011</TD><TD>Plugin error: this plugin can't edit empty resource. Use the hexadecimal editor instead.</TD></TR> +<TR><TD>5012</TD><TD>Plugin error: can't handle menu command</TD></TR> </TABLE></P><P> </BODY> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:04:14
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31612 Modified Files: 2.html index.html Log Message: Ultimate 1.1 corrs Index: 2.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp/2.html,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- 2.html 1 Nov 2006 16:57:02 -0000 1.20 +++ 2.html 25 Nov 2006 12:04:11 -0000 1.21 @@ -8,7 +8,7 @@ </HEAD> <BODY> -<A HREF="index.html">Top</A> | <A HREF="introduction.html">Prev</A> | <A HREF="3.html">Next</A><HR><P> </P> +<A HREF="index.html">Top</A> | <A HREF="1.html">Prev</A> | <A HREF="3.html">Next</A><HR><P> </P> <H2><A NAME="M1"></A>Introduction</H2> Macintosh files traditionally have two forks called respectively the data Index: index.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp/index.html,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- index.html 1 Nov 2006 16:57:03 -0000 1.15 +++ index.html 25 Nov 2006 12:04:11 -0000 1.16 @@ -14,7 +14,7 @@ <UL> -<LI><A HREF="introduction.html#M0">Preamble</A> +<LI><A HREF="1.html#M0">Preamble</A> <LI><A HREF="2.html#M1">Introduction</A> <LI><A HREF="3.html#M2">Resource Map Table</A> <UL><LI><A HREF="4.html#M3">Editing resources</A></UL> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:04:02
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31279 Modified Files: 1.html 80.html Log Message: Ultimate 1.1 corrs Index: 1.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp/1.html,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- 1.html 1 Nov 2006 16:57:02 -0000 1.26 +++ 1.html 25 Nov 2006 12:03:59 -0000 1.27 @@ -3,6 +3,7 @@ <TITLE>Introduction</TITLE> <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1"> <META NAME="generator" CONTENT="Aida Mode"> +<META HTTP-EQUIV="Content-Language" CONTENT="en-GB"> <META NAME="keywords" CONTENT="resources, forks, Mac OS"> </HEAD> <BODY> @@ -13,7 +14,7 @@ developed as an <I>Open Source</I> project coming with a GNU Public License. The source code is currently hosted on the <A HREF="http://sourceforge.net/projects/rezilla">SourceForge site.</A> -<P> This file documents version 1.1rc1 of Rezilla. +<P> This file documents version 1.1 of Rezilla. </I></P></BLOCKQUOTE><HR><P> </BODY> Index: 80.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaHelp/80.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- 80.html 1 Nov 2006 16:57:03 -0000 1.2 +++ 80.html 25 Nov 2006 12:03:59 -0000 1.3 @@ -75,22 +75,33 @@ requests: the plugin could ask Rezilla to provide one or several menus for instance. The plugin can also attribute a <I>RezPlugRef</I>, a pointer to private data which Rezilla will pass back in all its calls to interface -functions.<P> <LI> after Rezilla receives acceptance and requests from the plugin, it -invokes the <I>EditResource</I> function. Through this function the -plugin receives a <I>RezHostInfo</I> structure filled by Rezilla and -containing basic information such as a <I>WindowRef</I> for the editing window, -the <I>MenuRef</I> pointers in case the plugin needs some menus, etc. -</OL><P>At this point the plugin can do its job to edit the resource. It can -populate the window with controls and graphic elements, install CarbonEvents on these controls, -etc. Note though that the plugin is not obliged to use CarbonEvents; the basic user actions -are passed to it by Rezilla with an EventRecord via the following -functions declared in the interface: +functions.<P> <LI> after Rezilla receives acceptance and requests from the plugin, it +invokes the <I>EditResource</I> function. Through this function the plugin +receives a <I>RezHostInfo</I> structure filled by Rezilla and containing +basic information such as a <I>WindowRef</I> for the editing window, the +<I>MenuRef</I> pointers in case the plugin needs some menus, etc. +</OL><P>At this point the plugin can do its job to edit the resource. It can +populate the window with controls and graphic elements, install +CarbonEvents on these controls if necessary, etc. The window provided by +Rezilla is constructed in compositing mode: this makes the HIView drawing +model fully available.<P>Note though that the plugin is not obliged to use CarbonEvents; the basic +user actions are passed to it by Rezilla with an EventRecord via the +following functions declared in the interface: <I>HandleMenu, HandleClick, HandleKeyDown</I> and <I>HandleCommand</I>.<P>When it is time to save the modifications made in a resource (for instance -when the user clicks on the <I>Save</I> button or attempts to close the window), -Rezilla invokes the <I>ReturnResource</I> function so that the plugin -returns the new data and then the <I>CleanUp</I> function so that it can -perform any post editing tasks, like releasing allocated memory for -instance.<P><H4><A NAME="M116"></A>Plugin requests</H4><P>This section gives more details about the requests made by the plugin in +when the user clicks on the <I>Save</I> button or attempts to close the +window), Rezilla invokes the <I>ReturnResource</I> function so that the +plugin returns the new data and then the <I>CleanUp</I> function so that +it terminates its editing session. +<UL> + <LI> the <I>ReturnResource</I> function returns a handle to the data. It +also has a boolean argument named <I>releaseIt</I> to tell Rezilla who is +the owner of this handle and should dispose of it. If <I>releaseIt</I> is +set to true, Rezilla will dispose of the handle after the resource is +saved. Otherwise the plugin assumes ownership.<P> <LI> when the <I>CleanUp</I> function is called, the plugin should perform +any post editing tasks, release allocated memory, etc.<P></UL><P>If the user clicks on the <I>Revert</I> button (if there is one!), Rezilla +invokes the <I>RevertResource</I> function: the data to revert to are +provided in the <I>inDataH</I> argument, so the plugin does not have to +worry about keeping a copy of the original data.<P><H4><A NAME="M116"></A>Plugin requests</H4><P>This section gives more details about the requests made by the plugin in the <I>AcceptResource</I> function. The <I>RezPlugInfo</I> structure is defined like this: <PRE> typedef struct RezPlugInfo { @@ -139,10 +150,13 @@ | kPluginSupportClear) } </PRE><P>The <I>winbounds</I> member is a Rect structure indicating the position -and dimension of the editing window. Rezilla always provides an editing -window which can be equiped with some basic controls such as a <I>Save</I> button, -a <I>Cancel</I> button etc. The plugin does not have to track these controls: they -are managed by the main application. The plugin just decides, using the +and dimension of the editing window: it is in global coordinates and +corresponds to the entire structure of the window, that is to say the +dimensions that will be passed to the <I>CreateWindow</I> toolbox +function. Rezilla always provides an editing window which can be equiped +with some basic controls such as a <I>Save</I> button, a <I>Cancel</I> +button etc. The plugin does not have to track these controls: they are +managed by the main application. The plugin just decides, using the appropriate flags, which controls should be present in the editing window. For instance, add the <I>kPluginEditorHasRevertButton</I> flag to the attributes to get a <I>Revert</I> button.<P>The <I>menucount</I> member indicates how many menus are needed by the @@ -225,6 +239,7 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:03:53
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31258 Modified Files: RezillaPluginHowto.html Log Message: Ultimate 1.1 corrs Index: RezillaPluginHowto.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaPluginHowto.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RezillaPluginHowto.html 24 Nov 2006 08:55:18 -0000 1.2 +++ RezillaPluginHowto.html 25 Nov 2006 12:03:48 -0000 1.3 @@ -520,6 +520,7 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><H3><A NAME="M19"></A>The Sample plugin</H3><P>This section comments the code of the <B>Sample</B> plugin provided by the @@ -825,12 +826,13 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><!-- logo SF --> <!-- ------- --> <HR> -<P> Last updated 2006-11-24 07:13:32 +<P> Last updated 2006-11-25 12:19:20 <HR> <P> <I>Rezilla is hosted by</I> <A HREF="http://sourceforge.net"> <P><IMG SRC="http://sourceforge.net/sflogo.php?group_id=83267&type=4 " ALT="SourceForge.net Logo" ALIGN=bottom></P></A><P> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:03:40
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31244 Added Files: 82.html Log Message: Ultimate 1.1 corrs --- NEW FILE: 82.html --- <HTML> <HEAD> <TITLE></TITLE> <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1"> <META NAME="generator" CONTENT="Aida Mode"> <META HTTP-EQUIV="Content-Language" CONTENT="fr-FR"> <META NAME="keywords" CONTENT="ressources, branches, Mac OS"> </HEAD> <BODY> <A HREF="index.html">Orig</A> | <A HREF="81.html">Prec</A><HR><P> </P> <H3><A NAME="M126"></A>Référence des plugins</H3><P>Voici, pour la référence, un résumé de l'interface de programmation (API) permettant d'écrire des extensions pour Rezilla.<P>Un <I>RezPlugRef</I> est un pointeur sur des données définies par l'extension. Une extension alloue habituellement de la mémoire pour une structure contenant les informations nécessaires concernant la resource éditée. Le <I>RezPlugRef</I> permet d'accéder à ces données dans n'importe quelle fonction de l'interface: toutes ces fonctions le passent comme premier argument. <PRE> typedef void * RezPlugRef; </PRE><P><H4><A NAME="M127"></A>Structures</H4><P><H5>SPluginEditorInterface</H5> <PRE> typedef struct SPluginEditorInterface { IUNKNOWN_C_GUTS; Boolean (*AcceptResource)(void *myInstance, ResType inType, short inID, Handle inDataH, RezPlugInfo * outInfo); OSErr (*EditResource)(RezPlugRef inPlugref, RezHostInfo inInfo); Handle (*ReturnResource)(RezPlugRef inPlugref, Boolean * outRelease, OSErr * outError); OSErr (*RevertResource)(RezPlugRef inPlugref, Handle inDataH); Boolean (*IsModified)(RezPlugRef inPlugref); void (*CleanUp)(RezPlugRef inPlugref); void (*Refresh)(RezPlugRef inPlugref); OSErr (*ResizeBy)(RezPlugRef inPlugref, SInt16 inWidthDelta, SInt16 inHeightDelta); void (*HandleMenu)(RezPlugRef inPlugref, MenuRef menu, SInt16 inMenuItem); void (*HandleClick)(RezPlugRef inPlugref, const EventRecord * inMacEvent, Point inPortCoords); void (*HandleKeyDown)(RezPlugRef inPlugref, const EventRecord * inKeyEvent); Boolean (*HandleCommand)(RezPlugRef inPlugref, SInt16 inCommand); } </PRE><P><H5>RezPlugInfo</H5> <PRE> typedef struct RezPlugInfo { RezPlugRef plugref; UInt32 attributes; Rect winbounds; UInt8 menucount; MenuID * menuIDs; OSErr error; } </PRE><P><H5>RezHostInfo</H5> <PRE> typedef struct RezHostInfo { CFBundleRef bundleref; short refnum; WindowRef winref; UInt8 menucount; MenuRef * menurefs; Rect editrect; Boolean readonly; } </PRE><P><H4><A NAME="M128"></A>Énumérations</H4><P><H5>RezillaPluginFlags</H5> <PRE> enum RezillaPluginFlags { kPluginNoAttributes = 0L, kPluginEditorHasSaveButton = (1L << 0), kPluginEditorHasCancelButton = (1L << 1), kPluginEditorHasRevertButton = (1L << 2), kPluginEditorHasLockIcon = (1L << 3), kPluginEditorHasNameField = (1L << 4), kPluginEditorStandardControls = (kPluginEditorHasSaveButton | kPluginEditorHasCancelButton | kPluginEditorHasRevertButton | kPluginEditorHasLockIcon), kPluginWinHasCollapseBox = (1L << 5), kPluginWinIsResizable = (1L << 6), kPluginSupportCut = (1L << 10), kPluginSupportCopy = (1L << 11), kPluginSupportPaste = (1L << 12), kPluginSupportClear = (1L << 13), kPluginSupportSelectAll = (1L << 14), kPluginSupportFind = (1L << 15), kPluginSupportFindNext = (1L << 16), kPluginSupportImport = (1L << 17), kPluginSupportExport = (1L << 18), kPluginSupportEditCommands = (kPluginSupportCut | kPluginSupportCopy | kPluginSupportPaste | kPluginSupportClear) } </PRE><P><H5>RezillaPluginCmdIDs</H5> <PRE> enum RezillaPluginCmdIDs { kPluginCommandCut = 1, kPluginCommandCopy, kPluginCommandPaste, kPluginCommandClear, kPluginCommandSelectAll, kPluginCommandFind, kPluginCommandFindNext, kPluginCommandImport, kPluginCommandExport } </PRE><P><H5>RezillaPluginErrors</H5> <PRE> enum RezillaPluginErrors { plugErr_Generic = 5000, plugErr_InitializationFailed, plugErr_UnsupportedType, plugErr_UnsupportedID, plugErr_InvalidData, plugErr_UnsupportedResourceFormat, plugErr_UnsupportedResourceVersion, plugErr_EditResourceFailed, plugErr_ReturnResourceFailed, plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><HR> <P> Dernière mise à jour de l'aide Rezilla 2006-11-25 12:42:14<P> </BODY> </HTML> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:03:21
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv31193 Modified Files: 2.html index.html Log Message: Ultimate 1.1 corrs Index: 2.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/2.html,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- 2.html 1 Nov 2006 16:56:46 -0000 1.23 +++ 2.html 25 Nov 2006 12:03:18 -0000 1.24 @@ -8,7 +8,7 @@ </HEAD> <BODY> -<A HREF="index.html">Orig</A> | <A HREF="introduction.html">Prec</A> | <A HREF="3.html">Suiv</A><HR><P> </P> +<A HREF="index.html">Orig</A> | <A HREF="1.html">Prec</A> | <A HREF="3.html">Suiv</A><HR><P> </P> <H2><A NAME="M1"></A>Introduction</H2> Les fichiers Macintosh ont traditionnellement deux branches appelées Index: index.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/index.html,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- index.html 1 Nov 2006 16:56:47 -0000 1.15 +++ index.html 25 Nov 2006 12:03:18 -0000 1.16 @@ -14,7 +14,7 @@ <UL> -<LI><A HREF="introduction.html#M0">Préambule</A> +<LI><A HREF="1.html#M0">Préambule</A> <LI><A HREF="2.html#M1">Introduction</A> <LI><A HREF="3.html#M2">Tables de ressources </A> <UL><LI><A HREF="4.html#M3">Éditer une ressource</A></UL> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:03:14
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30847 Modified Files: 80.html 81.html Log Message: Ultimate 1.1 corrs Index: 81.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/81.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- 81.html 1 Nov 2006 16:56:47 -0000 1.3 +++ 81.html 25 Nov 2006 12:03:06 -0000 1.4 @@ -14,7 +14,7 @@ de développement de Rezilla (<I>Rezilla SDK</I>) pour servir à la fois d'exemple et de modèle pour la création d'un plugin pour Rezilla. Un fichier de projet XCode est aussi fourni. Le plugin <B>Sample</B> met en -relief les diverss aspects des tâches de programmation nécessaires pour la +relief les divers aspects des tâches de programmation nécessaires pour la création d'un plugin Rezilla. Le code source lui-même contient par ailleurs des commentaires détaillés.<P>Pour en apprendre plus sur les plugins Rezilla, on pourra aussi consulter le code source du plugin <B>RezImage</B> qui est un véritable éditeur Index: 80.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/80.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- 80.html 1 Nov 2006 16:56:47 -0000 1.2 +++ 80.html 25 Nov 2006 12:03:05 -0000 1.3 @@ -90,20 +90,32 @@ identifier la fenêtre d'édition fournie par l'application, des pointeurs <I>MenuRef</I> si jamais le plugin avait demandé l'insertion de menus, etc. </OL><P>À ce stade, le plugin peut maintenant faire son travail d'édition de la -ressource. Il peut par exemple créer des contrôles et des éléments -graphiques, installer des -CarbonEvents sur ces contrôles, etc. On notera dependant qu'il n'y a aucune -obligation à utiliser des CarbonEvents; toutes les actions et événements -déclenchés par l'utilisateur sont passés à Rezilla sous la forme d'un -EventRecord dans les fonctions suivantes définies dans l'interface: -<I>HandleMenu, HandleClick, HandleKeyDown</I> et <I>HandleCommand</I>.<P>Lorsque vient le moment de sauvegarder les modifications faites dans la ressource +ressource. Il peut par exemple créer des contrôles et des éléments +graphiques, installer au besoin des CarbonEvents sur ces contrôles, etc. La +fenêtre est construite en mode composite (<I>compositing mode</I>) ce qui +permet d'utiliser pleinement le modèle HIViews de dessin de l'interface +graphique.<P>On notera dependant qu'il n'y a aucune obligation à utiliser des +CarbonEvents; toutes les actions et événements déclenchés par l'utilisateur +sont passés à Rezilla sous la forme d'un EventRecord dans les fonctions +suivantes définies dans l'interface: <I>HandleMenu, HandleClick, +HandleKeyDown</I> et <I>HandleCommand</I>.<P>Lorsque vient le moment de sauvegarder les modifications faites dans la ressource (par exemple lorsque l'utilisateur clique sur le bouton <I>Save</I> ou tente de fermer la fenêtre), Rezilla invoque la fonction <I>ReturnResource</I> afin que le plugin renvoie les données modifiées, puis la fonction <I>CleanUp</I> -afin qu'il puisse exécuter les tâches qui mettent fin à une session -d'édition, comme par exemple libérer les portions de mémoire qui ont été -allouées.<P><H4><A NAME="M116"></A>Les requêtes du plugin</H4><P>Cette section donne plus de détails concernant les requêtes formulées par +afin qu'il puisse terminer sa session d'édition: +<UL> + <LI> la fonction <I>ReturnResource</I> renvoie une <I>handle</I> sur les +données modifiées. Elle comporte aussi un argument booléen <I>releaseIt</I> qui indique à Rezilla qui est propriétaire de cette <I>handle</I> et +qui devra donc libérer la mémoire qu'elle occupe. Si cet argument est fixé +à la valeur <I>true</I> c'est Rezilla qui est responsable de libérer la +mémoire, autrement le plugin devra s'en charger.<P> <LI> lorsque la fonction <I>CleanUp</I> est appelée, le plugin exécute +toutes les tâches de post-édition qu'il juge nécessaire, libère la mémoire +qu'il a allouée, etc.<P></UL><P>Si l'utilisateur clique sur le bouton <I>Revert</I> (lorsqu'il y en a +un!), Rezilla invoque la fonction <I>RevertResource</I>: les données +auxquelles il faut revenir sont fournies par l'intermédiaire de l'argument +<I>inDataH</I>, ce qui signifie en particulier que le plugin n'a pas à se +préoccuper de garder une copie des données originales.<P><H4><A NAME="M116"></A>Les requêtes du plugin</H4><P>Cette section donne plus de détails concernant les requêtes formulées par le plugin dans la fonction <I>AcceptResource</I>. La structure <I>RezPlugInfo</I> est définie comme ceci: <PRE> typedef struct RezPlugInfo { @@ -153,14 +165,16 @@ | kPluginSupportClear) } </PRE><P>Le membre <I>winbounds</I> est une structure Rect indiquant la position et -dimension de la fenêtre d'édition. Rezilla fournit toujours une fenêtre -d'édition qui peut être équipée d'un certain nombre d'éléments de base tels -que des boutons <I>Save</I> et <I>Cancel</I>. Le plugin n'a pas à se -préoccuper de surveiller ces contrôles: ils sont gérés par l'application -principale. Le plugin doit simplement décider, au moyen des drapeaux -adéquats, lesquels de ces contrôles doivent figurer dans la fenêtre. Par -exemple, on ajoutera le drapeau <I>kPluginEditorHasRevertButton</I> aux -attributs si l'on souhaite avoir un bouton <I>Revert</I> dans la fenêtre.<P>Le membre <I>menucount</I> indique combien de menus sont nécessaires au +dimension de la fenêtre d'édition: elle est exprimée en coordonnées +globales et correspond à la structure entière de la fenêtre, autrement les +dimensions qui sont habituellement passées à la fonction <I>CreateWindow</I>. Rezilla fournit toujours une fenêtre d'édition qui peut être équipée +d'un certain nombre d'éléments de base tels que des boutons <I>Save</I> et +<I>Cancel</I>. Le plugin n'a pas à se préoccuper de surveiller ces +contrôles: ils sont gérés par l'application principale. Le plugin doit +simplement décider, au moyen des drapeaux adéquats, lesquels de ces +contrôles doivent figurer dans la fenêtre. Par exemple, on ajoutera le +drapeau <I>kPluginEditorHasRevertButton</I> aux attributs si l'on souhaite +avoir un bouton <I>Revert</I> dans la fenêtre.<P>Le membre <I>menucount</I> indique combien de menus sont nécessaires au plugin (éventuellement 0). Si le plugin définit des menus, il doit passer un tableau des MenuIDs correspondants dans le membre <I>menuIDs</I> de la structure. Ces MenuIDs sont les numéros de ressources de type 'MENU' qui @@ -249,6 +263,7 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:02:55
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30832 Modified Files: 1.html 66.html Log Message: Ultimate 1.1 corrs Index: 1.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/1.html,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- 1.html 1 Nov 2006 16:56:46 -0000 1.26 +++ 1.html 25 Nov 2006 12:02:51 -0000 1.27 @@ -3,6 +3,7 @@ <TITLE>Introduction</TITLE> <META HTTP-EQUIV="content-type" CONTENT="text/html;charset=iso-8859-1"> <META NAME="generator" CONTENT="Aida Mode"> +<META HTTP-EQUIV="Content-Language" CONTENT="fr-FR"> <META NAME="keywords" CONTENT="ressources, branches, Mac OS"> </HEAD> <BODY> @@ -13,7 +14,7 @@ développé sous forme de projet en source libre <I>(Open Source)</I> avec une License Publique GNU. Le code source est actuellement hébergé sur le site de <A HREF="http://sourceforge.net/projects/rezilla">SourceForge.</A> -<P> Ce fichier documente la version 1.1rc1 de Rezilla. +<P> Ce fichier documente la version 1.1 de Rezilla. </I></P></BLOCKQUOTE><HR><P> </BODY> Index: 66.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/66.html,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- 66.html 1 Nov 2006 16:56:46 -0000 1.8 +++ 66.html 25 Nov 2006 12:02:51 -0000 1.9 @@ -32,6 +32,7 @@ <TR><TD>1017</TD><TD>Il n'existe pas de sélectionneur pour ce type de ressources</TD></TR> <TR><TD>1018</TD><TD>L'ouverture du sélectionneur de ressources a échoué</TD></TR> <TR><TD>1019</TD><TD>Données de ressource invalides</TD></TR> +<TR><TD>1020</TD><TD>Table invalide pour la comparison</TD></TR> <TR><TD>1900</TD><TD>Erreur générique d'importation</TD></TR> <TR><TD>1901</TD><TD>Type de ressource invalide. Un type doit comporter 4 caractères.</TD></TR> <TR><TD>1902</TD><TD>Impossible d'obtenir les données Xml</TD></TR> @@ -106,6 +107,7 @@ <TR><TD>4002</TD><TD>Impossible d'obtenir l'information sur ce plugin</TD></TR> <TR><TD>4003</TD><TD>Plugin introuvable</TD></TR> <TR><TD>4004</TD><TD>Indice du plugin introuvable</TD></TR> +<TR><TD>4005</TD><TD>Le plugin a rejeté la ressource</TD></TR> <TR><TD>5000</TD><TD>Erreur du plugin</TD></TR> <TR><TD>5001</TD><TD>Erreur du plugin: l'initialisation a échoué</TD></TR> <TR><TD>5002</TD><TD>Erreur plugin: ce type de ressource n'est pas supporté</TD></TR> @@ -117,7 +119,8 @@ <TR><TD>5008</TD><TD>Erreur plugin: la sauvegarde des modifications de la ressource a échoué</TD></TR> <TR><TD>5009</TD><TD>Erreur plugin: la restauration de la ressource a échoué</TD></TR> <TR><TD>5010</TD><TD>Erreur plugin: impossible de redimensionner la fenêtre</TD></TR> -<TR><TD>5011</TD><TD>Erreur plugin: impossible d'exécuter cette commande</TD></TR> +<TR><TD>5011</TD><TD>Erreur plugin: ce plugin ne peut pas éditer une ressource vide. Utiliser l'éditeur hexadécimal à la place.</TD></TR> +<TR><TD>5012</TD><TD>Erreur plugin: impossible d'exécuter cette commande</TD></TR> </TABLE></P><P> </BODY> |
From: Bernard D. <bde...@us...> - 2006-11-25 12:02:46
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30817 Modified Files: RezillaPluginHowto.html Log Message: Ultimate 1.1 corrs Index: RezillaPluginHowto.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaPluginHowto.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- RezillaPluginHowto.html 24 Nov 2006 08:55:02 -0000 1.2 +++ RezillaPluginHowto.html 25 Nov 2006 12:02:38 -0000 1.3 @@ -570,13 +570,14 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><H3><A NAME="M19"></A>Le plugin Sample</H3><P>Cette section commente le code du plugin <B>Sample</B> fourni avec le kit de dveloppement de Rezilla (<I>Rezilla SDK</I>) pour servir la fois d'exemple et de modle pour la cration d'un plugin pour Rezilla. Un fichier de projet XCode est aussi fourni. Le plugin <B>Sample</B> met en -relief les diverss aspects des tches de programmation ncessaires pour la +relief les divers aspects des tches de programmation ncessaires pour la cration d'un plugin Rezilla. Le code source lui-mme contient par ailleurs des commentaires dtaills.<P>Pour en apprendre plus sur les plugins Rezilla, on pourra aussi consulter le code source du plugin <B>RezImage</B> qui est un vritable diteur @@ -897,12 +898,13 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError } </PRE><P><!-- logo SF --> <!-- ------- --> <HR> -<P> Last updated 2006-11-24 07:15:41 +<P> Last updated 2006-11-25 12:19:47 <HR> <P> <I>Rezilla is hosted by</I> <A HREF="http://sourceforge.net"> <P><IMG SRC="http://sourceforge.net/sflogo.php?group_id=83267&type=4 " ALT="SourceForge.net Logo" ALIGN=bottom></P></A><P> |