Changeset 257

Show
Ignore:
Timestamp:
02/10/06 04:29:39 (3 years ago)
Author:
hipplej
Message:

Hacked out a minimalistic ConfigurationDialog?. Need to figure out more configuration options, design proper icons, and add necessary changes/additions to VidaliaSettings? to make it do something useful. Removed a frivolous #include from graphframe.cpp.

Location:
trunk/src/gui
Files:
5 added
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/bwgraph/graphframe.cpp

    r256 r257  
    150150  delete painter; 
    151151} 
    152 #include <QtDebug> 
     152 
    153153/** 
    154154 Calls paint function for each line that is supposed to  
  • trunk/src/gui/gui.pri

    r254 r257  
    4949include($$PWD/messagelog/messagelog.pri) 
    5050include($$PWD/bwgraph/bwgraph.pri) 
     51include($$PWD/configdialog/configdialog.pri) 
  • trunk/src/gui/mainwindow.cpp

    r233 r257  
    159159 
    160160  _configAct = new QAction(tr("Configure"), this); 
     161  connect(_configAct, SIGNAL(triggered()), 
     162      this, SLOT(showConfig())); 
    161163   
    162164  _aboutAct = new QAction(tr("About"), this); 
     
    421423} 
    422424 
     425/** Shows Configuration dialog. If the config dialog is already displayed, the 
     426 * existing instance will be brought to the foreground. */ 
     427void 
     428MainWindow::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  
    3636#include "messagelog/messagelog.h" 
    3737#include "bwgraph/bwgraph.h" 
     38#include "configdialog/configdialog.h" 
    3839 
    3940class MainWindow : public QMainWindow 
     
    7071  /** Called when the user selects "Bandwidth Graph" from the menu. */ 
    7172  void showBandwidthGraph(); 
     73  /** Called when the user selects "Configuration" from the menu. */ 
     74  void showConfig(); 
    7275  /** Called when the user exits Vidalia. */ 
    7376  void close(); 
     
    8891  bool _isIntentionalExit; 
    8992  
    90   /** Instantiates a window for logging messages from Tor */ 
     93  /** A MessageLog object which handles logging Tor messages */ 
    9194  MessageLog* _messageLog; 
    92   /** A pointer to a BandwidthGraph object, which displays bw usage */ 
     95  /** A BandwidthGraph object which handles monitoring Tor bandwidth usage */ 
    9396  BandwidthGraph* _bandwidthGraph; 
    9497  /** A TorControl object that handles communication with Tor */ 
  • trunk/src/gui/res/vidalia.qrc

    r228 r257  
    99        <file>tor_about.png</file> 
    1010        <file>tor_logo128.png</file> 
     11        <file>tor_logo48.png</file> 
     12        <file>tor_logo32.png</file> 
    1113        <file>tor_logo16.png</file> 
    1214        <file>tor_logo32.ico</file> 
     
    1416        <file>tor_off32.png</file> 
    1517        <file>tor_off48.png</file> 
     18        <file>tor_off_gray16.png</file> 
     19        <file>tor_on_gray16.png</file> 
    1620        <file>tor_on128.png</file> 
    1721        <file>tor_on32.png</file>