Tools__Inspector2Tab.st
author Claus Gittinger <cg@exept.de>
Sun, 01 Feb 2015 14:17:11 +0100
changeset 15150 940d37c7d3ac
parent 14157 4467fff63f8c
child 15566 184cea584be5
child 16661 67944b10ce7e
permissions -rw-r--r--
class: Tools::ChangeList fixed the following redraw bug in ModelListView (which is already fixed in SelectionInListView): if a colored item is shown with selection, the color attribute should be removed (or relaxed), to avoid drawing the label invisible. I.e. if the text color is blue or grey, and the selection bg is blue. we should draw white-on-blue, instead of blue/grey on blue. For this to work, the info whether drawing a selection must be passed down through the renderer to the item's draw routine.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     3
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    11
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    12
"{ Package: 'stx:libtool' }"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    13
054b7b03b221 initial checkin
fm
parents:
diff changeset
    14
"{ NameSpace: Tools }"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    15
054b7b03b221 initial checkin
fm
parents:
diff changeset
    16
Object subclass:#Inspector2Tab
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    17
	instanceVariableNames:'label view application priority viewHolder'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    18
	classVariableNames:''
054b7b03b221 initial checkin
fm
parents:
diff changeset
    19
	poolDictionaries:''
10459
57c59ba6f470 class definition
Claus Gittinger <cg@exept.de>
parents: 9997
diff changeset
    20
	category:'Interface-Inspector2'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    21
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    22
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    23
!Inspector2Tab class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    24
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    25
copyright
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    26
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    27
 COPYRIGHT (c) 2006 by eXept Software AG
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    28
	      All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    29
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    30
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    31
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    33
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    34
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    35
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    36
"
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
    37
! !
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    38
054b7b03b221 initial checkin
fm
parents:
diff changeset
    39
!Inspector2Tab methodsFor:'accessing'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    40
054b7b03b221 initial checkin
fm
parents:
diff changeset
    41
application
054b7b03b221 initial checkin
fm
parents:
diff changeset
    42
    ^ application
054b7b03b221 initial checkin
fm
parents:
diff changeset
    43
054b7b03b221 initial checkin
fm
parents:
diff changeset
    44
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    45
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    46
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
    47
application:anApplicationModelOrBlock
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
    48
    application := anApplicationModelOrBlock.
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    49
054b7b03b221 initial checkin
fm
parents:
diff changeset
    50
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    51
    "Modified: / 17-02-2008 / 08:58:34 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    52
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    53
054b7b03b221 initial checkin
fm
parents:
diff changeset
    54
label
054b7b03b221 initial checkin
fm
parents:
diff changeset
    55
    ^ label
054b7b03b221 initial checkin
fm
parents:
diff changeset
    56
054b7b03b221 initial checkin
fm
parents:
diff changeset
    57
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    58
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    59
054b7b03b221 initial checkin
fm
parents:
diff changeset
    60
label:aString
054b7b03b221 initial checkin
fm
parents:
diff changeset
    61
    label := aString.
054b7b03b221 initial checkin
fm
parents:
diff changeset
    62
054b7b03b221 initial checkin
fm
parents:
diff changeset
    63
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    64
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    65
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    66
054b7b03b221 initial checkin
fm
parents:
diff changeset
    67
priority
054b7b03b221 initial checkin
fm
parents:
diff changeset
    68
    ^ priority ? 25
054b7b03b221 initial checkin
fm
parents:
diff changeset
    69
054b7b03b221 initial checkin
fm
parents:
diff changeset
    70
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    71
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    72
054b7b03b221 initial checkin
fm
parents:
diff changeset
    73
priority:something
054b7b03b221 initial checkin
fm
parents:
diff changeset
    74
    priority := something.
054b7b03b221 initial checkin
fm
parents:
diff changeset
    75
054b7b03b221 initial checkin
fm
parents:
diff changeset
    76
    "Created: / 17-02-2008 / 10:05:51 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    77
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    78
054b7b03b221 initial checkin
fm
parents:
diff changeset
    79
text:aStringOrValueModel
054b7b03b221 initial checkin
fm
parents:
diff changeset
    80
054b7b03b221 initial checkin
fm
parents:
diff changeset
    81
    self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself)
054b7b03b221 initial checkin
fm
parents:
diff changeset
    82
054b7b03b221 initial checkin
fm
parents:
diff changeset
    83
    "Modified: / 17-02-2008 / 08:58:41 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    84
    "Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>"
054b7b03b221 initial checkin
fm
parents:
diff changeset
    85
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
    86
054b7b03b221 initial checkin
fm
parents:
diff changeset
    87
view
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
    88
    view isNil ifTrue:[
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    89
        viewHolder notNil ifTrue:[
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    90
            view := viewHolder value
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    91
        ] ifFalse:[
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    92
            application notNil ifTrue:[
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
    93
                view := ApplicationSubView new client: application value
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
    94
            ]
10874
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
    95
        ]
aea9cd688aef changed: #view
Claus Gittinger <cg@exept.de>
parents: 10459
diff changeset
    96
    ].
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
    97
    ^ view
054b7b03b221 initial checkin
fm
parents:
diff changeset
    98
054b7b03b221 initial checkin
fm
parents:
diff changeset
    99
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   100
    "Modified: / 17-02-2008 / 10:38:59 / janfrog"
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   101
    "Modified: / 13-06-2012 / 14:57:25 / cg"
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   102
    "Modified: / 24-03-2014 / 18:25:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   103
!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   104
054b7b03b221 initial checkin
fm
parents:
diff changeset
   105
view:aView
054b7b03b221 initial checkin
fm
parents:
diff changeset
   106
    view := aView.
054b7b03b221 initial checkin
fm
parents:
diff changeset
   107
054b7b03b221 initial checkin
fm
parents:
diff changeset
   108
    "Created: / 16-01-2008 / 16:51:05 / janfrog"
054b7b03b221 initial checkin
fm
parents:
diff changeset
   109
    "Modified: / 17-02-2008 / 08:58:46 / janfrog"
11583
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   110
!
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   111
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   112
viewHolder:something
8775311ee2f9 lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents: 10874
diff changeset
   113
    viewHolder := something.
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   114
!
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   115
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   116
viewOrNil
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   117
    ^ view
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   118
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   119
    "Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   120
! !
054b7b03b221 initial checkin
fm
parents:
diff changeset
   121
054b7b03b221 initial checkin
fm
parents:
diff changeset
   122
!Inspector2Tab class methodsFor:'documentation'!
054b7b03b221 initial checkin
fm
parents:
diff changeset
   123
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   124
version_CVS
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   125
    ^ '$Header: /cvs/stx/stx/libtool/Tools__Inspector2Tab.st,v 1.8 2014-03-24 22:38:21 vrany Exp $'
8802
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   126
!
576679781e91 changed: #version_SVN
fm
parents: 8777
diff changeset
   127
8815
fm
parents: 8802
diff changeset
   128
version_CVS_jvrany
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   129
    ^ '$Header: /cvs/stx/stx/libtool/Tools__Inspector2Tab.st,v 1.8 2014-03-24 22:38:21 vrany Exp $'
9997
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   130
!
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   131
Claus Gittinger <cg@exept.de>
parents: 8815
diff changeset
   132
version_SVN
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   133
    ^ '$Id: Tools__Inspector2Tab.st,v 1.8 2014-03-24 22:38:21 vrany Exp $'
8777
054b7b03b221 initial checkin
fm
parents:
diff changeset
   134
! !
14157
4467fff63f8c Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 11583
diff changeset
   135