CodeCompletionHelpMenuView.st
author Stefan Vogel <sv@exept.de>
Fri, 06 Jun 2014 09:30:13 +0200
changeset 14466 533775670ece
parent 13669 bb9278273984
child 16051 65b2ad2b4723
permissions -rw-r--r--
Sending of Image>>#clearMaskedPixels moved to Image >> #asFormOnDevice:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
13478
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     1
"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     2
 COPYRIGHT (c) 2013 by Claus Gittinger
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     3
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     4
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     5
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     6
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     8
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
     9
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    10
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    11
"
13477
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
MenuView subclass:#CodeCompletionHelpMenuView
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Interface-Help'
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
13478
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    21
!CodeCompletionHelpMenuView class methodsFor:'documentation'!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    22
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    23
copyright
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    24
"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    25
 COPYRIGHT (c) 2013 by Claus Gittinger
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    26
              All Rights Reserved
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    27
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    28
 This software is furnished under a license and may be used
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    29
 only in accordance with the terms of that license and with the
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    31
 be provided or otherwise made available to, or used by, any
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    32
 other person.  No title to or ownership of the software is
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    33
 hereby transferred.
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    34
"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    35
!
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    36
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    37
documentation
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    38
"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    39
    used with code completion suggestions
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    40
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    41
    [author:]
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    42
        Claus Gittinger
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    43
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    44
    [See also:]
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    45
        Workspace::CodeCompletionService
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    46
"
Claus Gittinger <cg@exept.de>
parents: 13477
diff changeset
    47
! !
13477
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
13537
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    49
!CodeCompletionHelpMenuView methodsFor:'initialization'!
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    50
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    51
initStyle
13669
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    52
    |defaultFont|
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    53
13537
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    54
    super initStyle.
13669
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    55
    defaultFont := StyleSheet fontAt:#'activeHelp.font' default:nil.
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    56
    defaultFont notNil ifTrue:[
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    57
        self font:defaultFont
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    58
    ].
13537
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    59
    self viewBackground:Color orange lightened lightened.
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    60
! !
968b3d74a2b8 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13478
diff changeset
    61
13477
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
!CodeCompletionHelpMenuView methodsFor:'queries'!
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
wantsFocusWithPointerEnter
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    "DEFINITELY not, because if we do so,
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
     the editView looses focus on entry, and sends me to hell in its lost focus handling!!
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     So I will be terminated by a motion"
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    ^ false
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
! !
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!CodeCompletionHelpMenuView class methodsFor:'documentation'!
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
version
13669
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    75
    ^ '$Header: /cvs/stx/stx/libtool/CodeCompletionHelpMenuView.st,v 1.4 2013-11-08 11:48:51 cg Exp $'
13477
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
version_CVS
13669
bb9278273984 class: CodeCompletionHelpMenuView
Claus Gittinger <cg@exept.de>
parents: 13537
diff changeset
    79
    ^ '$Header: /cvs/stx/stx/libtool/CodeCompletionHelpMenuView.st,v 1.4 2013-11-08 11:48:51 cg Exp $'
13477
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
! !
89fd61f3c821 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81