Changeset 81
- Timestamp:
- 01/13/06 02:43:50 (3 years ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 3 modified
-
Vidalia.pro (added)
-
gui/main.cpp (modified) (1 diff)
-
gui/mainwindow.cpp (modified) (2 diffs)
-
gui/mainwindow.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/main.cpp
r68 r81 51 51 52 52 MainWindow mainWin; 53 54 53 return app.exec(); 55 54 } -
trunk/src/gui/mainwindow.cpp
r74 r81 33 33 createActions(); 34 34 createMenus(); 35 35 36 36 /* Create a new TorControl object, used to communicate with and manipulate Tor */ 37 37 _torControl = new TorControl(); … … 96 96 _toolsMenu->addAction(_bandwidthAct); 97 97 _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 98 113 } 99 114 -
trunk/src/gui/mainwindow.h
r74 r81 48 48 void createMenus(); 49 49 void createActions(); 50 void createMenuBar(); 50 51 51 52 TorControl* _torControl; … … 55 56 QMenu* _trayMenu; 56 57 QMenu* _toolsMenu; 57 58 58 59 QAction* _startAct; 59 60 QAction* _stopAct; … … 63 64 QAction* _bandwidthAct; 64 65 QAction* _messageAct; 66 67 /* GUI elements unique on Mac so we can use the system menubar */ 68 #if defined(Q_WS_MAC) 69 QMenuBar* _menuBar; 70 QMenu* _fileMenu; 71 QMenu* _torMenu; 72 QMenu* _helpMenu; 73 #endif 65 74 }; 66 75
