Opened 13 years ago

Closed 7 years ago

Last modified 7 years ago

#65 closed enhancement (fixed)

Split user added commands association, toolbar entries from FM2 base entries

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

Description

Move the base entries to code or ini file with their own assignment space (eg 4000-4100 are fm2 designated commands). Need an install process that can parse and split existing files. Should be able to edit parameters etc on FM2 commands. This would facilitate our updating of commands associations and toolboxes without effecting user modifications. Perhaps we should assign # at creation so that moving stuff around doesn't effect toolbars. I am not clear why commands like bldlevel, pstat and rmview aren't base commands

Change History (14)

comment:1 Changed 13 years ago by gyoung

  • Milestone set to Release_3.5.9

comment:2 Changed 13 years ago by gyoung

  • Milestone Release_3.5.9 deleted

comment:3 Changed 13 years ago by gyoung

customizations. I now believe the only practical way to do this is by

moving all this stuff to the ini file.

This is OK, but keep in mind that the INIs are a scarce resource. The profile manager code keeps the data for all INIs in shared memory and the buffer appears to be shared across all INIs.

  1. We add all the FM2 provided stuff directly.

OK.

  1. We create a utility or cmd that will parse the user files and add all

their existing additions. We could try to incorporate the ability for it to "remember" when the resource # has to be changed and to change it in the tls designations.

OK.

  1. For things that have order (ie commands or associations) we add an

ordinal entry that tells fm2 the order.

OK.

  1. For commands we add a resource number so each command has a number

that can be used in a toolbar that will never change.

OK.

  1. A next resource

# ini entry would facilitate keeping track of this number. If something is deleted its number would not be reused but since it appears we have 1000 resource numbers reserved this should not be a problem.

Worst case we could implement some sort of renumbering scheme.

  1. I see

this as a problem for archiver.bb2 where editing the file is much easier than using the dialog (for me at least)

We probably need to revisit the UI design. A clone button can be useful to help save a lot of extra typing.

ini. 10. After the transition any new stuff we add would simply be added to the ini as new kays on install.

How do you plan to keep track of what's been deleted from the standard set by the user?

Is this a reasonable and doable plan? Are there thing I am missing?

It's doable, but non-trivial. It's more of an algorithm problem than a data storage problem. Once you have a design that handles all the edge conditions, it's not going to matter whether the data is kept in the inis are in text files.

comment:4 Changed 12 years ago by gyoung

  • Owner gyoung deleted

comment:5 Changed 12 years ago by gyoung

  • Priority changed from major to minor

I think a better way to do this would be to add sub menus with our commands. We could add a tool in the commands dialog to remove the duplicates from the root menu if the user wished. We should also update the command dialog so it will update the resource number on any user added icons in toolbars. We could just add a new .dat file for these. This would make it easy to do additional toolbars since we would assign the resource numbers and could even add icons to fm3res.dll for them. By using sub menus having duplicates would not be very noticeable and would solve the issue of user changes made to the base file. We could then add notebook page(s)(perhaps a separate commands notebook) where our additions could be removed or added to the menu by check boxes. We should check on startup that the files for each item is found and if not remove it from the menu.

comment:6 Changed 12 years ago by gyoung

  • blockedby set to 186
  • Milestone set to Release_3.10

comment:7 Changed 12 years ago by gyoung

  • Owner set to gyoung
  • Status changed from new to assigned

comment:8 Changed 12 years ago by gyoung

  • Milestone changed from Release_3.10 to Release_3.11

comment:9 Changed 11 years ago by stevenhl

  • Milestone changed from Release_3.12 to Release_3.13

comment:10 Changed 11 years ago by gyoung

  • Milestone changed from Release_3.13 to Release_3.14

comment:11 Changed 11 years ago by gyoung

  • Milestone Release_3.14 deleted

comment:12 Changed 10 years ago by gyoung

  • Milestone set to Release_3.18

comment:13 Changed 7 years ago by gyoung

  • Resolution set to fixed
  • Status changed from assigned to closed

Moving associations and commands to the INI file has resolved the issues related to this ticket

comment:14 Changed 7 years ago by gyoung

  • Milestone set to Release_3.21
Note: See TracTickets for help on using tickets.