Navigation Menu

Skip to content

Commit

Permalink
minor widget updates (mostly formatting)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwilcox committed Jun 19, 2020
1 parent 4db988a commit 74c5468
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions NotesMode/NotesMode/NotesUI.class.st
Expand Up @@ -172,26 +172,33 @@ NotesUI >> initializeWidgets [
"comment stating purpose of message"

| calendarAsMorph |

menu := MenuModel new
addGroup: [ :group |
super addStandardToolbarItemsTo: group.

group
addItem: [ :item |
item
name: 'List Entities';
description: 'List Entities';
subMenu: self listSubMenu ];
subMenu: self listSubMenu.
];
addItem: [ :item |
item
name: 'Focus';
description: 'New window whose contents will get appended to the bigger one';
action: [ self spawnFocusWindow ] ];
addItem: [ :item |
action: [ self spawnFocusWindow ] ] ;

addItem: [ :item |
item
name: 'insert';
description: 'Insert';
subMenu: self insertSubMenu ] ].
name: 'insert';
description: 'Insert';
subMenu: self insertSubMenu .
].
].
menu applyTo: self.

wikiWordsList := self newList. " a ListModel"
wikiWordsList items: {'entity list'}.
"wikiWordsList whenSelectedItemChanged: [ :txtLine|| numberLocation |
Expand All @@ -201,18 +208,23 @@ NotesUI >> initializeWidgets [
].
"
"TODO: implement me properly."

entryPeekText := TextModel new.
entryPeekText text: 'Scratch or focus text'.

calendarAsMorph := NotesFocusMonthMorph openOn: Date today.
calendarNavigator := calendarAsMorph asSpecAdapter.
calendarAsMorph announcer
when: ChoseDate
subscribe: ChoseDate
do: [ :inEvent |
| whatDate |

whatDate := inEvent date.
self handleDateClicked: whatDate
"entryPeekText text: whatDate mmddyyyy " ].
super initializeWidgets

super initializeWidgets .

]

{ #category : #'acessing text' }
Expand Down

0 comments on commit 74c5468

Please sign in to comment.