Opened 17 years ago

Last modified 9 years ago

#45 assigned enhancement

Use RWS to get WPS association icons for files in containers

Reported by: Gregg Young Owned by: Gregg Young
Priority: minor Milestone: Release_3.25
Component: fm/2 base Version:
Keywords: Cc:

Description


Change History (9)

comment:1 Changed 17 years ago by Steven Levine

Owner: StevenHL deleted

comment:2 Changed 11 years ago by Gregg Young

Milestone: Release_3.21
Owner: set to Gregg Young
Status: newassigned

comment:3 Changed 11 years ago by Gregg Young

In reading the RWS 0.80 readme this appears to be relatively simple. It appears you can use RwsConvert? called with RWSC_OPATH_OICON/OMINI (icon verses mini icon) to get the icon from the fully qualified path or RWSC_OPREC_OICON/OMINI to get it from a pointer to a minirecordcore. Both inputs are readily available. I probably should see if one is more costly than the other.

I would like to implement this such that holding down the CTRL key would change the icon. You would see the FM/2 associated icons normally and the WPS associated icons with the CTRL key pressed. I would like to parse the FM/2 associations and then use the fully qualified path of those associations to get the icons. This would mean getting the full pathname for any executable that only has its filename (ie it is in the PATH) and would mean looking up the WPS association for any <*> associations (need to determine how to do that).

Use the current icon code to assign base icons for multimedia and archives. Then do the icon lookup to assign icons from associations including replacing any for the multimedia and archives as needed.

comment:4 Changed 11 years ago by Gregg Young

Just realized that the <*> are easy just need to use the filename itself.

comment:5 Changed 11 years ago by Gregg Young

ExecAssociation? Assoc.c ~421 can be modified (add a bool to tell it if it is to execute or return the filename and a buffer to return the filename.) Need to cleanup info->pszCmdLine and add the fq path if needed. <> just needs a return to tell us to use the pathname we sent. Call this from IDFile in filldir.c ~295 and then use RwsConvert? to get the icon. Need a new function IDFileWPS to do the other half. Capture the CTRL key with a timer to toggle. Probably called from directory cntrs archive cntrs and the collector.

comment:6 Changed 11 years ago by Gregg Young

When this gets done we need to update the known problems section of the help file.

comment:7 Changed 10 years ago by Steven Levine

Milestone: Release_3.22Release_3.23

comment:8 Changed 9 years ago by Gregg Young

Milestone: Release_3.23Release_3.24

Ticket retargeted after milestone closed

comment:9 Changed 9 years ago by Gregg Young

Milestone: Release_3.24Release_3.25
Note: See TracTickets for help on using tickets.