Skip to content

Commit

Permalink
Applied patch from ticket #887
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@7825 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Dec 31, 2007
1 parent ef6800b commit 7e2d6a8
Show file tree
Hide file tree
Showing 2 changed files with 172 additions and 161 deletions.
82 changes: 56 additions & 26 deletions python/plugins/plugin_installer/gui.py
Expand Up @@ -2,66 +2,96 @@

# Form implementation generated from reading ui file 'gui.ui'
#
# Created: Sat Nov 17 14:57:42 2007
# by: PyQt4 UI code generator 4.1.1
# Created: Sun Dec 30 18:07:25 2007
# by: PyQt4 UI code generator 4.3.3
#
# WARNING! All changes made in this file will be lost!

import sys
from PyQt4 import QtCore, QtGui

class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,937,420).size()).expandedTo(Dialog.minimumSizeHint()))
Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,761,471).size()).expandedTo(Dialog.minimumSizeHint()))

self.vboxlayout = QtGui.QVBoxLayout(Dialog)
self.vboxlayout.setObjectName("vboxlayout")

self.vboxlayout1 = QtGui.QVBoxLayout()
self.vboxlayout1.setObjectName("vboxlayout1")

self.hboxlayout = QtGui.QHBoxLayout()
self.hboxlayout.setObjectName("hboxlayout")

self.label = QtGui.QLabel(Dialog)
self.label.setGeometry(QtCore.QRect(10,20,501,21))
self.label.setObjectName("label")
self.hboxlayout.addWidget(self.label)

self.buttonBrowse = QtGui.QPushButton(Dialog)

sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.buttonBrowse.sizePolicy().hasHeightForWidth())
self.buttonBrowse.setSizePolicy(sizePolicy)
self.buttonBrowse.setObjectName("buttonBrowse")
self.hboxlayout.addWidget(self.buttonBrowse)
self.vboxlayout1.addLayout(self.hboxlayout)

self.treePlugins = QtGui.QTreeWidget(Dialog)
self.treePlugins.setAlternatingRowColors(True)
self.treePlugins.setItemsExpandable(False)
self.treePlugins.setObjectName("treePlugins")
self.vboxlayout1.addWidget(self.treePlugins)

self.hboxlayout1 = QtGui.QHBoxLayout()
self.hboxlayout1.setObjectName("hboxlayout1")

self.label_2 = QtGui.QLabel(Dialog)
self.label_2.setGeometry(QtCore.QRect(120,320,191,21))
self.label_2.setObjectName("label_2")
self.hboxlayout1.addWidget(self.label_2)

self.linePlugin = QtGui.QLineEdit(Dialog)
self.linePlugin.setGeometry(QtCore.QRect(290,320,281,25))
self.linePlugin.setObjectName("linePlugin")

self.buttonBrowse = QtGui.QPushButton(Dialog)
self.buttonBrowse.setGeometry(QtCore.QRect(830,10,83,28))
self.buttonBrowse.setObjectName("buttonBrowse")

self.pbnCancel = QtGui.QPushButton(Dialog)
self.pbnCancel.setGeometry(QtCore.QRect(830,370,83,28))
self.pbnCancel.setObjectName("pbnCancel")
self.hboxlayout1.addWidget(self.linePlugin)

self.pbnOK = QtGui.QPushButton(Dialog)
self.pbnOK.setGeometry(QtCore.QRect(590,320,83,28))
self.pbnOK.setObjectName("pbnOK")
self.hboxlayout1.addWidget(self.pbnOK)
self.vboxlayout1.addLayout(self.hboxlayout1)

self.hboxlayout2 = QtGui.QHBoxLayout()
self.hboxlayout2.setObjectName("hboxlayout2")

self.label_3 = QtGui.QLabel(Dialog)
self.label_3.setGeometry(QtCore.QRect(120,360,501,21))
self.label_3.setObjectName("label_3")
self.hboxlayout2.addWidget(self.label_3)

self.treePlugins = QtGui.QTreeWidget(Dialog)
self.treePlugins.setGeometry(QtCore.QRect(10,50,911,251))
self.treePlugins.setAlternatingRowColors(True)
self.treePlugins.setItemsExpandable(False)
self.treePlugins.setObjectName("treePlugins")
self.pbnCancel = QtGui.QPushButton(Dialog)

sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed,QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pbnCancel.sizePolicy().hasHeightForWidth())
self.pbnCancel.setSizePolicy(sizePolicy)
self.pbnCancel.setObjectName("pbnCancel")
self.hboxlayout2.addWidget(self.pbnCancel)
self.vboxlayout1.addLayout(self.hboxlayout2)
self.vboxlayout.addLayout(self.vboxlayout1)

self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)

