rezilla-commits Mailing List for Rezilla (Page 3)
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-25 12:02:20
|
Update of /cvsroot/rezilla/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30729 Modified Files: Rezilla_Readme Log Message: Ultimate 1.1 corrs Index: Rezilla_Readme =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/Rezilla_Readme,v retrieving revision 1.28 retrieving revision 1.29 diff -u -d -r1.28 -r1.29 --- Rezilla_Readme 18 Nov 2006 06:58:32 -0000 1.28 +++ Rezilla_Readme 25 Nov 2006 12:02:15 -0000 1.29 @@ -1,127 +1,135 @@ + + Rezilla -======= Rezilla is a resource forks editor for the Macintosh. This is version 1.1. -This new version is a major update and brings the following features: - * new plugin architecture to support the addition of third party - editors +This new version is a major upgrade and brings the following new features: - * new image editor (implemented as a plugin) to display and manipulate - image resources. It supports the following image formats: JPEG, TIFF, - GIF, PNG, BMP. + * new plugin architecture to support the addition of third party editors - * new 'icns' editor to manage icon suite resources. You can create, - modify, redraw, delete, etc. any of the bitmaps included in an 'icns' - resource suite. Possibility of importing from or exporting to a ".icns" - image data file. + * new image editor (implemented as a plugin) to display and manipulate +image resources. It supports the following image formats: + JPEG, TIFF, GIF, PNG, BMP. - * introduced resource pickers, that is to say special windows for - displaying graphically all the resources of a particular type. Pickers - have been defined for the following types: 'TEXT', 'MENU', 'STR#', - 'MBAR', 'RID#', 'Mcmd', 'RidL', 'cicn', 'ICON', 'SICN', 'icns', 'PICT', - 'PAT ', 'ppat', 'PAT#', 'ICN#', 'icl4', 'icl8', 'icm#', 'icm4', 'icm8', - 'ics#', 'ics4', 'ics8', 'CURS', 'crsr' + * new 'icns' editor to manage icon suite resources. You can +create, modify, redraw, delete, etc. any of the bitmaps included in an +'icns' resource suite. Possibility of importing from or exporting to a +".icns" image data file. Possibility of exploding or imploding the contents +of an 'icns'. - * new Plugins command in the File menu to get info about the plugins - and rearrange their order + * introduced resource pickers for +displaying graphically and easily manipulating all the resources of a particular type. Pickers +have been defined for the following types: + 'TEXT', 'MENU', 'STR#', 'MBAR', 'RID#', 'Mcmd', 'RidL', 'cicn', 'ICON', 'SICN', 'icns', 'PICT', 'PAT ', 'ppat', 'PAT#', 'ICN#', 'icl4', 'icl8', 'icm#', 'icm4', 'icm8', 'ics#', 'ics4', 'ics8', 'CURS', 'crsr' - * possibility of importing a resource map from XML + * new Plugins command in the File menu to get info about +the plugins and rearrange their order - * new Import command in the File menu to import data in some resource - editors + * possibility of importing/exporting an entire resource map from/to XML - * XML export correctly escapes the standard entities and writes in - utf-8 encoding + * new Import command in the File menu to import data in +some resource editors - * new WCOL and LCOL tags in the Template editor for RGB colors stored - on 2 or 4 bytes respectively + * XML export now correctly escapes the standard entities and writes in +utf-8 encoding - * improved Unique ID algorithm: it now returns the first available - value (above the current one) when calculating a unique ID rather than - a random number + * new WCOL and LCOL tags in the Template editor for RGB colors stored on +2 or 4 bytes respectively - * aliases are now followed for templates located in Application Support - folders + * improved Unique ID algorithm: it now returns the first available value +(above the current one) when calculating a unique ID rather than a random +number - * improved clipboard handling of hexadecimal data strings + * aliases are now followed for templates located in Application Support +folders - * Tab key navigation in the fields of the Template editor's windows + * improved edition of resource ID tags (RSID) in the Template editor. A dynamic +popup offers the currently available choices. - * in the Template editor, the "+" key simulates a click on the Plus - Button + * added new templates for the Templates editor (there are now more than +400 templates) - * improved edition of resource ID (RSID) tags in the Template editor. A - dynamic popup offers the currently available choices. + * improved clipboard handling of hexadecimal data strings - * added new templates for the Templates editor (there are now more than - 400 templates) + * Tab key navigation through the fields of the Template editor's windows - * extended AppleScript terminology to support plugins and pickers + * in the Template editor, the "+" key simulates a click on the Plus Button + + * extended AppleScript terminology to support plugins and pickers + + * more sample AppleScript scripts to demonstrate the new commands + + * many interface improvements... + + * many bug fixes... - * 10 new sample AppleScript to demonstrate the new commands - * many interface improvements... - * many bug fixes... Previous versions already implemented the following features: - * Rezilla lets you edit, create, modify, duplicate, remove resources - contained in any fork (data fork or resource fork), copy, cut and paste - them from a resource map to the other, drag and drop resources etc. - * Rezilla comes equipped with an Hexadecimal Editor and a Template - Editor. The template editor ships with no less than 400 predefined - templates and lets you easily define and add more. + * Rezilla lets you edit, create, modify, duplicate, remove resources + contained in any fork (data fork or resource fork), copy, cut and paste + them from a resource map to the other, drag and drop resources etc. - * Rezilla has several dedicated editors: * a Text Editor to edit 'TEXT' - and 'styl' resources + * Rezilla comes equipped with an Hexadecimal Editor and a +Template Editor. The template editor ships with no less than + 400 predefined templates and lets you easily + define and add more. - * a Bitmap Editor to edit any of the following types: 'cicn', - 'crsr', 'CURS', 'icl4', 'icl8', 'icm#', 'icm4', 'icm8', 'ICN#', - 'ICON', 'ics#', 'ics4', 'ics8', 'PAT#', 'PAT ', 'ppat', 'SICN' + * Rezilla has several dedicated editors: + * a Text Editor to edit 'TEXT' and 'styl' resources - * an Unicode Editor to edit 'utxt' resources containing Unicode - data in UTF-16 encoding form + * a Bitmap Editor to edit any of the following types: + 'cicn', 'crsr', 'CURS', 'icl4', 'icl8', 'icm#', 'icm4', 'icm8', 'ICN#', + 'ICON', 'ics#', 'ics4', 'ics8', 'PAT#', 'PAT ', 'ppat', 'SICN' - * a List Editor to edit 'STR#', 'MBAR', 'Mcmd' and 'RidL' resources + * an Unicode Editor to edit 'utxt' resources containing Unicode + data in UTF-16 encoding form - * an Aete Editor to edit AppleScript terminology resources - (resources with type 'aete' or 'aeut'). It can generate Scripting - Definition files (sdef) and export to Xml, DeRez, Html, and Text - formats. It can also import an aete from an Xml file. + * a List Editor to edit 'STR#', 'MBAR', 'Mcmd' and 'RidL' resources - * a Pict Viewer to visualize, copy, cut and paste 'PICT' resources + * an Aete Editor to edit AppleScript terminology resources + (resources with type 'aete' or 'aeut'). It can generate - * a Sound Player to play 'snd ' resources +Scripting Definition files (sdef) and export to Xml, DeRez, Html, and Text + formats. It can also import an aete from an Xml file. - * a Menu Editor (which supports 'xmnu' menu extension resources) + * a Pict Viewer to visualize, copy, cut and paste 'PICT' resources + * a Sound Player to play 'snd ' resources - * complete scriptability to drive Rezilla from AppleScript scripts + * a Menu Editor (which supports 'xmnu' menu extension resources) - * Rezilla can export resource maps in text, HTML, XML or DeRez formats - * Rezilla can compare two resource maps. + * complete scriptability to drive Rezilla from AppleScript scripts - * various values and properties can be set via the Preferences. + * Rezilla can export resource maps in text, HTML, XML or DeRez + formats + + * Rezilla can compare two resource maps. + + * various values and properties can be set via the Preferences. -The Rezilla project is a work in progress. It comes without any warranty -(see the license terms). That said, it has been thoroughly tested and has -proven quite stable and reliable. + + +The Rezilla project is a work in progress. It comes +without any warranty (see the license terms). That said, it has been +thoroughly tested and has proven quite stable and reliable. Please read the doc contained in the help files. It is accessible via the Rezilla Help command in the Help menu when Rezilla is running. You can also read it online -in english <http://webperso.easyconnect.fr/bdesgraupes/DocHTML/EN/RezillaHelp/index.html> or -in french <http://webperso.easyconnect.fr/bdesgraupes/DocHTML/FR/RezillaHelp/index.html>. +in english <http://perso.orange.fr/bdesgraupes/DocHTML/EN/RezillaHelp/index.html> or +in french <http://perso.orange.fr/bdesgraupes/DocHTML/FR/RezillaHelp/index.html>. Rezilla is a free software. @@ -143,4 +151,4 @@ (c) Copyright: Bernard Desgraupes, 2003-2006 All rights reserved. -Last updated: 2006-10-13 +Last updated: 2006-11-25 |
From: Bernard D. <bde...@us...> - 2006-11-25 12:01:59
|
Update of /cvsroot/rezilla/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30270 Modified Files: rezilla.html Log Message: Ultimate 1.1 corrs Index: rezilla.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/rezilla.html,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- rezilla.html 18 Nov 2006 06:58:42 -0000 1.16 +++ rezilla.html 25 Nov 2006 12:01:52 -0000 1.17 @@ -34,19 +34,19 @@ create, modify, redraw, delete, etc. any of the bitmaps included in an 'icns' resource suite. Possibility of importing from or exporting to a ".icns" image data file. Possibility of exploding or imploding the contents -of an 'icns'.<P> <LI> introduced <B>resource pickers</B>, that is to say special windows for -displaying graphically all the resources of a particular type. Pickers +of an 'icns'.<P> <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: <BLOCKQUOTE><P><I> 'TEXT', 'MENU', 'STR#', 'MBAR', 'RID#', 'Mcmd', 'RidL', 'cicn', 'ICON', 'SICN', 'icns', 'PICT', 'PAT ', 'ppat', 'PAT#', 'ICN#', 'icl4', 'icl8', 'icm#', 'icm4', 'icm8', 'ics#', 'ics4', 'ics8', 'CURS', 'crsr' </I></P></BLOCKQUOTE><P> <LI> new <I>Plugins</I> command in the <I>File</I> menu to get info about -the plugins and rearrange their order<P> <LI> possibility of importing a resource map from XML<P> <LI> new <I>Import</I> command in the <I>File</I> menu to import data in -some resource editors<P> <LI> XML export correctly escapes the standard entities and writes in +the plugins and rearrange their order<P> <LI> possibility of importing/exporting an entire resource map from/to XML<P> <LI> new <I>Import</I> command in the <I>File</I> menu to import data in +some resource editors<P> <LI> XML export now correctly escapes the standard entities and writes in utf-8 encoding<P> <LI> new WCOL and LCOL tags in the Template editor for RGB colors stored on 2 or 4 bytes respectively<P> <LI> improved Unique ID algorithm: it now returns the first available value (above the current one) when calculating a unique ID rather than a random -number<P> <LI> aliases are now followed for templates located in Application Support -folders<P> <LI> improved clipboard handling of hexadecimal data strings<P> <LI> Tab key navigation in the fields of the Template editor's windows<P> <LI> in the Template editor, the "+" key simulates a click on the Plus Button<P> <LI> improved edition of resource ID (RSID) tags in the Template editor. A dynamic +number<P> <LI> aliases are now followed for templates located in <I>Application Support</I> +folders<P> <LI> improved edition of resource ID tags (RSID) in the Template editor. A dynamic popup offers the currently available choices.<P> <LI> added new templates for the Templates editor (there are now more than -400 templates)<P> <LI> extended AppleScript terminology to support plugins and pickers<P> <LI> 10 new sample AppleScript to demonstrate the new commands<P> <LI> many interface improvements...<P> <LI> many bug fixes...<P></UL><P><H3><A NAME="M3"></A>Basic features</H3> +400 templates)<P> <LI> improved clipboard handling of hexadecimal data strings<P> <LI> Tab key navigation through the fields of the Template editor's windows<P> <LI> in the Template editor, the "+" key simulates a click on the Plus Button<P> <LI> extended AppleScript terminology to support plugins and pickers<P> <LI> more sample <I>AppleScript</I> scripts to demonstrate the new commands<P> <LI> many interface improvements...<P> <LI> many bug fixes...<P></UL><P><H3><A NAME="M3"></A>Basic features</H3> Previous versions already implemented the following features:<P><UL> <LI> Rezilla lets you edit, create, modify, duplicate, remove resources contained in any fork (data fork or resource fork), copy, cut and paste @@ -74,7 +74,7 @@ <A HREF="rzil_utxt_editor_img.html"> the Unicode editor</A>, <A HREF="rzil_icns_editor_img.html"> the Icns editor</A>, <A HREF="rzil_icns_picker_img.html"> a resource picker</A>, -and a few more images of Rezilla's interface can also be found in the +<P> A few more images of Rezilla's interface can also be found in the <A HREF="http://sourceforge.net/project/screenshots.php?group_id=83267"> screenshots area</A> at SourceForge.<P><H2><A NAME="M6"></A>Download</H2> All <B>Rezilla</B> official binary releases, past and present, are available in the <A HREF="http://sourceforge.net/project/showfiles.php?group_id=83267">download section</A> @@ -86,7 +86,7 @@ <A HREF="../Downloads/RezillaSrc.hqx"> sources</A>.<P>The application is bundled. You can install it anywhere on your system. Just double-click on its icon to launch it.<P><B>Warning</B> Rezilla is currently a project under development (aka work in progress). -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.<P><H2><A NAME="M7"></A>Help</H2> Help files with complete documentation are accessible via the Help menu while the application is running. You can also read the help online @@ -106,20 +106,19 @@ <B>Rezilla Scripting Tutorial</B> on this site <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/EN/ScriptingTutorial.html"> in english</A> or <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/FR/ScriptingTutorial.html"> in french</A>.<P><H2><A NAME="M11"></A>Source Code</H2> -<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: <A HREF="http://sourceforge.net/projects/rezilla">http://sourceforge.net/projects/rezilla</A><P><P> The code is under CVS control. You can retrieve the latest stage of development using any CVS client. See <A HREF="http://sourceforge.net/cvs/?group_id=83267"> instructions here</A>.<P><P> You can <A HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla"> browse the cvs repository</A> -online.<P><P> You can also get -<A HREF="http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2"> nightly tarballs</A>.<P>Rezilla is built with +online.<P>Rezilla is built with <A HREF="www.metrowerks.com"> Metrowerks CodeWarrior</A> and relies on their PowerPlant C++ library. A project file is provided together with the Rezilla 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 <A HREF="http://developer.apple.com"> Apple's Developer Tools</A>. In any -case, you will need the PowerPlant library if you want to build Rezilla -from source.<P>Detailed <B>compiling notes</B> and instructions can be found on this site +case, you will need the <A HREF="http://sourceforge.net/projects/open-powerplant"> PowerPlant library</A> if you want to build Rezilla +from source (PowerPlant is open source since January 2006)).<P>Detailed <B>compiling notes</B> and instructions can be found on this site <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/EN/CompilingNotes.html"> in english</A> or <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/FR/CompilingNotes.html"> in french</A>.<P><H2><A NAME="M12"></A>Code contributions</H2> The Rezilla project is meant as a collaborative and extensible project: @@ -129,16 +128,17 @@ <A HREF="http://sourceforge.net/tracker/?atid=568884&group_id=83267&func=browse">patches tracker</A> at SourceForge. Version 1.1 of Rezilla contains many contributions of this kind.<P> <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. </UL><P><H2><A NAME="M13"></A>Plugins</H2><P>Since version 1.1, Rezilla offers support for external third-party plugins. If you are a developer and wish to write a Rezilla plugin, you 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 -<A HREF="http://sourceforge.net/project/showfiles.php?group_id=83267">sources distribution</A> +<A HREF="http://sourceforge.net/project/showfiles.php?group_id=83267">source distribution</A> and has a <B>Sample plugin</B> which can be used as a template to create a new one. -Tthe <B>Rezilla Plugins Howto</B> can be found on this site +The <B>Rezilla Plugins Howto</B> can be found on this site <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/EN/RezillaPluginHowto.html"> in english</A> or <A HREF="http://perso.orange.fr/bdesgraupes/DocHTML/FR/RezillaPluginHowto.html"> in french</A>.<P><H2><A NAME="M14"></A>Bug reports</H2><P><P> Bugs can be officially reported via the <A HREF="http://sourceforge.net/tracker/?atid=568882&group_id=83267&func=browse"> Bug Tracker</A> @@ -153,7 +153,7 @@ <A HREF="http://sourceforge.net/mailarchive/forum.php?forum=rezilla-users">Rezilla-users Archives</A>.<P>You can also e-mail me directly: <A HREF="mailto:bde...@us...">bde...@us...</A><P><!-- logo SF --> <!-- ------- --> <HR> -<P> Last updated 2006-11-18 07:12:57 +<P> Last updated 2006-11-25 12:20:50 <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:00:31
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29741 Modified Files: CPluginChooser.cp CPluginChooser.h Log Message: Plugin role Index: CPluginChooser.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs/CPluginChooser.cp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CPluginChooser.cp 28 Sep 2006 19:37:20 -0000 1.4 +++ CPluginChooser.cp 25 Nov 2006 12:00:23 -0000 1.5 @@ -2,7 +2,7 @@ // CPluginChooser.h // // Created: 2006-09-25 07:02:55 -// Last modification: 2006-09-27 08:56:34 +// Last modification: 2006-11-25 11:54:54 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -180,6 +180,9 @@ mLoadedField = dynamic_cast<LStaticText *>(mInfoPane->FindPaneByID( item_PluginInfoLoadedText )); ThrowIfNil_(mLoadedField); + mRoleField = dynamic_cast<LStaticText *>(mInfoPane->FindPaneByID( item_PluginInfoRoleText )); + ThrowIfNil_(mRoleField); + mSupportedTypes = dynamic_cast<LPopupButton *>(mInfoPane->FindPaneByID( item_PluginSupportedTypes )); ThrowIfNil_(mSupportedTypes); @@ -302,6 +305,25 @@ mLoadedField->SetDescriptor("\pno"); } + switch (inPlugin->GetPluginRole()) { + case plugin_roleNone: + mRoleField->SetDescriptor("\pnone"); + break; + + case plugin_roleEditor: + mRoleField->SetDescriptor("\peditor"); + break; + + case plugin_roleViewer: + mRoleField->SetDescriptor("\pviewer"); + break; + + default: + mRoleField->SetDescriptor("\pn/a"); + break; + + } + theIconRef = inPlugin->GetIconRef(); if (theIconRef != 0) { mIconPane->SetIconRef(theIconRef); Index: CPluginChooser.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Dialogs/CPluginChooser.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CPluginChooser.h 27 Sep 2006 10:59:49 -0000 1.3 +++ CPluginChooser.h 25 Nov 2006 12:00:23 -0000 1.4 @@ -49,6 +49,7 @@ LStaticText * mCreatorField; LStaticText * mVersionField; LStaticText * mLoadedField; + LStaticText * mRoleField; LStaticText * mHelpField; CIconrefPane* mIconPane; ResType mCurrType; |
From: Bernard D. <bde...@us...> - 2006-11-25 12:00:06
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29379 Modified Files: CPluginEditorDoc.cp Log Message: Improved error control Index: CPluginEditorDoc.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Editors/Plugin_editor/CPluginEditorDoc.cp,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- CPluginEditorDoc.cp 27 Oct 2006 09:38:39 -0000 1.34 +++ CPluginEditorDoc.cp 25 Nov 2006 11:59:59 -0000 1.35 @@ -78,6 +78,7 @@ { OSErr error = noErr; Handle rezData; + Boolean acceptIt = true; ThrowIfNil_(mPlugin); @@ -96,85 +97,90 @@ } } - SPluginEditorInterface** interface = mPlugin->GetInterface(); - ThrowIfNil_(interface); - - // Install the contents - if (mRezObj != nil) { - rezData = mRezObj->GetData(); - if (rezData != nil) { - // Work with a copy of the handle - ::HandToHand(&rezData); + if (error == noErr) { + SPluginEditorInterface** interface = mPlugin->GetInterface(); + ThrowIfNil_(interface); + + // Install the contents + if (mRezObj != nil) { + rezData = mRezObj->GetData(); + if (rezData != nil) { + // Work with a copy of the handle + ::HandToHand(&rezData); + } } - } - - // Ask the plugin its initial requirements - RezPlugInfo plugInfo; - RezHostInfo hostInfo; - - UCursor::SetWatch(); // May take a little while - - plugInfo.error = noErr; - - // Pass mSubstType, not mRezObj->GetType() - if ( (*interface)->AcceptResource(interface, mSubstType, mRezObj->GetID(), rezData, &plugInfo) ) { - mAttributes = plugInfo.attributes; - // Create a window for our document and set this doc as its SuperCommander - mPluginWindow = CreatePluginWindow(plugInfo.attributes, plugInfo.winbounds); - Assert_( mPluginWindow != nil ); + // Ask the plugin its initial requirements + RezPlugInfo plugInfo; + RezHostInfo hostInfo; - // See LWindow::CreateWindow() - SetDefaultCommander(this); - SetDefaultAttachable(nil); - - mPluginWindow->SetPlugRef(plugInfo.plugref); + UCursor::SetWatch(); // May take a little while - SetMainWindow( dynamic_cast<CEditorWindow *>(mPluginWindow) ); - NameNewEditorDoc(); - mPluginWindow->FinalizeEditor(this, NULL); + plugInfo.error = noErr; - // Create the plugin menus - hostInfo.menucount = mPlugin->CreateMenus(plugInfo.menucount, plugInfo.menuIDs); + // Pass mSubstType, not mRezObj->GetType() + acceptIt = (*interface)->AcceptResource(interface, mSubstType, mRezObj->GetID(), rezData, &plugInfo); - // Fill the reply structure - hostInfo.bundleref = ::CFPlugInGetBundle( mPlugin->GetPluginRef() ); - hostInfo.winref = mPluginWindow->GetMacWindow(); - hostInfo.readonly = IsReadOnly(); - if (mRezObj != nil) { - hostInfo.refnum = mRezObj->GetOwnerRefnum(); + if (acceptIt) { + mAttributes = plugInfo.attributes; + + // Create a window for our document and set this doc as its SuperCommander + mPluginWindow = CreatePluginWindow(plugInfo.attributes, plugInfo.winbounds); + Assert_( mPluginWindow != nil ); + + // See LWindow::CreateWindow() + SetDefaultCommander(this); + SetDefaultAttachable(nil); + + mPluginWindow->SetPlugRef(plugInfo.plugref); + + SetMainWindow( dynamic_cast<CEditorWindow *>(mPluginWindow) ); + NameNewEditorDoc(); + mPluginWindow->FinalizeEditor(this, NULL); + + // Create the plugin menus + hostInfo.menucount = mPlugin->CreateMenus(plugInfo.menucount, plugInfo.menuIDs); + + // Fill the reply structure + hostInfo.bundleref = ::CFPlugInGetBundle( mPlugin->GetPluginRef() ); + hostInfo.winref = mPluginWindow->GetMacWindow(); + hostInfo.readonly = IsReadOnly(); + if (mRezObj != nil) { + hostInfo.refnum = mRezObj->GetOwnerRefnum(); + } else { + hostInfo.refnum = kResFileNotOpened; + } + + if (hostInfo.menucount > 0) { + mMenuRefs = (MenuRef *) malloc( sizeof(MenuRef) * hostInfo.menucount); + if (mMenuRefs != NULL) { + TArray<LMenu*>* menusListPtr = mPlugin->GetMenusList(); + + TArrayIterator<LMenu*> iterator(*menusListPtr); + LMenu * theMenu; + int i = 0; + while (iterator.Next(theMenu)) { + mMenuRefs[i] = theMenu->GetMacMenuH(); + i++; + } + } + } + hostInfo.menurefs = mMenuRefs; + + mPluginWindow->GetContentsRect(hostInfo.editrect); } else { - hostInfo.refnum = kResFileNotOpened; + ReportPluginError(CFSTR("PluginEditorRefusedResource"), plugInfo.error); + error = err_PluginRefusedResource; } - if (hostInfo.menucount > 0) { - mMenuRefs = (MenuRef *) malloc( sizeof(MenuRef) * hostInfo.menucount); - if (mMenuRefs != NULL) { - TArray<LMenu*>* menusListPtr = mPlugin->GetMenusList(); - - TArrayIterator<LMenu*> iterator(*menusListPtr); - LMenu * theMenu; - int i = 0; - while (iterator.Next(theMenu)) { - mMenuRefs[i] = theMenu->GetMacMenuH(); - i++; - } - } - } - hostInfo.menurefs = mMenuRefs; + if (error == noErr) { + // Now pass the info struct to the plugin for editing + error = (*interface)->EditResource(plugInfo.plugref, hostInfo); + } + } - mPluginWindow->GetContentsRect(hostInfo.editrect); - } else { - error = plugInfo.error; - } - - if (error == noErr) { - // Now pass the info struct to the plugin for editing - error = (*interface)->EditResource(plugInfo.plugref, hostInfo); - } - if (error != noErr) { - if (error != userCanceledErr) { + if (error != userCanceledErr && error != err_PluginRefusedResource) { ReportPluginError(CFSTR("ErrorUsingPluginEditor"), error); } delete this; @@ -413,7 +419,6 @@ // --------------------------------------------------------------------------- // ReportPluginError [public] // --------------------------------------------------------------------------- -// Create the plugin window in compositing mode void CPluginEditorDoc::ReportPluginError(CFStringRef inCFStringRef, SInt32 inError) |
From: Bernard D. <bde...@us...> - 2006-11-25 11:59:29
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29349 Modified Files: RezillaConstants.h Log Message: Plugin role field Index: RezillaConstants.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/RezillaConstants.h,v retrieving revision 1.262 retrieving revision 1.263 diff -u -d -r1.262 -r1.263 --- RezillaConstants.h 24 Nov 2006 11:53:18 -0000 1.262 +++ RezillaConstants.h 25 Nov 2006 11:59:25 -0000 1.263 @@ -2,7 +2,7 @@ // RezillaConstants.h // // Created : 2003-04-16 22:52:54 -// Last modification : 2006-11-10 06:12:05 +// Last modification : 2006-11-25 07:38:23 // Author : Bernard Desgraupes // e-mail : <bde...@us...> // www : <http://rezilla.sourceforge.net/> @@ -140,6 +140,15 @@ editor_kindPlug }; +// Kind of editor +enum +{ + plugin_roleUnknown = -1, + plugin_roleNone = 0, + plugin_roleEditor, + plugin_roleViewer +}; + // Bitmap editor // ------------- // Supported bitmap types @@ -697,8 +706,9 @@ const PaneIDT item_PluginInfoCreatorText = 3; const PaneIDT item_PluginInfoVersionText = 4; const PaneIDT item_PluginInfoLoadedText = 5; -const PaneIDT item_PluginInfoIconPane = 6; +const PaneIDT item_PluginInfoRoleText = 6; const PaneIDT item_PluginSupportedTypes = 7; +const PaneIDT item_PluginInfoIconPane = 8; // Plugin Order Pane // ----------------- const PaneIDT item_PluginOrderPgbx = 1; @@ -1481,6 +1491,7 @@ err_PluginGetInfoFailed, err_PluginNotFound, err_PluginIndexNotFound, + err_PluginRefusedResource, err_RezillaErrorEnd }; |
From: Bernard D. <bde...@us...> - 2006-11-25 11:59:16
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv29251 Modified Files: RezillaPluginInterface.h Log Message: Err code for plugin refused Index: RezillaPluginInterface.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture/RezillaPluginInterface.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- RezillaPluginInterface.h 24 Nov 2006 11:52:42 -0000 1.21 +++ RezillaPluginInterface.h 25 Nov 2006 11:59:09 -0000 1.22 @@ -169,6 +169,7 @@ plugErr_RevertResourceFailed, plugErr_CantResizeWindow, plugErr_CantHandleMenuCommand, + plugErr_CantEditEmptyResource, plugErr_LastError }; |
From: Bernard D. <bde...@us...> - 2006-11-25 11:58:50
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28949 Modified Files: CRezillaPlugin.cp CRezillaPlugin.h Log Message: Plugin role Index: CRezillaPlugin.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture/CRezillaPlugin.cp,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- CRezillaPlugin.cp 18 Nov 2006 06:50:31 -0000 1.19 +++ CRezillaPlugin.cp 25 Nov 2006 11:58:46 -0000 1.20 @@ -2,7 +2,7 @@ // CRezillaPlugin.cp // // Created: 2005-09-26 09:48:26 -// Last modification: 2006-09-26 12:55:42 +// Last modification: 2006-11-25 07:49:39 // Author: Bernard Desgraupes // e-mail: <bde...@so...> // www: <http://rezilla.sourceforge.net/> @@ -36,6 +36,9 @@ mIsLoaded = false; mMenusBuilt = false; mName = NULL; + mPluginType = 0; + mPluginCreator = 0; + mPluginRole = plugin_roleUnknown; mIconRef = 0; mPluginRef = NULL; mInterface = NULL; @@ -72,14 +75,13 @@ CFURLRef plugURL = nil; ResType theType; Str255 theString; - CFStringRef iconFilenameRef; + CFStringRef iconFilenameRef, roleRef; // Get an instance of the non-localized keys bundleInfoDict = ::CFBundleGetInfoDictionary(inBundleRef); // If successful, look for some properties if ( bundleInfoDict != NULL ) { -// propRef = ::CFDictionaryGetValue( bundleInfoDict, CFSTR("RezillaPluginRole") ); typesArray = (CFArrayRef) ::CFDictionaryGetValue( bundleInfoDict, CFSTR("RezillaPluginEditTypes") ); if (typesArray != nil) { @@ -104,10 +106,7 @@ mName = ::CFURLCopyLastPathComponent(plugURL); ::CFRelease(plugURL); ::CFRetain(mName); - } else { - mPluginType = 0; - mPluginCreator = 0; - } + } // Look for an icon file iconFilenameRef = (CFStringRef) ::CFDictionaryGetValue( bundleInfoDict, CFSTR("CFBundleIconFile") ); @@ -123,6 +122,18 @@ } } + // Look for the plugin role + roleRef = (CFStringRef) ::CFDictionaryGetValue( bundleInfoDict, CFSTR("RezillaPluginRole") ); + if (roleRef) { + if ( ::CFStringCompare( roleRef, CFSTR("none"), kCFCompareCaseInsensitive ) == kCFCompareEqualTo ) { + mPluginRole = plugin_roleNone; + } else if ( ::CFStringCompare( roleRef, CFSTR("editor"), kCFCompareCaseInsensitive ) == kCFCompareEqualTo ) { + mPluginRole = plugin_roleEditor; + } else if ( ::CFStringCompare( roleRef, CFSTR("viewer"), kCFCompareCaseInsensitive ) == kCFCompareEqualTo ) { + mPluginRole = plugin_roleViewer; + } + } + // Get version number mPluginVersion = ::CFBundleGetVersionNumber(inBundleRef); } Index: CRezillaPlugin.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture/CRezillaPlugin.h,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- CRezillaPlugin.h 28 Sep 2006 19:37:10 -0000 1.15 +++ CRezillaPlugin.h 25 Nov 2006 11:58:46 -0000 1.16 @@ -2,7 +2,7 @@ // CRezillaPlugin.h // // Created: 2005-09-26 09:48:26 -// Last modification: 2006-09-28 08:46:55 +// Last modification: 2006-11-25 07:31:00 // Author: Bernard Desgraupes // e-mail: <bde...@so...> // www: <http://rezilla.sourceforge.net/> @@ -67,6 +67,7 @@ UInt32 GetPluginType() { return mPluginType;} UInt32 GetPluginCreator() { return mPluginCreator;} UInt32 GetPluginVersion() { return mPluginVersion;} + UInt32 GetPluginRole() { return mPluginRole;} Boolean IsLoaded() { return mIsLoaded;} IconRef GetIconRef() { return mIconRef;} @@ -80,7 +81,8 @@ Boolean mIsLoaded; // differed loading UInt32 mPluginType, mPluginCreator, - mPluginVersion; + mPluginVersion, + mPluginRole; CFStringRef mName; IconRef mIconRef; |
From: Bernard D. <bde...@us...> - 2006-11-25 11:58:19
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28887 Modified Files: Rezilla_EN.ploc Rezilla_FR.ploc Log Message: Plugin refused strings Index: Rezilla_FR.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_FR.ploc,v retrieving revision 1.76 retrieving revision 1.77 diff -u -d -r1.76 -r1.77 --- Rezilla_FR.ploc 24 Nov 2006 11:51:56 -0000 1.76 +++ Rezilla_FR.ploc 25 Nov 2006 11:58:15 -0000 1.77 @@ -9,7 +9,7 @@ key "AskSaveOnCloseInspector" value string "Voulez-voujs appliquer les modifications faites dans lÕinspecteur avant de fermer ?" key "BadFontSize" value string "Mauvaise taille de police Ô%dÕ (doit tre entre 4 et 512 pts)." key "CantCreateNewRezFile" value string "Impossible de crer le nouveau fichier de ressources (erreur Ô%dÕ)." - key "CantImplodeIntoNonEmptyICNS" value string "Impossible dÕimploser sur des donnes existantes: crer une nouvelle ressource ÔicnsÕ pour imploser des ressources d'icones." + key "CantImplodeIntoNonEmptyICNS" value string "Impossible dÕimploser sur des donnes existantes: crer une nouvelle ressource ÔicnsÕ pour imploser des ressources dÕicones." key "CantImportOnExistingICNS" value string "Impossible dÕimporter sur des donnes existantes: crer une nouvelle ressource ÔicnsÕ pour importer depuis un fichier." key "CantOpenRezFileForWriting" value string "Impossible dÕouvrir le fichier de ressources en criture (erreur Ô%dÕ)." key "CantSaveReadOnly" value string "Impossible de sauvegarder les modifications: le document est en lecture seule." @@ -69,6 +69,7 @@ key "ParseXmnuRezFailed" value string "La ressource ÔxmnuÕ correspondant cette ressource ÔMENUÕ nÕa pas le format attendu. Elle ne sera pas prise en compte." key "PermissionError" value string "Fichier Ô%sÕ: erreur dÕautorisation dÕaccs. Le fichier est peut-tre utilis en service avec une autre application." key "PluginChooserError" value string "Une erreur sÕest produite au cours de la validation des prfrences de plugins." + key "PluginEditorRefusedResource" value string "Le plugin invoqu a rejet cette ressource (erreur Ô%dÕ). Utiliser lÕditeur de gabarit ou lÕditeur hexadcimal la place." key "PreferredPluginHelpString" value string "Pour chaque type, faire glisser le plugin prfr en tte de liste." key "RemovingIcnsMemberFailed" value string "Impossible de supprimer lÕicone." key "RequireSystemTenThree" value string "Cette version de Rezilla requiert le systme Mac OS X 10.3 ou ultrieur." Index: Rezilla_EN.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_EN.ploc,v retrieving revision 1.71 retrieving revision 1.72 diff -u -d -r1.71 -r1.72 --- Rezilla_EN.ploc 24 Nov 2006 11:51:56 -0000 1.71 +++ Rezilla_EN.ploc 25 Nov 2006 11:58:15 -0000 1.72 @@ -69,6 +69,7 @@ key "ParseXmnuRezFailed" value string "The ÔxmnuÕ resource corresponding to this ÔMENUÕ resource does not have the expected format. Ignoring it." key "PermissionError" value string "File Ô%sÕ: access permission error. Maybe the file is in service with another application." key "PluginChooserError" value string "An error occured while validating the plugins preferences." + key "PluginEditorRefusedResource" value string "The required plugin has rejected this resource (erreur Ô%dÕ). Use the template editor or the hexadecimal editor instead." key "PreferredPluginHelpString" value string "For each type, drag the preferred plugin to the top of the list." key "RemovingIcnsMemberFailed" value string "CouldnÕt remove the icon member." key "RequireSystemTenThree" value string "This version of Rezilla requires system Mac OS X 10.3 or greater." |
From: Bernard D. <bde...@us...> - 2006-11-25 11:57:56
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv28532 Modified Files: RezillaErrors_EN.ploc RezillaErrors_FR.ploc Log Message: Plugin role strings Index: RezillaErrors_EN.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/RezillaErrors_EN.ploc,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- RezillaErrors_EN.ploc 24 Nov 2006 11:51:43 -0000 1.31 +++ RezillaErrors_EN.ploc 25 Nov 2006 11:57:51 -0000 1.32 @@ -106,6 +106,7 @@ key "4002" value string "Get plugin info failed" key "4003" value string "Plugin not found" key "4004" value string "Plugin index not found" + key "4005" value string "Plugin rejected resource" key "5000" value string "Plugin error" key "5001" value string "Plugin error: initialization failed" key "5002" value string "Plugin error: this type is not supported" @@ -117,6 +118,7 @@ key "5008" value string "Plugin error: getting modified resource failed" key "5009" value string "Plugin error: revert resource failed" key "5010" value string "Plugin error: canÕt resize window" - key "5011" value string "Plugin error: canÕt handle menu command" + key "5011" value string "Plugin error: this plugin canÕt edit empty resource. Use the hexadecimal editor instead." + key "5012" value string "Plugin error: canÕt handle menu command" } Index: RezillaErrors_FR.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/RezillaErrors_FR.ploc,v retrieving revision 1.34 retrieving revision 1.35 diff -u -d -r1.34 -r1.35 --- RezillaErrors_FR.ploc 24 Nov 2006 11:51:43 -0000 1.34 +++ RezillaErrors_FR.ploc 25 Nov 2006 11:57:51 -0000 1.35 @@ -105,6 +105,7 @@ key "4002" value string "Impossible dÕobtenir lÕinformation sur ce plugin" key "4003" value string "Plugin introuvable" key "4004" value string "Indice du plugin introuvable" + key "4005" value string "Le plugin a rejet la ressource" key "5000" value string "Erreur du plugin" key "5001" value string "Erreur du plugin: lÕinitialisation a chou" key "5002" value string "Erreur plugin: ce type de ressource nÕest pas support" @@ -116,6 +117,7 @@ key "5008" value string "Erreur plugin: la sauvegarde des modifications de la ressource a chou" key "5009" value string "Erreur plugin: la restauration de la ressource a chou" key "5010" value string "Erreur plugin: impossible de redimensionner la fentre" - key "5011" value string "Erreur plugin: impossible dÕexcuter cette commande" + key "5011" value string "Erreur plugin: ce plugin ne peut pas diter une ressource vide. Utiliser l'diteur hexadcimal la place." + key "5012" value string "Erreur plugin: impossible dÕexcuter cette commande" } |
From: Bernard D. <bde...@us...> - 2006-11-24 11:53:34
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Rez In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv10003 Modified Files: CRezCompare.cp Log Message: Compare map error msg Index: CRezCompare.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Rez/CRezCompare.cp,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- CRezCompare.cp 18 Nov 2006 06:54:35 -0000 1.30 +++ CRezCompare.cp 24 Nov 2006 11:53:29 -0000 1.31 @@ -211,9 +211,11 @@ if ( !theOldPath[0] || !theNewPath[0] ) { UMessageDialogs::SimpleMessageFromLocalizable(CFSTR("MapsNotSelected"), PPob_SimpleMessage); } else { + inRezCompLoop = false; break; } } else if (msg_Cancel == theMessage) { + error = userCanceledErr; inRezCompLoop = false; break; } else if (msg_RezCompSetOld == theMessage || msg_RezCompSetNew == theMessage) { @@ -263,11 +265,10 @@ // Execute a comparison DoCompareRezMaps(); // Now get out of the outer 'while' - inRezCompLoop = false; + } else { + error = err_InvalidMapForComparison; } - } else { - error = userCanceledErr; - } + } } return error; } |
From: Bernard D. <bde...@us...> - 2006-11-24 11:53:21
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9958 Modified Files: RezillaConstants.h Log Message: Compare map error msg Index: RezillaConstants.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/RezillaConstants.h,v retrieving revision 1.261 retrieving revision 1.262 diff -u -d -r1.261 -r1.262 --- RezillaConstants.h 18 Nov 2006 06:54:51 -0000 1.261 +++ RezillaConstants.h 24 Nov 2006 11:53:18 -0000 1.262 @@ -1405,6 +1405,7 @@ err_OpenPickerFailed, err_InvalidResourceData, err_InvalidBase64Data, + err_InvalidMapForComparison, err_ImportGenericError = 1900, err_ImportInvalidOSType, err_ImportCantGetXmlData, |
From: Bernard D. <bde...@us...> - 2006-11-24 11:53:05
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9615 Modified Files: CRezMapDoc.cp Log Message: Msg if no plugin available Index: CRezMapDoc.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Documents/CRezMapDoc.cp,v retrieving revision 1.139 retrieving revision 1.140 diff -u -d -r1.139 -r1.140 --- CRezMapDoc.cp 18 Nov 2006 06:53:41 -0000 1.139 +++ CRezMapDoc.cp 24 Nov 2006 11:53:01 -0000 1.140 @@ -562,7 +562,11 @@ // call the right plugin CPluginsController::InvokePluginEditor(this, inRezObjItem, substType); break; - } // else fall through to template editing... + } else if (inCommand == cmd_EditWithPlugin) { + UMessageDialogs::AlertWithType(CFSTR("NoPluginForThisType"), inEditType); + break; + } + // else fall through to template editing... case cmd_TmplEditRez: case cmd_TmplEditAsRez: |
From: Bernard D. <bde...@us...> - 2006-11-24 11:52:45
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9602 Modified Files: RezillaPluginInterface.h Log Message: include Carbon.h Index: RezillaPluginInterface.h =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Architecture/RezillaPluginInterface.h,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- RezillaPluginInterface.h 18 Sep 2006 13:24:47 -0000 1.20 +++ RezillaPluginInterface.h 24 Nov 2006 11:52:42 -0000 1.21 @@ -2,7 +2,7 @@ // File: "RezillaPluginInterface.h" // // Created: 2005-09-08 15:49:50 -// Last modification: 2006-09-13 10:50:54 +// Last modification: 2006-11-24 06:35:49 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -15,6 +15,7 @@ #pragma once +#include <Carbon/Carbon.h> #include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CFPlugInCOM.h> |
From: Bernard D. <bde...@us...> - 2006-11-24 11:52:30
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9581 Modified Files: CRezillaApp.cp Log Message: Compare map error msg Index: CRezillaApp.cp =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Src/Application/CRezillaApp.cp,v retrieving revision 1.156 retrieving revision 1.157 diff -u -d -r1.156 -r1.157 --- CRezillaApp.cp 18 Nov 2006 06:49:58 -0000 1.156 +++ CRezillaApp.cp 24 Nov 2006 11:52:27 -0000 1.157 @@ -1,7 +1,7 @@ // =========================================================================== // CRezillaApp.cp // Created: 2003-04-16 22:13:54 -// Last modification: 2006-10-05 09:46:55 +// Last modification: 2006-11-24 11:33:53 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -470,6 +470,7 @@ void *ioParam) { Boolean cmdHandled = true; + OSErr error = noErr; if (inCommand == 1324679167) { inCommand = 27; @@ -532,7 +533,8 @@ case cmd_RezCompare: { CRezCompare * theComparator = new CRezCompare(this); ThrowIfNil_(theComparator); - if (theComparator->RunRezCompareDialog() == noErr) { + error = theComparator->RunRezCompareDialog(); + if (error == noErr) { if (theComparator->HasDifferences()) { theComparator->DisplayResults(); } else { @@ -542,10 +544,12 @@ // when the window is closed). delete theComparator; } - } + } else if (error != userCanceledErr) { + UMessageDialogs::DescribeError(CFSTR("CompareMapsError"), error); + } break; } - + case cmd_Open: { FSSpec theFileSpec; OSErr error; |
From: Bernard D. <bde...@us...> - 2006-11-24 11:51:59
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9205 Modified Files: Rezilla_EN.ploc Rezilla_FR.ploc Log Message: Compare map error strings Index: Rezilla_FR.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_FR.ploc,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- Rezilla_FR.ploc 18 Nov 2006 06:55:10 -0000 1.75 +++ Rezilla_FR.ploc 24 Nov 2006 11:51:56 -0000 1.76 @@ -1,4 +1,4 @@ -// Last modification: 2006-11-10 10:07:57 +// Last modification: 2006-11-24 11:03:48 localize "French" as "Localizable.strings" { @@ -13,6 +13,7 @@ key "CantImportOnExistingICNS" value string "Impossible dÕimporter sur des donnes existantes: crer une nouvelle ressource ÔicnsÕ pour importer depuis un fichier." key "CantOpenRezFileForWriting" value string "Impossible dÕouvrir le fichier de ressources en criture (erreur Ô%dÕ)." key "CantSaveReadOnly" value string "Impossible de sauvegarder les modifications: le document est en lecture seule." + key "CompareMapsError" value string "Une erreur Ô%dÕ sÕest produite au cours de la comparaison des tables de ressources." key "ConfirmCloseModifiedEditedRes" value string "Certaines ressources dites nÕont pas t valides. Voulez-vous les fermer quand mme ?" key "ConfirmCreateIcnsMember" value string "Voulez-vous crer un nouvel lment de type Ô%sÕ lÕintrieur de cette famille dÕicones ?" key "ConfirmRemoveIcnsMember" value string "Voulez-vous supprimer lÕlment Ô%sÕ de cette famille dÕicones ?" @@ -57,6 +58,7 @@ key "NoIDSpecified" value string "Vous devez spcifier un numro ID pour la ressource." key "NoOpenWritePermission" value string "La branche de ressources de Ô%sÕ est dj ouverte avec accs en criture depuis une autre application. Essayez de lÕouvrir en mode Read-Only." key "NoPictOnClipboard" value string "Il nÕy a pas de ressource ÔPICTÕ dans le presse-papiers." + key "NoPluginForThisType" value string "Pas de plugin disponible pour le type Ô%sÕ." key "NoRezForkAskCreate" value string "Le fichier Ô%sÕ ne contient aucune branche de ressources. Souhaitez-vous en ouvrir une ?" key "NoRezInAnyFork" value string "Le fichier Ô%sÕ ne contient aucune ressource." key "NoRezInDataFork" value string "Le fichier Ô%sÕ ne contient aucune ressource dans la branche de donnes." Index: Rezilla_EN.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/Rezilla_EN.ploc,v retrieving revision 1.70 retrieving revision 1.71 diff -u -d -r1.70 -r1.71 --- Rezilla_EN.ploc 18 Nov 2006 06:55:10 -0000 1.70 +++ Rezilla_EN.ploc 24 Nov 2006 11:51:56 -0000 1.71 @@ -1,4 +1,4 @@ -// Last modification: 2006-11-10 10:06:03 +// Last modification: 2006-11-24 11:03:35 localize "English" as "Localizable.strings" { @@ -13,6 +13,7 @@ key "CantImportOnExistingICNS" value string "CanÕt import on already existing data: create a new ÔicnsÕ resource to import from file." key "CantOpenRezFileForWriting" value string "Could not open resource file for writing (error Ô%dÕ)." key "CantSaveReadOnly" value string "CanÕt save the modifications: document is read only." + key "CompareMapsError" value string "An error Ô%dÕ occured while comparing the resource maps." key "ConfirmCloseModifiedEditedRes" value string "Some edited resources have not been validated. Do you want to close anyway?" key "ConfirmCreateIcnsMember" value string "Do you want to create an icon member of type Ô%sÕ in the ÔicnsÕ family?" key "ConfirmRemoveIcnsMember" value string "Do you want to remove the Ô%sÕ member from the ÔicnsÕ family?" @@ -57,6 +58,7 @@ key "NoIDSpecified" value string "You must specify a resource ID." key "NoOpenWritePermission" value string "The resource fork of Ô%sÕ is already opened with write permission from another application. Try to open it in Read-Only mode." key "NoPictOnClipboard" value string "No ÔPICTÕ resource on the clipboard." + key "NoPluginForThisType" value string "No plugin available for Ô%sÕ type." key "NoRezForkAskCreate" value string "The file Ô%sÕ contains no resource fork. Do you want to open ?" key "NoRezInAnyFork" value string "The file Ô%sÕ contains no resources." key "NoRezInDataFork" value string "The file Ô%sÕ contains no resources in the data fork." |
From: Bernard D. <bde...@us...> - 2006-11-24 11:51:48
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv9193 Modified Files: RezillaErrors_EN.ploc RezillaErrors_FR.ploc Log Message: Compare map error strings Index: RezillaErrors_EN.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/RezillaErrors_EN.ploc,v retrieving revision 1.30 retrieving revision 1.31 diff -u -d -r1.30 -r1.31 --- RezillaErrors_EN.ploc 26 Oct 2006 17:09:04 -0000 1.30 +++ RezillaErrors_EN.ploc 24 Nov 2006 11:51:43 -0000 1.31 @@ -1,7 +1,7 @@ // =========================================================================== // RezillaErrors_EN.ploc // Created: 2004-10-05 15:00:32 -// Last modification: 2006-10-15 07:19:43 +// Last modification: 2006-11-24 10:41:39 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -31,6 +31,7 @@ key "1017" value string "There is no picker for this resource type" key "1018" value string "Open resource picker failed" key "1019" value string "Invalid resource data" + key "1020" value string "Invalid map for comparison" key "1900" value string "Import Generic error" key "1901" value string "Invalid resource type. A type must have 4 characters." key "1902" value string "CanÕt get Xml data" Index: RezillaErrors_FR.ploc =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_Rsrc/RezillaErrors_FR.ploc,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- RezillaErrors_FR.ploc 26 Oct 2006 17:09:04 -0000 1.33 +++ RezillaErrors_FR.ploc 24 Nov 2006 11:51:43 -0000 1.34 @@ -1,7 +1,7 @@ // =========================================================================== // RezillaErrors_FR.ploc // Created: 2004-10-05 15:00:32 -// Last modification: 2006-10-15 07:19:56 +// Last modification: 2006-11-24 10:42:12 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -30,6 +30,7 @@ key "1017" value string "Il nÕexiste pas de slectionneur pour ce type de ressources" key "1018" value string "LÕouverture du slectionneur de ressources a chou" key "1019" value string "Donnes de ressource invalides" + key "1020" value string "Table invalide pour la comparison" key "1900" value string "Erreur gnrique dÕimportation" key "1901" value string "Type de ressource invalide. Un type doit comporter 4 caractres." key "1902" value string "Impossible dÕobtenir les donnes Xml" |
From: Bernard D. <bde...@us...> - 2006-11-24 08:56:57
|
Update of /cvsroot/rezilla/RezillaSource/Rezilla_SDK/ImagePlugin In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4164 Modified Files: RezImagePlugin.c Log Message: Removed resize image code Index: RezImagePlugin.c =================================================================== RCS file: /cvsroot/rezilla/RezillaSource/Rezilla_SDK/ImagePlugin/RezImagePlugin.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- RezImagePlugin.c 19 Sep 2006 12:13:24 -0000 1.11 +++ RezImagePlugin.c 24 Nov 2006 08:56:52 -0000 1.12 @@ -2,7 +2,7 @@ // File: "RezImagePlugin.c" // // Created: 2006-02-20 14:15:30 -// Last modification: 2006-09-18 10:00:25 +// Last modification: 2006-11-24 09:06:35 // Author: Bernard Desgraupes // e-mail: <bde...@us...> // www: <http://rezilla.sourceforge.net/> @@ -26,9 +26,6 @@ #define kRezImg_WinBoundsBottom 600; #define kRezImg_WinBoundsRight 500; -#define MAX_IMAGE_WIDTH 700 -#define MAX_IMAGE_HEIGHT 600 - // Image plugin record typedef struct RezImg_Rec { @@ -90,7 +87,6 @@ static OSErr _RezImg_getImageInfo(Handle inDataH, OSType imgType, StringPtr mimeTypeString, RezImg_EditInfo * editInfo); static OSErr _RezImg_readBitmapInfo(GraphicsImportComponent gi, RezImg_EditInfo *bi); static OSErr _RezImg_getBitmapData(GraphicsImportComponent gi, RezImg_EditInfo *bi); -static void _RezImg_rescaleImage( size_t* imageWidthPtr, size_t* imageHeightPtr, size_t maxWidth, size_t maxHeight ); static Handle _RezImg_createHandleDataRef(Handle dataHandle, OSType fileType, StringPtr mimeTypeString); static OSStatus _RezImg_openImageFile(CFURLRef * outURL); static CGImageRef _RezImg_getImageRef(RezImg_EditInfo * editInfo); @@ -287,7 +283,6 @@ editInfo->bitmapData = NULL; editInfo->width = 0; editInfo->height = 0; - if (GetHandleSize(inDataH) > 0) { error = _RezImg_getImageInfo(inDataH, imgType, NULL, editInfo); @@ -298,11 +293,6 @@ outInfo->error = error; return false; } - - // Make sure that the image isn't too large to fit comfortably onscreen - if ( editInfo->width > MAX_IMAGE_WIDTH || editInfo->height > MAX_IMAGE_HEIGHT ) { - _RezImg_rescaleImage( &editInfo->width, &editInfo->height, MAX_IMAGE_WIDTH, MAX_IMAGE_HEIGHT ); - } } // Fill the RezPlugInfo @@ -397,7 +387,7 @@ // // The implementation by the Image plugin of the RevertResource function // declared in the interface (SPluginEditorInterface structure) -// +// // ------------------------------------------------------------------------------------------- OSErr @@ -969,32 +959,6 @@ // ------------------------------------------------------------------------------------------- // -// Adapted from Apple's QTtoCG sample code -// -// ------------------------------------------------------------------------------------------- - -void -_RezImg_rescaleImage( size_t* imageWidthPtr, size_t* imageHeightPtr, size_t maxWidth, size_t maxHeight ) -{ - size_t width = *imageWidthPtr; - size_t height = *imageHeightPtr; - double widthFactor = (double)width / (double)maxWidth; - double heightFactor = (double)height / (double)maxHeight; - - if ( widthFactor > heightFactor ) { - // We're further off in the x axis than we are in the y - *imageWidthPtr = width / widthFactor; - *imageHeightPtr = height / widthFactor; - } else { - // We're further off in the y axis than we are in the x - *imageWidthPtr = width / heightFactor; - *imageHeightPtr = height / heightFactor; - } -} - - -// ------------------------------------------------------------------------------------------- -// // Adapted from Apple's Technical Q&A QTMTB56 // // ------------------------------------------------------------------------------------------- |
From: Bernard D. <bde...@us...> - 2006-11-24 08:56:19
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4106 Modified Files: PluginSupport_EN.aida PluginSupport_FR.aida Log Message: Doc complements Index: PluginSupport_EN.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/PluginSupport_EN.aida,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- PluginSupport_EN.aida 1 Nov 2006 17:00:52 -0000 1.6 +++ PluginSupport_EN.aida 24 Nov 2006 08:56:16 -0000 1.7 @@ -409,26 +409,47 @@ private data which Rezilla will pass back in all its calls to interface functions. -((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. +((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. lo)) -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: +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. + +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)). 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. +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. +((lu +((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. + +((li when the ((i CleanUp i)) function is called, the plugin should perform +any post editing tasks, release allocated memory, etc. + +lu)) + +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. + + ((s3 Plugin requests @@ -449,10 +470,13 @@ |)) 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. Index: PluginSupport_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/PluginSupport_FR.aida,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- PluginSupport_FR.aida 1 Nov 2006 17:00:53 -0000 1.4 +++ PluginSupport_FR.aida 24 Nov 2006 08:56:16 -0000 1.5 @@ -464,22 +464,44 @@ lo)) Ë ce stade, le plugin peut maintenant faire son travail d'dition de la -ressource. Il peut par exemple crer des contrles et des lments -graphiques, installer des -CarbonEvents sur ces contrles, etc. On notera dependant qu'il n'y a aucune -obligation utiliser des CarbonEvents; toutes les actions et vnements -dclenchs par l'utilisateur sont passs Rezilla sous la forme d'un -EventRecord dans les fonctions suivantes dfinies dans l'interface: -((i HandleMenu, HandleClick, HandleKeyDown i)) et ((i HandleCommand i)). +ressource. Il peut par exemple crer des contrles et des lments +graphiques, installer au besoin des CarbonEvents sur ces contrles, etc. La +fentre est construite en mode composite (((i compositing mode i))) ce qui +permet d'utiliser pleinement le modle HIViews de dessin de l'interface +graphique. + +On notera dependant qu'il n'y a aucune obligation utiliser des +CarbonEvents; toutes les actions et vnements dclenchs par l'utilisateur +sont passs Rezilla sous la forme d'un EventRecord dans les fonctions +suivantes dfinies dans l'interface: ((i HandleMenu, HandleClick, +HandleKeyDown i)) et ((i HandleCommand i)). 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 fentre), Rezilla invoque la fonction ((i ReturnResource i)) afin que le plugin renvoie les donnes modifies, puis la fonction ((i CleanUp i)) -afin qu'il puisse excuter les tches qui mettent fin une session -d'dition, comme par exemple librer les portions de mmoire qui ont t -alloues. +afin qu'il puisse terminer sa session d'dition: +((lu +((li la fonction ((i ReturnResource i)) renvoie une ((i handle i)) sur les +donnes modifies. Elle comporte aussi un argument boolen ((i releaseIt +i)) qui indique Rezilla qui est propritaire de cette ((i handle i)) et +qui devra donc librer la mmoire qu'elle occupe. Si cet argument est fix + la valeur ((i true i)) c'est Rezilla qui est responsable de librer la +mmoire, autrement le plugin devra s'en charger. + +((li lorsque la fonction ((i CleanUp i)) est appele, le plugin excute +toutes les tches de post-dition qu'il juge ncessaire, libre la mmoire +qu'il a alloue, etc. + +lu)) + +Si l'utilisateur clique sur le bouton ((i Revert i)) (lorsqu'il y en a +un!), Rezilla invoque la fonction ((i RevertResource i)): les donnes +auxquelles il faut revenir sont fournies par l'intermdiaire de l'argument +((i inDataH i)), ce qui signifie en particulier que le plugin n'a pas se +proccuper de garder une copie des donnes originales. + ((s3 Les requtes du plugin @@ -502,14 +524,17 @@ |)) Le membre ((i winbounds i)) est une structure Rect indiquant la position et -dimension de la fentre d'dition. Rezilla fournit toujours une fentre -d'dition qui peut tre quipe d'un certain nombre d'lments de base tels -que des boutons ((i Save i)) et ((i Cancel i)). Le plugin n'a pas se -proccuper de surveiller ces contrles: ils sont grs par l'application -principale. Le plugin doit simplement dcider, au moyen des drapeaux -adquats, lesquels de ces contrles doivent figurer dans la fentre. Par -exemple, on ajoutera le drapeau ((i kPluginEditorHasRevertButton i)) aux -attributs si l'on souhaite avoir un bouton ((i Revert i)) dans la fentre. +dimension de la fentre d'dition: elle est exprime en coordonnes +globales et correspond la structure entire de la fentre, autrement les +dimensions qui sont habituellement passes la fonction ((i CreateWindow +i)). Rezilla fournit toujours une fentre d'dition qui peut tre quipe +d'un certain nombre d'lments de base tels que des boutons ((i Save i)) et +((i Cancel i)). Le plugin n'a pas se proccuper de surveiller ces +contrles: ils sont grs par l'application principale. Le plugin doit +simplement dcider, au moyen des drapeaux adquats, lesquels de ces +contrles doivent figurer dans la fentre. Par exemple, on ajoutera le +drapeau ((i kPluginEditorHasRevertButton i)) aux attributs si l'on souhaite +avoir un bouton ((i Revert i)) dans la fentre. Le membre ((i menucount i)) indique combien de menus sont ncessaires au plugin (ventuellement 0). Si le plugin dfinit des menus, il doit passer |
From: Bernard D. <bde...@us...> - 2006-11-24 08:55:34
|
Update of /cvsroot/rezilla/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3747 Modified Files: Changes_Rezilla Log Message: Release date Index: Changes_Rezilla =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/Changes_Rezilla,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- Changes_Rezilla 18 Nov 2006 06:57:14 -0000 1.87 +++ Changes_Rezilla 24 Nov 2006 08:55:31 -0000 1.88 @@ -30,7 +30,7 @@ ================================================================================ -= 1.1 last update: += 1.1 last update: 2006-11-24 07:17:20 ================================================================================ ¥ Public release of version 1.1. |
From: Bernard D. <bde...@us...> - 2006-11-24 08:55:25
|
Update of /cvsroot/rezilla/RezillaHelp/English.lproj In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3714 Modified Files: RezillaPluginHowto.html Log Message: Doc complements Index: RezillaPluginHowto.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/English.lproj/RezillaPluginHowto.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- RezillaPluginHowto.html 1 Nov 2006 16:58:14 -0000 1.1 +++ RezillaPluginHowto.html 24 Nov 2006 08:55:18 -0000 1.2 @@ -356,22 +356,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="M15"></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="M15"></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 { @@ -420,10 +431,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 @@ -816,7 +830,7 @@ </PRE><P><!-- logo SF --> <!-- ------- --> <HR> -<P> Last updated 2006-11-01 15:23:45 +<P> Last updated 2006-11-24 07:13:32 <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-24 08:55:11
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3351 Modified Files: RezillaPluginHowto.html Log Message: Doc complements Index: RezillaPluginHowto.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaPluginHowto.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- RezillaPluginHowto.html 1 Nov 2006 16:58:40 -0000 1.1 +++ RezillaPluginHowto.html 24 Nov 2006 08:55:02 -0000 1.2 @@ -397,20 +397,32 @@ identifier la fentre 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 crer des contrles et des lments -graphiques, installer des -CarbonEvents sur ces contrles, etc. On notera dependant qu'il n'y a aucune -obligation utiliser des CarbonEvents; toutes les actions et vnements -dclenchs par l'utilisateur sont passs Rezilla sous la forme d'un -EventRecord dans les fonctions suivantes dfinies 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 crer des contrles et des lments +graphiques, installer au besoin des CarbonEvents sur ces contrles, etc. La +fentre est construite en mode composite (<I>compositing mode</I>) ce qui +permet d'utiliser pleinement le modle 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 vnements dclenchs par l'utilisateur +sont passs Rezilla sous la forme d'un EventRecord dans les fonctions +suivantes dfinies 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 fentre), Rezilla invoque la fonction <I>ReturnResource</I> afin que le plugin renvoie les donnes modifies, puis la fonction <I>CleanUp</I> -afin qu'il puisse excuter les tches qui mettent fin une session -d'dition, comme par exemple librer les portions de mmoire qui ont t -alloues.<P><H4><A NAME="M15"></A>Les requtes du plugin</H4><P>Cette section donne plus de dtails concernant les requtes formules par +afin qu'il puisse terminer sa session d'dition: +<UL> + <LI> la fonction <I>ReturnResource</I> renvoie une <I>handle</I> sur les +donnes modifies. Elle comporte aussi un argument boolen <I>releaseIt</I> qui indique Rezilla qui est propritaire de cette <I>handle</I> et +qui devra donc librer la mmoire qu'elle occupe. Si cet argument est fix + la valeur <I>true</I> c'est Rezilla qui est responsable de librer la +mmoire, autrement le plugin devra s'en charger.<P> <LI> lorsque la fonction <I>CleanUp</I> est appele, le plugin excute +toutes les tches de post-dition qu'il juge ncessaire, libre la mmoire +qu'il a alloue, 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 donnes +auxquelles il faut revenir sont fournies par l'intermdiaire de l'argument +<I>inDataH</I>, ce qui signifie en particulier que le plugin n'a pas se +proccuper de garder une copie des donnes originales.<P><H4><A NAME="M15"></A>Les requtes du plugin</H4><P>Cette section donne plus de dtails concernant les requtes formules par le plugin dans la fonction <I>AcceptResource</I>. La structure <I>RezPlugInfo</I> est dfinie comme ceci: <PRE> typedef struct RezPlugInfo { @@ -460,14 +472,16 @@ | kPluginSupportClear) } </PRE><P>Le membre <I>winbounds</I> est une structure Rect indiquant la position et -dimension de la fentre d'dition. Rezilla fournit toujours une fentre -d'dition qui peut tre quipe d'un certain nombre d'lments de base tels -que des boutons <I>Save</I> et <I>Cancel</I>. Le plugin n'a pas se -proccuper de surveiller ces contrles: ils sont grs par l'application -principale. Le plugin doit simplement dcider, au moyen des drapeaux -adquats, lesquels de ces contrles doivent figurer dans la fentre. Par -exemple, on ajoutera le drapeau <I>kPluginEditorHasRevertButton</I> aux -attributs si l'on souhaite avoir un bouton <I>Revert</I> dans la fentre.<P>Le membre <I>menucount</I> indique combien de menus sont ncessaires au +dimension de la fentre d'dition: elle est exprime en coordonnes +globales et correspond la structure entire de la fentre, autrement les +dimensions qui sont habituellement passes la fonction <I>CreateWindow</I>. Rezilla fournit toujours une fentre d'dition qui peut tre quipe +d'un certain nombre d'lments de base tels que des boutons <I>Save</I> et +<I>Cancel</I>. Le plugin n'a pas se proccuper de surveiller ces +contrles: ils sont grs par l'application principale. Le plugin doit +simplement dcider, au moyen des drapeaux adquats, lesquels de ces +contrles doivent figurer dans la fentre. Par exemple, on ajoutera le +drapeau <I>kPluginEditorHasRevertButton</I> aux attributs si l'on souhaite +avoir un bouton <I>Revert</I> dans la fentre.<P>Le membre <I>menucount</I> indique combien de menus sont ncessaires au plugin (ventuellement 0). Si le plugin dfinit des menus, il doit passer un tableau des MenuIDs correspondants dans le membre <I>menuIDs</I> de la structure. Ces MenuIDs sont les numros de ressources de type 'MENU' qui @@ -888,7 +902,7 @@ </PRE><P><!-- logo SF --> <!-- ------- --> <HR> -<P> Last updated 2006-11-01 15:23:57 +<P> Last updated 2006-11-24 07:15:41 <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-21 13:45:43
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17898 Modified Files: Download_EN.aida Download_FR.aida Log Message: Last corrs for 1.1 Index: Download_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/Download_FR.aida,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Download_FR.aida 15 Sep 2006 08:42:57 -0000 1.4 +++ Download_FR.aida 21 Nov 2006 13:45:40 -0000 1.5 @@ -24,7 +24,7 @@ sources l'adresse suivante: ((nl <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla> -((nl On peut enfin tlcharger une archive quotidienne des sources au -moyen du lien suivant -((nl <http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2> +!! !! ((nl On peut enfin tlcharger une archive quotidienne des sources au +!! !! moyen du lien suivant +!! !! ((nl <http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2> Index: Download_EN.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/Download_EN.aida,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- Download_EN.aida 15 Sep 2006 08:42:57 -0000 1.3 +++ Download_EN.aida 21 Nov 2006 13:45:40 -0000 1.4 @@ -22,7 +22,7 @@ ((nl You can browse the cvs repository online at ((nl <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla> -((nl You can also download a nightly tarball from -((nl <http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2> +!! !! ((nl You can also download a nightly tarball from +!! !! ((nl <http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2> |
From: Bernard D. <bde...@us...> - 2006-11-21 13:45:34
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17879 Modified Files: TemplateEditor_EN.aida TemplateEditor_FR.aida Log Message: Last corrs for 1.1 Index: TemplateEditor_EN.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/TemplateEditor_EN.aida,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- TemplateEditor_EN.aida 1 Nov 2006 17:00:34 -0000 1.3 +++ TemplateEditor_EN.aida 21 Nov 2006 13:45:31 -0000 1.4 @@ -112,6 +112,9 @@ quit and relaunch Rezilla in order to make them available to the application. +Since version 1.1 of Rezilla, it is possible to put in the ((i Templates i)) +folder aliases poiting to other locations. + ((s2 Local templates Index: TemplateEditor_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/TemplateEditor_FR.aida,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- TemplateEditor_FR.aida 1 Nov 2006 17:00:34 -0000 1.4 +++ TemplateEditor_FR.aida 21 Nov 2006 13:45:31 -0000 1.5 @@ -129,6 +129,10 @@ suite, il faudra quitter l'application puis la relancer pour qu'ils soient pris en compte. +Depuis la version 1.1 de Rezilla, il est possible de placer dans le +dossier ((i Templates i)) des alias pointant sur d'autres emplacements. + + ((s2 Gabarits locaux Certains fichiers de ressources comportent eux-mmes des ressources TMPL pour certains types. Lorsque l'on cherche diter une ressource d'un de ces |
From: Bernard D. <bde...@us...> - 2006-11-21 13:45:24
|
Update of /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17836 Modified Files: VersionHistory_EN.aida VersionHistory_FR.aida Log Message: Last corrs for 1.1 Index: VersionHistory_EN.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/VersionHistory_EN.aida,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- VersionHistory_EN.aida 3 Oct 2006 15:50:40 -0000 1.6 +++ VersionHistory_EN.aida 21 Nov 2006 13:45:21 -0000 1.7 @@ -24,7 +24,7 @@ editor, project files for XCode 1.5 and 2.1 and minor fixes. ((li 2006-02-10 - 1.0.8 - Additional format for RECT tags. Minor user experience improvements (read-only media, hex values format). Bug fixes. -((li 2006-10-15 - 1.1 - Plugins, resource pickers, icns editor, images +((li 2006-11-21 - 1.1 - Plugins, resource pickers, icns editor, images editor. Import/export. Many improvements and bug fixes. lu)) Index: VersionHistory_FR.aida =================================================================== RCS file: /cvsroot/rezilla/RezillaExtras/Aida/Docs_Input/VersionHistory_FR.aida,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- VersionHistory_FR.aida 3 Oct 2006 15:50:40 -0000 1.7 +++ VersionHistory_FR.aida 21 Nov 2006 13:45:21 -0000 1.8 @@ -30,7 +30,7 @@ ((li 2006-02-10 - 1.0.8 - Nouveau format pour les balises RECT. Amliorations de l'interface utilisateur (media en lecture seule, valeurs hexadcimales). Rsolution de bogues. -((li 2006-10-15 - 1.1 - Plugins, slectionneurs de resources, diteur +((li 2006-11-21 - 1.1 - Plugins, slectionneurs de ressources, diteur icns, diteur d'images. Import/export. Nombreuses amliorations et rsolutions de bogues. lu)) |
From: Bernard D. <bde...@us...> - 2006-11-21 13:44:55
|
Update of /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv17469 Modified Files: 71.html Log Message: Last corrs for 1.1 Index: 71.html =================================================================== RCS file: /cvsroot/rezilla/RezillaHelp/French.lproj/RezillaHelp/71.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- 71.html 1 Nov 2006 16:56:46 -0000 1.4 +++ 71.html 21 Nov 2006 13:44:52 -0000 1.5 @@ -22,9 +22,7 @@ programme client CVS. Voir les instructions figurant à: <P> <A HREF="http://sourceforge.net/cvs/?group_id=83267">http://sourceforge.net/cvs/?group_id=83267</A><P><P> On peut aussi naviguer en ligne dans la hiérarchie des fichiers sources à l'adresse suivante: -<P> <A HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla">http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla</A> <P><P> On peut enfin télécharger une archive quotidienne des sources au -moyen du lien suivant -<P> <A HREF="http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2">http://cvs.sourceforge.net/cvstarballs/rezilla-cvsroot.tar.bz2</A><P> +<P> <A HREF="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla">http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/rezilla</A> <P> </BODY> </HTML> |