-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added page number visualization close #59
- Loading branch information
MkuuWaUjinga
committed
Jul 18, 2017
1 parent
15b5279
commit 797d37f
Showing
29 changed files
with
118 additions
and
56 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/addNumberToSign.colored..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,6 @@ | ||
visualization | ||
addNumberToSign: aNumber colored: aColor | ||
|
||
self visualization addMorphBack: (StringMorph new contents: aNumber asString; | ||
color: aColor; | ||
font: (StrikeFont familyName: 'ComicSansMS' pointSize: 36 emphasized: 1)). |
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
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ as yet unclassified | |
delete | ||
|
||
super delete. | ||
self visualization delete. | ||
WAExpose hasDashboard: false. |
4 changes: 4 additions & 0 deletions
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/deletePageNumberAt..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,4 @@ | ||
visualization | ||
deletePageNumberAt: aNumber | ||
|
||
(self visualization submorphs at: aNumber) delete. |
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
2 changes: 1 addition & 1 deletion
2
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/getWindowsInCurrentSpace.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,4 +1,4 @@ | ||
as yet unclassified | ||
spaces | ||
getWindowsInCurrentSpace | ||
|
||
|windows| | ||
|
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
2 changes: 1 addition & 1 deletion
2
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/initializeDownButton.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
2 changes: 1 addition & 1 deletion
2
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/initializeUpButton.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
17 changes: 17 additions & 0 deletions
17
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/initializeVisualization.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,17 @@ | ||
visualization | ||
initializeVisualization | ||
|
||
self visualization: (Morph new position: ActiveWorld extent x - 45 @ 0; | ||
extent: 45@ActiveWorld extent y; | ||
clipSubmorphs: true; | ||
disableTableLayout: true; | ||
color: (Color black); | ||
changeTableLayout; | ||
listDirection: #topToBottom; | ||
listCentering: #center; | ||
cellInset: 10; | ||
layoutInset: 20). | ||
|
||
1 to: self numberPages do: [:n | n = self currentPage ifTrue: [self addNumberToSign: n colored: Color white ] ifFalse: [self addNumberToSign: n colored: Color gray]]. | ||
|
||
self visualization openInWorld. |
4 changes: 4 additions & 0 deletions
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/isFirstPage.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,4 @@ | ||
pages | ||
isFirstPage | ||
|
||
^ self currentPage <= 1. |
4 changes: 4 additions & 0 deletions
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/isLastPage.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,4 @@ | ||
pages | ||
isLastPage | ||
|
||
^ self currentPage = self numberPages. |
12 changes: 8 additions & 4 deletions
12
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/nextPage.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,15 +1,19 @@ | ||
as yet unclassified | ||
pages | ||
nextPage | ||
|
||
self currentPage < self numberPages ifTrue: [ | ||
self isLastPage ifFalse: [ | ||
self thumbnailsOnPage do: [:thmb|thmb delete]. | ||
|
||
(self visualization submorphs at: self currentPage) color: Color gray. | ||
|
||
self currentPage: self currentPage + 1. | ||
|
||
(self pageDict at: self currentPage) do: [:thmb | self addMorphBack: thmb]. | ||
|
||
self selectWindow: (self pageDict at: currentPage) first. | ||
|
||
self selectWindow: (self pageDict at: self currentPage) first. | ||
|
||
(self visualization submorphs at: self currentPage) color: Color white. | ||
|
||
self updateLayout. | ||
]. | ||
|
3 changes: 2 additions & 1 deletion
3
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/numberOfWindowsOnPage.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,3 +1,4 @@ | ||
accessing | ||
numberOfWindowsOnPage | ||
^ numberOfWindowsOnPage | ||
|
||
^ numberOfWindowsOnPage. |
2 changes: 1 addition & 1 deletion
2
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/numberPages.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,4 +1,4 @@ | ||
as yet unclassified | ||
pages | ||
numberPages | ||
|
||
^ self pageDict size. |
13 changes: 8 additions & 5 deletions
13
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/previousPage.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,14 +1,17 @@ | ||
as yet unclassified | ||
pages | ||
previousPage | ||
|
||
self currentPage > 1 ifTrue: [ | ||
self thumbnailsOnPage do: [:thmb|thmb delete]. | ||
|
||
self isFirstPage ifFalse: [ | ||
|
||
self thumbnailsOnPage ifNotEmpty: [self thumbnailsOnPage do: [:thmb|thmb delete]. (self visualization submorphs at: self currentPage) color: Color gray.]. | ||
|
||
self currentPage: self currentPage - 1. | ||
|
||
(self pageDict at: self currentPage) do: [:thmb | self addMorphBack: thmb]. | ||
|
||
self selectWindow: (self pageDict at: self currentPage) last. | ||
|
||
|
||
(self visualization submorphs at: self currentPage) color: Color white. | ||
|
||
self updateLayout. | ||
]. |
4 changes: 3 additions & 1 deletion
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/selectNextWindow.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,4 +1,6 @@ | ||
as yet unclassified | ||
selectNextWindow | ||
|
||
self selectWindow: (self thumbnailsOnPage atWrap: (self thumbnailsOnPage indexOf: self selectedWindow) + 1). | ||
self thumbnailsOnPage ifNotEmpty: [ | ||
self selectWindow: (self thumbnailsOnPage atWrap: (self thumbnailsOnPage indexOf: self selectedWindow) + 1) | ||
] |
4 changes: 3 additions & 1 deletion
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/selectPreviousWindow.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,4 +1,6 @@ | ||
as yet unclassified | ||
selectPreviousWindow | ||
|
||
self selectWindow: (self thumbnailsOnPage atWrap: (self thumbnailsOnPage indexOf: self selectedWindow) - 1). | ||
self thumbnailsOnPage ifNotEmpty: [ | ||
self selectWindow: (self thumbnailsOnPage atWrap: (self thumbnailsOnPage indexOf: self selectedWindow) - 1) | ||
] |
4 changes: 2 additions & 2 deletions
4
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/thumbnailsOnPage.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,4 +1,4 @@ | ||
as yet unclassified | ||
pages | ||
thumbnailsOnPage | ||
|
||
^ (self submorphs copyWithout: selectionRectangle) intersection: ((self submorphs copyWithout: arrowDown) intersection: (self submorphs copyWithout: arrowUp)). | ||
^ self submorphs reject: [:each | (Array with: selectionRectangle with: arrowDown with: arrowUp) includes: each]. |
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
3 changes: 3 additions & 0 deletions
3
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/visualization..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,3 @@ | ||
accessing | ||
visualization: anObject | ||
visualization := anObject |
3 changes: 3 additions & 0 deletions
3
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/visualization.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,3 @@ | ||
accessing | ||
visualization | ||
^ visualization |
7 changes: 4 additions & 3 deletions
7
packages/WindowAcrobatics-Core.package/WAExpose.class/instance/windowFromNextPage..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,6 +1,7 @@ | ||
as yet unclassified | ||
pages | ||
windowFromNextPage: aNumber | ||
|
||
aNumber > self numberPages ifTrue: [(self pageDict at: aNumber - 1) isEmpty ifTrue: [self pageDict removeKey: aNumber - 1]] | ||
ifFalse: [| wnd | wnd := (self pageDict at: aNumber) removeFirst. (self pageDict at: aNumber - 1) addLast: wnd. ^ self windowFromNextPage: aNumber + 1 ]. | ||
aNumber > self numberPages ifTrue: [(self pageDict at: aNumber - 1) isEmpty ifTrue: [self pageDict removeKey: aNumber - 1. self deletePageNumberAt: aNumber - 1]] | ||
ifFalse: [| wnd | wnd := (self pageDict at: aNumber) removeFirst. (self pageDict at: aNumber - 1) addLast: wnd. | ||
^ self windowFromNextPage: aNumber + 1 ]. | ||
|
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
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
3 changes: 1 addition & 2 deletions
3
...es/WindowAcrobatics-Core.package/WASpaceNumber.class/instance/addNumberToSign.colored..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,7 +1,6 @@ | ||
drawing | ||
addNumberToSign: aNumber colored: aColor | ||
|
||
self addMorphBack: (StringMorph new center: self center; | ||
contents: aNumber asString; | ||
self addMorphBack: (StringMorph new contents: aNumber asString; | ||
color: aColor; | ||
font: (StrikeFont familyName: 'ComicSansMS' pointSize: 36 emphasized: 1)). |
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
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
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