Issue 7346 in pharo: [ENH]: Spec: Add DateModel

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo
Status: Accepted
Owner: [hidden email]
CC: [hidden email]
Labels: Type-Enh Target-Spec

New issue 7346 by [hidden email]: [ENH]: Spec: Add DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

2.0493

 From the class comment:

A DateModel is a widget for choosing dates. It consists of:
- A text box, into which you can type any string which can be converted  
into a Smalltalk date
- A button, which displays a calendar, from which you can select a date

Usage: the simplest way is to add a DateModel in your UI, and send #date  
when you want its value.

As it is Spec-based, it can be easily adapted and composed into a larger UI.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo
Updates:
        Status: FixReviewNeeded

Comment #1 on issue 7346 by [hidden email]: [ENH]: Spec: Add  
DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

Slice in inbox... includes a few minor cleanups. It works, but I would like  
to have the calendar icon fill the whole button. Maybe Ben knows how?

SLICE-Issue-7346-ENH-Spec-Add-DateModel-SeanDeNigris.1

- Add DateModel
- Add calendar icon to fam fam icons
- Change ButtonModel>>#label: argument name to aStringOrImageMorph, to make  
it clear that an image can be passed here
- Add temporary declaration to MethodToolbar class comment to ease "DoIts"


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo

Comment #2 on issue 7346 by [hidden email]: [ENH]: Spec: Add  
DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

To test:
"DateModel new openWithSpec"


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo

Comment #3 on issue 7346 by [hidden email]: [ENH]: Spec: Add  
DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

I just committed a new version with:
     - layout a bit changed (I would say a bit better looking ^^)
     - add a protocol method to register on date change


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo
Updates:
        Status: FixToInclude

Comment #4 on issue 7346 by [hidden email]: [ENH]: Spec: Add  
DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

Nice! Looks better :)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7346 in pharo: [ENH]: Spec: Add DateModel

pharo
In reply to this post by pharo
Updates:
        Status: Integrated

Comment #6 on issue 7346 by [hidden email]: [ENH]: Spec: Add DateModel
http://code.google.com/p/pharo/issues/detail?id=7346

in 20499


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker