Ejemplo n.º 1
0
    def LF_Tools(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()

        files_ = config.getElse("Tools", "files", "True")
        documents_ = config.getElse("Tools", "documents", "True")
        search_ = config.getElse("Tools", "search", "True")
        config.saveConfig()

        tools_ = files_ == documents_ == search_ == False

        if config.getElse("Main", "tools", "True") and not tools_:
            self.lat = self.panelLateral

            if files_:
                from wxgui.editor.lateral_tool_area import File
                self.Files = File()
                self.Files.__initDockFile__(self)
            else:
                self.lat.re

            if documents_:
                from wxgui.editor.lateral_tool_area import Documents
                self.Documents = Documents()
                self.Documents.__initDocuments__(self)
                lateralPath = self.getElse(
                    "IDE", "LateralPath", os.path.join(os.getcwd(),
                                                       "examples"))
                if os.path.isdir(lateralPath):
                    self.Documents.buildLateralDir(lateralPath)
            else:
                self.documents.Destroy()

            if search_:
                from wxgui.editor.lateral_tool_area import Search
                self.Search = Search()
                self.Search.__initSearch__(self)
            else:
                self.search.Destroy()

        else:
            self.splitterCL.Unsplit()
Ejemplo n.º 2
0
    def LF_Tools(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()

        files_ = config.getElse("Tools", "files", "True")
        documents_ = config.getElse("Tools", "documents", "True")
        search_ = config.getElse("Tools", "search", "True")
        config.saveConfig()

        tools_ = files_ == documents_ == search_ == False

        if config.getElse("Main", "tools", "True") and not tools_:
            self.lat = self.panelLateral

            if files_:
                from wxgui.editor.lateral_tool_area import File

                self.Files = File()
                self.Files.__initDockFile__(self)
            else:
                self.lat.re

            if documents_:
                from wxgui.editor.lateral_tool_area import Documents

                self.Documents = Documents()
                self.Documents.__initDocuments__(self)
                lateralPath = self.getElse("IDE", "LateralPath", os.path.join(os.getcwd(), "examples"))
                if os.path.isdir(lateralPath):
                    self.Documents.buildLateralDir(lateralPath)
            else:
                self.documents.Destroy()

            if search_:
                from wxgui.editor.lateral_tool_area import Search

                self.Search = Search()
                self.Search.__initSearch__(self)
            else:
                self.search.Destroy()

        else:
            self.splitterCL.Unsplit()
Ejemplo n.º 3
0
class LoadFeatures:
    """"""

    # ----------------------------------------------------------------------
    def loadFeatures(self):
        """"""
        self.LF_Autocompleter()
        self.LF_Tools()

    # ----------------------------------------------------------------------
    def LF_Autocompleter(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()
        if config.getElse("Main", "auto-complete", "True") and config.getElse("Completer", "Enable", "True"):

            from autocompleter import AutoCompleterIDE

            CharsCount = config.getElse("Completer", "charscount", 1)
            MaxItemsCount = config.getElse("Completer", "MaxItemsCount", 10)
            AutoCompleter = AutoCompleterIDE(self)
            AutoCompleter.__initCompleter__(self, CharsCount, MaxItemsCount)
            AutoCompleter.Hide()
            self.AutoCompleter = AutoCompleter

    # ----------------------------------------------------------------------
    def LF_Tools(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()

        files_ = config.getElse("Tools", "files", "True")
        documents_ = config.getElse("Tools", "documents", "True")
        search_ = config.getElse("Tools", "search", "True")
        config.saveConfig()

        tools_ = files_ == documents_ == search_ == False

        if config.getElse("Main", "tools", "True") and not tools_:
            self.lat = self.panelLateral

            if files_:
                from wxgui.editor.lateral_tool_area import File

                self.Files = File()
                self.Files.__initDockFile__(self)
            else:
                self.lat.re

            if documents_:
                from wxgui.editor.lateral_tool_area import Documents

                self.Documents = Documents()
                self.Documents.__initDocuments__(self)
                lateralPath = self.getElse("IDE", "LateralPath", os.path.join(os.getcwd(), "examples"))
                if os.path.isdir(lateralPath):
                    self.Documents.buildLateralDir(lateralPath)
            else:
                self.documents.Destroy()

            if search_:
                from wxgui.editor.lateral_tool_area import Search

                self.Search = Search()
                self.Search.__initSearch__(self)
            else:
                self.search.Destroy()

        else:
            self.splitterCL.Unsplit()
Ejemplo n.º 4
0
class LoadFeatures:
    """"""

    #----------------------------------------------------------------------
    def loadFeatures(self):
        """"""
        self.LF_Autocompleter()
        self.LF_Tools()

    #----------------------------------------------------------------------
    def LF_Autocompleter(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()
        if config.getElse("Main", "auto-complete", "True") and config.getElse(
                "Completer", "Enable", "True"):

            from autocompleter import AutoCompleterIDE
            CharsCount = config.getElse("Completer", "charscount", 1)
            MaxItemsCount = config.getElse("Completer", "MaxItemsCount", 10)
            AutoCompleter = AutoCompleterIDE(self)
            AutoCompleter.__initCompleter__(self, CharsCount, MaxItemsCount)
            AutoCompleter.Hide()
            self.AutoCompleter = AutoCompleter

    #----------------------------------------------------------------------
    def LF_Tools(self):
        """"""
        config = ReadConfig()
        config.loadConfigFile()

        files_ = config.getElse("Tools", "files", "True")
        documents_ = config.getElse("Tools", "documents", "True")
        search_ = config.getElse("Tools", "search", "True")
        config.saveConfig()

        tools_ = files_ == documents_ == search_ == False

        if config.getElse("Main", "tools", "True") and not tools_:
            self.lat = self.panelLateral

            if files_:
                from wxgui.editor.lateral_tool_area import File
                self.Files = File()
                self.Files.__initDockFile__(self)
            else:
                self.lat.re

            if documents_:
                from wxgui.editor.lateral_tool_area import Documents
                self.Documents = Documents()
                self.Documents.__initDocuments__(self)
                lateralPath = self.getElse(
                    "IDE", "LateralPath", os.path.join(os.getcwd(),
                                                       "examples"))
                if os.path.isdir(lateralPath):
                    self.Documents.buildLateralDir(lateralPath)
            else:
                self.documents.Destroy()

            if search_:
                from wxgui.editor.lateral_tool_area import Search
                self.Search = Search()
                self.Search.__initSearch__(self)
            else:
                self.search.Destroy()

        else:
            self.splitterCL.Unsplit()