def retranslateUi(self, Dialog):
Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "QGIS Plugin Installer", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("Dialog", "Retrieve the list of available plugins, select one and install it", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Name of plugin to install", None, QtGui.QApplication.UnicodeUTF8))
self.buttonBrowse.setText(QtGui.QApplication.translate("Dialog", "Get List", None, QtGui.QApplication.UnicodeUTF8))
self.pbnCancel.setText(QtGui.QApplication.translate("Dialog", "Done", None, QtGui.QApplication.UnicodeUTF8))
self.pbnOK.setText(QtGui.QApplication.translate("Dialog", "Install Plugin", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Dialog", "The plugin will be installed to ~/.qgis/python/plugins", None, QtGui.QApplication.UnicodeUTF8))
self.treePlugins.headerItem().setText(0,QtGui.QApplication.translate("Dialog", "Name", None, QtGui.QApplication.UnicodeUTF8))
self.treePlugins.headerItem().setText(1,QtGui.QApplication.translate("Dialog", "Version", None, QtGui.QApplication.UnicodeUTF8))
self.treePlugins.headerItem().setText(2,QtGui.QApplication.translate("Dialog", "Description", None, QtGui.QApplication.UnicodeUTF8))
self.treePlugins.headerItem().setText(3,QtGui.QApplication.translate("Dialog", "Author", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("Dialog", "Name of plugin to install", None, QtGui.QApplication.UnicodeUTF8))
self.pbnOK.setText(QtGui.QApplication.translate("Dialog", "Install Plugin", None, QtGui.QApplication.UnicodeUTF8))
self.label_3.setText(QtGui.QApplication.translate("Dialog", "The plugin will be installed to ~/.qgis/python/plugins", None, QtGui.QApplication.UnicodeUTF8))
self.pbnCancel.setText(QtGui.QApplication.translate("Dialog", "Done", None, QtGui.QApplication.UnicodeUTF8))

251 changes: 116 additions & 135 deletions python/plugins/plugin_installer/gui.ui
@@ -1,141 +1,122 @@
<ui version="4.0" >
<class>Dialog</class>
<widget class="QDialog" name="Dialog" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>937</width>
<height>420</height>
</rect>
</property>
<property name="windowTitle" >
<string>QGIS Plugin Installer</string>
</property>
<widget class="QLabel" name="label" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>501</width>
<height>21</height>
</rect>
</property>
<property name="text" >
<string>Retrieve the list of available plugins, select one and install it</string>
</property>
</widget>
<widget class="QLabel" name="label_2" >
<property name="geometry" >
<rect>
<x>120</x>
<y>320</y>
<width>191</width>
<height>21</height>
</rect>
</property>
<property name="text" >
<string>Name of plugin to install</string>
</property>
</widget>
<widget class="QLineEdit" name="linePlugin" >
<property name="geometry" >
<rect>
<x>290</x>
<y>320</y>
<width>281</width>
<height>25</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="buttonBrowse" >
<property name="geometry" >
<rect>
<x>830</x>
<y>10</y>
<width>83</width>
<height>28</height>
</rect>
</property>
<property name="text" >
<string>Get List</string>
</property>
</widget>
<widget class="QPushButton" name="pbnCancel" >
<property name="geometry" >
<rect>
<x>830</x>
<y>370</y>
<width>83</width>
<height>28</height>
</rect>
</property>
<property name="text" >
<string>Done</string>
</property>
</widget>
<widget class="QPushButton" name="pbnOK" >
<property name="geometry" >
<rect>
<x>590</x>
<y>320</y>
<width>83</width>
<height>28</height>
</rect>
</property>
<property name="text" >
<string>Install Plugin</string>
</property>
</widget>
<widget class="QLabel" name="label_3" >
<property name="geometry" >
<rect>
<x>120</x>
<y>360</y>
<width>501</width>
<height>21</height>
</rect>
</property>
<property name="text" >
<string>The plugin will be installed to ~/.qgis/python/plugins</string>
</property>
</widget>
<widget class="QTreeWidget" name="treePlugins" >
<property name="geometry" >
<rect>
<x>10</x>
<y>50</y>
<width>911</width>
<height>251</height>
</rect>
</property>
<property name="alternatingRowColors" >
<bool>true</bool>
</property>
<property name="itemsExpandable" >
<bool>false</bool>
</property>
<column>
<property name="text" >
<string>Name</string>
</property>
</column>
<column>
<property name="text" >
<string>Version</string>
</property>
</column>
<column>
<property name="text" >
<string>Description</string>
</property>
</column>
<column>
<property name="text" >
<string>Author</string>
</property>
</column>
</widget>
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>761</width>
<height>471</height>
</rect>
</property>
<property name="windowTitle" >
<string>QGIS Plugin Installer</string>
</property>
<layout class="QVBoxLayout" >
<item>
<layout class="QVBoxLayout" >
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>Retrieve the list of available plugins, select one and install it</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonBrowse" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Get List</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QTreeWidget" name="treePlugins" >
<property name="alternatingRowColors" >
<bool>true</bool>
</property>
<property name="itemsExpandable" >
<bool>false</bool>
</property>
<column>
<property name="text" >
<string>Name</string>
</property>
</column>
<column>
<property name="text" >
<string>Version</string>
</property>
</column>
<column>
<property name="text" >
<string>Description</string>
</property>
</column>
<column>
<property name="text" >
<string>Author</string>
</property>
</column>
</widget>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Name of plugin to install</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="linePlugin" />
</item>
<item>
<widget class="QPushButton" name="pbnOK" >
<property name="text" >
<string>Install Plugin</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>The plugin will be installed to ~/.qgis/python/plugins</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pbnCancel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Done</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
<connections/>
Expand Down

0 comments on commit 7e2d6a8

Please sign in to comment.