Changeset 201
- Timestamp:
- 01/28/06 00:52:54 (3 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 3 modified
-
main.cpp (modified) (3 diffs)
-
mainwindow.cpp (modified) (12 diffs)
-
mainwindow.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/main.cpp
r95 r201 1 1 /**************************************************************** 2 * $Id$3 *4 2 * Vidalia is distributed under the following license: 5 3 * … … 22 20 ****************************************************************/ 23 21 22 /** \file main.cpp 23 * \version $Id$ 24 * Contains the main Vidalia entry point. 25 * On Mac, it will use the native Mac style and use the Plastique style on all 26 * other platforms. 27 */ 28 24 29 #include <QApplication> 25 30 … … 32 37 #include "mainwindow.h" 33 38 39 40 /** Main application entry point. */ 34 41 int 35 42 main(int argc, char *argv[]) -
trunk/src/gui/mainwindow.cpp
r197 r201 1 1 /**************************************************************** 2 * $Id$3 *4 2 * Vidalia is distributed under the following license: 5 3 * … … 22 20 ****************************************************************/ 23 21 22 /** \file mainwindow.cpp 23 * \version $Id$ 24 * 25 * Implements the main window. The main window is a hidden window that serves 26 * as the parent of the tray icon and popup menu, as well as other application 27 * dialogs. 28 */ 29 24 30 #include <QtGui> 25 31 … … 38 44 39 45 40 /** Default constructor */ 46 /** Default constructor. It installs an icon in the system tray area and 47 * creates the popup menu associated with that icon. */ 41 48 MainWindow::MainWindow() 42 49 { … … 123 130 } 124 131 125 /* 126 Create and bind actions to events. Setup for initial 127 tray menu configuration. 128 */ 132 /** Create and bind actions to events. Setup for initial 133 * tray menu configuration. */ 129 134 void 130 135 MainWindow::createActions() … … 159 164 } 160 165 161 /* 162 Creates a QMenu object that contains QActions163 which compose the system tray menu.164 */166 /** 167 * Creates a QMenu object that contains QActions 168 * which compose the system tray menu. 169 */ 165 170 void 166 171 MainWindow::createMenus() … … 214 219 } 215 220 216 /** Removes the menubar . */221 /** Removes the menubar (Mac only). */ 217 222 void 218 223 MainWindow::removeMenuBar() … … 225 230 } 226 231 227 /* 228 Starts Tor, modifies tray icon and tray menu appropriately 229 */ 232 /** Attempts to start Tor. If starting Tor fails, then it will display a 233 * message box giving the user an error message regarding why Tor failed to 234 * start. 235 * \sa started() 236 */ 230 237 void 231 238 MainWindow::start() … … 273 280 } 274 281 275 /* 276 Stops Tor 277 */ 282 /** Disconnects the control socket and stops the Tor process. */ 278 283 void 279 284 MainWindow::stop() … … 363 368 } 364 369 365 /* 366 Creates an instance of AboutDialog and shows it 367 */ 370 /** Creates an instance of AboutDialog and shows it. If the About dialog is 371 * already displayed, the existing instance will be brought to the foreground. */ 368 372 void 369 373 MainWindow::showAbout() … … 378 382 } 379 383 380 /* 381 Shows Message Log 382 */ 384 /** Shows Message Log. If the message log is already displayed, the existing 385 * instance will be brought to the foreground. */ 383 386 void 384 387 MainWindow::showMessageLog() … … 392 395 } 393 396 394 /* 395 Shows Bandwidth Graph 396 */ 397 /** Shows Bandwidth Graph. If the bandwidth graph is already displayed, the 398 * existing instance will be brought to the foreground. */ 397 399 void 398 400 MainWindow::showBandwidthGraph() … … 405 407 } 406 408 } 409 -
trunk/src/gui/mainwindow.h
r188 r201 24 24 #ifndef _MAINWINDOW_H 25 25 #define _MAINWINDOW_H 26 27 /** \file mainwindow.h 28 * \version $Id$ 29 */ 26 30 27 31 #include <QMainWindow>
