-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ICInputDialog
- Loading branch information
Showing
29 changed files
with
150 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
Empty file.
10 changes: 10 additions & 0 deletions
10
IMAPClient-Util.package/ICInputDialog.class/class/open.with..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,10 @@ | ||
instance creation | ||
open: aFolderDialogInstance with: aLabel | ||
|instance | | ||
|
||
"if dialog is opened with existing data, its in update mode" | ||
|
||
instance := self new. | ||
instance label: aLabel. | ||
|
||
^ ToolBuilder default open: instance |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/acceptButtonLabel.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 @@ | ||
accessing | ||
acceptButtonLabel | ||
|
||
^ 'Accept' |
9 changes: 9 additions & 0 deletions
9
IMAPClient-Util.package/ICInputDialog.class/instance/buildAcceptButton..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 | ||
buildAcceptButton: builder | ||
|
||
^ builder pluggableButtonSpec new | ||
model: self; | ||
label: #acceptButtonLabel; | ||
action: #submit; | ||
frame: (self guiElementXOffset @ (self guiElementYOffsetOf: 2) | ||
extent: self guiElementWidth @ (self guiElementHeight)) |
8 changes: 8 additions & 0 deletions
8
IMAPClient-Util.package/ICInputDialog.class/instance/buildInputField..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 | ||
buildInputField: builder | ||
|
||
^ builder pluggableInputFieldSpec new | ||
model: self; | ||
askBeforeDiscardingEdits: false; | ||
indicateUnacceptedChanges: false; | ||
frame: (self guiElementXOffset @ (self guiElementYOffsetOf: 1) extent: self guiElementWidth @ self guiElementHeight) |
11 changes: 11 additions & 0 deletions
11
IMAPClient-Util.package/ICInputDialog.class/instance/buildLabel..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 @@ | ||
toolbuilder | ||
buildLabel: builder | ||
|
||
^ builder pluggableInputFieldSpec new | ||
model: self; | ||
color: #checkBoxColor; | ||
askBeforeDiscardingEdits: false; | ||
indicateUnacceptedChanges: false; | ||
readOnly: true; | ||
getText: #label; | ||
frame: (self guiElementXOffset @ (self guiElementYOffsetOf: 0) extent: self guiElementWidth @ self guiElementHeight) |
16 changes: 16 additions & 0 deletions
16
IMAPClient-Util.package/ICInputDialog.class/instance/buildWith..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,16 @@ | ||
toolbuilder | ||
buildWith: builder | ||
|
||
| window| | ||
|
||
window := (builder build: (builder pluggableWindowSpec new | ||
model: self; | ||
extent: 300 @ 200; | ||
children: { | ||
self buildAcceptButton: builder. | ||
self buildInputField: builder. | ||
self buildLabel: builder. | ||
})). | ||
self inputMorph: window. | ||
|
||
^ window |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/checkBoxColor.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 @@ | ||
accessing - user interface | ||
checkBoxColor | ||
|
||
^ Color transparent |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementHeight.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 @@ | ||
accessing - user interface | ||
guiElementHeight | ||
|
||
^ 0.14 |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementWidth.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 @@ | ||
accessing - user interface | ||
guiElementWidth | ||
|
||
^ 0.7 |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementXOffset.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 @@ | ||
accessing - user interface | ||
guiElementXOffset | ||
|
||
^ (1 - self guiElementWidth) / 2 |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementYOffset.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 @@ | ||
accessing - user interface | ||
guiElementYOffset | ||
|
||
^ 0.02 |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementYOffsetOf..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 @@ | ||
accessing - user interface | ||
guiElementYOffsetOf: aNumber | ||
|
||
^ self guiElementYOffset + (aNumber * self guiElementYSpacing) |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/guiElementYSpacing.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 @@ | ||
accessing - user interface | ||
guiElementYSpacing | ||
|
||
^ 0.14 |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/inputMorph..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 @@ | ||
accessing | ||
inputMorph: aMorph | ||
|
||
inputMorph := aMorph |
3 changes: 3 additions & 0 deletions
3
IMAPClient-Util.package/ICInputDialog.class/instance/inputMorph.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 | ||
inputMorph | ||
^ inputMorph |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/label..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 @@ | ||
accessing | ||
label: String | ||
|
||
label := String |
3 changes: 3 additions & 0 deletions
3
IMAPClient-Util.package/ICInputDialog.class/instance/label.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 | ||
label | ||
^ label |
4 changes: 4 additions & 0 deletions
4
IMAPClient-Util.package/ICInputDialog.class/instance/submit.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 @@ | ||
action - button | ||
submit | ||
|
||
self inputMorph abandon. |
21 changes: 21 additions & 0 deletions
21
IMAPClient-Util.package/ICInputDialog.class/methodProperties.json
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,21 @@ | ||
{ | ||
"class" : { | ||
"open:with:" : "RJPG 5/23/2022 10:39" }, | ||
"instance" : { | ||
"acceptButtonLabel" : "RJPG 5/23/2022 10:35", | ||
"buildAcceptButton:" : "RJPG 5/23/2022 10:48", | ||
"buildInputField:" : "RJPG 5/23/2022 10:46", | ||
"buildLabel:" : "RJPG 5/23/2022 10:46", | ||
"buildWith:" : "RJPG 5/23/2022 10:48", | ||
"checkBoxColor" : "RJPG 5/23/2022 10:44", | ||
"guiElementHeight" : "RJPG 5/23/2022 10:41", | ||
"guiElementWidth" : "RJPG 5/23/2022 10:41", | ||
"guiElementXOffset" : "RJPG 5/23/2022 10:41", | ||
"guiElementYOffset" : "RJPG 5/23/2022 10:41", | ||
"guiElementYOffsetOf:" : "RJPG 5/23/2022 10:41", | ||
"guiElementYSpacing" : "RJPG 5/23/2022 10:42", | ||
"inputMorph" : "RJPG 5/23/2022 10:32", | ||
"inputMorph:" : "RJPG 5/23/2022 10:32", | ||
"label" : "RJPG 5/23/2022 10:24", | ||
"label:" : "RJPG 5/23/2022 10:32", | ||
"submit" : "RJPG 5/23/2022 10:43" } } |
15 changes: 15 additions & 0 deletions
15
IMAPClient-Util.package/ICInputDialog.class/properties.json
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,15 @@ | ||
{ | ||
"category" : "IMAPClient-Util", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "", | ||
"instvars" : [ | ||
"label", | ||
"inputMorph" ], | ||
"name" : "ICInputDialog", | ||
"pools" : [ | ||
], | ||
"super" : "Model", | ||
"type" : "normal" } |
7 changes: 5 additions & 2 deletions
7
packages/IMAPClient-UI.package/ICFolderDialog.class/instance/login..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,10 +1,13 @@ | ||
action - emails | ||
login: anEndpoint | ||
|
||
| continueAsking | | ||
|
||
ICInputDialog open: self with: 'Test text'. | ||
|
||
"| continueAsking | | ||
continueAsking := true. | ||
[continueAsking] whileTrue: [ | ||
anEndpoint accountInfo password: (Project uiManager requestPassword: 'Please enter your password!'). | ||
anEndpoint accountInfo password ifEmpty: [^false]. | ||
continueAsking := (self passwordPromtCallback: anEndpoint) not]. | ||
^ true | ||
^ true" |
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
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