-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/hpi-swa-teaching/SWT18-Pr…
- Loading branch information
Showing
12 changed files
with
87 additions
and
111 deletions.
There are no files selected for viewing
35 changes: 9 additions & 26 deletions
35
packages/CalDAV-Core.package/CALAddEventDialog.class/instance/buildButtons..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,30 +1,13 @@ | ||
toolbuilding | ||
buildButtons: aBuilder | ||
|
||
| saveButton buttons beginPickerButton endPickerButton | | ||
|
||
saveButton := aBuilder pluggableActionButtonSpec new. | ||
saveButton | ||
model: self; | ||
action: #saveEvent; | ||
label: 'Save Event'; | ||
frame: (0.01 @ 0.76 corner: self borderRight @ 0.86). | ||
beginPickerButton := aBuilder pluggableActionButtonSpec new. | ||
beginPickerButton | ||
model: self; | ||
label: 'Pick Begin Date'; | ||
action: #pickBeginDate; | ||
frame: (self borderLeft @ 0.32 corner: 0.2 @ 0.42). | ||
endPickerButton := aBuilder pluggableActionButtonSpec new. | ||
endPickerButton | ||
model: self; | ||
label: 'Pick End Date'; | ||
action: #pickEndDate; | ||
frame: (self borderLeft @ 0.43 corner: 0.2 @ 0.53). | ||
| buttons | | ||
|
||
^ buttons := OrderedCollection new | ||
add: saveButton; | ||
add: beginPickerButton; | ||
add: endPickerButton; | ||
add: (self buildFullDayButton: aBuilder); | ||
yourself | ||
buttons := OrderedCollection new. | ||
|
||
buttons add: (self buildSaveButton: aBuilder). | ||
buttons add: (self buildBeginPickerButton: aBuilder). | ||
buttons add: (self buildEndPickerButton: aBuilder). | ||
buttons add: (self buildFullDayButton: aBuilder). | ||
|
||
^ buttons |
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
42 changes: 6 additions & 36 deletions
42
packages/CalDAV-Core.package/CALEditEventDialog.class/instance/buildButtons..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,44 +1,14 @@ | ||
toolbuilding | ||
buildButtons: aBuilder | ||
|
||
| editButton deleteButton buttons beginPickerButton endPickerButton | | ||
| buttons | | ||
|
||
buttons := OrderedCollection new. | ||
|
||
editButton := aBuilder pluggableActionButtonSpec new. | ||
editButton | ||
model: self; | ||
action: #saveEvent; | ||
label: 'Save Event'; | ||
frame: ((self borderRight / 2 + 0.01) @ 0.76 corner: self borderRight @ 0.86); | ||
enabled: self isReadOnly not. | ||
buttons add: editButton. | ||
|
||
deleteButton := aBuilder pluggableActionButtonSpec new. | ||
deleteButton | ||
model: self; | ||
action: #deleteEvent; | ||
label: 'Delete Event'; | ||
frame: (0.01 @ 0.76 corner: (self borderRight / 2) @ 0.86); | ||
enabled: self isReadOnly not. | ||
buttons add: deleteButton. | ||
|
||
beginPickerButton := aBuilder pluggableActionButtonSpec new. | ||
beginPickerButton | ||
model: self; | ||
label: 'Pick Begin Date'; | ||
action: #pickBeginDate; | ||
frame: (self borderLeft@0.32 corner: 0.2@0.42); | ||
enabled: self isReadOnly not. | ||
buttons add: beginPickerButton. | ||
|
||
endPickerButton := aBuilder pluggableActionButtonSpec new. | ||
endPickerButton | ||
model: self; | ||
label: 'Pick End Date'; | ||
action: #pickEndDate; | ||
frame: (self borderLeft @ 0.43 corner: 0.2 @ 0.53); | ||
enabled: self isReadOnly not. | ||
buttons add: endPickerButton. | ||
buttons add: (self buildEditButton: aBuilder). | ||
buttons add: (self buildDeleteButton: aBuilder). | ||
buttons add: (self buildBeginPickerButton: aBuilder). | ||
buttons add: (self buildEndPickerButton: aBuilder). | ||
buttons add: (self buildFullDayButton: aBuilder). | ||
|
||
^ buttons |
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
12 changes: 12 additions & 0 deletions
12
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildBeginPickerButton..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,12 @@ | ||
toolbuilding | ||
buildBeginPickerButton: aBuilder | ||
|
||
| height | | ||
|
||
height := (self spacing * 3) + (self lineHeight * 3). | ||
^ aBuilder pluggableActionButtonSpec new | ||
model: self; | ||
label: 'Pick Begin Date'; | ||
action: #pickBeginDate; | ||
frame: (self borderLeft @ height corner: 0.2 @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. |
46 changes: 5 additions & 41 deletions
46
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildButtons..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,50 +1,14 @@ | ||
toolbuilding | ||
buildButtons: aBuilder | ||
|
||
| editButton deleteButton buttons beginPickerButton endPickerButton height | | ||
| buttons | | ||
|
||
buttons := OrderedCollection new. | ||
|
||
height := (self spacing * 7) + (self lineHeight * 7). | ||
editButton := aBuilder pluggableActionButtonSpec new. | ||
editButton | ||
model: self; | ||
action: #saveEvent; | ||
label: 'Save Event'; | ||
frame: ((self borderRight / 2 + 0.01) @ height corner: self borderRight @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. | ||
buttons add: editButton. | ||
|
||
height := (self spacing * 7) + (self lineHeight * 7). | ||
deleteButton := aBuilder pluggableActionButtonSpec new. | ||
deleteButton | ||
model: self; | ||
action: #deleteEvent; | ||
label: 'Delete Event'; | ||
frame: (self borderLeft @ height corner: (self borderRight / 2) @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. | ||
buttons add: deleteButton. | ||
|
||
height := (self spacing * 3) + (self lineHeight * 3). | ||
beginPickerButton := aBuilder pluggableActionButtonSpec new. | ||
beginPickerButton | ||
model: self; | ||
label: 'Pick Begin Date'; | ||
action: #pickBeginDate; | ||
frame: (self borderLeft @ height corner: 0.2 @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. | ||
buttons add: beginPickerButton. | ||
|
||
height := (self spacing * 4) + (self lineHeight * 4). | ||
endPickerButton := aBuilder pluggableActionButtonSpec new. | ||
endPickerButton | ||
model: self; | ||
label: 'Pick End Date'; | ||
action: #pickEndDate; | ||
frame: (self borderLeft @ height corner: 0.2 @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. | ||
buttons add: endPickerButton. | ||
|
||
buttons add: (self buildEditButton: aBuilder). | ||
buttons add: (self buildDeleteButton: aBuilder). | ||
buttons add: (self buildBeginPickerButton: aBuilder). | ||
buttons add: (self buildEndPickerButton: aBuilder). | ||
buttons add: (self buildFullDayButton: aBuilder). | ||
|
||
^ buttons |
12 changes: 12 additions & 0 deletions
12
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildDeleteButton..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,12 @@ | ||
toolbuilding | ||
buildDeleteButton: aBuilder | ||
|
||
| height | | ||
|
||
height := (self spacing * 7) + (self lineHeight * 7). | ||
^ aBuilder pluggableActionButtonSpec new | ||
model: self; | ||
action: #deleteEvent; | ||
label: 'Delete Event'; | ||
frame: (self borderLeft @ height corner: (self borderRight / 2) @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. |
12 changes: 12 additions & 0 deletions
12
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildEditButton..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,12 @@ | ||
toolbuilding | ||
buildEditButton: aBuilder | ||
|
||
| height | | ||
|
||
height := (self lineHeight * 7) + (self spacing * 7). | ||
^ aBuilder pluggableActionButtonSpec new | ||
model: self; | ||
action: #saveEvent; | ||
label: 'Save Event'; | ||
frame: ((self borderRight / 2 + 0.01) @ height corner: self borderRight @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. |
12 changes: 12 additions & 0 deletions
12
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildEndPickerButton..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,12 @@ | ||
toolbuilding | ||
buildEndPickerButton: aBuilder | ||
|
||
| height | | ||
|
||
height := (self spacing * 4) + (self lineHeight * 4). | ||
^ aBuilder pluggableActionButtonSpec new | ||
model: self; | ||
label: 'Pick End Date'; | ||
action: #pickEndDate; | ||
frame: (self borderLeft @ height corner: 0.2 @ (height + self lineHeight)); | ||
enabled: self isReadOnly not. |
11 changes: 11 additions & 0 deletions
11
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildSaveButton..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,11 @@ | ||
toolbuilding | ||
buildSaveButton: aBuilder | ||
|
||
| height | | ||
|
||
height := (self spacing * 7) + (self lineHeight * 7). | ||
^ aBuilder pluggableActionButtonSpec new | ||
model: self; | ||
action: #saveEvent; | ||
label: 'Save Event'; | ||
frame: (self borderLeft @ height corner: self borderRight @ (height + self lineHeight)). |
4 changes: 0 additions & 4 deletions
4
packages/CalDAV-Core.package/CALEventDialog.class/instance/buildStandardButtons..st
This file was deleted.
Oops, something went wrong.
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