code: def __initialize_ui(self):
          
  
          umbra.ui.common.set_window_default_icon(self)
  
          for model, settings_key, combo_box in \
                  (("_SearchAndReplace__search_patterns_model", "recent_search_patterns", self.Search_comboBox),
                   ("_SearchAndReplace__replace_with_patterns_model", "recent_replace_with_patterns",
                    self.Replace_With_comboBox)):
              self.__dict__[model] = PatternsModel()
              patterns = foundations.common.ordered_uniqify([foundations.strings.to_string(pattern) for pattern in
                                                             self.__container.settings.get_key(
                                                                 self.__container.settings_section,
                                                                 settings_key).toStringList()])
              [PatternNode(parent=self.__dict__[model].root_node, name=pattern)
               for pattern in patterns[:self.__maximum_stored_patterns]]
              combo_box.setInsertPolicy(QComboBox.InsertAtTop)
              combo_box.setModel(self.__dict__[model])
  
              combo_box.completer().setCaseSensitivity(Qt.CaseSensitive)
  
              # Signals / Slots.
              self.__dict__[model].pattern_inserted.connect(
                  functools.partial(self.__patterns_model__pattern_inserted, settings_key, combo_box))
  
          self.Wrap_Around_checkBox.setChecked(True)
  
          self.installEventFilter(ValidationFilter(self))
  
          # Signals / Slots.
          self.Search_pushButton.clicked.connect(self.__Search_pushButton__clicked)
          self.Replace_pushButton.clicked.connect(self.__Replace_pushButton__clicked)
          self.Replace_All_pushButton.clicked.connect(self.__Replace_All_pushButton__clicked)
          self.Close_pushButton.clicked.connect(self.__Close_pushButton__clicked)
docs: Initializes the Widget ui.