Example #1
0
 public IsMatchController(StatusBarController statusBarController, RegexControl regexControl,
                          CheckResultControl resultControl, TitledTextField targetTextField,
                          CheckClearToolBarControl checkClearToolBarControl,
                          EditToolBarControl editToolBarControl)
     : base(statusBarController, regexControl, resultControl, targetTextField, checkClearToolBarControl,
            editToolBarControl) {
 }
Example #2
0
 public MatchesController(MainController mainController, StatusBarController statusBarController,
                          RegexControl regexControl, CheckResultControl resultControl,
                          MatchesTargetControl matchesTargetControl,
                          MatchesResultControl matchesResultControl,
                          CheckClearToolBarControl checkClearToolBarControl,
                          EditToolBarControl editToolBarControl,
                          FileToolBarControl fileToolBarControl)
     : base(statusBarController, regexControl, resultControl, matchesTargetControl.TargetTextMatchesField,
            checkClearToolBarControl, editToolBarControl) {
     _regexControl = regexControl;
     _mainController = mainController;
     _matchesListControl = matchesResultControl.LbMatches;
     _groupsListControl = matchesResultControl.LbGroups;
     _captionsListControl = matchesResultControl.LvCaptions;
     _matchesResultControl = matchesResultControl;
     _fileToolBarControl = fileToolBarControl;
     _matchesFileItemControl = matchesTargetControl.MatchesFileItemControl;
     _matchesTargetControl = matchesTargetControl;
     _fileToolBarControl.OnOpenFile += new EditionEventHandler(OpenFile);
     _matchesFileItemControl.OnAddFileToFavorites +=
         new MatchesFileItemEventHandler(MatchesFileItemControl_OnAddFileToFavorites);
     _matchesFileItemControl.OnAddRegexPatternToFavorites +=
         new MatchesFileItemEventHandler(MatchesFileItemControl_OnAddRegexPatternToFavorites);
     _matchesResultControl.OnCaptionMode += new CaptionModeEventHandler(MatchesResultControl_OnCaptionMode);
     _matchesResultControl.InitHelpProvider(_mainController);
     UnlockTargetTextField();
 }
 public RegexControllerBase(StatusBarController statusBarController, RegexControl regexControl,
                            CheckResultControl resultControl, TitledTextField targetTextField,
                            CheckClearToolBarControl checkClearToolBarControl,
                            EditToolBarControl editToolBarControl)
     : this(statusBarController, regexControl, resultControl,
            checkClearToolBarControl, editToolBarControl) {
     _targetTextField = targetTextField;
     resultControl.onShowMessage += new ShowMessageEventHandler(ShowComment);
 }
 public RegexControllerBase(StatusBarController statusBarController, RegexControl regexControl,
                            CheckResultControl resultControl, CheckClearToolBarControl checkClearToolBarControl,
                            EditToolBarControl editToolBarControl) {
     _regexControl = regexControl;
     _resultControl = resultControl;
     _checkClearToolBarControl = checkClearToolBarControl;
     _editToolBarControl = editToolBarControl;
     _resultColor.defaultBackColor = _resultControl.BackColor;
     _resultColor.defaultForeColor = _resultControl.ForeColor;
     _statusBarController = statusBarController;
     _checkClearToolBarControl.onClear += new CheckClearEventHandler(Clear);
     _editToolBarControl.onCopy += new EditionEventHandler(Copy);
     _editToolBarControl.onCut += new EditionEventHandler(Cut);
     _editToolBarControl.onPaste += new EditionEventHandler(Paste);
 }
 public CheckByListController(Preferences prefs, StatusBarController statusBarController,
                              RegexControl regexControl,
                              CheckResultControl resultControl, EditableListControl targetTextsList,
                              CheckClearToolBarControl checkClearToolBarControl,
                              EditToolBarControl editToolBarControl,
                              ListToolBarControl listToolBarControl)
     : base(statusBarController, regexControl, resultControl, checkClearToolBarControl, editToolBarControl) {
     _targetTestsList = targetTextsList;
     _prefs = prefs;
     _targetTestsList.keepTextAfterAddition = _prefs.KeepTextAfterAddition;
     _listToolBarControl = listToolBarControl;
     ListViewItem listViewItem = new ListViewItem();
     _resultColor.defaultBackColor = listViewItem.BackColor;
     _resultColor.defaultForeColor = listViewItem.ForeColor;
     _targetTestsList.onShowMessage += new ShowMessageEventHandler(TargetTestsList_onShowMessage);
     _listToolBarControl.onPasteList += new EditionEventHandler(PasteList);
     _listToolBarControl.onAppendList += new EditionEventHandler(AppendList);
     _listToolBarControl.onLoadList += new EditionEventHandler(LoadList);
     _listToolBarControl.onSaveList += new EditionEventHandler(SaveList);
     _targetTestsList.onKeepTextAfterAdditionFlagChanged +=
         new EditionEventHandler(TargetTestsList_onKeepTextAfterAdditionFlagChanged);
 }
Example #6
0
 private void InitControllers(Preferences prefs) {
     _mainController = new MainController(helpProvider, (Bitmap) Label2.Image);
     _statusBarController = new StatusBarController(statusBar);
     tabIsMatch.Tag = new IsMatchController(_statusBarController, regexControl,
                                            checkResultIsMatchControl,
                                            targetTextIsMatchField,
                                            checkClearIsMatchToolBarControl,
                                            editIsMatchToolBarControl);
     tabMatches.Tag = new MatchesController(_mainController, _statusBarController, regexControl,
                                            checkResultMatchesControl,
                                            matchesTargetControl,
                                            matchesResultControl,
                                            checkClearMatchesToolBarControl,
                                            editMatchesToolBarControl,
                                            fileToolBarControl);
     tabCheckByList.Tag = new CheckByListController(prefs, _statusBarController, regexControl,
                                                    checkResultCheckByListControl,
                                                    targetTextsListControl,
                                                    checkClearCheckByListToolBarControl,
                                                    editCheckByListToolBarControl,
                                                    listCheckByListToolBarControl);
 }