Changeset 69 for remote_control


Ignore:
Timestamp:
06/27/10 05:53:05 (11 years ago)
Author:
sc
Message:

client_interface_qt:

qt4_form:

  • "Puzzlebox Brainstorms" label turned into URL link
Location:
remote_control
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • remote_control/interface/qt4_form.py

    r67 r69  
    33# Form implementation generated from reading ui file 'qt4_form.ui' 
    44# 
    5 # Created: Sat Jun 26 00:39:52 2010 
     5# Created: Sat Jun 26 18:47:28 2010 
    66#      by: PyQt4 UI code generator 4.7.3 
    77# 
     
    2121                self.textLabelTitle = QtGui.QLabel(Form) 
    2222                self.textLabelTitle.setGeometry(QtCore.QRect(300, 0, 181, 61)) 
     23                self.textLabelTitle.setTextFormat(QtCore.Qt.AutoText) 
    2324                self.textLabelTitle.setWordWrap(False) 
     25                self.textLabelTitle.setOpenExternalLinks(True) 
    2426                self.textLabelTitle.setObjectName("textLabelTitle") 
    2527                self.textLabelBluetooth = QtGui.QLabel(Form) 
     
    10421044        def retranslateUi(self, Form): 
    10431045                Form.setWindowTitle(QtGui.QApplication.translate("Form", "Puzzlebox Brainstorms", None, QtGui.QApplication.UnicodeUTF8)) 
    1044                 self.textLabelTitle.setText(QtGui.QApplication.translate("Form", "<p align=\"center\">Puzzlebox\n" 
    1045 "Brainstorms</p>", None, QtGui.QApplication.UnicodeUTF8)) 
     1046                self.textLabelTitle.setText(QtGui.QApplication.translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" 
     1047"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" 
     1048"p, li { white-space: pre-wrap; }\n" 
     1049"</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" 
     1050"<p align=\"center\" style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://brainstorms.puzzlebox.info\">Puzzlebox<br>Brainstorms</a></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) 
    10461051                self.textLabelBluetooth.setText(QtGui.QApplication.translate("Form", "<p align=\"center\">Bluetooth</p>", None, QtGui.QApplication.UnicodeUTF8)) 
    10471052                self.textLabelBluetoothStatus.setText(QtGui.QApplication.translate("Form", "<p align=\"center\">Status: Disconnected</p>", None, QtGui.QApplication.UnicodeUTF8)) 
  • remote_control/interface/qt4_form.ui

    r67 r69  
    4141   </property> 
    4242   <property name="text"> 
    43     <string>&lt;p align=&quot;center&quot;&gt;Puzzlebox 
    44 Brainstorms&lt;/p&gt;</string> 
     43    <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt; 
     44&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt; 
     45p, li { white-space: pre-wrap; } 
     46&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt; 
     47&lt;p align=&quot;center&quot; style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;a href=&quot;http://brainstorms.puzzlebox.info&quot;&gt;Puzzlebox&lt;br&gt;Brainstorms&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> 
     48   </property> 
     49   <property name="textFormat"> 
     50    <enum>Qt::AutoText</enum> 
    4551   </property> 
    4652   <property name="wordWrap"> 
    4753    <bool>false</bool> 
     54   </property> 
     55   <property name="openExternalLinks"> 
     56    <bool>true</bool> 
    4857   </property> 
    4958  </widget> 
  • remote_control/puzzlebox_brainstorms_client_interface_qt.py

    r68 r69  
    181181                self.brainstormsClientTcpSocket = QtNetwork.QTcpSocket(self) 
    182182                 
    183                 self.brainstormsClientTcpSocket.readyRead.connect(self.printReply) 
     183                #self.brainstormsClientTcpSocket.readyRead.connect(self.printReply) 
    184184                self.brainstormsClientTcpSocket.error.connect(self.displayError) 
     185                 
     186                 
     187                self.thinkgearClientTcpSocket = QtNetwork.QTcpSocket(self) 
     188                 
     189                self.thinkgearClientTcpSocket.readyRead.connect(self.printReply) 
     190                self.thinkgearClientTcpSocket.error.connect(self.displayError) 
    185191         
    186192         
Note: See TracChangeset for help on using the changeset viewer.