--- 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): """