Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Tidy main context menu
MortenMacFly:
--- Quote from: dmoore on September 04, 2012, 09:05:11 pm ---So what would be so bad about this?
--- End quote ---
I am not saying its bad, I just want to understand your idea.
So - there are many ways, some are:
* use menu addresses as ID's, not provided by the plugins
* use menu labels (including parent labels) for ID's, not provided by the plugins
* use an ID provided by a plugin (might interfere with another)
* use some kind of global UUID...for all these cases I am not sure how easy it would be to store e.g. the settings for these ID's so you can manipulate menus across C::B session. The overall goal would be to allow the user to modify the menu items (s)he want to see, any maybe even the order. You brought in dynamic menu labels (like for spell checking) which is something I did not even consider.
oBFusCATed:
We have lots of them, example: watches, data breakpoints, various find .... of...
dmoore:
--- Quote from: MortenMacFly on September 04, 2012, 10:37:33 pm ---
* use an ID provided by a plugin (might interfere with another)
--- End quote ---
could use the plugin ID as a prefix: e.g. "codesnippets/AddSnippet"
Alpha:
Just to let people know, I agree that this registering system is better than the current system, however, I do not yet have any very good ideas of how to create it (nor really quite enough willpower :)). I am still working on reorganizing the menu using the current system, and will hopefully come up with something a bit more efficient (for use until such a time as someone implements menu registration).
(If anyone here has decided to work on menu registration now, please tell me so I do not waste time with writing code that will immediately become obsolete.)
oBFusCATed:
--- Quote from: Alpha on September 05, 2012, 01:31:39 am ---(If anyone here has decided to work on menu registration now, please tell me so I do not waste time with writing code that will immediately become obsolete.)
--- End quote ---
Don't waste time if you don't write a menu registration system. If dmoore hasn't implemented such system until I get some free time, I'll do it, as I have some ideas :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version