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

« back to all changes in this revision

Viewing changes to eric/Preferences/ViewProfileDialog.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 implementing a dialog to configure the various view profiles.
8
8
"""
9
9
 
10
 
from qt import *
11
 
from ViewProfileForm import ViewProfileForm
12
 
 
13
 
 
14
 
class ViewProfileDialog(ViewProfileForm):
 
10
from PyQt4.QtCore import *
 
11
from PyQt4.QtGui import *
 
12
 
 
13
from Ui_ViewProfileDialog import Ui_ViewProfileDialog
 
14
 
 
15
 
 
16
class ViewProfileDialog(QDialog, Ui_ViewProfileDialog):
15
17
    """
16
18
    Class implementing a dialog to configure the various view profiles.
17
19
    """
27
29
            is a separate window
28
30
        @param parent parent widget of this dialog (QWidget)
29
31
        """
30
 
        ViewProfileForm.__init__(self,parent,modal=1)
31
 
        
32
 
        dummy = self.trUtf8("Dummy")
 
32
        QDialog.__init__(self, parent)
 
33
        self.setupUi(self)
33
34
        
34
35
        self.profiles = profiles
35
36
        
39
40
        if separateBrowser:
40
41
            self.epfbCheckBox.setChecked(profile[1])
41
42
        else:
42
 
            self.epfbCheckBox.setChecked(0)
43
 
            self.epfbCheckBox.setEnabled(0)
 
43
            self.epfbCheckBox.setChecked(False)
 
44
            self.epfbCheckBox.setEnabled(False)
44
45
        self.epdbCheckBox.setChecked(profile[2])
45
46
        if separateShell:
46
47
            self.eppsCheckBox.setChecked(profile[3])
47
48
        else:
48
 
            self.eppsCheckBox.setChecked(0)
49
 
            self.eppsCheckBox.setEnabled(0)
 
49
            self.eppsCheckBox.setChecked(False)
 
50
            self.eppsCheckBox.setEnabled(False)
50
51
        self.eplvCheckBox.setChecked(profile[4])
51
52
        self.eptvCheckBox.setChecked(profile[5])
52
53
        self.eptevCheckBox.setChecked(profile[6])
57
58
        if separateBrowser:
58
59
            self.dpfbCheckBox.setChecked(profile[1])
59
60
        else:
60
 
            self.dpfbCheckBox.setChecked(0)
61
 
            self.dpfbCheckBox.setEnabled(0)
 
61
            self.dpfbCheckBox.setChecked(False)
 
62
            self.dpfbCheckBox.setEnabled(False)
62
63
        self.dpdbCheckBox.setChecked(profile[2])
63
64
        if separateShell:
64
65
            self.dppsCheckBox.setChecked(profile[3])
65
66
        else:
66
 
            self.dppsCheckBox.setChecked(0)
67
 
            self.dppsCheckBox.setEnabled(0)
 
67
            self.dppsCheckBox.setChecked(False)
 
68
            self.dppsCheckBox.setEnabled(False)
68
69
        self.dplvCheckBox.setChecked(profile[4])
69
70
        self.dptvCheckBox.setChecked(profile[5])
70
71
        self.dptevCheckBox.setChecked(profile[6])