QGIS/python/plugins/plugin_installer/repository_dialog.py
wonder b330657fd2 Improvements to plugin installer:
- ability to support custom repositories
- better error handling


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7909 c8812cc2-4d05-0410-92ff-de0c093fc19c
2008-01-10 14:45:28 +00:00

21 lines
657 B
Python

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from repository_ui import Ui_RepositoryDetailsDialog
class RepositoryDialog(QDialog, Ui_RepositoryDetailsDialog):
def __init__(self, parent=None):
QDialog.__init__(self, parent)
self.setupUi(self)
self.connect(self.editName, SIGNAL("textChanged(const QString &)"), self.changed)
self.connect(self.editURL, SIGNAL("textChanged(const QString &)"), self.changed)
self.changed(None)
def changed(self, string):
enable = (self.editName.text().count() > 0 and self.editURL.text().count() > 0)
self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)