Ok now I got it.

Stef

On 5/10/14 19:53, Tudor Girba wrote:
Hi Stef,

I was not clear. The E.g. presentation for a class lists all examples. So, it is expected that we get more examples for a class. Take a look at the attached screenshot showing the examples of FileReference.

Let's call it <example> and then we use it consistently throughout the system. Is that Ok?

Cheers,
Doru

Inline image 1

On Sun, Oct 5, 2014 at 5:58 PM, stepharo <[email protected] <mailto:[email protected]>> wrote:


    On 5/10/14 15:10, Tudor Girba wrote:
    Hi Stef,

    Great. GT is already prepared for this :). If you define a
    <gtExample> on the class side, you will get an "E.g." tab with
    those examples.

    It's called gtExample because we did not want to interfere with
    other pragmas, but perhaps we can change it to <eg>, or
    <example>. What do you think?

    for a given class I would like to have potentially multiple
    examples. I already have that in certain classes.
    Then since these examples are for core classes I do not really
    like the idea to get gt*

    Now first we should have many more and renaming a pragma is just
    the easy part of the game.
    Because I'm turning WidgetExamples into class methods examples and
    trying to understand the API of UITheme
    and reducing the mess.

    I want

        - UITheme to call widgets class methods
        - but I have to understand the theme impact on the API.

    a kind of gigantic task. but we will see.
    Stef


    Cheers,
    Doru


    On Sun, Oct 5, 2014 at 2:25 PM, stepharo <[email protected]
    <mailto:[email protected]>> wrote:

        Hi guys

        I started to systematically defined widget example using the
        pragram <exampleWidget>


        rowPrototype
            "Answer a prototypical row"
            "self rowPrototype openInHand"
            <exampleWidget>

            | sampleMorphs aRow |
            sampleMorphs := (1 to: (2 + 3 atRandom)) collect:
                [:integer | EllipseMorph new extent: ((60 + (20
        atRandom)) @ (80 + ((20 atRandom)))); color: Color random;
        setNameTo: ('egg', integer asString); yourself].
            aRow := self inARow: sampleMorphs.
            aRow setNameTo: 'Row'.
            aRow enableDragNDrop.
            aRow cellInset: 6.
            aRow layoutInset: 8.
            aRow setBalloonText: 'Things dropped into here will
        automatically be organized into a row. Once you have added
        your own items here, you will want to remove the sample
        colored eggs that this started with, and you will want to
        change this balloon help message to one of your own!'.
            aRow color: Color veryVeryLightGray.
            ^ aRow

        This means that GTool will get instances for free to play
        with and the finder get really handy to browse widgets.

        If you want to join the effort you are welcome.

        Stef




-- www.tudorgirba.com <http://www.tudorgirba.com>

    "Every thing has its own flow"




--
www.tudorgirba.com <http://www.tudorgirba.com>

"Every thing has its own flow"

Reply via email to