mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-05-02 21:50:13 +00:00
Add clipboard test and add clip license
This commit is contained in:
parent
38b21669c5
commit
20f1871966
2
Makefile
2
Makefile
|
@ -268,6 +268,8 @@ endif
|
|||
ifneq ($(filter y,$(DEP_SCREENIMAGE)),)
|
||||
CXXFLAGS += -DDEPENDENCY_SCREENIMAGE
|
||||
QBLIB_NAME := $(addsuffix 1,$(QBLIB_NAME))
|
||||
|
||||
LICENSE_IN_USE += clip
|
||||
else
|
||||
CXXFLAGS += -DDEPENDENCY_NO_SCREENIMAGE
|
||||
QBLIB_NAME := $(addsuffix 0,$(QBLIB_NAME))
|
||||
|
|
|
@ -122,3 +122,11 @@ This is used by libqb to show alerts and also by the common dialog functions and
|
|||
| Library | License | License file | Location |
|
||||
| :------ | :-----: | :----------- | :------- |
|
||||
| tiny file dialogs | ZLIB | license_tinyfiledialogs.txt | internal/c/parts/gui/ |
|
||||
|
||||
## Clipboard Image Support
|
||||
|
||||
This is used if you make use of the `_CLIPBOARDIMAGE` function or statement.
|
||||
|
||||
| Library | License | License file | Location |
|
||||
| :------ | :-----: | :----------- | :------- |
|
||||
| Clip Library | MIT | license_clip.txt | internal/c/parts/os/clipboard/clip/ |
|
||||
|
|
23
licenses/license_clip.txt
Normal file
23
licenses/license_clip.txt
Normal file
|
@ -0,0 +1,23 @@
|
|||
--------------------------------------------------------------------------------
|
||||
License of Clip Library:
|
||||
|
||||
Copyright (c) 2015-2024 David Capello
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
24
tests/compile_tests/clipboard/clipboard_test.bas
Normal file
24
tests/compile_tests/clipboard/clipboard_test.bas
Normal file
|
@ -0,0 +1,24 @@
|
|||
$CONSOLE:ONLY
|
||||
|
||||
OPTION _EXPLICIT
|
||||
|
||||
CONST TEXT_HELLO = "Hello"
|
||||
CONST TEXT_WORLD = "world"
|
||||
CONST TEXT_ASCII = CHR$(176) + CHR$(177) + CHR$(178) + " " + TEXT_HELLO + " " + TEXT_WORLD + " " + CHR$(178) + CHR$(177) + CHR$(176)
|
||||
|
||||
|
||||
_CLIPBOARD$ = TEXT_HELLO
|
||||
_CLIPBOARD$ = TEXT_WORLD
|
||||
|
||||
PRINT "Set: "; TEXT_WORLD
|
||||
PRINT "Got: "; _CLIPBOARD$
|
||||
|
||||
_CLIPBOARD$ = TEXT_ASCII
|
||||
|
||||
IF TEXT_ASCII = _CLIPBOARD$ THEN
|
||||
PRINT "Test passed"
|
||||
ELSE
|
||||
PRINT "Test failed"
|
||||
END IF
|
||||
|
||||
SYSTEM
|
3
tests/compile_tests/clipboard/clipboard_test.output
Normal file
3
tests/compile_tests/clipboard/clipboard_test.output
Normal file
|
@ -0,0 +1,3 @@
|
|||
Set: world
|
||||
Got: world
|
||||
Test passed
|
Loading…
Reference in a new issue