Opened 18 years ago

Closed 12 years ago

Last modified 12 years ago

#65 closed enhancement (fixed)

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

Reported by: Gregg Young Owned by: Gregg Young
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 by Gregg Young, 18 years ago

Milestone: Release_3.5.9

comment:2 by Gregg Young, 18 years ago

Milestone: Release_3.5.9

comment:3 by Gregg Young, 18 years ago

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

Owner: Gregg Young removed

comment:5 by Gregg Young, 17 years ago

Priority: majorminor

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

blockedby: 186
Milestone: Release_3.10

comment:7 by Gregg Young, 17 years ago

Owner: set to Gregg Young
Status: newassigned

comment:8 by Gregg Young, 17 years ago

Milestone: Release_3.10Release_3.11

comment:9 by Steven Levine, 16 years ago

Milestone: Release_3.12Release_3.13

comment:10 by Gregg Young, 16 years ago

Milestone: Release_3.13Release_3.14

comment:11 by Gregg Young, 16 years ago

Milestone: Release_3.14

comment:12 by Gregg Young, 15 years ago

Milestone: Release_3.18

comment:13 by Gregg Young, 12 years ago

Resolution: fixed
Status: assignedclosed

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

comment:14 by Gregg Young, 12 years ago

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