Menu

#124 Ui improvement

open
None
5
2008-07-17
2008-07-08
No

Could you please improve ui of program

1. To add menu to tabs when clicking on it headers with
- add new
- reload
- close all other tabs
- close

2. To make X sign on tab header white and placed in red square as it done in Mozilla Firefox

3. To add Ctrl+T with the same function as Ctrl+N
To Add Ctrl+W with _Close_ function(as it in Mozilla, Explorer and IE)

Discussion

  • gnschmidt

    gnschmidt - 2008-07-17
    • assigned_to: nobody --> gnschmidt
     
  • gnschmidt

    gnschmidt - 2008-07-21

    Logged In: YES
    user_id=1298822
    Originator: NO

    Hi Cuchuk,

    1. Tabs first: I have implemented this in part, but the framework's notebook class doesn't handle the relevant events correctly.

    Not sure what to do about this - the docking library component hasn't seen any development effort in months... I wouldn't want to drop it though as I do like the fact that it allows tab splitting.

    As it stands the MyNotebook class includes the following handler:

    void MyNotebook::OnRightDown ( wxMouseEvent& event )
    {
    rightClickPage = HitTest ( wxPoint ( event.GetX(), event.GetY() ) );
    if ( rightClickPage == -1 )
    {
    event.Skip();
    return;
    }
    SetSelection ( rightClickPage );
    wxMenu contextMenu;
    contextMenu.Append ( ID_MENU_CLOSE, _ ( "Close" ) );
    contextMenu.Append ( ID_MENU_CLOSE_ALL, _ ( "Close all" ) );
    contextMenu.Enable ( ID_MENU_CLOSE_ALL, ( this->GetPageCount() > 1 ) );
    PopupMenu ( &contextMenu, wxPoint ( -1, -1 ) );
    }

    It should also close tabs when middle-clicking and doesn't :-|

    2. Firefox-look X sign on tab
    I'm afraid I have no control over this. It's an owner-drawn control. It's skinnable I think but I'm no artist and wouldn't know where to start with these.

    3. Ctrl+T yes, I'm with you there. Wouldn't it be good just to have a completely empty tab though (without popping up the New Doc template dialog?). Do you have a suggestion for shortcuts that would cover the existing Tag+Attr, Just Tags, Hide Tags+Attr functions?

    Ctrl+W is tricky: I think people provide this shortcut because it's what Word uses. (A bit like Scite's Ctrl+H for Find & Replace.) The difficulty is that I can only have one shortcut per menu item. One very strange limitation of the framework is that I can't manually add shortcuts to the ones automatically generated when the menu is shown, so it's either Ctrl+F4 or Ctrl+W. If I change Ctrl+F4 to Ctrl+W, what would be a good shortcut for toggling word wrap on/off?

    Thanks for your excellent suggestions! (And apologies as ever for the long delay in getting back to you.)
    Gerald

     
  • Anonymous

    Anonymous - 2008-07-22

    Logged In: YES
    user_id=1669160
    Originator: YES

    >If I change Ctrl+F4 to Ctrl+W, what would be a good shortcut for
    toggling word wrap on/off?

    Yes that's will be great!!!

    Siarhei

     

Log in to post a comment.