AssistantApplication.st
author Claus Gittinger <cg@exept.de>
Thu, 22 Oct 2009 21:58:17 +0200
changeset 3814 71bd81ca3f67
parent 3813 0595ad4f2239
child 3815 941f6ea588e8
permissions -rw-r--r--
changed: #documentation #mainMenu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"{ Package: 'stx:libwidg2' }"
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
3812
f65a55aadf08 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3811
diff changeset
     3
ToolApplicationModel subclass:#AssistantApplication
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'currentPageSpecHolder backButtonEnabled forwardButtonEnabled
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
		backButtonVisible forwardButtonVisible finishButtonVisible
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
     6
		finishButtonEnabled currentPageInfoHTMLHolder
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
		currentPageIndexHolder backButtonLabelHolder
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
     8
		nextButtonLabelHolder pageLabelsInList pageInfoHolder'
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
	classVariableNames:''
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
	poolDictionaries:''
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
	category:'Views-DialogBoxes'
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
!AssistantApplication class methodsFor:'documentation'!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    16
documentation
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    17
"
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    18
    an easy to use framework for assistant-dialog applications.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    19
    These are multipage applications, in which the user is able to navigate
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    20
    along achain of pages as specified in the AssistantSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    21
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    22
    see stx:doc/coding:DemoAssistant for a demo example.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    23
    see ProjectBuilderAssistantApplication for a concrete example.
3814
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
    24
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
    25
    [author:]
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
    26
        Claus Gittinger
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    27
"
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
    30
!AssistantApplication class methodsFor:'help'!
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
    31
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    32
flyByHelpSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    33
    <resource: #help>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    34
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    35
    ^ super flyByHelpSpec addPairsFrom:#(
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    36
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    37
#backButton
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    38
'Navigate to the previous page %(previousPageInfo)'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    39
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    40
#nextButton
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    41
'Navigate to the next page %(nextPageInfo)'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    42
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    43
)
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
    44
