summaryrefslogtreecommitdiffstats
path: root/pkg/gui/types/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/types/common.go')
-rw-r--r--pkg/gui/types/common.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/gui/types/common.go b/pkg/gui/types/common.go
index 81c2cb385..dcccc1747 100644
--- a/pkg/gui/types/common.go
+++ b/pkg/gui/types/common.go
@@ -60,6 +60,9 @@ type IGuiCommon interface {
CurrentStaticContext() Context
CurrentSideContext() Context
IsCurrentContext(Context) bool
+ // TODO: replace the above context-based methods with just using Context() e.g. replace PushContext() with Context().Push()
+ Context() IContextMgr
+
// enters search mode for the current view
OpenSearch()
@@ -81,6 +84,7 @@ type IGuiCommon interface {
Git() *commands.GitCommand
OS() *oscommands.OSCommand
Model() *Model
+
Modes() *Modes
Mutexes() Mutexes
@@ -90,6 +94,10 @@ type IGuiCommon interface {
KeybindingsOpts() KeybindingsOpts
}
+type IModeMgr interface {
+ IsAnyModeActive() bool
+}
+
type IPopupHandler interface {
// Shows a popup with a (localized) "Error" caption and the given error message (in red).
//
@@ -220,6 +228,8 @@ type IStateAccessor interface {
SetUpdating(bool)
SetIsRefreshingFiles(bool)
GetIsRefreshingFiles() bool
+ GetShowExtrasWindow() bool
+ SetShowExtrasWindow(bool)
}
type IRepoStateAccessor interface {
@@ -230,6 +240,10 @@ type IRepoStateAccessor interface {
GetCurrentPopupOpts() *CreatePopupPanelOpts
SetCurrentPopupOpts(*CreatePopupPanelOpts)
GetScreenMode() WindowMaximisation
+ SetScreenMode(WindowMaximisation)
+ IsSearching() bool
+ SetSplitMainPanel(bool)
+ GetSplitMainPanel() bool
}
// startup stages so we don't need to load everything at once