Preferences/ConfigurationPages/ProjectBrowserPage.py

changeset 2769
8cbebde7a984
parent 2408
dc3a7c9d8f6e
child 2791
a9577f248f04
child 2964
84b65fb9e780
--- a/Preferences/ConfigurationPages/ProjectBrowserPage.py	Wed Jul 03 19:34:42 2013 +0200
+++ b/Preferences/ConfigurationPages/ProjectBrowserPage.py	Fri Jul 05 19:17:29 2013 +0200
@@ -49,6 +49,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"))
         
@@ -60,6 +64,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())
         
@@ -132,6 +140,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