Changeset View
Changeset View
Standalone View
Standalone View
src/ViewSplitter.h
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | 53 | public: | |||
---|---|---|---|---|---|
86 | * To find the currently active container, use | 86 | * To find the currently active container, use | ||
87 | * mySplitter->activeSplitter()->activeContainer() where mySplitter | 87 | * mySplitter->activeSplitter()->activeContainer() where mySplitter | ||
88 | * is the ViewSplitter widget at the top of the hierarchy. | 88 | * is the ViewSplitter widget at the top of the hierarchy. | ||
89 | */ | 89 | */ | ||
90 | TerminalDisplay *activeTerminalDisplay() const; | 90 | TerminalDisplay *activeTerminalDisplay() const; | ||
91 | 91 | | |||
92 | /** Makes the current TerminalDisplay expanded to 100% of the view | 92 | /** Makes the current TerminalDisplay expanded to 100% of the view | ||
93 | */ | 93 | */ | ||
94 | void maximizeCurrentTerminal(); | 94 | void toggleMaximizeCurrentTerminal(); | ||
95 | | ||||
96 | /** Restore the sizes of the terminals. | | |||
97 | */ | | |||
98 | void restoreOtherTerminals(); | | |||
99 | 95 | | |||
100 | void handleMinimizeMaximize(bool maximize); | 96 | void handleMinimizeMaximize(bool maximize); | ||
101 | 97 | | |||
102 | /** returns the splitter that has no splitter as a parent. */ | 98 | /** returns the splitter that has no splitter as a parent. */ | ||
103 | ViewSplitter *getToplevelSplitter(); | 99 | ViewSplitter *getToplevelSplitter(); | ||
104 | 100 | | |||
105 | /** | 101 | /** | ||
106 | * Gives the focus to the active view in the specified container | 102 | * Gives the focus to the active view in the specified container | ||
Show All 16 Lines | |||||
123 | void focusLeft(); | 119 | void focusLeft(); | ||
124 | void focusRight(); | 120 | void focusRight(); | ||
125 | 121 | | |||
126 | void handleFocusDirection(Qt::Orientation orientation, int direction); | 122 | void handleFocusDirection(Qt::Orientation orientation, int direction); | ||
127 | 123 | | |||
128 | void childEvent(QChildEvent* event) override; | 124 | void childEvent(QChildEvent* event) override; | ||
129 | private: | 125 | private: | ||
130 | void updateSizes(); | 126 | void updateSizes(); | ||
127 | bool m_terminalMaximized = false; | ||||
131 | }; | 128 | }; | ||
132 | } | 129 | } | ||
133 | #endif //VIEWSPLITTER_H | 130 | #endif //VIEWSPLITTER_H |