Changeset 2227

Show
Ignore:
Timestamp:
12/17/07 19:20:52 (8 months ago)
Author:
edmanm
Message:

r2323@lysithea: edmanm | 2007-12-17 19:20:44 -0500
Add arma's bridge link label thingy and help text.

Location:
trunk/src/vidalia
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/vidalia/config/networkpage.cpp

    r2186 r2227  
    6161  connect(Vidalia::torControl(), SIGNAL(disconnected()), 
    6262          this, SLOT(onDisconnected())); 
    63    
     63  connect(ui.lblHelpFindBridges, SIGNAL(linkActivated(QString)), 
     64          this, SLOT(onLinkActivated(QString))); 
     65           
    6466  ui.lblNoBridgeSupport->setVisible(false); 
    6567  ui.lineHttpProxyAddress->setValidator(new DomainValidator(this)); 
     
    126128  ui.grpBridgeSettings->setEnabled(true); 
    127129  ui.lblNoBridgeSupport->setVisible(false); 
     130} 
     131 
     132/** Called when a link in a label is clicked. <b>url</b> is the target of 
     133 * the clicked link. */ 
     134void 
     135NetworkPage::onLinkActivated(const QString &url) 
     136{ 
     137  emit helpRequested(url); 
    128138} 
    129139 
  • trunk/src/vidalia/config/networkpage.h

    r2186 r2227  
    8080   * indicating the user's Tor does not support bridges. */ 
    8181  void onDisconnected(); 
     82  /** Called when a link in a label is clicked. <b>url</b> is the target of 
     83   * the clicked link.*/ 
     84  void onLinkActivated(const QString &url); 
    8285 
    8386private: 
  • trunk/src/vidalia/config/networkpage.ui

    r2186 r2227  
    283283      </item> 
    284284      <item> 
    285        <widget class="QLabel" name="lblAddBridge" > 
    286         <property name="sizePolicy" > 
    287          <sizepolicy> 
    288           <hsizetype>7</hsizetype> 
    289           <vsizetype>5</vsizetype> 
    290           <horstretch>0</horstretch> 
    291           <verstretch>0</verstretch> 
    292          </sizepolicy> 
    293         </property> 
    294         <property name="text" > 
    295          <string>Add a Bridge:</string> 
    296         </property> 
    297        </widget> 
     285       <layout class="QHBoxLayout" > 
     286        <property name="margin" > 
     287         <number>0</number> 
     288        </property> 
     289        <property name="spacing" > 
     290         <number>6</number> 
     291        </property> 
     292        <item> 
     293         <widget class="QLabel" name="lblAddBridge" > 
     294          <property name="text" > 
     295           <string>Add a Bridge:</string> 
     296          </property> 
     297         </widget> 
     298        </item> 
     299        <item> 
     300         <spacer> 
     301          <property name="orientation" > 
     302           <enum>Qt::Horizontal</enum> 
     303          </property> 
     304          <property name="sizeHint" > 
     305           <size> 
     306            <width>40</width> 
     307            <height>20</height> 
     308           </size> 
     309          </property> 
     310         </spacer> 
     311        </item> 
     312        <item> 
     313         <widget class="QLabel" name="lblHelpFindBridges" > 
     314          <property name="cursor" > 
     315           <cursor>13</cursor> 
     316          </property> 
     317          <property name="text" > 
     318           <string>&lt;a href="bridges.finding">How do I find a bridge?&lt;/a></string> 
     319          </property> 
     320         </widget> 
     321        </item> 
     322       </layout> 
    298323      </item> 
    299324      <item> 
  • trunk/src/vidalia/help/content/content.qrc

    r2186 r2227  
    1111    <file>en/netview.html</file> 
    1212    <file>en/links.html</file> 
     13    <file>en/bridges.html</file> 
    1314    <!-- German --> 
    1415    <file>de/contents.xml</file> 
  • trunk/src/vidalia/help/content/en/config.html

    r2186 r2227  
    102102    information about other relays. If connections to normal Tor relays are 
    103103    also blocked, then you will need to learn a bridge relay address somehow 
    104     and add it here. 
     104    and add it here. See the help topic on <a href="bridges.html#finding">finding 
     105    bridge relays</a> for more information on how to learn new bridge relay 
     106    addresses and fingerprints. 
    105107  </li> 
    106108</ul> 
  • trunk/src/vidalia/help/content/en/contents.xml

    r2186 r2227  
    5050    <Topic id="exitpolicy" name="Exit Policies" html="server.html" section="exitpolicy"/> 
    5151  </Topic> 
     52  <Topic id="bridges" name="Bridge Relays" html="bridges.html"> 
     53    <Topic id="about" name="What are bridge relays?" html="bridges.html" section="about"/> 
     54    <Topic id="finding" name="How do I find a bridge relay?" html="bridges.html" section="finding"/> 
     55  </Topic> 
    5256  <Topic id="troubleshooting" name="Troubleshooting" html="troubleshooting.html"> 
    5357    <Topic id="start" name="I Can't Start Tor" html="troubleshooting.html" section="start"/>