~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/VCS/Config.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
Module defining configuration variables for the VCS package
8
8
"""
9
9
 
10
 
from qt import qApp, QStringList
 
10
from PyQt4.QtGui import QApplication
 
11
from PyQt4.QtCore import QStringList
 
12
 
 
13
#####################################################################
 
14
## Subversion specific stuff below
 
15
#####################################################################
 
16
 
 
17
# Available subversion variants
 
18
ConfigSvnSystems = ['Subversion']
 
19
 
 
20
# Display strings for the available subversion variants
 
21
# This list must be kept in sync with the one above.
 
22
ConfigSvnSystemsDisplay = QStringList()
 
23
ConfigSvnSystemsDisplay.append(\
 
24
   QApplication.translate('VCS Systems', 'Subversion (svn)'))
 
25
 
 
26
try:
 
27
    import pysvn
 
28
    ConfigSvnSystems.append('PySvn')
 
29
    ConfigSvnSystemsDisplay.append(\
 
30
       QApplication.translate('VCS Systems', 'Subversion (pysvn)'))
 
31
except ImportError:
 
32
    pass
 
33
 
 
34
#####################################################################
 
35
## General stuff below
 
36
#####################################################################
11
37
 
12
38
# Available version control systems
13
 
ConfigVcsSystems = ['None', 'CVS', 'Subversion']
 
39
ConfigVcsSystems = ['None', 'CVS'] + ConfigSvnSystems
14
40
 
15
41
# Display strings for the available version control systems
16
42
# This list must be kept in sync with the one above.
17
43
ConfigVcsSystemsDisplay = QStringList()
18
 
ConfigVcsSystemsDisplay.append(qApp.translate('VCS Systems', 'None'))
19
 
ConfigVcsSystemsDisplay.append(qApp.translate('VCS Systems', 'CVS'))
20
 
ConfigVcsSystemsDisplay.append(qApp.translate('VCS Systems', 'Subversion'))
 
44
ConfigVcsSystemsDisplay.append(\
 
45
    QApplication.translate('VCS Systems', 'None'))
 
46
ConfigVcsSystemsDisplay.append(\
 
47
   QApplication.translate('VCS Systems', 'CVS'))
 
48
for svn in ConfigSvnSystemsDisplay:
 
49
    ConfigVcsSystemsDisplay.append(svn)
21
50
 
22
51
# List of indicators (directory or file) for a specific
23
52
# version control system.