311 |
311 |
312 # load the view profiles |
312 # load the view profiles |
313 self.profiles = Preferences.getUI("ViewProfiles") |
313 self.profiles = Preferences.getUI("ViewProfiles") |
314 |
314 |
315 splash.showMessage(self.tr("Initializing Basic Services...")) |
315 splash.showMessage(self.tr("Initializing Basic Services...")) |
|
316 logging.getLogger(__name__).debug(self.tr("Initializing Basic Services...")) |
316 |
317 |
317 # Generate the conda interface |
318 # Generate the conda interface |
318 logging.debug("Creating Conda Interface...") |
319 logging.getLogger(__name__).debug("Creating Conda Interface...") |
319 self.condaInterface = Conda(self) |
320 self.condaInterface = Conda(self) |
320 ericApp().registerObject("Conda", self.condaInterface) |
321 ericApp().registerObject("Conda", self.condaInterface) |
321 |
322 |
322 # Generate the pip interface |
323 # Generate the pip interface |
323 logging.debug("Creating Pip Interface...") |
324 logging.getLogger(__name__).debug("Creating Pip Interface...") |
324 self.pipInterface = Pip(self) |
325 self.pipInterface = Pip(self) |
325 ericApp().registerObject("Pip", self.pipInterface) |
326 ericApp().registerObject("Pip", self.pipInterface) |
326 |
327 |
327 # Generate the virtual environment manager |
328 # Generate the virtual environment manager |
328 logging.debug("Creating Virtual Environments Manager...") |
329 logging.getLogger(__name__).debug("Creating Virtual Environments Manager...") |
329 self.virtualenvManager = VirtualenvManager(self) |
330 self.virtualenvManager = VirtualenvManager(self) |
330 # register it early because it is needed very soon |
331 # register it early because it is needed very soon |
331 ericApp().registerObject("VirtualEnvManager", self.virtualenvManager) |
332 ericApp().registerObject("VirtualEnvManager", self.virtualenvManager) |
332 |
333 |
333 # Generate an empty project object and multi project object |
334 # Generate an empty project object |
334 logging.debug("Creating Project Manager...") |
335 logging.getLogger(__name__).debug("Creating Project Manager...") |
335 self.project = Project(self) |
336 self.project = Project(self) |
336 ericApp().registerObject("Project", self.project) |
337 ericApp().registerObject("Project", self.project) |
337 |
338 |
338 logging.debug("Creating Multi-Project Manager...") |
339 # Generate the multi project object |
|
340 logging.getLogger(__name__).debug("Creating Multi-Project Manager...") |
339 self.multiProject = MultiProject(self.project, self) |
341 self.multiProject = MultiProject(self.project, self) |
340 |
342 |
341 # Generate the debug server object |
343 # Generate the debug server object |
342 logging.debug("Creating Debug Server...") |
344 logging.getLogger(__name__).debug("Creating Debug Server...") |
343 self.__debugServer = DebugServer( |
345 self.__debugServer = DebugServer( |
344 self.__originalPathString, project=self.project, parent=self |
346 self.__originalPathString, project=self.project, parent=self |
345 ) |
347 ) |
346 |
348 |
347 # Create the background service object |
349 # Create the background service object |
|
350 logging.getLogger(__name__).debug("Creating Background Service...") |
348 self.backgroundService = BackgroundService(self) |
351 self.backgroundService = BackgroundService(self) |
349 |
352 |
350 splash.showMessage(self.tr("Initializing Plugin Manager...")) |
353 splash.showMessage(self.tr("Initializing Plugin Manager...")) |
351 |
354 logging.getLogger(__name__).debug(self.tr("Initializing Plugin Manager...")) |
352 # Initialize the Plugin Manager (Plugins are initialized later |
355 |
|
356 # Initialize the Plugin Manager (Plugins are initialized later) |
353 self.pluginManager = PluginManager( |
357 self.pluginManager = PluginManager( |
354 self, self.__disabledPlugins, develPlugin=plugin |
358 self, self.__disabledPlugins, develPlugin=plugin |
355 ) |
359 ) |
356 |
360 |
357 splash.showMessage(self.tr("Generating Main User Interface...")) |
361 splash.showMessage(self.tr("Generating Main User Interface...")) |
|
362 logging.getLogger(__name__).debug(self.tr("Generating Main User Interface...")) |
358 |
363 |
359 self.__webBrowserProcess = None |
364 self.__webBrowserProcess = None |
360 self.__webBrowserClient = None |
365 self.__webBrowserClient = None |
361 self.__webBrowserSAName = QUuid.createUuid().toString()[1:-1] |
366 self.__webBrowserSAName = QUuid.createUuid().toString()[1:-1] |
362 |
367 |
682 ##sys.stderr = self.stderr # __IGNORE_WARNING_M891__ |
696 ##sys.stderr = self.stderr # __IGNORE_WARNING_M891__ |
683 |
697 |
684 # now fire up the single application server |
698 # now fire up the single application server |
685 if Preferences.getUI("SingleApplicationMode"): |
699 if Preferences.getUI("SingleApplicationMode"): |
686 splash.showMessage(self.tr("Initializing Single Application Server...")) |
700 splash.showMessage(self.tr("Initializing Single Application Server...")) |
|
701 logging.getLogger(__name__).debug( |
|
702 self.tr("Initializing Single Application Server...") |
|
703 ) |
687 self.SAServer = EricSingleApplicationServer() |
704 self.SAServer = EricSingleApplicationServer() |
688 else: |
705 else: |
689 self.SAServer = None |
706 self.SAServer = None |
690 |
707 |
691 # now finalize the plugin manager setup |
708 # now finalize the plugin manager setup |
692 splash.showMessage(self.tr("Initializing Plugins...")) |
709 splash.showMessage(self.tr("Initializing Plugins...")) |
|
710 logging.getLogger(__name__).debug(self.tr("Initializing Plugins...")) |
693 self.pluginManager.finalizeSetup() |
711 self.pluginManager.finalizeSetup() |
694 # now activate plugins having autoload set to True |
712 # now activate plugins having autoload set to True |
695 splash.showMessage(self.tr("Activating Plugins...")) |
713 splash.showMessage(self.tr("Activating Plugins...")) |
|
714 logging.getLogger(__name__).debug(self.tr("Activating Plugins...")) |
696 self.pluginManager.activatePlugins() |
715 self.pluginManager.activatePlugins() |
697 splash.showMessage(self.tr("Generating Plugins Toolbars...")) |
716 splash.showMessage(self.tr("Generating Plugins Toolbars...")) |
|
717 logging.getLogger(__name__).debug(self.tr("Generating Plugins Toolbars...")) |
698 self.pluginManager.initPluginToolbars(self.toolbarManager) |
718 self.pluginManager.initPluginToolbars(self.toolbarManager) |
699 if Preferences.getPluginManager("StartupCleanup"): |
719 if Preferences.getPluginManager("StartupCleanup"): |
700 splash.showMessage(self.tr("Cleaning Plugins Download Area...")) |
720 splash.showMessage(self.tr("Cleaning Plugins Download Area...")) |
|
721 logging.getLogger(__name__).debug( |
|
722 self.tr("Cleaning Plugins Download Area...") |
|
723 ) |
701 PluginRepositoryDownloadCleanup(quiet=True) |
724 PluginRepositoryDownloadCleanup(quiet=True) |
702 |
725 |
703 if self.__findFileWidget: |
726 if self.__findFileWidget: |
704 self.__findFileWidget.populateFileCategories() |
727 self.__findFileWidget.populateFileCategories() |
705 |
728 |
706 # now read the keyboard shortcuts for all the actions |
729 # now read the keyboard shortcuts for all the actions |
707 Shortcuts.readShortcuts() |
730 Shortcuts.readShortcuts() |
708 |
731 |
709 # restore toolbar manager state |
732 # restore toolbar manager state |
710 splash.showMessage(self.tr("Restoring Toolbarmanager...")) |
733 splash.showMessage(self.tr("Restoring Toolbarmanager...")) |
|
734 logging.getLogger(__name__).debug(self.tr("Restoring Toolbarmanager...")) |
711 self.toolbarManager.restoreState(Preferences.getUI("ToolbarManagerState")) |
735 self.toolbarManager.restoreState(Preferences.getUI("ToolbarManagerState")) |
712 |
736 |
713 if self.codeDocumentationViewer is not None: |
737 if self.codeDocumentationViewer is not None: |
714 # finalize the initialization of the code documentation viewer |
738 # finalize the initialization of the code documentation viewer |
715 self.codeDocumentationViewer.finalizeSetup() |
739 self.codeDocumentationViewer.finalizeSetup() |
716 |
740 |
717 # now activate the initial view profile |
741 # now activate the initial view profile |
718 splash.showMessage(self.tr("Setting View Profile...")) |
742 splash.showMessage(self.tr("Setting View Profile...")) |
|
743 logging.getLogger(__name__).debug(self.tr("Setting View Profile...")) |
719 self.__setEditProfile() |
744 self.__setEditProfile() |
720 |
745 |
721 # special treatment for the VCS toolbars |
746 # special treatment for the VCS toolbars |
722 for tb in self.getToolbarsByCategory("vcs"): |
747 for tb in self.getToolbarsByCategory("vcs"): |
723 tb.setVisible(False) |
748 tb.setVisible(False) |
800 from .Previewer import Previewer |
828 from .Previewer import Previewer |
801 from .PythonAstViewer import PythonAstViewer |
829 from .PythonAstViewer import PythonAstViewer |
802 from .PythonDisViewer import PythonDisViewer |
830 from .PythonDisViewer import PythonDisViewer |
803 |
831 |
804 # Create the view manager depending on the configuration setting |
832 # Create the view manager depending on the configuration setting |
805 logging.debug("Creating Viewmanager...") |
833 logging.getLogger(__name__).debug("Creating Viewmanager...") |
806 self.viewmanager = ViewManager.factory( |
834 self.viewmanager = ViewManager.factory( |
807 self, self.__debugServer, self.pluginManager |
835 self, self.__debugServer, self.pluginManager |
808 ) |
836 ) |
809 |
837 |
810 # Create previewer |
838 # Create previewer |
811 logging.debug("Creating Previewer...") |
839 logging.getLogger(__name__).debug("Creating Previewer...") |
812 self.__previewer = Previewer(self.viewmanager) |
840 self.__previewer = Previewer(self.viewmanager) |
813 |
841 |
814 # Create AST viewer |
842 # Create AST viewer |
815 logging.debug("Creating Python AST Viewer") |
843 logging.getLogger(__name__).debug("Creating Python AST Viewer") |
816 self.__astViewer = PythonAstViewer(self.viewmanager) |
844 self.__astViewer = PythonAstViewer(self.viewmanager) |
817 |
845 |
818 # Create DIS viewer |
846 # Create DIS viewer |
819 logging.debug("Creating Python Disassembly Viewer") |
847 logging.getLogger(__name__).debug("Creating Python Disassembly Viewer") |
820 self.__disViewer = PythonDisViewer(self.viewmanager) |
848 self.__disViewer = PythonDisViewer(self.viewmanager) |
821 |
849 |
822 # Create the project browser |
850 # Create the project browser |
823 logging.debug("Creating Project Browser...") |
851 logging.getLogger(__name__).debug("Creating Project Browser...") |
824 self.projectBrowser = ProjectBrowser(self.project) |
852 self.projectBrowser = ProjectBrowser(self.project) |
825 |
853 |
826 # Create the multi project browser |
854 # Create the multi project browser |
827 logging.debug("Creating Multiproject Browser...") |
855 logging.getLogger(__name__).debug("Creating Multi Project Browser...") |
828 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, self.project) |
856 self.multiProjectBrowser = MultiProjectBrowser(self.multiProject, self.project) |
829 |
857 |
830 # Create the task viewer part of the user interface |
858 # Create the task viewer part of the user interface |
831 logging.debug("Creating Task Viewer...") |
859 logging.getLogger(__name__).debug("Creating Task Viewer...") |
832 self.taskViewer = TaskViewer(None, self.project) |
860 self.taskViewer = TaskViewer(None, self.project) |
833 |
861 |
834 # Create the log viewer part of the user interface |
862 # Create the log viewer part of the user interface |
835 logging.debug("Creating Log Viewer...") |
863 logging.getLogger(__name__).debug("Creating Log Viewer...") |
836 self.logViewer = LogViewer(self) |
864 self.logViewer = LogViewer(self) |
837 |
865 |
838 # Create the debug viewer |
866 # Create the debug viewer |
839 logging.debug("Creating Debug Viewer...") |
867 logging.getLogger(__name__).debug("Creating Debug Viewer...") |
840 self.debugViewer = DebugViewer(self.__debugServer) |
868 self.debugViewer = DebugViewer(self.__debugServer) |
841 |
869 |
842 # Create the shell |
870 # Create the shell |
843 logging.debug("Creating Shell...") |
871 logging.getLogger(__name__).debug("Creating Shell...") |
844 self.shellAssembly = ShellAssembly( |
872 self.shellAssembly = ShellAssembly( |
845 self.__debugServer, self.viewmanager, self.project, True |
873 self.__debugServer, self.viewmanager, self.project, True |
846 ) |
874 ) |
847 self.shell = self.shellAssembly.shell() |
875 self.shell = self.shellAssembly.shell() |
848 |
876 |
849 if Preferences.getUI("ShowTemplateViewer"): |
877 if Preferences.getUI("ShowTemplateViewer"): |
850 # Create the template viewer part of the user interface |
878 # Create the template viewer part of the user interface |
851 logging.debug("Creating Template Viewer...") |
879 logging.getLogger(__name__).debug("Creating Template Viewer...") |
852 from eric7.Templates.TemplateViewer import TemplateViewer # noqa: I101 |
880 from eric7.Templates.TemplateViewer import TemplateViewer # noqa: I101 |
853 |
881 |
854 self.templateViewer = TemplateViewer(None, self.viewmanager) |
882 self.templateViewer = TemplateViewer(None, self.viewmanager) |
855 else: |
883 else: |
856 logging.debug("Template Viewer disabled") |
884 logging.getLogger(__name__).debug("Template Viewer disabled") |
857 self.templateViewer = None |
885 self.templateViewer = None |
858 |
886 |
859 if Preferences.getUI("ShowFileBrowser"): |
887 if Preferences.getUI("ShowFileBrowser"): |
860 # Create the file browser |
888 # Create the file browser |
861 logging.debug("Creating File Browser...") |
889 logging.getLogger(__name__).debug("Creating File Browser...") |
862 from .Browser import Browser # noqa: I101 |
890 from .Browser import Browser # noqa: I101 |
863 |
891 |
864 self.browser = Browser() |
892 self.browser = Browser() |
865 else: |
893 else: |
866 logging.debug("File Browser disabled") |
894 logging.getLogger(__name__).debug("File Browser disabled") |
867 self.browser = None |
895 self.browser = None |
868 |
896 |
869 if Preferences.getUI("ShowSymbolsViewer"): |
897 if Preferences.getUI("ShowSymbolsViewer"): |
870 # Create the symbols viewer |
898 # Create the symbols viewer |
871 logging.debug("Creating Symbols Viewer...") |
899 logging.getLogger(__name__).debug("Creating Symbols Viewer...") |
872 from .SymbolsWidget import SymbolsWidget # noqa: I101 |
900 from .SymbolsWidget import SymbolsWidget # noqa: I101 |
873 |
901 |
874 self.symbolsViewer = SymbolsWidget() |
902 self.symbolsViewer = SymbolsWidget() |
875 else: |
903 else: |
876 logging.debug("Symbols Viewer disabled") |
904 logging.getLogger(__name__).debug("Symbols Viewer disabled") |
877 self.symbolsViewer = None |
905 self.symbolsViewer = None |
878 |
906 |
879 if Preferences.getUI("ShowCodeDocumentationViewer"): |
907 if Preferences.getUI("ShowCodeDocumentationViewer"): |
880 # Create the code documentation viewer |
908 # Create the code documentation viewer |
881 logging.debug("Creating Code Documentation Viewer...") |
909 logging.getLogger(__name__).debug("Creating Code Documentation Viewer...") |
882 from .CodeDocumentationViewer import CodeDocumentationViewer # noqa: I101 |
910 from .CodeDocumentationViewer import CodeDocumentationViewer # noqa: I101 |
883 |
911 |
884 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
912 self.codeDocumentationViewer = CodeDocumentationViewer(self) |
885 else: |
913 else: |
886 logging.debug("Code Documentation Viewer disabled") |
914 logging.getLogger(__name__).debug("Code Documentation Viewer disabled") |
887 self.codeDocumentationViewer = None |
915 self.codeDocumentationViewer = None |
888 |
916 |
889 if Preferences.getUI("ShowPyPIPackageManager"): |
917 if Preferences.getUI("ShowPyPIPackageManager"): |
890 # Create the PyPI package manager |
918 # Create the PyPI package manager |
891 logging.debug("Creating PyPI Package Manager...") |
919 logging.getLogger(__name__).debug("Creating PyPI Package Manager...") |
892 from eric7.PipInterface.PipPackagesWidget import ( # noqa: I101 |
920 from eric7.PipInterface.PipPackagesWidget import ( # noqa: I101 |
893 PipPackagesWidget, |
921 PipPackagesWidget, |
894 ) |
922 ) |
895 |
923 |
896 self.pipWidget = PipPackagesWidget(self.pipInterface) |
924 self.pipWidget = PipPackagesWidget(self.pipInterface) |
897 else: |
925 else: |
898 logging.debug("PyPI Package Manager disabled") |
926 logging.getLogger(__name__).debug("PyPI Package Manager disabled") |
899 self.pipWidget = None |
927 self.pipWidget = None |
900 |
928 |
901 if Preferences.getUI("ShowCondaPackageManager"): |
929 if Preferences.getUI("ShowCondaPackageManager"): |
902 # Create the conda package manager |
930 # Create the conda package manager |
903 logging.debug("Creating Conda Package Manager...") |
931 logging.getLogger(__name__).debug("Creating Conda Package Manager...") |
904 from eric7.CondaInterface.CondaPackagesWidget import ( # noqa: I101 |
932 from eric7.CondaInterface.CondaPackagesWidget import ( # noqa: I101 |
905 CondaPackagesWidget, |
933 CondaPackagesWidget, |
906 ) |
934 ) |
907 |
935 |
908 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
936 self.condaWidget = CondaPackagesWidget(self.condaInterface) |
909 else: |
937 else: |
910 logging.debug("Conda Package Manager disabled") |
938 logging.getLogger(__name__).debug("Conda Package Manager disabled") |
911 self.condaWidget = None |
939 self.condaWidget = None |
912 |
940 |
913 if Preferences.getUI("ShowCooperation"): |
941 if Preferences.getUI("ShowCooperation"): |
914 # Create the chat part of the user interface |
942 # Create the chat part of the user interface |
915 logging.debug("Creating Chat Widget...") |
943 logging.getLogger(__name__).debug("Creating Chat Widget...") |
916 from eric7.Cooperation.ChatWidget import ChatWidget # noqa: I101 |
944 from eric7.Cooperation.ChatWidget import ChatWidget # noqa: I101 |
917 |
945 |
918 self.cooperation = ChatWidget(self) |
946 self.cooperation = ChatWidget(self) |
919 else: |
947 else: |
920 logging.debug("Chat Widget disabled") |
948 logging.getLogger(__name__).debug("Chat Widget disabled") |
921 self.cooperation = None |
949 self.cooperation = None |
922 |
950 |
923 if Preferences.getUI("ShowIrc"): |
951 if Preferences.getUI("ShowIrc"): |
924 # Create the IRC part of the user interface |
952 # Create the IRC part of the user interface |
925 logging.debug("Creating IRC Widget...") |
953 logging.getLogger(__name__).debug("Creating IRC Widget...") |
926 from eric7.Network.IRC.IrcWidget import IrcWidget # noqa: I101 |
954 from eric7.Network.IRC.IrcWidget import IrcWidget # noqa: I101 |
927 |
955 |
928 self.irc = IrcWidget(self) |
956 self.irc = IrcWidget(self) |
929 else: |
957 else: |
930 logging.debug("IRC Widget disabled") |
958 logging.getLogger(__name__).debug("IRC Widget disabled") |
931 self.irc = None |
959 self.irc = None |
932 |
960 |
933 if Preferences.getUI("ShowMicroPython"): |
961 if Preferences.getUI("ShowMicroPython"): |
934 # Create the MicroPython part of the user interface |
962 # Create the MicroPython part of the user interface |
935 logging.debug("Creating MicroPython Widget...") |
963 logging.getLogger(__name__).debug("Creating MicroPython Widget...") |
936 from eric7.MicroPython.MicroPythonWidget import ( # noqa: I101 |
964 from eric7.MicroPython.MicroPythonWidget import ( # noqa: I101 |
937 MicroPythonWidget, |
965 MicroPythonWidget, |
938 ) |
966 ) |
939 |
967 |
940 self.microPythonWidget = MicroPythonWidget(self) |
968 self.microPythonWidget = MicroPythonWidget(self) |
941 else: |
969 else: |
942 logging.debug("MicroPython Widget disabled") |
970 logging.getLogger(__name__).debug("MicroPython Widget disabled") |
943 self.microPythonWidget = None |
971 self.microPythonWidget = None |
944 |
972 |
945 if Preferences.getUI("ShowNumbersViewer"): |
973 if Preferences.getUI("ShowNumbersViewer"): |
946 # Create the numbers viewer |
974 # Create the numbers viewer |
947 logging.debug("Creating Numbers Viewer...") |
975 logging.getLogger(__name__).debug("Creating Numbers Viewer...") |
948 from .NumbersWidget import NumbersWidget # noqa: I101 |
976 from .NumbersWidget import NumbersWidget # noqa: I101 |
949 |
977 |
950 self.numbersViewer = NumbersWidget() |
978 self.numbersViewer = NumbersWidget() |
951 else: |
979 else: |
952 logging.debug("Numbers Viewer disabled") |
980 logging.getLogger(__name__).debug("Numbers Viewer disabled") |
953 self.numbersViewer = None |
981 self.numbersViewer = None |
954 |
982 |
955 # Create the Jedi Assistant |
983 # Create the Jedi Assistant |
956 logging.debug("Creating Jedi Assistant...") |
984 logging.getLogger(__name__).debug("Creating Jedi Assistant...") |
957 self.jediAssistant = AssistantJedi(self, self.viewmanager, self.project) |
985 self.jediAssistant = AssistantJedi(self, self.viewmanager, self.project) |
958 |
986 |
959 # Create the plug-ins repository viewer |
987 # Create the plug-ins repository viewer |
|
988 logging.getLogger(__name__).debug("Creating Plugin Repository Viewer...") |
960 self.pluginRepositoryViewer = PluginRepositoryWidget( |
989 self.pluginRepositoryViewer = PluginRepositoryWidget( |
961 self.pluginManager, integrated=True, parent=self |
990 self.pluginManager, integrated=True, parent=self |
962 ) |
991 ) |
963 self.pluginRepositoryViewer.closeAndInstall.connect( |
992 self.pluginRepositoryViewer.closeAndInstall.connect( |
964 self.__installDownloadedPlugins |
993 self.__installDownloadedPlugins |
965 ) |
994 ) |
966 |
995 |
967 # Create the virtual environments management widget |
996 # Create the virtual environments management widget |
|
997 logging.getLogger(__name__).debug("Creating Virtual Environments Viewer...") |
968 self.__virtualenvManagerWidget = VirtualenvManagerWidget( |
998 self.__virtualenvManagerWidget = VirtualenvManagerWidget( |
969 self.virtualenvManager, self |
999 self.virtualenvManager, self |
970 ) |
1000 ) |
971 |
1001 |
972 self.__findFileDialog = None |
1002 self.__findFileDialog = None |
973 self.__replaceFileDialog = None |
1003 self.__replaceFileDialog = None |
974 if Preferences.getUI("ShowFindFileWidget"): |
1004 if Preferences.getUI("ShowFindFileWidget"): |
975 # Create the find in files widget |
1005 # Create the find in files widget |
976 from .FindFileWidget import FindFileWidget # noqa: I101 |
1006 from .FindFileWidget import FindFileWidget # noqa: I101 |
977 |
1007 |
|
1008 logging.getLogger(__name__).debug("Creating Find/Replace Pane...") |
978 self.__findFileWidget = FindFileWidget(self.project, self) |
1009 self.__findFileWidget = FindFileWidget(self.project, self) |
979 self.__findFileWidget.sourceFile.connect(self.viewmanager.openSourceFile) |
1010 self.__findFileWidget.sourceFile.connect(self.viewmanager.openSourceFile) |
980 self.__findFileWidget.designerFile.connect(self.__designer) |
1011 self.__findFileWidget.designerFile.connect(self.__designer) |
981 self.__findFileWidget.linguistFile.connect(self.__linguist) |
1012 self.__findFileWidget.linguistFile.connect(self.__linguist) |
982 self.__findFileWidget.trpreview.connect(self.__TRPreviewer) |
1013 self.__findFileWidget.trpreview.connect(self.__TRPreviewer) |
983 self.__findFileWidget.pixmapFile.connect(self.__showPixmap) |
1014 self.__findFileWidget.pixmapFile.connect(self.__showPixmap) |
984 self.__findFileWidget.svgFile.connect(self.__showSvg) |
1015 self.__findFileWidget.svgFile.connect(self.__showSvg) |
985 self.__findFileWidget.umlFile.connect(self.__showUml) |
1016 self.__findFileWidget.umlFile.connect(self.__showUml) |
986 else: |
1017 else: |
|
1018 logging.getLogger(__name__).debug("Find/Replace Pane disabled...") |
987 self.__findFileWidget = None |
1019 self.__findFileWidget = None |
988 |
1020 |
989 self.__findLocationDialog = None |
1021 self.__findLocationDialog = None |
990 if Preferences.getUI("ShowFindLocationWidget"): |
1022 if Preferences.getUI("ShowFindLocationWidget"): |
991 # Create the find location (file) widget |
1023 # Create the find location (file) widget |
992 from .FindLocationWidget import FindLocationWidget # noqa: I101 |
1024 from .FindLocationWidget import FindLocationWidget # noqa: I101 |
993 |
1025 |
|
1026 logging.getLogger(__name__).debug("Creating Find File Pane...") |
994 self.__findLocationWidget = FindLocationWidget(self.project, self) |
1027 self.__findLocationWidget = FindLocationWidget(self.project, self) |
995 self.__findLocationWidget.sourceFile.connect( |
1028 self.__findLocationWidget.sourceFile.connect( |
996 self.viewmanager.openSourceFile |
1029 self.viewmanager.openSourceFile |
997 ) |
1030 ) |
998 self.__findLocationWidget.designerFile.connect(self.__designer) |
1031 self.__findLocationWidget.designerFile.connect(self.__designer) |