slithernix-cdk 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/COPYING +131 -0
- data/README.md +45 -0
- data/lib/cdk/alphalist.rb +561 -0
- data/lib/cdk/buttonbox.rb +355 -0
- data/lib/cdk/calendar.rb +770 -0
- data/lib/cdk/cdk_objs.rb +463 -0
- data/lib/cdk/dialog.rb +727 -0
- data/lib/cdk/display.rb +63 -0
- data/lib/cdk/draw.rb +233 -0
- data/lib/cdk/dscale.rb +13 -0
- data/lib/cdk/entry.rb +556 -0
- data/lib/cdk/fscale.rb +44 -0
- data/lib/cdk/fselect.rb +940 -0
- data/lib/cdk/fslider.rb +61 -0
- data/lib/cdk/histogram.rb +410 -0
- data/lib/cdk/itemlist.rb +475 -0
- data/lib/cdk/label.rb +207 -0
- data/lib/cdk/marquee.rb +241 -0
- data/lib/cdk/matrix.rb +1176 -0
- data/lib/cdk/mentry.rb +616 -0
- data/lib/cdk/menu.rb +448 -0
- data/lib/cdk/radio.rb +533 -0
- data/lib/cdk/scale.rb +529 -0
- data/lib/cdk/screen.rb +281 -0
- data/lib/cdk/scroll.rb +996 -0
- data/lib/cdk/scroller.rb +183 -0
- data/lib/cdk/selection.rb +619 -0
- data/lib/cdk/slider.rb +542 -0
- data/lib/cdk/swindow.rb +762 -0
- data/lib/cdk/template.rb +562 -0
- data/lib/cdk/traverse.rb +289 -0
- data/lib/cdk/uscale.rb +14 -0
- data/lib/cdk/uslider.rb +14 -0
- data/lib/cdk/viewer.rb +812 -0
- data/lib/cdk.rb +1015 -0
- metadata +149 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c75dce1b9d7aae1da972c1f973a5284a849bf6093ed994b7f344be7e69e1e10f
|
4
|
+
data.tar.gz: a0814c729fd8d9c39bda4adb2d621afc11fc61c7c9ce25307b5fffe85aad9c9a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f90a3ffa427067b73b30170ff812af98525867ad53efe45df426fcca1a94aa55a9696652a8492b113085377325246da143d994162a61f36e11fffe4032b317fe
|
7
|
+
data.tar.gz: deb5033dd3c1c074284d3d29a94a1bdaa01e0f2fe5ef220d015ea156726ed37d788c4901a57aff6cd1cbc70fe94524d2302177ec99879ba3503554465352318c
|
data/COPYING
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
Ruby port revival copyright Snake Blitzken 2023
|
2
|
+
|
3
|
+
Ruby port copyright Chris Sauro 2013
|
4
|
+
|
5
|
+
Like Thomas, I am keeping this under a BSD license but I am changing to the
|
6
|
+
3-clause version rather than the old 4-clause version. The text of this
|
7
|
+
license is copied below and the original COPYING file is available below
|
8
|
+
that. -CS
|
9
|
+
|
10
|
+
-------------------------------------------------------------------------------
|
11
|
+
|
12
|
+
Copyright (c) 2013, Chris Sauro
|
13
|
+
All rights reserved.
|
14
|
+
|
15
|
+
Redistribution and use in source and binary forms, with or without
|
16
|
+
modification, are permitted provided that the following conditions are met:
|
17
|
+
* Redistributions of source code must retain the above copyright
|
18
|
+
notice, this list of conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above copyright
|
20
|
+
notice, this list of conditions and the following disclaimer in the
|
21
|
+
documentation and/or other materials provided with the distribution.
|
22
|
+
* Neither the name of Chris Sauro nor the
|
23
|
+
names of its contributors may be used to endorse or promote products
|
24
|
+
derived from this software without specific prior written permission.
|
25
|
+
|
26
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
27
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
28
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
29
|
+
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
30
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
31
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
32
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
33
|
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
34
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
35
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
36
|
+
|
37
|
+
-------------------------------------------------------------------------------
|
38
|
+
|
39
|
+
|
40
|
+
Modifications copyright Thomas Dickey 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
|
41
|
+
|
42
|
+
The software and documentation are still under the same licensing are the
|
43
|
+
original Cdk, but noting that substantial work and enhancements have been made,
|
44
|
+
I've added my name as needed -TD
|
45
|
+
|
46
|
+
The original COPYING file follows (with corrections as noted in CHANGES).
|
47
|
+
-------------------------------------------------------------------------------
|
48
|
+
Cdk Copying Guide
|
49
|
+
Copyright Mike Glover, 1995, 1996, 1997, 1998, 1999
|
50
|
+
-------------------------------------------------------------------------------
|
51
|
+
In order to copy Cdk around I have some requirements that will protect me,
|
52
|
+
and possibly even you. First thing, I feel I should say that this little project
|
53
|
+
of mine has taken quite a bit 'free' time and I have put a lot of work
|
54
|
+
into it. I do ask that if anyone asks you about Cdk, tell them where you got it
|
55
|
+
and who wrote it. If you see Cdk installed without this file on the system
|
56
|
+
somewhere, then assume the copy the person has is a 'corrupt' version. I will
|
57
|
+
not be responsible for any unfortunate results if someone else makes a personal
|
58
|
+
modification to the Cdk library. I will also not be responsible if for some
|
59
|
+
reason the installation of Cdk creates a negative effect on your machine. You
|
60
|
+
do have my word that there are no "Trojan horses", worms, or other security
|
61
|
+
worries lurking in this code. If there are I did not put them there and you
|
62
|
+
should remove the version of Cdk you have and go get a proper copy. I hate
|
63
|
+
virus writers as much as anyone else!
|
64
|
+
|
65
|
+
Instead of writing my own license (I'm a programmer, not a lawyer!) I'm going
|
66
|
+
to adapt the BSD public license on public software. If you do not agree to
|
67
|
+
this license then remove the Cdk distribution and we all will be happier in
|
68
|
+
the end. Here is the complete BSD public license in its true form, for
|
69
|
+
reference.
|
70
|
+
|
71
|
+
I will say one thing, Cdk is my copyright. I will continue to support any
|
72
|
+
released versions out there as long as they are in their released form. I am
|
73
|
+
releasing this into the "public" because I feel I have benefited from other
|
74
|
+
people's hard work, I'd like to chip into the pot as well. This does NOT make
|
75
|
+
Cdk public domain though. Cdk is still my copyright, and owned by me, I am
|
76
|
+
merely stating this so I don't see 40 different versions of my code floating
|
77
|
+
around with other people's names attached.
|
78
|
+
|
79
|
+
With that ugly stuff said, I will happily take any comments or questions about
|
80
|
+
Cdk. Input is more than welcomed. In fact I encourage it. Feel free to mail
|
81
|
+
me and ask questions you think the supplied documents don't cover. If I get
|
82
|
+
enough I may build a FAQ to help newcomers. (We'll see how Cdk is accepted
|
83
|
+
though).
|
84
|
+
|
85
|
+
For you Perl programmers, there is a Perl5 extension to Cdk. Look at your
|
86
|
+
closest CPAN site under authors/id/GLOVER.
|
87
|
+
|
88
|
+
If you want to get a hold of me mail me at one of the following:
|
89
|
+
glover@credit.erin.utoronto.ca
|
90
|
+
mike@vexus.ca
|
91
|
+
|
92
|
+
The CDK Web page has several homes. They are:
|
93
|
+
http://www.vexus.ca/CDK.html (official)
|
94
|
+
http://www.datasoft.on.ca/~cdk (Sponsored by the nice folks at Datasoft)
|
95
|
+
|
96
|
+
ttfn,
|
97
|
+
Mike
|
98
|
+
-------------------------------------------------------------------------------
|
99
|
+
|
100
|
+
/*
|
101
|
+
* Copyright (c) 1999, Mike Glover
|
102
|
+
* All rights reserved.
|
103
|
+
*
|
104
|
+
* Redistribution and use in source and binary forms, with or without
|
105
|
+
* modification, are permitted provided that the following conditions
|
106
|
+
* are met:
|
107
|
+
* 1. Redistributions of source code must retain the above copyright
|
108
|
+
* notice, this list of conditions and the following disclaimer.
|
109
|
+
* 2. Redistributions in binary form must reproduce the above copyright
|
110
|
+
* notice, this list of conditions and the following disclaimer in the
|
111
|
+
* documentation and/or other materials provided with the distribution.
|
112
|
+
* 3. All advertising materials mentioning features or use of this software
|
113
|
+
* must display the following acknowledgment:
|
114
|
+
* This product includes software developed by Mike Glover
|
115
|
+
* and contributors.
|
116
|
+
* 4. Neither the name of Mike Glover, nor the names of contributors
|
117
|
+
* may be used to endorse or promote products derived from this software
|
118
|
+
* without specific prior written permission.
|
119
|
+
*
|
120
|
+
* THIS SOFTWARE IS PROVIDED BY MIKE GLOVER AND CONTRIBUTORS ``AS IS'' AND
|
121
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
122
|
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
123
|
+
* ARE DISCLAIMED. IN NO EVENT SHALL MIKE GLOVER OR CONTRIBUTORS BE LIABLE
|
124
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
125
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
126
|
+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
127
|
+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
128
|
+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
129
|
+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
130
|
+
* SUCH DAMAGE.
|
131
|
+
*/
|
data/README.md
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
slithernix-cdk
|
2
|
+
========
|
3
|
+
|
4
|
+
This is a fork of tawny-cdk, a CDK port that wasn't updated for about
|
5
|
+
a decade. In that time, Ruby changed and so did the Ncurses library
|
6
|
+
for it. Below is the original README.md.
|
7
|
+
|
8
|
+
AS OF JUNE 2024- This thing is NOT ready for real usage. Consider this a WIP.
|
9
|
+
|
10
|
+
==============================================================================
|
11
|
+
A Ruby version of Thomas Dickey version of the curses development kit.
|
12
|
+
|
13
|
+
Why Tawny? Because this is better than just a ruby port. Or, rather, it
|
14
|
+
will be. At the moment it's pretty much just a Ruby port but the plan is
|
15
|
+
a package that is easier to use and extend, with extra extensions to prove
|
16
|
+
it.
|
17
|
+
|
18
|
+
Currently requires ncurses-ruby (http://ncurses-ruby.berlios.de/).
|
19
|
+
|
20
|
+
Currently implemented widgets:
|
21
|
+
* Alphalist
|
22
|
+
* Button
|
23
|
+
* Buttonbox
|
24
|
+
* Calendar
|
25
|
+
* Dialog
|
26
|
+
* Entry
|
27
|
+
* File Selector
|
28
|
+
* Graph
|
29
|
+
* Histogram
|
30
|
+
* Item List
|
31
|
+
* Label
|
32
|
+
* Matrix
|
33
|
+
* Marquee
|
34
|
+
* Menu
|
35
|
+
* Multiple Line Entry
|
36
|
+
* Radio List
|
37
|
+
* Scale
|
38
|
+
* Scrolling List
|
39
|
+
* Scrolling Window
|
40
|
+
* Selection List
|
41
|
+
* Slider
|
42
|
+
* Template
|
43
|
+
* Viewer
|
44
|
+
|
45
|
+
Thomas Dickey's C project page: http://invisible-island.net/cdk/
|