Fri, 10 Dec 2010 20:40:19 +0100
Fixed an issue with the new file filter configuration code and corrected some source docu.
--- a/Documentation/Source/eric5.Preferences.ConfigurationPages.EditorFilePage.html Wed Dec 08 20:07:48 2010 +0100 +++ b/Documentation/Source/eric5.Preferences.ConfigurationPages.EditorFilePage.html Fri Dec 10 20:40:19 2010 +0100 @@ -118,7 +118,13 @@ <b>__setDefaultFiltersLists</b>(<i>keepSelection = False</i>) <p> Private slot to set the default file filter combo boxes. -</p><a NAME="EditorFilePage.on_addFileFilterButton_clicked" ID="EditorFilePage.on_addFileFilterButton_clicked"></a> +</p><dl> +<dt><i>keepSelection</i></dt> +<dd> +flag indicating to keep the current selection + if possible (boolean) +</dd> +</dl><a NAME="EditorFilePage.on_addFileFilterButton_clicked" ID="EditorFilePage.on_addFileFilterButton_clicked"></a> <h4>EditorFilePage.on_addFileFilterButton_clicked</h4> <b>on_addFileFilterButton_clicked</b>(<i></i>) <p> @@ -151,7 +157,12 @@ <b>on_openFiltersButton_toggled</b>(<i>checked</i>) <p> Private slot to switch the list of file filters. -</p><a NAME="EditorFilePage.save" ID="EditorFilePage.save"></a> +</p><dl> +<dt><i>checked</i></dt> +<dd> +flag indicating the check state of the button (boolean) +</dd> +</dl><a NAME="EditorFilePage.save" ID="EditorFilePage.save"></a> <h4>EditorFilePage.save</h4> <b>save</b>(<i></i>) <p>
--- a/Preferences/ConfigurationPages/EditorFilePage.py Wed Dec 08 20:07:48 2010 +0100 +++ b/Preferences/ConfigurationPages/EditorFilePage.py Fri Dec 10 20:40:19 2010 +0100 @@ -124,6 +124,9 @@ def __setDefaultFiltersLists(self, keepSelection = False): """ Private slot to set the default file filter combo boxes. + + @param keepSelection flag indicating to keep the current selection + if possible (boolean) """ if keepSelection: selectedOpenFilter = self.openFilesFilterComboBox.currentText() @@ -180,8 +183,7 @@ E5MessageBox.critical(self, self.trUtf8("Add File Filter"), self.trUtf8("""A File Filter must contain at least one""" - """ wildcard pattern.""")\ - .format(filter.count("*"))) + """ wildcard pattern.""")) return False return True @@ -233,6 +235,8 @@ def on_openFiltersButton_toggled(self, checked): """ Private slot to switch the list of file filters. + + @param checked flag indicating the check state of the button (boolean) """ self.__extractFileFilters() self.__showsOpenFilters = checked