MappedPalette.st
author Jan Vrany <jan.vrany@labware.com>
Fri, 12 May 2023 22:54:14 +0100
branchjv
changeset 9075 7effeec72a8b
parent 3876 f4dc6267a30a
child 7837 2af7483d8ef9
permissions -rw-r--r--
Backed out changeset 9ceb22436681 "`XWorkstation`: poor man's integration with Wayland clipboard" This turned out not to help much, more often it break copy&paste within Smalltalk. After so much debugging, it turns out that if ones run `xclipboard`, copying and pasting to Wayland apps work just fine. Why's that, I do not know.

"
 COPYRIGHT (c) 1997 by eXept Software AG / 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:libview' }"

ColorPalette subclass:#MappedPalette
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'Graphics-Images-Support'
!

!MappedPalette class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1997 by eXept Software AG / 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
"
    This class will (sooner or later) take over and/or redefine some of the Colormap functionality.
    This migration will be done both to cleanup the code and for VW compatibility.

    Notice: For now, the whole functionality is still in Colormap

    [see also:]
	Color Image Form
"
! !

!MappedPalette class methodsFor:'instance creation'!

blackWhite
    "ST-80 compatibility"

    ^ self withColors:(Array with:(Color black) with:(Color white))
!

monochromeDefault
    "ST-80 compatibility"

    ^ self whiteBlack

    "Modified: 25.2.1997 / 18:57:34 / cg"
!

whiteBlack
    "ST-80 compatibility"

    ^ self withColors:(Array with:(Color white) with:(Color black))

    "
     self whiteBlack
    "

    "Created: 7.10.1996 / 11:29:01 / cg"
    "Modified: 14.2.1997 / 17:43:31 / cg"
! !

!MappedPalette class methodsFor:'documentation'!

version
    ^ '$Header: /cvs/stx/stx/libview/MappedPalette.st,v 1.5 2003-05-06 18:26:22 cg Exp $'
! !