author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Mon, 06 Jun 2016 12:37:27 +0100 | |
branch | jv |
changeset 16664 | ef51c9c52b52 |
parent 15659 | bdc9e920f640 |
parent 16661 | 67944b10ce7e |
child 16727 | 639ebd184cf4 |
permissions | -rw-r--r-- |
16661 | 1 |
"{ Encoding: utf8 }" |
2 |
||
9997 | 3 |
" |
4 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
5 |
All Rights Reserved |
|
6 |
||
7 |
This software is furnished under a license and may be used |
|
8 |
only in accordance with the terms of that license and with the |
|
9 |
inclusion of the above copyright notice. This software may not |
|
10 |
be provided or otherwise made available to, or used by, any |
|
11 |
other person. No title to or ownership of the software is |
|
12 |
hereby transferred. |
|
13 |
" |
|
14 |
"{ Package: 'stx:libtool' }" |
|
8777 | 15 |
|
16 |
"{ NameSpace: Tools }" |
|
17 |
||
18 |
Object subclass:#Inspector2Tab |
|
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
19 |
instanceVariableNames:'label view application priority viewHolder' |
8777 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
10459 | 22 |
category:'Interface-Inspector2' |
8777 | 23 |
! |
24 |
||
9997 | 25 |
!Inspector2Tab class methodsFor:'documentation'! |
26 |
||
27 |
copyright |
|
28 |
" |
|
29 |
COPYRIGHT (c) 2006 by eXept Software AG |
|
30 |
All Rights Reserved |
|
31 |
||
32 |
This software is furnished under a license and may be used |
|
33 |
only in accordance with the terms of that license and with the |
|
34 |
inclusion of the above copyright notice. This software may not |
|
35 |
be provided or otherwise made available to, or used by, any |
|
36 |
other person. No title to or ownership of the software is |
|
37 |
hereby transferred. |
|
38 |
" |
|
39 |
! ! |
|
8777 | 40 |
|
41 |
!Inspector2Tab methodsFor:'accessing'! |
|
42 |
||
43 |
application |
|
44 |
^ application |
|
45 |
||
46 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
47 |
! |
|
48 |
||
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
49 |
application:anApplicationModelOrBlock |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
50 |
application := anApplicationModelOrBlock. |
8777 | 51 |
|
52 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
53 |
"Modified: / 17-02-2008 / 08:58:34 / janfrog" |
|
54 |
! |
|
55 |
||
56 |
label |
|
57 |
^ label |
|
58 |
||
59 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
60 |
! |
|
61 |
||
62 |
label:aString |
|
63 |
label := aString. |
|
64 |
||
65 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
66 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
67 |
! |
|
68 |
||
69 |
priority |
|
70 |
^ priority ? 25 |
|
71 |
||
72 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
73 |
! |
|
74 |
||
75 |
priority:something |
|
76 |
priority := something. |
|
77 |
||
78 |
"Created: / 17-02-2008 / 10:05:51 / janfrog" |
|
79 |
! |
|
80 |
||
81 |
text:aStringOrValueModel |
|
82 |
||
83 |
self view:((HVScrollableView for:TextView) model: aStringOrValueModel; yourself) |
|
84 |
||
85 |
"Modified: / 17-02-2008 / 08:58:41 / janfrog" |
|
86 |
"Created: / 07-11-2008 / 08:40:35 / Jan Vrany <vranyj1@fel.cvut.cz>" |
|
87 |
! |
|
88 |
||
89 |
view |
|
10874 | 90 |
view isNil ifTrue:[ |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
91 |
viewHolder notNil ifTrue:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
92 |
view := viewHolder value |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
93 |
] ifFalse:[ |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
94 |
application notNil ifTrue:[ |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
95 |
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
|
96 |
] |
10874 | 97 |
] |
98 |
]. |
|
8777 | 99 |
^ view |
100 |
||
101 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
102 |
"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
|
103 |
"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
|
104 |
"Modified: / 24-03-2014 / 18:25:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8777 | 105 |
! |
106 |
||
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
107 |
view:aViewOrBlock |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
108 |
aViewOrBlock isBlock ifTrue:[ |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
109 |
viewHolder := aViewOrBlock |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
110 |
] ifFalse:[ |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
111 |
view := aViewOrBlock. |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
112 |
] |
8777 | 113 |
|
114 |
"Created: / 16-01-2008 / 16:51:05 / janfrog" |
|
115 |
"Modified: / 17-02-2008 / 08:58:46 / janfrog" |
|
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
116 |
"Modified: / 21-05-2015 / 21:31:15 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
11583
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
117 |
! |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
118 |
|
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
119 |
viewHolder:something |
8775311ee2f9
lazy setup of embedded browser brings up inspector much faster
Claus Gittinger <cg@exept.de>
parents:
10874
diff
changeset
|
120 |
viewHolder := something. |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
121 |
! |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
122 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
123 |
viewOrNil |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
124 |
^ view |
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
125 |
|
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
126 |
"Created: / 24-03-2014 / 18:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
8777 | 127 |
! ! |
128 |
||
16661 | 129 |
!Inspector2Tab methodsFor:'setup'! |
130 |
||
131 |
setupView |
|
132 |
||
133 |
(view respondsTo:#setMasterInspectorApplication:) ifTrue:[ |
|
134 |
"this is for BridgeOjectInspectorView" |
|
135 |
view setMasterInspectorApplication:application. |
|
136 |
]. |
|
137 |
(view respondsTo:#sortOrderHolder:) ifTrue:[ |
|
138 |
view sortOrderHolder:(application sortOrderHolder) |
|
139 |
]. |
|
140 |
! ! |
|
141 |
||
8777 | 142 |
!Inspector2Tab class methodsFor:'documentation'! |
143 |
||
8802 | 144 |
version_CVS |
16661 | 145 |
^ '$Header$' |
8802 | 146 |
! |
147 |
||
8815 | 148 |
version_CVS_jvrany |
16661 | 149 |
^ '$Header$' |
9997 | 150 |
! |
151 |
||
15659
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
152 |
version_HG |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
153 |
|
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
154 |
^ '$Changeset: <not expanded> $' |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
155 |
! |
bdc9e920f640
Improved API for inspector 2 tabs: allow view to be actually a block returning the view.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
15566
diff
changeset
|
156 |
|
9997 | 157 |
version_SVN |
16661 | 158 |
^ '$Id$' |
8777 | 159 |
! ! |
14157
4467fff63f8c
Performance fixes in Inspector2:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
11583
diff
changeset
|
160 |