! !
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
    45
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    46
!AssistantApplication class methodsFor:'image specs'!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    47
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    48
bulletIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    49
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    50
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    51
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    52
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    53
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    54
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    55
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    56
     self bulletIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    57
     ImageEditor openOnClass:self andSelector:#bulletIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    58
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    59
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    60
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    61
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    62
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    63
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    64
        constantNamed:'AssistantApplication class bulletIcon'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    65
        ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@% @@BPA @@P@D@@ @@ @D@@D@A@@A@@ @@ @A@@P@@$@X@@@% @@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 84 84 84 170 170 170 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@<@O<@?0G? _>A?8G? O<@?0@<@@@@@@@@@b') ; yourself); yourself]
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    66
!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    67
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    68
leftArrowIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    69
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    70
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    71
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    72
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    73
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    74
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    75
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    76
     self leftArrowIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    77
     ImageEditor openOnClass:self andSelector:#leftArrowIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    78
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    79
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    80
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    81
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    82
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    83
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    84
        constantNamed:'AssistantApplication class leftArrowIcon'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    85
        ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@D@@@@G@@@@G??<@A???@@G@@@@@P@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 84 84 84 170 170 170 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@A@@L@A0@O@A?>O?9??''?>O?8_? <@A0@C@@D@@@@b') ; yourself); yourself]
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    86
!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
    87
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    88
rightArrowIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    89
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    90
     by the ImageEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    91
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    92
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    93
     the ImageEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    94
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    95
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    96
     self rightArrowIcon inspect
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    97
     ImageEditor openOnClass:self andSelector:#rightArrowIcon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    98
     Icon flushCachedIcons
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
    99
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   100
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   101
    <resource: #image>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   102
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   103
    ^Icon
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   104
        constantNamed:'AssistantApplication class rightArrowIcon'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   105
        ifAbsentPut:[(Depth2Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#[2]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@P@@@@M@@O??4@C??=@@@@M@@@@A@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@a') ; colorMapFromArray:#[0 0 0 84 84 84 170 170 170 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#[1]); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@ @C@@N@@<G?8_?1??''?>_?1?>@C0@N@@0@B@@@@b') ; yourself); yourself]
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   106
! !
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   107
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
!AssistantApplication class methodsFor:'interface specs'!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
windowSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
    "This resource specification was automatically generated
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
     by the UIPainter of ST/X."
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
    "Do not manually edit this!! If it is corrupted,
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
     the UIPainter may not be able to read the specification."
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    "
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
     UIPainter new openOnClass:AssistantApplication andSelector:#windowSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   119
     AssistantApplication new openInterface:#windowSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   120
     AssistantApplication open
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   121
    "
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
    <resource: #canvas>
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
    ^ 
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   126
     #(FullSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
        name: windowSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
        window: 
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
       (WindowSpec
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
          label: 'NewApplication'
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
          name: 'NewApplication'
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
          bounds: (Rectangle 0 0 534 440)
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   133
          menu: mainMenu
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
        )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   135
        component: 
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   136
       (SpecCollection
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   137
          collection: (
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   138
           (MenuPanelSpec
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   139
              name: 'ToolBar1'
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   140
              layout: (LayoutFrame 0 0 0 0 0 1 40 0)
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   141
              menu: toolbarMenu
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   142
              textDefault: true
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   143
            )
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   144
           (ViewSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   145
              name: 'Box1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   146
              layout: (LayoutFrame 0 0 40 0 0 1 -25 1)
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
              component: 
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
             (SpecCollection
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
                collection: (
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   150
                 (VariableHorizontalPanelSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   151
                    name: 'VariableHorizontalPanel1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   152
                    layout: (LayoutFrame 0 0 0 0 0 1 -40 1)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   153
                    component: 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   154
                   (SpecCollection
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   155
                      collection: (
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   156
                       (ViewSpec
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   157
                          name: 'Box2'
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   158
                          component: 
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   159
                         (SpecCollection
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   160
                            collection: (
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   161
                             (SequenceViewSpec
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   162
                                name: 'PagesLabelList'
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   163
                                layout: (LayoutFrame 0 0 0 0 0 1 0 0.7)
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   164
                                level: 0
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   165
                                enableChannel: false
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   166
                                hasHorizontalScrollBar: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   167
                                hasVerticalScrollBar: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   168
                                useIndex: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   169
                                sequenceList: pageLabelsInList
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   170
                              )
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   171
                             (HTMLViewSpec
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   172
                                name: 'HTMLBrowser1'
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   173
                                layout: (LayoutFrame 0 0 0 0.7 0 1 0 1)
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   174
                                level: 0
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   175
                                hasHorizontalScrollBar: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   176
                                hasVerticalScrollBar: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   177
                                miniScrollerHorizontal: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   178
                                miniScrollerVertical: true
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   179
                                htmlText: pageInfoHolder
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   180
                              )
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   181
                             )
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   182
                           
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   183
                          )
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   184
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   185
                       (SubCanvasSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   186
                          name: 'SubCanvas1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   187
                          hasHorizontalScrollBar: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   188
                          hasVerticalScrollBar: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   189
                          miniScrollerHorizontal: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   190
                          miniScrollerVertical: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   191
                          specHolder: currentPageSpecHolder
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   192
                          createNewBuilder: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   193
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   194
                       )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   195
                     
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   196
                    )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   197
                    handles: (Any 0.5 1.0)
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   198
                  )
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   199
                 (HorizontalPanelViewSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   200
                    name: 'ButtonPanel1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   201
                    layout: (LayoutFrame 0 0 -40 1 0 0.5 0 1)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   202
                    horizontalLayout: centerMax
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   203
                    verticalLayout: center
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   204
                    horizontalSpace: 3
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   205
                    verticalSpace: 3
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   206
                    component: 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   207
                   (SpecCollection
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   208
                      collection: (
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   209
                       (ActionButtonSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   210
                          label: 'Back'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   211
                          name: 'Button1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   212
                          activeHelpKey: backButton
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   213
                          visibilityChannel: backButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   214
                          translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   215
                          labelChannel: backButtonLabelHolder
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   216
                          model: goBackward
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   217
                          enableChannel: backButtonEnabled
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   218
                          useDefaultExtent: true
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   219
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   220
                       (ActionButtonSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   221
                          label: 'Next'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   222
                          name: 'Button2'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   223
                          activeHelpKey: nextButton
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   224
                          visibilityChannel: forwardButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   225
                          translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   226
                          labelChannel: nextButtonLabelHolder
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   227
                          model: goForward
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   228
                          enableChannel: forwardButtonEnabled
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   229
                          useDefaultExtent: true
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   230
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   231
                       )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   232
                     
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   233
                    )
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
                  )
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   235
                 (HorizontalPanelViewSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   236
                    name: 'ButtonPanel2'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   237
                    layout: (LayoutFrame 0 0.5 -40 1 0 1 0 1)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   238
                    horizontalLayout: centerMax
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   239
                    verticalLayout: center
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   240
                    horizontalSpace: 3
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   241
                    verticalSpace: 3
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   242
                    ignoreInvisibleComponents: false
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   243
                    component: 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   244
                   (SpecCollection
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   245
                      collection: (
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   246
                       (ActionButtonSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   247
                          label: 'Finish'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   248
                          name: 'Button7'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   249
                          visibilityChannel: finishButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   250
                          translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   251
                          resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   252
                          model: doFinish
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   253
                          enableChannel: finishButtonEnabled
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   254
                          extent: (Point 65 22)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   255
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   256
                       (ActionButtonSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   257
                          label: 'Cancel'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   258
                          name: 'Button8'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   259
                          translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   260
                          resizeForLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   261
                          model: doCancel
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   262
                          extent: (Point 65 22)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   263
                        )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   264
                       )
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   265
                     
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   266
                    )
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   267
                  )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   268
                 )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   269
               
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   270
              )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   271
            )
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   272
           (LabelSpec
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   273
              label: 'Label'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   274
              name: 'Label1'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   275
              layout: (LayoutFrame 1 0 -25 1 -1 1 -1 1)
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   276
              level: -1
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   277
              translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   278
              labelChannel: infoHolder
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   279
              adjust: left
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   280
            )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
           )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
         
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
        )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
      )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
!AssistantApplication class methodsFor:'menu specs'!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   289
mainMenu
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   290
    "This resource specification was automatically generated
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   291
     by the MenuEditor of ST/X."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   292
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   293
    "Do not manually edit this!! If it is corrupted,
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   294
     the MenuEditor may not be able to read the specification."
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   295
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   296
    "
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   297
     MenuEditor new openOnClass:AssistantApplication andSelector:#mainMenu
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   298
     (Menu new fromLiteralArrayEncoding:(AssistantApplication mainMenu)) startUp
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   299
    "
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   301
    <resource: #menu>
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   303
    ^ 
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   304
     #(Menu
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   305
        (
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   306
         (MenuItem
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   307
            label: 'File'
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   308
            translateLabel: true
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   309
            submenu: 
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   310
           (Menu
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   311
              (
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   312
               (MenuItem
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   313
                  label: 'Exit'
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   314
                  itemValue: closeRequest
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   315
                  translateLabel: true
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                )
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   317
               )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   318
              nil
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   319
              nil
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
            )
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   321
          )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   322
         (MenuItem
3814
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
   323
            label: 'MENU_Help'
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
   324
            startGroup: conditionalRight
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   325
            translateLabel: true
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   326
            submenu: 
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   327
           (Menu
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   328
              (
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   329
               (MenuItem
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   330
                  label: 'Documentation'
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   331
                  itemValue: openDocumentation
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   332
                  translateLabel: true
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
                )
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   334
               (MenuItem
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   335
                  label: '-'
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   336
                )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   337
               (MenuItem
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   338
                  label: 'About this Application...'
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   339
                  itemValue: openAboutThisApplication
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   340
                  translateLabel: true
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   341
                )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   342
               )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   343
              nil
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   344
              nil
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   345
            )
3808
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   346
          )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   347
         )
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   348
        nil
1addc5e0331e changed:
Claus Gittinger <cg@exept.de>
parents: 3807
diff changeset
   349
        nil
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   350
      )
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   351
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   352
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   353
!AssistantApplication class methodsFor:'required protocol'!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   354
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   355
assistantSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   356
    "must return a sequenceable collection of assistantPageSpecs - one for each page"
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   357
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   358
    self subclassResponsibility
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   359
! !
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   360
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
!AssistantApplication methodsFor:'actions'!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   363
canGoBackward
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   364
    |currentPageSpec previousPageSpec|
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   365
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   366
    "/ see if we are allowed to leave...
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   367
    currentPageSpec := self currentPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   368
    currentPageSpec canLeaveQuerySelector notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   369
        (self perform:currentPageSpec canLeaveQuerySelector) ifFalse:[^ false].
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   370
    ].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   371
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   372
    "/ see if we are allowed to enter the next...
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   373
    previousPageSpec := self previousEnabledPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   374
    previousPageSpec isNil ifTrue:[^ false].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   375
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   376
    previousPageSpec canEnterQuerySelector notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   377
        (self perform:previousPageSpec canEnterQuerySelector) ifFalse:[^ false].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   378
    ].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   379
    ^ true
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   380
!
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   381
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   382
canGoForward
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   383
    |currentPageSpec nextPageSpec|
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   384
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   385
    self currentPageIndex == self numberOfPages ifTrue:[^ false].
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   386
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   387
    "/ see if we are allowed to leave...
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   388
    currentPageSpec := self currentPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   389
    currentPageSpec canLeaveQuerySelector notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   390
        (self perform:currentPageSpec canLeaveQuerySelector) ifFalse:[^ false].
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   391
    ].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   392
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   393
    "/ see if we are allowed to enter the next...
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   394
    nextPageSpec := self nextEnabledPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   395
    nextPageSpec isNil ifTrue:[^ false].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   396
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   397
    nextPageSpec canEnterQuerySelector notNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   398
        (self perform:nextPageSpec canEnterQuerySelector) ifFalse:[^ false].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   399
    ].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   400
    ^ true
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   401
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   402
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   403
doCancel
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   404
    self closeRequest
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   405
!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   406
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   407
doFinish
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   408
    self closeRequest
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   409
!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   410
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   411
goBackward
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   412
    |currentPageSpec|
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   413
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   414
    (self canGoBackward) ifFalse:[^ self].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   415
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   416
    currentPageSpec := self currentPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   417
    currentPageSpec leaveCallbackSelector notNil ifTrue:[
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   418
        self perform:currentPageSpec leaveCallbackSelector
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
    ].
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   421
    self currentPageIndexHolder value:((self indexOfPreviousEnabledPageSpec) max:1).
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   422
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   423
    currentPageSpec := self currentPageSpec.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   424
    currentPageSpec enterCallbackSelector notNil ifTrue:[
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   425
        self perform:currentPageSpec enterCallbackSelector
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   426
    ].
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   427
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   428
    self updateButtonEnableState.
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   429
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   430
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   431
goForward
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   432
    |currentPageSpec|
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   434
    (self canGoForward) ifFalse:[^ self].
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   435
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   436
    currentPageSpec := self currentPageSpec.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
    currentPageSpec leaveCallbackSelector notNil ifTrue:[
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
        self perform:currentPageSpec leaveCallbackSelector
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
    ].
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   441
    self currentPageIndexHolder value:(self indexOfNextEnabledPageSpec).
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
    currentPageSpec := self currentPageSpec.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
    currentPageSpec enterCallbackSelector notNil ifTrue:[
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   445
        self perform:currentPageSpec enterCallbackSelector
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
    ].
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   447
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   448
    self updateButtonEnableState.
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   449
! !
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   450
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   451
!AssistantApplication methodsFor:'aspects'!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   452
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   453
assistantSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   454
    ^ self class assistantSpec
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   455
!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   456
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   457
backButtonEnabled
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   458
    <resource: #uiAspect>
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   460
    backButtonEnabled isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   461
        backButtonEnabled := false asValue.
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   462
    ].
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   463
    ^ backButtonEnabled.
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   464
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   465
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   466
backButtonLabelHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   467
    <resource: #uiAspect>
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   468
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   469
    backButtonLabelHolder isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   470
        backButtonLabelHolder := self backButtonLabel asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   471
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   472
    ^ backButtonLabelHolder.
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   474
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   475
backButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   476
    <resource: #uiAspect>
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   478
    backButtonVisible isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   479
        backButtonVisible := true asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   480
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   481
    ^ backButtonVisible.
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   482
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   483
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   484
currentPageIndexHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   485
    <resource: #uiAspect>
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   486
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   487
    currentPageIndexHolder isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   488
        currentPageIndexHolder := 1 asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   489
        currentPageIndexHolder onChangeSend:#updateCanvas to:self
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   490
    ].
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   491
    ^ currentPageIndexHolder.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   492
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   493
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   494
currentPageInfoHTMLHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   495
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   496
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   497
    currentPageInfoHTMLHolder isNil ifTrue:[
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   498
        currentPageInfoHTMLHolder := ValueHolder new.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   499
    ].
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   500
    ^ currentPageInfoHTMLHolder.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   501
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   502
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   503
currentPageSpecHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   504
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   505
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   506
    currentPageSpecHolder isNil ifTrue:[
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   507
        currentPageSpecHolder := nil asValue.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   508
    ].
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   509
    ^ currentPageSpecHolder.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   510
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   511
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   512
finishButtonEnabled
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   513
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   514
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   515
    finishButtonEnabled isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   516
        finishButtonEnabled := false asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   517
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   518
    ^ finishButtonEnabled.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   519
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   520
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   521
finishButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   522
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   523
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   524
    finishButtonVisible isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   525
        finishButtonVisible := false asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   526
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   527
    ^ finishButtonVisible.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   528
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   529
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   530
forwardButtonEnabled
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   531
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   532
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   533
    forwardButtonEnabled isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   534
        forwardButtonEnabled := false asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   535
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   536
    ^ forwardButtonEnabled.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   537
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   538
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   539
forwardButtonVisible
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   540
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   541
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   542
    forwardButtonVisible isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   543
        forwardButtonVisible := true asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   544
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   545
    ^ forwardButtonVisible.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   546
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   547
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   548
nextButtonLabelHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   549
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   550
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   551
    nextButtonLabelHolder isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   552
        nextButtonLabelHolder := self nextButtonLabel asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   553
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   554
    ^ nextButtonLabelHolder.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   555
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   556
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   557
pageInfoHolder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   558
    <resource: #uiAspect>
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   559
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   560
    pageInfoHolder isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   561
        pageInfoHolder := nil asValue.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   562
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   563
    ^ pageInfoHolder.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   564
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   565
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   566
pageLabelsInList
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   567
    pageLabelsInList isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   568
        pageLabelsInList := List new.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   569
        pageLabelsInList contents:(self pageLabelsInListWithBullet).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   570
    ].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   571
    ^ pageLabelsInList
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   572
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   573
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   574
pageLabelsInListWithBullet
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   575
    |newList|
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   576
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   577
    newList := self pageLabels.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   578
    newList := newList with:(1 to:newList size) 
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   579
                collect:[:entry :index |
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   580
                    index == self currentPageIndex ifTrue:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   581
                        LabelAndTwoIcons new 
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   582
                            string:(entry allBold colorizeAllWith:(TextView defaultSelectionForegroundColor) on:(TextView defaultSelectionBackgroundColor) );
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   583
                            icon:(self class rightArrowIcon);
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   584
                            image2:(self class leftArrowIcon)
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   585
                    ] ifFalse:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   586
                        (self isPageEnabledAtIndex:index) ifFalse:[
3810
0df3ba9c453a no need for #asText to emphasize a string
Claus Gittinger <cg@exept.de>
parents: 3809
diff changeset
   587
                            entry colorizeAllWith:(Button defaultDisabledForegroundColor) "Color grey".
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   588
                        ] ifTrue:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   589
                            entry
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   590
                        ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   591
                    ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   592
                ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   593
    ^ newList
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   596
!AssistantApplication methodsFor:'help'!
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   597
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   598
flyByHelpTextForKey:aKey
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   599
    <resource: #help>
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   600
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   601
    |text bindings nextSpec prevSpec|
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   602
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   603
    text := super flyByHelpTextForKey:aKey.
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   604
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   605
    nextSpec := self nextEnabledPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   606
    prevSpec := self previousEnabledPageSpec.
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   607
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   608
    bindings := Dictionary new.
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   609
    bindings 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   610
        at:#'previousPageInfo' 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   611
        put:(prevSpec notNil ifTrue:[ '"',prevSpec pageTitle,'"' ] ifFalse:['']).
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   612
    bindings 
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   613
        at:#'nextPageInfo'
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   614
        put:(nextSpec notNil ifTrue:[ '"',nextSpec pageTitle,'"' ] ifFalse:['']).
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   615
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   616
    ^ self resources string:text withArgs:bindings.    
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   617
! !
3809
Claus Gittinger <cg@exept.de>
parents: 3808
diff changeset
   618
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   619
!AssistantApplication methodsFor:'initialization & release'!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   620
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   621
postBuildWith:aBuilder
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   622
    |maxCanvasExtent|
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   623
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   624
    super postBuildWith:aBuilder.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   625
    self updateCanvas.
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   626
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   627
    maxCanvasExtent := (self assistantSpec 
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   628
                            collect:[:eachPageSpec | 
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   629
                                |windowSpecSelector specArray windowSpec|
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   630
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   631
                                windowSpecSelector := eachPageSpec windowSpecSelector.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   632
                                specArray := self perform:windowSpecSelector ifNotUnderstood:[self class perform:windowSpecSelector].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   633
                                windowSpec := specArray decodeAsLiteralArray.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   634
                                windowSpec window bounds extent.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   635
                            ]
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   636
                       ) max.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   637
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   638
    self window extent:(maxCanvasExtent + (200 @ 40)).
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   641
!AssistantApplication methodsFor:'look'!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   642
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   643
backButtonLabel
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   644
    ^ LabelAndIcon 
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   645
        label:(resources string:'Back')
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   646
        icon:(self backButtonEnabled value
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   647
                ifTrue:[ToolbarIconLibrary leftArrow24x24Icon]
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   648
                ifFalse:[ToolbarIconLibrary leftArrow24x24disabledIcon])
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   649
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   651
nextButtonLabel
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   652
    ^ LabelAndTwoIcons new 
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   653
        string:(resources string:'Next');
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   654
        image2:(self forwardButtonEnabled value
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   655
                ifTrue:[ToolbarIconLibrary rightArrow24x24Icon]
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   656
                ifFalse:[ToolbarIconLibrary rightArrow24x24disabledIcon])
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   657
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   658
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   659
pageLabels
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   660
    ^ self assistantSpec collect:[:specEntry | specEntry pageTitle].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   661
