Tools_NavigatorModel.st
author Claus Gittinger <cg@exept.de>
Thu, 29 Oct 2009 19:10:38 +0100
changeset 9130 e46e456da73a
parent 9129 c4bd6c5e946f
child 10248 3237dc7fbfb8
permissions -rw-r--r--
changed: #pseudoEntryForegroundColor
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
5592
d9730a8d7c52 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5591
diff changeset
    12
"{ Package: 'stx:libtool' }"
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
"{ NameSpace: Tools }"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ApplicationModel subclass:#NavigatorModel
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
    18
	classVariableNames:'AllEntry SuperSendEntry UncommentedEntry'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Interface-Browsers-New'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
!NavigatorModel class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
copyright
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
 COPYRIGHT (c) 2000 by eXept Software AG
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	      All Rights Reserved
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 This software is furnished under a license and may be used
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
 hereby transferred.
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
!NavigatorModel class methodsFor:'initialization'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
initialize
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
    42
    AllEntry := '* all *'.
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    "Created: / 24.2.2000 / 13:41:29 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!NavigatorModel class methodsFor:'defaults'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
8754
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    49
isPseudoCategory:cat
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    50
    ^ cat = self nameListEntryForChanged
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    51
    or:[ cat = self nameListEntryForUndocumented
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    52
    or:[ cat = self nameListEntryForUnloaded
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    53
    or:[ cat = self nameListEntryForALL ]]]
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    54
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    55
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    56
isPseudoProtocol:protocol
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    57
    ^ protocol = self nameListEntryForObsolete
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    58
    or:[ protocol = self nameListEntryForSuperSend
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    59
    or:[ protocol = self nameListEntryForUncommented ]]
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    60
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
    61
7058
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    62
markForBeingInChangeList
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    63
    ^ ' *'
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    64
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    65
    "Created: / 29-08-2006 / 10:26:05 / cg"
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    66
!
77a6998a37a6 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5592
diff changeset
    67
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
nameListEntryForALL
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    ^ AllEntry ? '* all *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "Created: / 24.2.2000 / 13:39:10 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    "Modified: / 25.2.2000 / 21:18:30 / cg"
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    75
nameListEntryForALLWithCount
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    76
    ^ '* all (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    77
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    78
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    79
nameListEntryForBookmarked
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    80
    ^ '* bookmarked (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    81
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    82
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    83
nameListEntryForChanged
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    84
    ^ '* changed *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    85
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    86
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    87
nameListEntryForChangedWithCount
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    88
    ^ '* changed (%1) *'
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    89
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
    90
8732
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
    91
nameListEntryForDocumentation
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
    92
    ^ '* documentation (%1) *'
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
    93
!
d89357e795a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8722
diff changeset
    94
8929
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
    95
nameListEntryForExtensions
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
    96
    ^ '* extensions (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
    97
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
    98
8866
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
    99
nameListEntryForLong
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   100
    ^ '* long (%1) *'
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   101
!
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   102
9087
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   103
nameListEntryForMustBeRedefinedInSubclass
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   104
    ^ '* must be redefined (%1) *'
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   105
!
43da2b44e13b added: #nameListEntryForMustBeRedefinedInSubclass
Claus Gittinger <cg@exept.de>
parents: 9026
diff changeset
   106
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   107
nameListEntryForNILCategory
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   108
    ^ '* no category *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
nameListEntryForNonStatic
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
    ^ '* instance *'
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
8719
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   115
nameListEntryForObsolete
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   116
    ^ '* obsolete (%1) *'
8719
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   117
!
02158918feb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8695
diff changeset
   118
8929
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   119
nameListEntryForOverride
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   120
    ^ '* override (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   121
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   122
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   123
nameListEntryForRedefined
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   124
    ^ '* redefined (%1) *'
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   125
!
Claus Gittinger <cg@exept.de>
parents: 8866
diff changeset
   126
9026
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   127
nameListEntryForRequired
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   128
    ^ '* required (%1) *'
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   129
!
e32283a8ff69 added: #nameListEntryForRequired
Claus Gittinger <cg@exept.de>
parents: 8929
diff changeset
   130
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
nameListEntryForStatic
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
    ^ '* static *'
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   133
!
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   134
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   135
nameListEntryForSuperSend
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   136
    ^ '* super (%1) *'
8695
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   137
!
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   138
9c76f55700a3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7488
diff changeset
   139
