Changeset 272
- Timestamp:
- 02/12/06 18:24:44 (3 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 3 modified
-
configdialog/configdialog.cpp (modified) (2 diffs)
-
configdialog/configdialog.h (modified) (3 diffs)
-
mainwindow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/configdialog/configdialog.cpp
r270 r272 25 25 26 26 /** Constructor */ 27 ConfigDialog::ConfigDialog( QWidget* parent)27 ConfigDialog::ConfigDialog(TorControl *torControl, QWidget* parent) 28 28 : QDialog(parent) 29 29 { … … 31 31 ui.setupUi(this); 32 32 ui.lineControlPort->setValidator(new QIntValidator(0, 65535, this)); 33 34 /* A previously-created TorControl object used to talk to Tor */ 35 _torControl = torControl; 33 36 34 37 /* Create necessary ConfigDialog QObjects */ -
trunk/src/gui/configdialog/configdialog.h
r269 r272 29 29 #include "ui_configdialog.h" 30 30 31 #include "../../control/torcontrol.h" 31 32 #include "../../config/vidaliasettings.h" 32 33 … … 37 38 public: 38 39 /** Default Constructor */ 39 ConfigDialog( QWidget *parent = 0);40 ConfigDialog(TorControl *torControl, QWidget *parent = 0); 40 41 /** Default Destructor */ 41 42 ~ConfigDialog(); … … 70 71 void saveAdvancedSettings(); 71 72 73 /** A TorControl object used to talk to Tor. */ 74 TorControl* _torControl; 72 75 /** A VidaliaSettings object taht handles getting/saving settings */ 73 76 VidaliaSettings* _settings; -
trunk/src/gui/mainwindow.cpp
r270 r272 435 435 MainWindow::showConfig() 436 436 { 437 static ConfigDialog* configDialog = new ConfigDialog( this);437 static ConfigDialog* configDialog = new ConfigDialog(_torControl, this); 438 438 if(!configDialog->isVisible()) { 439 439 configDialog->show();
