Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Classic Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Purging CCF icon library
This thread has 9 replies. Displaying all posts.
Post 1 made on Saturday September 10, 2005 at 09:26
rsbrux
Long Time Member
Joined:
Posts:
June 2005
62
I am using Tonto 1.44 for my CCF development. Using it's "Icon Library" module, it looks as though I have a lot of duplicates in the CCF file's icon library. Tonto doesn't provide any way of seeing where or if the icons are in use, nordoes it provide a way of deleting them. I guess this isn't a serious issue, since I am using the CCF file on an iPAQ 3900 (under PDAWin.com's TV Remote Controller 5.5) and have plenty of memory available. Nonetheless, it is annoying to have such a long list of icons to sift through when I want to change any of the graphics. Is there any software which supports clean-up maintenance of the icon library in a CCF file?
Regards,
rsbrux
Post 2 made on Saturday September 10, 2005 at 10:28
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,995
You can download and use CCFTools to decompile the CCF into a text file and a set of bitmaps. From there, you can use Windows Explorer or any other Image Browser to browse the "Bitmap" folder and identify duplicates. Then, edit the "CSF" file that was generated by the decompiler to remove duplicates. Recompile and then you are done.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Saturday September 10, 2005 at 15:49
rsbrux
Long Time Member
Joined:
Posts:
June 2005
62
Many thanks for the response. Sounds painful, but I guess I'll just have to bite the bullet. I had already downloaded CCFtools and decompiled, but I was hoping for an easier way to at least eliminate unreferenced images. ISTR that one of the CCF editors was supposed to automatically eliminate unreferenced images on storing, but maybe that was just wishful thinking.
Some of the duplicates are actually slightly different colored versions of the same images resulting from bringing new CHAD gallery panels into my "upconverted" CCF file. The Tonto color conversion which was originally applied does not seem to affect these laterr additions.
You recommend using the CSF file produced by CCFdecode. Is there a reason why you prefer this to the XML file?
Regards,
rsbrux
Post 4 made on Sunday September 11, 2005 at 00:21
Ernie Bornn-Gilman
Yes, That Ernie!
Joined:
Posts:
December 2001
30,104
Is Tonto's method of storing these images totally different from the Pronto and Marantz software? In them, there is a file, or files, named gallery.ccf. You can open that file in the editor, edit it as you would any multipage ccf, then store it -- in some versions you have to overcome the original having been read-only, but that is not too hard -- and when you close and reopen the program, your gallery is the newly modified one.
A good answer is easier with a clear question giving the make and model of everything.
"The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw
OP | Post 5 made on Tuesday September 13, 2005 at 16:04
rsbrux
Long Time Member
Joined:
Posts:
June 2005
62
Tonto treats gallery.ccf just like any other CCF file. I originally used the CHAD gallery as the basis for my panels and then used Tonto's conversion features to "colorize" it (since CHAD is monochrome). Even in CHAD or PE, the gallery file seems only to be the source of templates. Once things are in the target CCF, changing gallery.ccf doesn't seem to affect them. One curious result of this is that my colorized keys in Tonto are now a slightly different shade from my colorized gallery. This is kind of annoying, since I had to add some new buttons/panels, and they no longer match the old ones. I have no idea how this happened, but maybe I can fix it using CCFtools, as suggested by Lyndel. Unfortunately, CCFdecompiler went on strike, even on the CCF file I first (successfully) tried it on. Having read that Tonto files sometimes get a little weird, I ran the file through PE 4 and got CCFdecompiler output again. I hoped this would also clean out the unused icons, but no such luck!
Regards,
rsbrux
Post 6 made on Tuesday September 13, 2005 at 16:25
bomberjim
Super Member
Joined:
Posts:
September 2001
3,894
As I remember, and it's been a looong time, Tonto only shows the graphics that are actually being used in your ccf. If you delete a button that has a "unique" graphic on it then that icon will disappear from the display list. I assume that because of this the author felt no need to put in a delete capability.

Since you say that you have several graphics that differ only by slight color variations due to conversions, I would think that a global find and replace would work better. I thought that ccf tools did this, but I might be wrong on that point. In any event, Tonto WILL allow you to globally replace one icon with another under "modules" on the tool bar. In other words you could pick 1 version of the icon and replace all other occurances with that version. Once this is done, the other, unused, versions of the graphic should disappear from the icon library.

This message was edited by bomberjim on 09/13/05 16:32 ET.
Jim L
Post 7 made on Wednesday September 14, 2005 at 00:08
Ernie Bornn-Gilman
Yes, That Ernie!
Joined:
Posts:
December 2001
30,104
On 09/13/05 16:04 ET, rsbrux said...
Tonto treats gallery.ccf just like any other CCF
file.

Then you can open it and modify it as I suggested. Just remember you have to close and reopen the program for the gallery to change to your modified version.

I originally used the CHAD gallery as the
basis for my panels and then used Tonto's conversion
features to "colorize" it (since CHAD is monochrome).
Even in CHAD or PE, the gallery file seems only
to be the source of templates.

I'm not sure what you mean by this, but once you copy a graphic into a ccf, you have, well, copied it into the ccf! If you go back to the gallery and DELETE the graphic in the gallery, that won't delete its copy in the ccf. Similarly, any other changes you make in the gallery will not affect existing ccfs.

Once things are
in the target CCF, changing gallery.ccf doesn't
seem to affect them.

Like I said.
One curious result of this
is that my colorized keys in Tonto are now a slightly
different shade from my colorized gallery. This
is kind of annoying, since I had to add some new
buttons/panels, and they no longer match the old
ones. I have no idea how this happened, but maybe
I can fix it using CCFtools, as suggested by Lyndel.

I ran into this when going from one color program to another, even with a small number of colors. Only sixteen, I think.

The solution for this is a pain -- open the galery ccf, open its button, and SAVE the graphic. Then, open the ccf, go to the button with the slightly different color, and LOAD the graphic into the button. Or you could go another way, and save graphics from the existing buttons, then load them into buttons that come in with slightly different colors. If you need a button size that you didn't happen to use, though, you will be stuck with the new slightly different color. Now that I think of it, that argues for changing all colors to the new colors. Really tedious and dumb, but doable.

Unfortunately, CCFdecompiler went on strike,
even on the CCF file I first (successfully) tried
it on. Having read that Tonto files sometimes
get a little weird, I ran the file through PE
4 and got CCFdecompiler output again. I hoped
this would also clean out the unused icons, but
no such luck!

Are you talking here about unused icons in a ccf, that is, icons that are there but have no commands? The delete key takes care of them. Are you talking about icons that you deleted from the gallery.ccf? They should be GONE. I guess I don't understand just what you mean by unused icons.
A good answer is easier with a clear question giving the make and model of everything.
"The biggest problem in communication is the illusion that it has taken place." -- G. “Bernie” Shaw
Post 8 made on Wednesday September 14, 2005 at 11:04
bomberjim
Super Member
Joined:
Posts:
September 2001
3,894
Ernie,

Tonto doesn't use a gallery.ccf file in the same manner PE does. Tonto builds it's own "Icon Library" from all the icons that are present in an open ccf. So, there are no unused icons in this library. In fact, the library (unlike a gallery) will contain different icons depending on the ccf that is open. Although Tonto will open a gallery file, it's not intended to be the source for button graphics (like PE). There is also no way to delete an icon from the library, if an icon is present in the ccf, it's in the library. The ONLY way to delete an icon from the library is to change the icon on every button on which it's loaded. There is no delete function in the library.

I would think that the best thing to do if you have say 4 instances of an icon with small differences, is to use Tonto to globally replace 3 of these instances with the one you want as described above.

Again, I believe the OP is mistaken when he says there are "unused" icons in the library. What he really has is several itterations of the same grapic, but all of them ARE being used at least once in the ccf.
Jim L
OP | Post 9 made on Saturday September 24, 2005 at 10:30
rsbrux
Long Time Member
Joined:
Posts:
June 2005
62
Hi *,

I finally succeeded in doing what I wanted by following Lyndel McGee's advice - Thanks, Lyndel! It was a pain, but by far the most efficient possible way. I don't have XP, so I used IrfanView as an image browser. What I thought were duplicates were probably versions with a slightly different color pallette. I got rid of them by editing the references in the CSF file. Where the colors didn't match between images, I was able to correct them by doing search & replace in the BMP files with a hex editor (PSpad). After compiling the CSF file, loading it in ProntoEdit 4 and saving it, the unwanted images seem to be gone. Probably, they were already eliminated during the compilation, since they were no longer referenced in the CSF file.
Regards,
rsbrux
Post 10 made on Saturday September 24, 2005 at 15:52
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,995
On 09/10/05 15:49 ET, rsbrux said...
You recommend using the CSF file produced by CCFdecode.
Is there a reason why you prefer this to the
XML file?

Unless you are using the absolute latest CCFDLL.DLL(from files section), there was a bug that existed such that a Link in a Hard Button aliased to another HardButton would be lost in the XML compile/decompile step. The latest version corrects this. And, if you are gonna use the XML version, may I request that you donate a little something to Olivier, CCFTools' author?
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse