Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Plugin Instaler update: add translateable strings for future switch t…
…o the central contributed repository

git-svn-id: http://svn.osgeo.org/qgis/trunk@13770 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
borysiasty committed Jun 21, 2010
1 parent bef7e50 commit c170110
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 5 deletions.
1 change: 1 addition & 0 deletions python/plugins/plugin_installer/CMakeLists.txt
Expand Up @@ -18,6 +18,7 @@ PYQT4_WRAP_UI(PYUI_FILES
qgsplugininstallerinstallingbase.ui
qgsplugininstallerpluginerrorbase.ui
qgsplugininstallerrepositorybase.ui
qgsplugininstalleroldreposbase.ui
)

PYQT4_ADD_RESOURCES(PYRC_FILES resources.qrc)
Expand Down
68 changes: 63 additions & 5 deletions python/plugins/plugin_installer/qgsplugininstallerbase.ui
Expand Up @@ -303,7 +303,7 @@
<string>List of plugin repositories</string>
</attribute>
<layout class="QGridLayout">
<item row="0" column="0" colspan="7">
<item row="0" column="0" colspan="9">
<widget class="QTreeWidget" name="treeRepositories">
<property name="rootIsDecorated">
<bool>false</bool>
Expand Down Expand Up @@ -360,7 +360,7 @@
</property>
</widget>
</item>
<item row="1" column="3">
<item row="1" column="5">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
Expand All @@ -373,7 +373,7 @@
</property>
</spacer>
</item>
<item row="1" column="4">
<item row="1" column="6">
<widget class="QPushButton" name="buttonAddRep">
<property name="toolTip">
<string>Add a new plugin repository</string>
Expand All @@ -386,7 +386,7 @@
</property>
</widget>
</item>
<item row="1" column="5">
<item row="1" column="7">
<widget class="QPushButton" name="buttonEditRep">
<property name="toolTip">
<string>Edit the selected repository</string>
Expand All @@ -399,7 +399,7 @@
</property>
</widget>
</item>
<item row="1" column="6">
<item row="1" column="8">
<widget class="QPushButton" name="buttonDeleteRep">
<property name="toolTip">
<string>Remove the selected repository</string>
Expand All @@ -412,6 +412,62 @@
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QPushButton" name="buttonAddContributedRepository">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>0</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Add the contributed repository to the list</string>
</property>
<property name="whatsThis">
<string>Add the contributed repository to the list</string>
</property>
<property name="text">
<string>Add the contributed repository</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QPushButton" name="buttonDeleteDepreciatedRepos">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>0</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip">
<string>Remove depreciated repositories from the list</string>
</property>
<property name="whatsThis">
<string>Remove depreciated repositories from the list</string>
</property>
<property name="text">
<string>Delete depreciated repositories</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_3">
Expand Down Expand Up @@ -617,6 +673,8 @@ p, li { white-space: pre-wrap; }
<tabstop>buttonHelp</tabstop>
<tabstop>treeRepositories</tabstop>
<tabstop>buttonFetchRepositories</tabstop>
<tabstop>buttonAddContributedRepository</tabstop>
<tabstop>buttonDeleteDepreciatedRepos</tabstop>
<tabstop>buttonAddRep</tabstop>
<tabstop>buttonEditRep</tabstop>
<tabstop>buttonDeleteRep</tabstop>
Expand Down
120 changes: 120 additions & 0 deletions python/plugins/plugin_installer/qgsplugininstalleroldreposbase.ui
@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author>Borys Jurgiel</author>
<class>QgsPluginInstallerOldReposBase</class>
<widget class="QDialog" name="QgsPluginInstallerOldReposBase">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>601</width>
<height>182</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>480</width>
<height>150</height>
</size>
</property>
<property name="windowTitle">
<string>Plugin Installer</string>
</property>
<property name="windowIcon">
<iconset resource="resources.qrc">
<normaloff>:/plugins/installer/qgis-icon.png</normaloff>:/plugins/installer/qgis-icon.png</iconset>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>The Plugin Installer has detected that your copy of QGIS is configured to use a number of plugin repositories around the world. It was a typical situation in older versions of the program, but from the version 1.5, external plugins are collected in one central Contributed Repository, and all the old repositories are not necessary any more. Do you want to drop them now? If you're unsure what to do, probably you don't need them. However, if you choose to keep them in use, you will be able to remove them manually later.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QPushButton" name="butOldReposRemove">
<property name="text">
<string>Remove</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="butOldReposDisable">
<property name="text">
<string>Disable</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="butOldReposKeep">
<property name="text">
<string>Keep</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="butOldReposAsk">
<property name="text">
<string>Ask me later</string>
</property>
<property name="default">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<resources>
<include location="resources.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit c170110

Please sign in to comment.