Show
Ignore:
Timestamp:
01/13/06 02:43:50 (3 years ago)
Author:
edmanm
Message:

Make Vidalia's name appear properly-cased on Mac;
Let Vidalia have a menu in the menubar on Mac.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/mainwindow.cpp

    r74 r81  
    3333  createActions(); 
    3434  createMenus(); 
    35   
     35   
    3636  /* Create a new TorControl object, used to communicate with and manipulate Tor */ 
    3737  _torControl = new TorControl(); 
     
    9696  _toolsMenu->addAction(_bandwidthAct); 
    9797  _toolsMenu->addAction(_messageAct); 
     98 
     99#if defined(Q_WS_MAC) 
     100  /* The File, Help, and Configure menus will get merged into the application 
     101   * menu by Qt. */ 
     102  _menuBar = new QMenuBar(); 
     103  _fileMenu = _menuBar->addMenu(tr("File")); 
     104  _fileMenu->addAction(_exitAct); 
     105  _torMenu = _menuBar->addMenu(tr("Tor")); 
     106  _torMenu->addAction(_startAct); 
     107  _torMenu->addAction(_stopAct); 
     108  _torMenu->addAction(_configAct); 
     109  _menuBar->addMenu(_toolsMenu); 
     110  _helpMenu = _menuBar->addMenu(tr("Help")); 
     111  _helpMenu->addAction(_aboutAct); 
     112#endif 
    98113} 
    99114