CodeCompletionHelpMenuView.st
author Claus Gittinger <cg@exept.de>
Sun, 01 Feb 2015 14:17:11 +0100
changeset 15150 940d37c7d3ac
parent 13669 bb9278273984
child 16051 65b2ad2b4723
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.

"
 COPYRIGHT (c) 2013 by Claus Gittinger
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libtool' }"

MenuView subclass:#CodeCompletionHelpMenuView
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Interface-Help'
!

!CodeCompletionHelpMenuView class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2013 by Claus Gittinger
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    used with code completion suggestions

    [author:]
        Claus Gittinger

    [See also:]
        Workspace::CodeCompletionService
"
! !

!CodeCompletionHelpMenuView methodsFor:'initialization'!

initStyle
    |defaultFont|

    super initStyle.
    defaultFont := StyleSheet fontAt:#'activeHelp.font' default:nil.
    defaultFont notNil ifTrue:[
        self font:defaultFont
    ].
    self viewBackground:Color orange lightened lightened.
! !

!CodeCompletionHelpMenuView methodsFor:'queries'!

wantsFocusWithPointerEnter
    "DEFINITELY not, because if we do so,
     the editView looses focus on entry, and sends me to hell in its lost focus handling!!
     So I will be terminated by a motion"

    ^ false
! !

!CodeCompletionHelpMenuView class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libtool/CodeCompletionHelpMenuView.st,v 1.4 2013-11-08 11:48:51 cg Exp $'
!

version_CVS
    ^ '$Header: /cvs/stx/stx/libtool/CodeCompletionHelpMenuView.st,v 1.4 2013-11-08 11:48:51 cg Exp $'
! !