Changeset 257
- Timestamp:
- 02/10/06 04:29:39 (3 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 5 added
- 5 modified
-
bwgraph/graphframe.cpp (modified) (1 diff)
-
configdialog (added)
-
configdialog/configdialog.cpp (added)
-
configdialog/configdialog.h (added)
-
configdialog/configdialog.pri (added)
-
configdialog/configdialog.ui (added)
-
gui.pri (modified) (1 diff)
-
mainwindow.cpp (modified) (2 diffs)
-
mainwindow.h (modified) (3 diffs)
-
res/vidalia.qrc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/bwgraph/graphframe.cpp
r256 r257 150 150 delete painter; 151 151 } 152 #include <QtDebug> 152 153 153 /** 154 154 Calls paint function for each line that is supposed to -
trunk/src/gui/gui.pri
r254 r257 49 49 include($$PWD/messagelog/messagelog.pri) 50 50 include($$PWD/bwgraph/bwgraph.pri) 51 include($$PWD/configdialog/configdialog.pri) -
trunk/src/gui/mainwindow.cpp
r233 r257 159 159 160 160 _configAct = new QAction(tr("Configure"), this); 161 connect(_configAct, SIGNAL(triggered()), 162 this, SLOT(showConfig())); 161 163 162 164 _aboutAct = new QAction(tr("About"), this); … … 421 423 } 422 424 425 /** Shows Configuration dialog. If the config dialog is already displayed, the 426 * existing instance will be brought to the foreground. */ 427 void 428 MainWindow::showConfig() 429 { 430 static ConfigDialog* configDialog = new ConfigDialog(this); 431 if(!configDialog->isVisible()) { 432 configDialog->show(); 433 } else { 434 configDialog->activateWindow(); 435 configDialog->raise(); 436 } 437 } 438 -
trunk/src/gui/mainwindow.h
r233 r257 36 36 #include "messagelog/messagelog.h" 37 37 #include "bwgraph/bwgraph.h" 38 #include "configdialog/configdialog.h" 38 39 39 40 class MainWindow : public QMainWindow … … 70 71 /** Called when the user selects "Bandwidth Graph" from the menu. */ 71 72 void showBandwidthGraph(); 73 /** Called when the user selects "Configuration" from the menu. */ 74 void showConfig(); 72 75 /** Called when the user exits Vidalia. */ 73 76 void close(); … … 88 91 bool _isIntentionalExit; 89 92 90 /** Instantiates a window for logging messages from Tor*/93 /** A MessageLog object which handles logging Tor messages */ 91 94 MessageLog* _messageLog; 92 /** A pointer to a BandwidthGraph object, which displays bwusage */95 /** A BandwidthGraph object which handles monitoring Tor bandwidth usage */ 93 96 BandwidthGraph* _bandwidthGraph; 94 97 /** A TorControl object that handles communication with Tor */ -
trunk/src/gui/res/vidalia.qrc
r228 r257 9 9 <file>tor_about.png</file> 10 10 <file>tor_logo128.png</file> 11 <file>tor_logo48.png</file> 12 <file>tor_logo32.png</file> 11 13 <file>tor_logo16.png</file> 12 14 <file>tor_logo32.ico</file> … … 14 16 <file>tor_off32.png</file> 15 17 <file>tor_off48.png</file> 18 <file>tor_off_gray16.png</file> 19 <file>tor_on_gray16.png</file> 16 20 <file>tor_on128.png</file> 17 21 <file>tor_on32.png</file>
