Opened 13 years ago

Last modified 4 years ago

#45 assigned enhancement

Use RWS to get WPS association icons for files in containers

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


Change History (9)

comment:1 Changed 13 years ago by stevenhl

  • Owner StevenHL deleted

comment:2 Changed 7 years ago by gyoung

  • Milestone set to Release_3.21
  • Owner set to gyoung
  • Status changed from new to assigned

comment:3 Changed 7 years ago by gyoung

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 7 years ago by gyoung

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

comment:5 Changed 7 years ago by gyoung

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 7 years ago by gyoung

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

comment:7 Changed 6 years ago by stevenhl

  • Milestone changed from Release_3.22 to Release_3.23

comment:8 Changed 4 years ago by gyoung

  • Milestone changed from Release_3.23 to Release_3.24

Ticket retargeted after milestone closed

comment:9 Changed 4 years ago by gyoung

  • Milestone changed from Release_3.24 to Release_3.25
Note: See TracTickets for help on using tickets.