nameListEntryForUncommented
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   140
    ^ '* uncommented (%1) *'
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   141
!
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   142
8754
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   143
nameListEntryForUndocumented
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   144
    ^ '* undocumented *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   145
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   146
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   147
nameListEntryForUndocumentedWithCount
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   148
    ^ '* undocumented (%1) *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   149
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   150
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   151
nameListEntryForUnloaded
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   152
    ^ '* unloaded *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   153
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   154
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   155
nameListEntryForUnloadedWithCount
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   156
    ^ '* unloaded (%1) *'
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   157
!
058f31ca6e6f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8737
diff changeset
   158
8737
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   159
nameListEntryForVisited
18451bc9f48b + pseudo entries
Claus Gittinger <cg@exept.de>
parents: 8732
diff changeset
   160
    ^ '* visited (%1) *'
9129
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   161
!
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   162
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   163
pseudoEntryForegroundColor
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   164
    |bg|
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   165
9130
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   166
    bg := SelectionInListView defaultBackgroundColor ? View defaultBackgroundColor.
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   167
    bg isNil ifTrue:[ bg := View defaultBackgroundColor ].
9129
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   168
    (Color grey brightness - (bg brightness)) abs < 0.3 ifTrue:[
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   169
        (bg brightness) > 0.7 ifTrue:[
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   170
            ^ Color grey:20.
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   171
        ].
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   172
        ^ Color grey:80.
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   173
    ].
c4bd6c5e946f added: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9087
diff changeset
   174
    ^ Color grey
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
!NavigatorModel class methodsFor:'interface specs'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   178
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   179
metaSpec
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
    "This resource specification was automatically generated
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
     by the UIPainter of ST/X."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
    "Do not manually edit this!! If it is corrupted,
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   184
     the UIPainter may not be able to read the specification."
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
    "
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   187
     UIPainter new openOnClass:Tools::NavigatorModel andSelector:#metaSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   188
     Tools::NavigatorModel new openInterface:#metaSpec
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
    "
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
    <resource: #canvas>
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
    ^ 
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   194
     #(FullSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   195
        name: metaSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   196
        window: 
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   197
       (WindowSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   198
          label: 'MetaToggles'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   199
          name: 'MetaToggles'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   200
          min: (Point 0 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   201
          max: (Point 1024 721)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   202
          bounds: (Rectangle 0 0 300 28)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   203
        )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   204
        component: 
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   205
       (SpecCollection
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   206
          collection: (
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   207
           (RadioButtonSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   208
              label: 'Instance'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   209
              name: 'InstanceToggle'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   210
              layout: (LayoutFrame 0 0.0 0 0.0 0 0.5 25 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   211
              translateLabel: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   212
              tabable: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   213
              model: notMetaToggle
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   214
              isTriggerOnDown: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   215
              select: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   216
              isToggle: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   217
            )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   218
           (RadioButtonSpec
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   219
              label: 'Class'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   220
              name: 'ClassToggle'
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   221
              layout: (LayoutFrame 0 0.5 0 0 0 1.0 25 0)
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   222
              translateLabel: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   223
              labelChannel: metaToggleLabelHolder
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   224
              tabable: false
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   225
              model: metaToggle
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   226
              isTriggerOnDown: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   227
              select: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   228
              isToggle: true
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   229
            )
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   230
           )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
         
7488
f38fbf8028e5 dont tab into class-toggle
Claus Gittinger <cg@exept.de>
parents: 7058
diff changeset
   232
        )
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
      )
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   235
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
!NavigatorModel class methodsFor:'misc'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
classResources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
    ^ NewSystemBrowser classResources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
!NavigatorModel methodsFor:'misc'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   243
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   244
resources
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   245
    "answer the resources of my masterApp, if there is one"
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   246
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   247
    |m|
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   248
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   249
    (m := self masterApplication) notNil ifTrue:[
8722
a1ce8e925f55 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 8719
diff changeset
   250
        ^ m resources
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
    ].
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
    ^ super resources
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   254
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
!NavigatorModel class methodsFor:'documentation'!
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
version
9130
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   258
    ^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.16 2009-10-29 18:10:38 cg Exp $'
8866
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   259
!
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   260
c4678ec9944b added: #nameListEntryForLong
Claus Gittinger <cg@exept.de>
parents: 8754
diff changeset
   261
version_CVS
9130
e46e456da73a changed: #pseudoEntryForegroundColor
Claus Gittinger <cg@exept.de>
parents: 9129
diff changeset
   262
    ^ '$Header: /cvs/stx/stx/libtool/Tools_NavigatorModel.st,v 1.16 2009-10-29 18:10:38 cg Exp $'
5591
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
! !
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
273637686948 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
NavigatorModel initialize!