Preferences/ConfigurationPages/ProjectBrowserPage.py

branch
Py2 comp.
changeset 2791
a9577f248f04
parent 2525
8b507a9a2d40
parent 2769
8cbebde7a984
child 3057
10516539f238
diff -r 6686a3326df8 -r a9577f248f04 Preferences/ConfigurationPages/ProjectBrowserPage.py
--- a/Preferences/ConfigurationPages/ProjectBrowserPage.py	Mon Jul 08 21:47:26 2013 +0200
+++ b/Preferences/ConfigurationPages/ProjectBrowserPage.py	Mon Jul 08 22:36:10 2013 +0200
@@ -51,6 +51,10 @@
         
         self.followEditorCheckBox.setChecked(
             Preferences.getProject("FollowEditor"))
+        self.followCursorLineCheckBox.setChecked(
+            Preferences.getProject("FollowCursorLine"))
+        self.autoPopulateCheckBox.setChecked(
+            Preferences.getProject("AutoPopulateItems"))
         self.hideGeneratedCheckBox.setChecked(
             Preferences.getProject("HideGeneratedForms"))
         
@@ -62,6 +66,10 @@
         
         Preferences.setProject("FollowEditor",
             self.followEditorCheckBox.isChecked())
+        Preferences.setProject("FollowCursorLine",
+            self.followCursorLineCheckBox.isChecked())
+        Preferences.setProject("AutoPopulateItems",
+            self.autoPopulateCheckBox.isChecked())
         Preferences.setProject("HideGeneratedForms",
             self.hideGeneratedCheckBox.isChecked())
         
@@ -134,6 +142,26 @@
             self.projectTypeCombo.itemData(index))
         self.__currentProjectTypeIndex = index
     
+    @pyqtSlot(bool)
+    def on_followEditorCheckBox_toggled(self, checked):
+        """
+        Private slot to handle the change of the 'Follow Editor' checkbox.
+        
+        @param checked flag indicating the state of the checkbox
+        """
+        if not checked:
+            self.followCursorLineCheckBox.setChecked(False)
+    
+    @pyqtSlot(bool)
+    def on_followCursorLineCheckBox_toggled(self, checked):
+        """
+        Private slot to handle the change of the 'Follow Cursor Line' checkbox.
+        
+        @param checked flag indicating the state of the checkbox
+        """
+        if checked:
+            self.followEditorCheckBox.setChecked(True)
+    
 
 def create(dlg):
     """

eric ide

mercurial