! !
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   662
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   663
!AssistantApplication methodsFor:'private'!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   664
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   665
canFinish
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   666
    |pageIndex pageSpec|
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   667
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   668
    pageIndex := self currentPageIndexHolder value.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   669
    pageSpec := self assistantSpec at:pageIndex.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   670
    ^ pageSpec canLeaveQuerySelector isNil
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   671
    or:[ self perform:pageSpec canLeaveQuerySelector ]
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   674
currentPageIndex
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   675
    ^ self currentPageIndexHolder value
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   677
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   678
currentPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   679
    ^ self assistantSpec at:(self currentPageIndex).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   680
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   681
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   682
indexOfNextEnabledPageSpec
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   683
    |delta currentPageIndex|
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   684
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   685
    currentPageIndex := self currentPageIndex.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   686
    delta := 1.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   687
    [ 
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   688
        (currentPageIndex + delta) <= (self numberOfPages)
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   689
        and:[ (self isPageEnabledAtIndex:(currentPageIndex + delta)) not ]
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   690
    ] whileTrue:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   691
        delta := delta + 1.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   692
    ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   693
    (currentPageIndex + delta) <= (self numberOfPages) ifTrue:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   694
        ^ (currentPageIndex + delta).
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   695
    ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   696
    ^ nil
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   697
!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   698
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   699
indexOfPreviousEnabledPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   700
    |delta currentPageIndex|
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   701
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   702
    currentPageIndex := self currentPageIndex.
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   703
    delta := 1.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   704
    [ 
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   705
        (currentPageIndex - delta) > 0
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   706
        and:[ (self isPageEnabledAtIndex:(currentPageIndex - delta)) not ]
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   707
    ] whileTrue:[
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   708
        delta := delta + 1.
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   709
    ].
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   710
    (currentPageIndex - delta) > 0 ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   711
        ^ (currentPageIndex - delta).
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   712
    ].
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   713
    ^ nil
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   714
!
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   715
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   716
isPageEnabledAtIndex:index
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   717
    |isEnabledSelector|
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   718
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   719
    isEnabledSelector := (self assistantSpec at:index) isEnabledQuerySelector.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   720
    ^ isEnabledSelector isNil or:[ (self perform:isEnabledSelector) ]
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   721
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   722
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   723
nextEnabledPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   724
    |index|
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   725
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   726
    index := self indexOfNextEnabledPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   727
    index isNil ifTrue:[^ nil].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   728
    ^ self assistantSpec at:index.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   729
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   730
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   731
nextPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   732
    ^ self assistantSpec at:(self currentPageIndex + 1).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   733
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   734
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   735
numberOfPages
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   736
    ^ self assistantSpec size
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   737
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   738
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   739
previousEnabledPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   740
    |index|
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   741
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   742
    index := self indexOfPreviousEnabledPageSpec.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   743
    index isNil ifTrue:[^ nil].
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   744
    ^ self assistantSpec at:index.
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   745
!
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   746
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   747
previousPageSpec
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   748
    ^ self assistantSpec at:(self currentPageIndex - 1).
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   749
! !
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   750
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   751
!AssistantApplication methodsFor:'update'!
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
3813
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   753
updateButtonEnableState
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   754
    self backButtonEnabled value:(self canGoBackward).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   755
    self forwardButtonEnabled value:(self canGoForward).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   756
    self backButtonLabelHolder value:(self backButtonLabel).
