SF.net SVN: fclient: [545] trunk/fclient/src/fclient/tpls
Status: Pre-Alpha
Brought to you by:
jurner
From: <jU...@us...> - 2008-07-08 10:47:01
|
Revision: 545 http://fclient.svn.sourceforge.net/fclient/?rev=545&view=rev Author: jUrner Date: 2008-07-08 03:46:06 -0700 (Tue, 08 Jul 2008) Log Message: ----------- added template for fcp connection interface Added Paths: ----------- trunk/fclient/src/fclient/tpls/Ui_ViewConnectionTpl.py trunk/fclient/src/fclient/tpls/ViewConnectionTpl.ui Added: trunk/fclient/src/fclient/tpls/Ui_ViewConnectionTpl.py =================================================================== --- trunk/fclient/src/fclient/tpls/Ui_ViewConnectionTpl.py (rev 0) +++ trunk/fclient/src/fclient/tpls/Ui_ViewConnectionTpl.py 2008-07-08 10:46:06 UTC (rev 545) @@ -0,0 +1,74 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file '/home/me/src/proj/fclient/trunk/fclient/src/fclient/tpls/ViewConnectionTpl.ui' +# +# Created: Tue Jul 8 11:16:14 2008 +# by: PyQt4 UI code generator 4.3.3 +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore, QtGui + +class Ui_ViewConnectionTpl(object): + def setupUi(self, ViewConnectionTpl): + ViewConnectionTpl.setObjectName("ViewConnectionTpl") + ViewConnectionTpl.resize(QtCore.QSize(QtCore.QRect(0,0,533,363).size()).expandedTo(ViewConnectionTpl.minimumSizeHint())) + + self.gridlayout = QtGui.QGridLayout(ViewConnectionTpl) + self.gridlayout.setObjectName("gridlayout") + + self.hboxlayout = QtGui.QHBoxLayout() + self.hboxlayout.setObjectName("hboxlayout") + + self.vboxlayout = QtGui.QVBoxLayout() + self.vboxlayout.setObjectName("vboxlayout") + + self.label = QtGui.QLabel(ViewConnectionTpl) + self.label.setObjectName("label") + self.vboxlayout.addWidget(self.label) + + self.label_2 = QtGui.QLabel(ViewConnectionTpl) + self.label_2.setObjectName("label_2") + self.vboxlayout.addWidget(self.label_2) + self.hboxlayout.addLayout(self.vboxlayout) + + self.vboxlayout1 = QtGui.QVBoxLayout() + self.vboxlayout1.setObjectName("vboxlayout1") + + self.edConnectionHost = QtGui.QLineEdit(ViewConnectionTpl) + self.edConnectionHost.setObjectName("edConnectionHost") + self.vboxlayout1.addWidget(self.edConnectionHost) + + self.spinConnectionPort = QtGui.QSpinBox(ViewConnectionTpl) + self.spinConnectionPort.setObjectName("spinConnectionPort") + self.vboxlayout1.addWidget(self.spinConnectionPort) + self.hboxlayout.addLayout(self.vboxlayout1) + self.gridlayout.addLayout(self.hboxlayout,0,0,1,1) + + spacerItem = QtGui.QSpacerItem(515,111,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding) + self.gridlayout.addItem(spacerItem,1,0,1,1) + + self.btConnect = QtGui.QPushButton(ViewConnectionTpl) + self.btConnect.setCheckable(True) + self.btConnect.setObjectName("btConnect") + self.gridlayout.addWidget(self.btConnect,2,0,1,1) + + self.retranslateUi(ViewConnectionTpl) + QtCore.QMetaObject.connectSlotsByName(ViewConnectionTpl) + + def retranslateUi(self, ViewConnectionTpl): + ViewConnectionTpl.setWindowTitle(QtGui.QApplication.translate("ViewConnectionTpl", "Form", None, QtGui.QApplication.UnicodeUTF8)) + self.label.setText(QtGui.QApplication.translate("ViewConnectionTpl", "Host:", None, QtGui.QApplication.UnicodeUTF8)) + self.label_2.setText(QtGui.QApplication.translate("ViewConnectionTpl", "Port:", None, QtGui.QApplication.UnicodeUTF8)) + self.btConnect.setText(QtGui.QApplication.translate("ViewConnectionTpl", "Connect", None, QtGui.QApplication.UnicodeUTF8)) + + + +if __name__ == "__main__": + import sys + app = QtGui.QApplication(sys.argv) + ViewConnectionTpl = QtGui.QWidget() + ui = Ui_ViewConnectionTpl() + ui.setupUi(ViewConnectionTpl) + ViewConnectionTpl.show() + sys.exit(app.exec_()) Added: trunk/fclient/src/fclient/tpls/ViewConnectionTpl.ui =================================================================== --- trunk/fclient/src/fclient/tpls/ViewConnectionTpl.ui (rev 0) +++ trunk/fclient/src/fclient/tpls/ViewConnectionTpl.ui 2008-07-08 10:46:06 UTC (rev 545) @@ -0,0 +1,75 @@ +<ui version="4.0" > + <class>ViewConnectionTpl</class> + <widget class="QWidget" name="ViewConnectionTpl" > + <property name="geometry" > + <rect> + <x>0</x> + <y>0</y> + <width>533</width> + <height>363</height> + </rect> + </property> + <property name="windowTitle" > + <string>Form</string> + </property> + <layout class="QGridLayout" > + <item row="0" column="0" > + <layout class="QHBoxLayout" > + <item> + <layout class="QVBoxLayout" > + <item> + <widget class="QLabel" name="label" > + <property name="text" > + <string>Host:</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2" > + <property name="text" > + <string>Port:</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <layout class="QVBoxLayout" > + <item> + <widget class="QLineEdit" name="edConnectionHost" /> + </item> + <item> + <widget class="QSpinBox" name="spinConnectionPort" /> + </item> + </layout> + </item> + </layout> + </item> + <item row="1" column="0" > + <spacer> + <property name="orientation" > + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" > + <size> + <width>515</width> + <height>111</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="0" > + <widget class="QPushButton" name="btConnect" > + <property name="text" > + <string>Connect</string> + </property> + <property name="checkable" > + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections/> +</ui> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |