Opened 18 years ago

Closed 6 months ago

#45 closed enhancement (wontfix)

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 (10)

comment:1 by Steven Levine, 18 years ago

Owner: StevenHL removed

comment:2 by Gregg Young, 12 years ago

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

comment:3 by Gregg Young, 12 years ago

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 by Gregg Young, 12 years ago

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

comment:5 by Gregg Young, 12 years ago

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 by Gregg Young, 12 years ago

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

comment:7 by Steven Levine, 11 years ago

Milestone: Release_3.22Release_3.23

comment:8 by Gregg Young, 10 years ago

Milestone: Release_3.23Release_3.24

Ticket retargeted after milestone closed

comment:9 by Gregg Young, 9 years ago

Milestone: Release_3.24Release_3.25

comment:10 by Gregg Young, 6 months ago

Resolution: wontfix
Status: assignedclosed

After trying this I found that desktop restarts create problems

Note: See TracTickets for help on using tickets.