-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide asset base version when showBase preference is disabled
- Loading branch information
Showing
7 changed files
with
50 additions
and
15 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
src/Squot.package/SquotConflictingAssetChange.class/instance/buildBaseVersionWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toolbuilder | ||
buildBaseVersionWith: builder | ||
^ self | ||
buildDynamicVersion: #buildBase: | ||
label: 'Base:' | ||
resolveAction: #resolveToBase | ||
state: #isResolvedToBase | ||
with: builder |
17 changes: 3 additions & 14 deletions
17
src/Squot.package/SquotConflictingAssetChange.class/instance/buildBody..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
toolbuilder | ||
buildBody: builder | ||
^ SquotGUIUtilities buildEvenGrid: { | ||
{ | ||
{#buildBase:. 'Base:'. #resolveToBase. #isResolvedToBase}. | ||
{#buildLeft:. 'Current:'. #resolveToLeft. #isResolvedToLeft}. | ||
{#buildRight:. 'Incoming:'. #resolveToRight. #isResolvedToRight} | ||
} collect: [:each | | ||
self | ||
buildDynamicVersion: each first | ||
label: each second | ||
resolveAction: each third | ||
state: each fourth | ||
with: builder]. | ||
self buildResolutionPanel: builder. | ||
} ofSize: 2 @ 2 with: builder | ||
^ SquotPreferences showBase | ||
ifTrue: [self buildBodyWithBase: builder] | ||
ifFalse: [self buildBodyWithoutBase: builder] |
8 changes: 8 additions & 0 deletions
8
src/Squot.package/SquotConflictingAssetChange.class/instance/buildBodyWithBase..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toolbuilder | ||
buildBodyWithBase: builder | ||
^ SquotGUIUtilities buildEvenGrid: { | ||
self buildBaseVersionWith: builder. | ||
self buildLeftVersionWith: builder. | ||
self buildRightVersionWith: builder. | ||
self buildResolutionPanel: builder. | ||
} ofSize: 2 @ 2 with: builder |
9 changes: 9 additions & 0 deletions
9
src/Squot.package/SquotConflictingAssetChange.class/instance/buildBodyWithoutBase..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
toolbuilder | ||
buildBodyWithoutBase: builder | ||
^ SquotGUIUtilities buildVerticalSplit: 0.5 | ||
of: (SquotGUIUtilities buildHorizontalSplit: 0.5 | ||
of: (self buildLeftVersionWith: builder) | ||
and: (self buildRightVersionWith: builder) | ||
with: builder) | ||
and: (self buildResolutionPanel: builder) | ||
with: builder |
8 changes: 8 additions & 0 deletions
8
src/Squot.package/SquotConflictingAssetChange.class/instance/buildLeftVersionWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toolbuilder | ||
buildLeftVersionWith: builder | ||
^ self | ||
buildDynamicVersion: #buildLeft: | ||
label: 'Current:' | ||
resolveAction: #resolveToLeft | ||
state: #isResolvedToLeft | ||
with: builder |
8 changes: 8 additions & 0 deletions
8
src/Squot.package/SquotConflictingAssetChange.class/instance/buildRightVersionWith..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
toolbuilder | ||
buildRightVersionWith: builder | ||
^ self | ||
buildDynamicVersion: #buildRight: | ||
label: 'Incoming:' | ||
resolveAction: #resolveToRight | ||
state: #isResolvedToRight | ||
with: builder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters