Graphiclious 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES.txt +5 -0
- data/doc/help.html +110 -0
- data/doc/index.html +27 -12
- data/doc/install.html +68 -0
- data/doc/screenshots-preview.jpg +0 -0
- data/doc/screenshots/thumb.html +11 -12
- data/doc/style.css +34 -1
- data/javascript/cloud.js +3 -2
- data/javascript/link.js +12 -1
- data/lib/graphiclious/delicious2yaml.rb +23 -7
- data/lib/graphiclious/gui.rb +17 -11
- data/lib/graphiclious/require_fox.rb +14 -7
- data/lib/graphiclious/version.rb +1 -1
- metadata +114 -107
data/CHANGES.txt
ADDED
data/doc/help.html
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
5
|
+
<meta name="author" content="Sascha D�rdelmann">
|
6
|
+
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
|
7
|
+
<meta name="keywords" lang="en" content="Graphiclious,del.icio.us,static webpage generator">
|
8
|
+
<link rel="stylesheet" type="text/css" href="style.css">
|
9
|
+
<title>Graphiclious Help</title>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<h1>Graphiclious Help</h1>
|
13
|
+
<div class="main">
|
14
|
+
<ul class="menu">
|
15
|
+
<li class="menuitem"><a href="index.html">Homepage</a></li>
|
16
|
+
<li class="menuitem"><a href="screenshots/thumb.html">Screenshots</a></li>
|
17
|
+
<li class="menuitem"><a href="install.html">Installation</a></li>
|
18
|
+
<li class="menuselected">Documentation</li>
|
19
|
+
</ul>
|
20
|
+
<p>
|
21
|
+
<h2>Start the program</h2>
|
22
|
+
<p>
|
23
|
+
Depending on your Ruby installation, it might be enough to run:
|
24
|
+
</p>
|
25
|
+
<p class="code">
|
26
|
+
graphiclious --gui
|
27
|
+
</p>
|
28
|
+
<p>
|
29
|
+
On Windows, create a shortcut and set
|
30
|
+
</p>
|
31
|
+
<ul>
|
32
|
+
<li>
|
33
|
+
the working directory to a directory of your choice
|
34
|
+
(output will be generated into this directory)
|
35
|
+
</li>
|
36
|
+
<li>
|
37
|
+
the command:
|
38
|
+
<p class="code">
|
39
|
+
C:\ruby\bin\graphiclious.cmd --gui --user <name>
|
40
|
+
</p>
|
41
|
+
<p>(name should be your del.icio.us username)</p>
|
42
|
+
</li>
|
43
|
+
</ul>
|
44
|
+
<h2>Commandline options</h2>
|
45
|
+
<p>
|
46
|
+
Graphiclious has some useful options, the most mentionable options are:
|
47
|
+
</p>
|
48
|
+
<ul class="linklist">
|
49
|
+
<li>--help/-h will display a help text containing all options</li>
|
50
|
+
<li>--gui/-g will start a graphical user interface</li>
|
51
|
+
<li>
|
52
|
+
--user/-u specify a del.icio.us user
|
53
|
+
</li>
|
54
|
+
<li>--password/-p specify password for given user</li>
|
55
|
+
<li>--version/-v prints actual version</li>
|
56
|
+
</ul>
|
57
|
+
<p>
|
58
|
+
Without gui option you'll need to specify user and password.
|
59
|
+
</p>
|
60
|
+
<h2>Developers</h2>
|
61
|
+
<p>
|
62
|
+
A developer will typically run Graphiclious without gem installation to reduce
|
63
|
+
turnaround times.
|
64
|
+
</p>
|
65
|
+
<p>
|
66
|
+
In general it shoud work to
|
67
|
+
</p>
|
68
|
+
<ol>
|
69
|
+
<li>Open a console window</li>
|
70
|
+
<li>
|
71
|
+
Go to the graphiclious library directory
|
72
|
+
(e.g. "cd ~/graphiclious/lib" or "cd C:\graphiclious\lib")
|
73
|
+
</li>
|
74
|
+
<li>Run graphiclious.rb with options of your choice (we recommend option --gui)</li>
|
75
|
+
</ol>
|
76
|
+
<p>
|
77
|
+
Note that there are better ways to run it, but this one is easy to describe
|
78
|
+
and quite platform independent.
|
79
|
+
</p>
|
80
|
+
<p>
|
81
|
+
On WINDOWS create a shortcut which runs in the directory you want to generate
|
82
|
+
output in (e. g. C:\homepage\graphiclious) and executes the following command:
|
83
|
+
</p>
|
84
|
+
<p class="code">
|
85
|
+
C:\ruby\bin\ruby.exe -rubygems -I "C:\graphiclious\lib" -Ilib "C:\graphiclious\bin\graphiclious" --gui
|
86
|
+
</p>
|
87
|
+
<p>
|
88
|
+
To analyse errors, it might be useful to keep a console open. Try something like this:
|
89
|
+
</p>
|
90
|
+
<p class="code">
|
91
|
+
C:\WINNT\system32\CMD.EXE /k <command as described above> || pause
|
92
|
+
</p>
|
93
|
+
<p>
|
94
|
+
On Debian unstable the following works if you have installed the package
|
95
|
+
libfox-ruby:
|
96
|
+
</p>
|
97
|
+
<ol>
|
98
|
+
<li>
|
99
|
+
Go to the graphiclious root directory (e. g. cd ~/graphiclious)
|
100
|
+
</li>
|
101
|
+
<li>
|
102
|
+
Run the following command:
|
103
|
+
<p class="code">
|
104
|
+
ruby -rubygems -Ilib bin/graphiclious --gui
|
105
|
+
</p>
|
106
|
+
</li>
|
107
|
+
</ol>
|
108
|
+
</div>
|
109
|
+
</body>
|
110
|
+
</html>
|
data/doc/index.html
CHANGED
@@ -11,44 +11,59 @@
|
|
11
11
|
<body>
|
12
12
|
<h1>Graphiclious Homepage</h1>
|
13
13
|
<div class="main">
|
14
|
+
<ul class="menu">
|
15
|
+
<li class="menuselected">Homepage</li>
|
16
|
+
<li class="menuitem"><a href="screenshots/thumb.html">Screenshots</a></li>
|
17
|
+
<li class="menuitem"><a href="install.html">Installation</a></li>
|
18
|
+
<li class="menuitem"><a href="help.html">Documentation</a></li>
|
19
|
+
</ul>
|
14
20
|
<p>
|
15
|
-
Graphiclious takes your del.icio.us links
|
16
|
-
</
|
17
|
-
|
18
|
-
<a href="screenshots/thumb.html">Screenshots</a>
|
21
|
+
Graphiclious is a software tool that takes your del.icio.us links
|
22
|
+
and generates a bunch of static webpages. See <a href="screenshots/thumb.html">Screenshots</a>
|
23
|
+
for some samples.
|
19
24
|
</p>
|
25
|
+
<table>
|
26
|
+
<tr>
|
27
|
+
<td>
|
20
28
|
<p>
|
21
29
|
Rubyforge project pages:
|
22
30
|
</p>
|
23
|
-
<ul>
|
31
|
+
<ul class="linklist">
|
24
32
|
<li><a class="extern" href="http://rubyforge.org/projects/graphiclious/">Summary</a></li>
|
25
33
|
<li><a class="extern" href="http://rubyforge.org/tracker/?group_id=1436">Tracker</a></li>
|
26
|
-
<li><a class="extern" href="http://rubyforge.org/docman/?group_id=1436">Documentation</a></li>
|
27
34
|
<li><a class="extern" href="http://rubyforge.org/news/?group_id=1436">News</a></li>
|
28
35
|
<li><a class="extern" href="http://rubyforge.org/scm/?group_id=1436">Sources</a></li>
|
29
36
|
<li><a class="extern" href="http://rubyforge.org/frs/?group_id=1436">Releases</a></li>
|
30
37
|
</ul>
|
31
38
|
</li>
|
32
39
|
</ul>
|
33
|
-
|
40
|
+
</td>
|
41
|
+
<td>
|
42
|
+
<img
|
43
|
+
src="screenshots-preview.jpg"
|
44
|
+
width="200" height="160" border="0"
|
45
|
+
alt="screenshots-preview">
|
46
|
+
</td>
|
47
|
+
</tr>
|
34
48
|
<tr>
|
35
49
|
<td>
|
36
50
|
<p>
|
37
51
|
Graphiclious uses:
|
38
52
|
</p>
|
39
|
-
<ul>
|
53
|
+
<ul class="linklist">
|
40
54
|
<li><a class="extern" href="http://del.icio.us/">del.icio.us</a></li>
|
41
55
|
<li><a class="extern" href="http://www.ruby-lang.org/en/">Ruby</a></li>
|
42
56
|
<li><a class="extern" href="http://www.rubygems.org/">Rubygems</a></li>
|
43
57
|
<li><a class="extern" href="http://pablotron.org/software/rubilicious/">Rubilicious</a></li>
|
44
|
-
<li><a class="extern" href="http://
|
45
|
-
</
|
58
|
+
<li><a class="extern" href="http://rubyforge.org/projects/rgl/">RGL (Ruby Graph Library)</a></li>
|
59
|
+
<li><a class="extern" href="http://www.fxruby.org/">FXRuby</a></li>
|
60
|
+
</ul>
|
61
|
+
</td>
|
46
62
|
<td>
|
47
63
|
<p>
|
48
64
|
Additional features require:
|
49
65
|
</p>
|
50
|
-
<ul>
|
51
|
-
<li><a class="extern" href="http://rubyforge.org/projects/rgl/">RGL (Ruby Graph Library)</a></li>
|
66
|
+
<ul class="linklist">
|
52
67
|
<li><a class="extern" href="http://www.graphviz.org/">Graphviz</a></li>
|
53
68
|
<li><a class="extern" href="http://rmagick.rubyforge.org/">RMagick</a></li>
|
54
69
|
<li><a class="extern" href="http://sourceforge.net/projects/piggy/">Piggy ftp browser</a></li>
|
data/doc/install.html
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
|
5
|
+
<meta name="author" content="Sascha D�rdelmann">
|
6
|
+
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
|
7
|
+
<meta name="keywords" lang="en"
|
8
|
+
content="Graphiclious,del.icio.us,static webpage generator">
|
9
|
+
<link rel="stylesheet" type="text/css" href="style.css">
|
10
|
+
<title>Graphiclious Installation</title>
|
11
|
+
</head>
|
12
|
+
<body>
|
13
|
+
<h1>Graphiclious Installation</h1>
|
14
|
+
<div class="main">
|
15
|
+
<ul class="menu">
|
16
|
+
<li class="menuitem"><a href="index.html">Homepage</a></li>
|
17
|
+
<li class="menuitem"><a href="screenshots/thumb.html">Screenshots</a></li>
|
18
|
+
<li class="menuselected">Installation</li>
|
19
|
+
<li class="menuitem"><a href="help.html">Documentation</a></li>
|
20
|
+
</ul>
|
21
|
+
<h2>Requirements & Installation</h2>
|
22
|
+
<p>Do you have an account at <a class="extern"
|
23
|
+
href="http://del.icio.us/">del.icio.us</a>? If not, there is nothing,
|
24
|
+
Graphiclious can do for you at current state of development. File a
|
25
|
+
feature request or better: join the development team and add new
|
26
|
+
features yourself.</p>
|
27
|
+
<p>Graphiclious is written in the <a class="extern"
|
28
|
+
href="http://www.ruby-lang.org/en/">Ruby programming language <a>
|
29
|
+
and needs the Ruby interpreter and <a class="extern"
|
30
|
+
href="http://www.rubygems.org/">Rubygems</a> to be installed on your
|
31
|
+
computer. </p>
|
32
|
+
<p>Graphiclious has a simple user interface that is written in <a
|
33
|
+
class="extern" href="http://www.fxruby.org/">FXRuby</a>. On Windows,
|
34
|
+
the <a class="extern"
|
35
|
+
href="http://rubyforge.org/projects/rubyinstaller/">Ruby installer</a>
|
36
|
+
has an option to install Rubygems and FXRuby for you, too.</p>
|
37
|
+
<p>Once, Rubygems is installed, things become easy: Just run each of
|
38
|
+
the following commands</p>
|
39
|
+
<p class="code">gem install Rubilicious<br>
|
40
|
+
gem install RGL<br>
|
41
|
+
gem install Graphiclious</p>
|
42
|
+
<p>on the commandline to install <a class="extern"
|
43
|
+
href="http://pablotron.org/software/rubilicious/">Rubilicious</a>, <a
|
44
|
+
class="extern" href="http://rubyforge.org/projects/rgl/">RGL</a> and
|
45
|
+
Graphiclious. Choose Version 0.2.0 for Rubilicious and latest version of
|
46
|
+
Stream, RGL and Graphiclious when asked.</p>
|
47
|
+
<p>(Note: If your do not acess the internet directly but over a
|
48
|
+
proxy server, please set up the proxy configuration as described in the
|
49
|
+
<a class="extern"
|
50
|
+
href="http://wiki.rubyonrails.com/rails/pages/GemRails">Ruby on
|
51
|
+
Rails wiki</a>.)
|
52
|
+
<p>
|
53
|
+
<h2>Additional features</h2>
|
54
|
+
<p>Some features require additional software.</p>
|
55
|
+
<ul>
|
56
|
+
<li>To generate html image maps showing tag relations you'll need
|
57
|
+
<a class="extern" href="http://www.graphviz.org/">Graphviz</a>.</li>
|
58
|
+
<li>To show thumbnail images of these maps in the generated web
|
59
|
+
pages you'll need <a class="extern"
|
60
|
+
href="http://rmagick.rubyforge.org/">RMagick</a>.</li>
|
61
|
+
<li>To conveniently upload the generated web-pages to your
|
62
|
+
homepage directly from the Graphiclious user interface you should try <a
|
63
|
+
class="extern" href="http://sourceforge.net/projects/piggy/">Piggy
|
64
|
+
ftp browser</a>.</li>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
</body>
|
68
|
+
</html>
|
Binary file
|
data/doc/screenshots/thumb.html
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2
|
-
"http://www.w3.org/TR/html4/strict.dtd">
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
3
2
|
<html>
|
4
|
-
|
5
3
|
<head>
|
6
4
|
<meta name="GENERATOR" content="XnView">
|
7
5
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
8
|
-
<meta http-equiv="Content-Language" content="en-us">
|
9
6
|
<title>Graphiclious screenshots</title>
|
10
|
-
<link rel="stylesheet" type="text/css" href="
|
7
|
+
<link rel="stylesheet" type="text/css" href="../style.css">
|
11
8
|
</head>
|
12
|
-
|
13
9
|
<body>
|
14
10
|
<h1>Graphiclious</h1>
|
15
|
-
<
|
16
|
-
|
17
|
-
</
|
18
|
-
<
|
11
|
+
<div class="main">
|
12
|
+
<ul class="menu">
|
13
|
+
<li class="menuitem"><a href="../index.html">Homepage</a></li>
|
14
|
+
<li class="menuselected">Screenshots</li>
|
15
|
+
<li class="menuitem"><a href="../install.html">Installation</a></li>
|
16
|
+
<li class="menuitem"><a href="../help.html">Documentation</a></li>
|
17
|
+
</ul>
|
18
|
+
<table cellpadding="10" cellspacing="0" class="centered">
|
19
19
|
<tr><td>
|
20
20
|
<a href="original/01-blue-style-1.html"><img src="thumb/t_01-blue-style-1.jpg" alt="01-blue-style-1.jpg" width="100" height="81"></a>
|
21
21
|
<div>01-blue-style-1</div>
|
@@ -52,7 +52,6 @@
|
|
52
52
|
</td>
|
53
53
|
</tr>
|
54
54
|
</table>
|
55
|
-
|
56
|
-
<p><i>This thumbnail page was generated by <a href="http://www.xnview.com">XnView</a></i></p>
|
55
|
+
</div>
|
57
56
|
</body>
|
58
57
|
</html>
|
data/doc/style.css
CHANGED
@@ -28,16 +28,49 @@ h1 {
|
|
28
28
|
margin-left:20px;
|
29
29
|
padding:20px;
|
30
30
|
}
|
31
|
+
.menu {
|
32
|
+
list-style-type:none;
|
33
|
+
margin-left:auto;
|
34
|
+
margin-right:auto;
|
35
|
+
}
|
36
|
+
.menu li{
|
37
|
+
display:inline;
|
38
|
+
padding:0.4em;
|
39
|
+
text-align:=center;
|
40
|
+
width:6.2em;
|
41
|
+
}
|
42
|
+
.menuitem {
|
43
|
+
background-color:silver;
|
44
|
+
}
|
45
|
+
.menuselected {
|
46
|
+
background-color:white;
|
47
|
+
}
|
48
|
+
|
31
49
|
img {
|
32
50
|
border-style:none;
|
33
51
|
}
|
34
|
-
ul
|
52
|
+
ul{
|
53
|
+
list-style-type:square;
|
54
|
+
}
|
55
|
+
|
56
|
+
.linklist {
|
35
57
|
list-style-type:none;
|
36
58
|
}
|
59
|
+
|
60
|
+
.centered {
|
61
|
+
margin-left: auto;
|
62
|
+
margin-right: auto;
|
63
|
+
}
|
64
|
+
|
37
65
|
td {
|
38
66
|
vertical-align:top;
|
39
67
|
padding-right:2em;
|
40
68
|
}
|
69
|
+
|
70
|
+
.code {
|
71
|
+
font-family:Fixedsys,Courier,monospace;
|
72
|
+
}
|
73
|
+
|
41
74
|
/* Basic link style
|
42
75
|
*/
|
43
76
|
a:link {
|
data/javascript/cloud.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// -*-javascript-*-
|
2
|
-
// $Id: cloud.js
|
2
|
+
// $Id: cloud.js 39 2007-01-27 13:36:53Z wsdng $
|
3
3
|
//
|
4
4
|
|
5
5
|
// Cloud constructor computes everything we need
|
@@ -202,7 +202,8 @@ function Cloud_subst()
|
|
202
202
|
div.appendChild(this.get_cloud_node());
|
203
203
|
}
|
204
204
|
var ul = document.createElement("ul");
|
205
|
-
ul.className = 'link_list';
|
205
|
+
ul.className = 'link_list';
|
206
|
+
list_to_show = list_to_show.sort(Link_compare_desc)
|
206
207
|
for(var l in list_to_show)
|
207
208
|
{
|
208
209
|
var link = list_to_show[l];
|
data/javascript/link.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// -*-javascript-*-
|
2
|
-
// $Id: link.js
|
2
|
+
// $Id: link.js 39 2007-01-27 13:36:53Z wsdng $
|
3
3
|
|
4
4
|
// Representing tagged hyperlink
|
5
5
|
function Link(href, tags, desc)
|
@@ -23,3 +23,14 @@ function Link_to_html(parent)
|
|
23
23
|
parent.appendChild(document.createElement("br"));
|
24
24
|
}
|
25
25
|
Link.prototype.to_html = Link_to_html;
|
26
|
+
|
27
|
+
function Link_compare_desc(x, y)
|
28
|
+
{
|
29
|
+
if(x.desc < y.desc){
|
30
|
+
return -1;
|
31
|
+
}
|
32
|
+
if(x.desc > y.desc){
|
33
|
+
return 1;
|
34
|
+
}
|
35
|
+
return 0;
|
36
|
+
}
|
@@ -17,6 +17,22 @@ if(Rubilicious::VERSION == '0.1.5')
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
if(Rubilicious::VERSION == '0.2.0')
|
21
|
+
# #all() and #recent() shoult return the same format
|
22
|
+
# therefore I changed 'tag' into 'tags'
|
23
|
+
class Rubilicious
|
24
|
+
def all(tag = nil)
|
25
|
+
args = [(tag ? "tag=#{u(tag)}" : nil)]
|
26
|
+
get('posts/all?' << args.compact.join('&'), 'post').map do |e|
|
27
|
+
e.merge({
|
28
|
+
'time' => Time.iso8601(e['time']),
|
29
|
+
'tags' => e['tag'].split(/\s+/),
|
30
|
+
})
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
20
36
|
class Rubilicious
|
21
37
|
#
|
22
38
|
# Low-level HTTPS GET.
|
@@ -27,19 +43,19 @@ class Rubilicious
|
|
27
43
|
# get proxy info
|
28
44
|
proxy_host, proxy_port = find_http_proxy
|
29
45
|
# $stderr.puts "DEBUG: proxy: host = #{proxy_host}, port = #{proxy_port}"
|
30
|
-
|
46
|
+
|
31
47
|
# get host, port, and base URI for API queries
|
32
48
|
uri = URI::parse(@base_uri)
|
33
49
|
base = uri.request_uri
|
34
|
-
|
50
|
+
|
35
51
|
# prepend base to url
|
36
52
|
url = "#{base}/#{url}"
|
37
|
-
|
53
|
+
|
38
54
|
# connect to delicious
|
39
55
|
http = Net::HTTP.Proxy(proxy_host, proxy_port).new(uri.host, uri.port)
|
40
56
|
http.use_ssl = true
|
41
57
|
http.start
|
42
|
-
|
58
|
+
|
43
59
|
# get URL, check for error
|
44
60
|
resp = http.get(url, @headers)
|
45
61
|
unless resp.code =~ /2\d{2}/
|
@@ -47,7 +63,7 @@ class Rubilicious
|
|
47
63
|
puts url
|
48
64
|
raise "HTTP #{resp.code}: #{resp.message}"
|
49
65
|
end
|
50
|
-
|
66
|
+
|
51
67
|
# close HTTP connection, return response
|
52
68
|
http.finish
|
53
69
|
resp.body
|
@@ -119,7 +135,7 @@ class Delicious2Yaml
|
|
119
135
|
false
|
120
136
|
end
|
121
137
|
end
|
122
|
-
|
138
|
+
|
123
139
|
# get links from del.icio.us and add them to the
|
124
140
|
# locally stored links
|
125
141
|
# you'll have to edit the delicious*.yaml file to delete a link
|
@@ -128,7 +144,7 @@ class Delicious2Yaml
|
|
128
144
|
fetch_and_store_links
|
129
145
|
fetch_and_store_bundles
|
130
146
|
end
|
131
|
-
|
147
|
+
|
132
148
|
protected
|
133
149
|
|
134
150
|
def file_base
|
data/lib/graphiclious/gui.rb
CHANGED
@@ -59,6 +59,12 @@ class GraphicliousMainWindow < Fox::FXMainWindow
|
|
59
59
|
frame.padTop = 0
|
60
60
|
end
|
61
61
|
|
62
|
+
def newCombobox(p1, p2, p3, p4, p5, p6)
|
63
|
+
box = Fox::FXComboBox.new(p1, p2, p4, p5, p6)
|
64
|
+
box.setNumVisible(p3)
|
65
|
+
box
|
66
|
+
end
|
67
|
+
|
62
68
|
def initView
|
63
69
|
basicFrame = newFrame(FXVerticalFrame.new(self))
|
64
70
|
basicFrame.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
@@ -71,8 +77,8 @@ class GraphicliousMainWindow < Fox::FXMainWindow
|
|
71
77
|
wdFrame.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
72
78
|
noPaddingForFrame(wdFrame)
|
73
79
|
@workingDirTextField = FXTextField.new(wdFrame,
|
74
|
-
|
75
|
-
|
80
|
+
32, nil, 0,
|
81
|
+
TEXTFIELD_NORMAL)
|
76
82
|
@workingDirTextField.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
77
83
|
@workingDirTextField.setText(@workingDir)
|
78
84
|
wdChooseButton = newButton(wdFrame, '..')
|
@@ -80,24 +86,24 @@ class GraphicliousMainWindow < Fox::FXMainWindow
|
|
80
86
|
|
81
87
|
FXLabel.new(userAndPasswordFrame, "Enter User:")
|
82
88
|
@userTextField = newCombobox(userAndPasswordFrame, 32,
|
83
|
-
|
84
|
-
|
89
|
+
10.size,
|
90
|
+
nil, 0, COMBOBOX_INSERT_LAST)
|
85
91
|
@userTextField.setFrameStyle(FRAME_SUNKEN|FRAME_THICK)
|
86
92
|
@userTextField.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
87
93
|
|
88
94
|
# input password
|
89
95
|
FXLabel.new(userAndPasswordFrame, "Password:")
|
90
96
|
@passwordTextField = FXTextField.new(userAndPasswordFrame,
|
91
|
-
|
92
|
-
|
97
|
+
32, nil, 0,
|
98
|
+
TEXTFIELD_NORMAL|TEXTFIELD_PASSWD)
|
93
99
|
@passwordTextField.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
94
100
|
@passwordTextField.setText(@password) if @password
|
95
101
|
|
96
102
|
# input style
|
97
103
|
FXLabel.new(userAndPasswordFrame, "Style:")
|
98
104
|
@styleTextField = newCombobox(userAndPasswordFrame, 32,
|
99
|
-
|
100
|
-
|
105
|
+
10,
|
106
|
+
nil, 0, COMBOBOX_INSERT_LAST)
|
101
107
|
@styleTextField.setFrameStyle(FRAME_SUNKEN|FRAME_THICK)
|
102
108
|
@styleTextField.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
103
109
|
|
@@ -112,8 +118,8 @@ class GraphicliousMainWindow < Fox::FXMainWindow
|
|
112
118
|
fetchFrame.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_COLUMN)
|
113
119
|
|
114
120
|
@fetchMode = newCombobox(fetchFrame, 10,
|
115
|
-
|
116
|
-
|
121
|
+
Delicious2Yaml::MODES.size,
|
122
|
+
nil, 0, COMBOBOX_STATIC)
|
117
123
|
@fetchMode.setFrameStyle(FRAME_SUNKEN|FRAME_THICK)
|
118
124
|
modeKeys = Delicious2Yaml::MODES.keys.sort {|m1, m2| m1.to_s <=> m2.to_s}
|
119
125
|
modeKeys.each { |m| @fetchMode.appendItem(Delicious2Yaml::MODES[m]) }
|
@@ -155,7 +161,7 @@ class GraphicliousMainWindow < Fox::FXMainWindow
|
|
155
161
|
cancelButton.connect(SEL_COMMAND, method(:onCmdQuit))
|
156
162
|
|
157
163
|
@cmdOutput = FXText.new(basicFrame, nil, 0,
|
158
|
-
|
164
|
+
TEXT_READONLY|TEXT_WORDWRAP|TEXT_SHOWACTIVE)
|
159
165
|
@cmdOutput.setLayoutHints(LAYOUT_LEFT|LAYOUT_FILL_X|LAYOUT_FILL_Y)
|
160
166
|
end
|
161
167
|
|
@@ -1,12 +1,19 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
1
|
require 'rubygems'
|
4
|
-
require_gem 'fxruby', '>= 1.2'
|
5
2
|
|
6
|
-
def
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
def loadFox
|
4
|
+
begin
|
5
|
+
['fox16', 'fox14', 'fox12'].each { |v|
|
6
|
+
begin
|
7
|
+
require v
|
8
|
+
return v
|
9
|
+
rescue LoadError
|
10
|
+
end
|
11
|
+
}
|
12
|
+
# can't find fox, throw ex
|
13
|
+
require 'fox16'
|
14
|
+
end
|
10
15
|
end
|
11
16
|
|
17
|
+
FOXLIB = loadFox
|
12
18
|
|
19
|
+
puts "Using FXRuby library #{FOXLIB}"
|
data/lib/graphiclious/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: Graphiclious
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date:
|
6
|
+
version: 0.1.2
|
7
|
+
date: 2007-01-27 00:00:00 +01:00
|
8
8
|
summary: Create an html image map pointing to generated static html pages from your del.icio.us links. Uses Rubilicious and Graphviz. Interface done with FXRuby
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: wsdngatrubyforge at hinterkattentuffel.de
|
12
12
|
homepage: http://rubyforge.org/projects/rgl/
|
13
13
|
rubyforge_project:
|
@@ -18,119 +18,126 @@ bindir: bin
|
|
18
18
|
has_rdoc: false
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
27
26
|
signing_key:
|
28
27
|
cert_chain:
|
28
|
+
post_install_message:
|
29
29
|
authors:
|
30
|
-
|
30
|
+
- "Sascha D\xF6rdelmann"
|
31
31
|
files:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
32
|
+
- gemspec.rb
|
33
|
+
- README.txt
|
34
|
+
- styles
|
35
|
+
- lib
|
36
|
+
- doc
|
37
|
+
- bin
|
38
|
+
- options.yaml
|
39
|
+
- wickie
|
40
|
+
- test
|
41
|
+
- Rakefile
|
42
|
+
- javascript
|
43
|
+
- CHANGES.txt
|
44
|
+
- styles/cornflower
|
45
|
+
- styles/blue-style-1
|
46
|
+
- styles/cornflower/cornflower.png
|
47
|
+
- styles/cornflower/dot-attributes.yaml
|
48
|
+
- styles/cornflower/extern.gif
|
49
|
+
- styles/cornflower/h3.gif
|
50
|
+
- styles/cornflower/menuitem.png
|
51
|
+
- styles/cornflower/menuselected.png
|
52
|
+
- styles/cornflower/style.css
|
53
|
+
- styles/cornflower/tr-edge.png
|
54
|
+
- styles/blue-style-1/dot-attributes.yaml
|
55
|
+
- styles/blue-style-1/extern.gif
|
56
|
+
- styles/blue-style-1/style.css
|
57
|
+
- lib/graphiclious.rb
|
58
|
+
- lib/graphiclious
|
59
|
+
- lib/graphiclious/delicious2yaml.rb
|
60
|
+
- lib/graphiclious/dot_attributes.rb
|
61
|
+
- lib/graphiclious/help.rb
|
62
|
+
- lib/graphiclious/require_fox.rb
|
63
|
+
- lib/graphiclious/url_graph.rb
|
64
|
+
- lib/graphiclious/utf8.rb
|
65
|
+
- lib/graphiclious/version.rb
|
66
|
+
- lib/graphiclious/yaml-links2html.rb
|
67
|
+
- lib/graphiclious/gui.rb
|
68
|
+
- lib/graphiclious/environment.rb
|
69
|
+
- lib/graphiclious/ftp_browser.rb
|
70
|
+
- lib/graphiclious/yaml-links2js.rb
|
71
|
+
- doc/screenshots
|
72
|
+
- doc/index.html
|
73
|
+
- doc/style.css
|
74
|
+
- doc/cloud.jpg
|
75
|
+
- doc/extern.gif
|
76
|
+
- doc/help.html
|
77
|
+
- doc/install.html
|
78
|
+
- doc/screenshots-preview.jpg
|
79
|
+
- doc/screenshots/original
|
80
|
+
- doc/screenshots/thumb
|
81
|
+
- doc/screenshots/thumb.html
|
82
|
+
- doc/screenshots/default.css
|
83
|
+
- doc/screenshots/original/01-blue-style-1.jpg
|
84
|
+
- doc/screenshots/original/02-cornflower.jpg
|
85
|
+
- doc/screenshots/original/03-sample-graph.jpg
|
86
|
+
- doc/screenshots/original/04-basic-style-js.jpg
|
87
|
+
- doc/screenshots/original/05-custom-style.jpg
|
88
|
+
- doc/screenshots/original/06-custom-style-js.jpg
|
89
|
+
- doc/screenshots/original/07-user-interface.jpg
|
90
|
+
- doc/screenshots/original/08-ftp-upload.jpg
|
91
|
+
- doc/screenshots/original/01-blue-style-1.html
|
92
|
+
- doc/screenshots/original/02-cornflower.html
|
93
|
+
- doc/screenshots/original/03-sample-graph.html
|
94
|
+
- doc/screenshots/original/04-basic-style-js.html
|
95
|
+
- doc/screenshots/original/05-custom-style.html
|
96
|
+
- doc/screenshots/original/06-custom-style-js.html
|
97
|
+
- doc/screenshots/original/07-user-interface.html
|
98
|
+
- doc/screenshots/original/08-ftp-upload.html
|
99
|
+
- doc/screenshots/thumb/t_01-blue-style-1.jpg
|
100
|
+
- doc/screenshots/thumb/t_02-cornflower.jpg
|
101
|
+
- doc/screenshots/thumb/t_03-sample-graph.jpg
|
102
|
+
- doc/screenshots/thumb/t_04-basic-style-js.jpg
|
103
|
+
- doc/screenshots/thumb/t_05-custom-style.jpg
|
104
|
+
- doc/screenshots/thumb/t_06-custom-style-js.jpg
|
105
|
+
- doc/screenshots/thumb/t_07-user-interface.jpg
|
106
|
+
- doc/screenshots/thumb/t_08-ftp-upload.jpg
|
107
|
+
- bin/graphiclious
|
108
|
+
- test/test_delicious2yaml.rb
|
109
|
+
- javascript/style.css
|
110
|
+
- javascript/index.htm
|
111
|
+
- javascript/cloud.js
|
112
|
+
- javascript/link.js
|
109
113
|
test_files: []
|
114
|
+
|
110
115
|
rdoc_options: []
|
116
|
+
|
111
117
|
extra_rdoc_files: []
|
118
|
+
|
112
119
|
executables:
|
113
|
-
|
120
|
+
- graphiclious
|
114
121
|
extensions: []
|
122
|
+
|
115
123
|
requirements: []
|
124
|
+
|
116
125
|
dependencies:
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
version: 0.0.0
|
136
|
-
version:
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: Rubilicious
|
128
|
+
version_requirement:
|
129
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
130
|
+
requirements:
|
131
|
+
- - ">"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.0.0
|
134
|
+
version:
|
135
|
+
- !ruby/object:Gem::Dependency
|
136
|
+
name: rgl
|
137
|
+
version_requirement:
|
138
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">"
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 0.0.0
|
143
|
+
version:
|