Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Minimalistic view (full-size editor or shell) #289

@almarklein

Description

@almarklein

Originally reported by: Anonymous


Matlab IDE has a feature that I uses quite often:
Whenever you double-click the title-bar of a window, it maximizes, and becomes the only window remaining. It is really helpful when you need to place matlab side-by-side with some other texts.

Please consider adding this feature to IEP, no need to add it to every tools, maximizing the editor and shell would be enough.

I tried to edit the source code myself, and for the editor it seems to works fine, but not for the shell window. Here is what I got so far:

in class EditorTabs:

is_maximized = False

def toggleMaximize(self):
    """ Toggle maximize status of the editor window. """
    from iep.tools import ToolManager
    for toolname in iep.toolManager.getLoadedTools():
        tool = iep.toolManager.getTool(toolname) 
        if self.is_maximized:
            tool.parent().show()
        else:
            tool.parent().hide()

    if self.is_maximized:
        iep.shells.parent().show()
    else:
        iep.shells.parent().hide()

    self.is_maximized = not self.is_maximized                    
    self.show()

Thank you for the excellent work.


Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions