
W dniu 14 marca 2010 17:32 użytkownik Jon Cruz <jon@...18...> napisał:
There will be a task picker button that goes in the toolbar. It is not done yet, so will probably go away. So in the final result we will have it in *both* places, just with different widgets exposing the functionality.
Fixing (1) requires removing the combo box from the toolbar.
The menu item will take a bit more coding to fit in, and will need to go into XML files, etc. That is why it was not done first. We needed to get the behavior exposed to allow those who wanted to test it and give feedback to have an easy way to do so. They were able to do so, and it has been quite helpful. So this will probably go out very soon.
You can look at the existing view mode radio buttons to get a start. You need to:
1. Add a new ZoomVerb for each UI layout in verbs.cpp:2566 and verbs.h 2. Modify ZoomVerb::perform in verbs.cpp:1556 to switch the layout 3. Update the function update_view_menu in interface.cpp:692 so that the state of your radio button menus is kept in sync with the desktop state 4. Modify menus-skeleton.h and add the new verbs in the appropriate place
Regards, Krzysztof