Claus Gittinger <cg@exept.de>
parents: 3812
diff changeset
   757
    self nextButtonLabelHolder value:(self nextButtonLabel).
3806
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   758
!
Claus Gittinger <cg@exept.de>
parents: 3805
diff changeset
   759
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   760
updateCanvas
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   761
    |pageIndex pageSpec sel uiSpec|
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   762
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   763
    pageIndex := self currentPageIndex.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   764
    pageSpec := self currentPageSpec.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   765
    sel := pageSpec windowSpecSelector.
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   766
    uiSpec := self perform:sel ifNotUnderstood:[ self class perform:sel ].
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   767
3805
f31bd53ef984 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3797
diff changeset
   768
    self pageLabelsInList contents:(self pageLabelsInListWithBullet).
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   769
    self currentPageSpecHolder value:uiSpec.
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   770
    self window label:(pageSpec pageTitle).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   771
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   772
    self finishButtonVisible value:(pageIndex == self numberOfPages).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   773
    self backButtonEnabled value:(pageIndex > 1).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   774
    self forwardButtonEnabled value:(pageIndex < self numberOfPages).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   775
    self finishButtonEnabled value:(pageIndex == self numberOfPages and:[ self canFinish ]).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   776
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   777
    self backButtonLabelHolder value:(self backButtonLabel).
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   778
    self nextButtonLabelHolder value:(self nextButtonLabel).
3811
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   779
ebc2b9a0f94e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3810
diff changeset
   780
    self pageInfoHolder value:(pageSpec infoText).
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   781
! !
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   782
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   783
!AssistantApplication class methodsFor:'documentation'!
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   784
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   785
version_CVS
3814
71bd81ca3f67 changed:
Claus Gittinger <cg@exept.de>
parents: 3813
diff changeset
   786
    ^ '$Header: /cvs/stx/stx/libwidg2/AssistantApplication.st,v 1.12 2009-10-22 19:58:17 cg Exp $'
3796
d346f80580bf initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   787
! !