gray_scott_gtk3 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/FUNDING.yml +2 -0
- data/.github/workflows/ci.yml +21 -0
- data/README.md +3 -2
- data/gray_scott_gtk3.gemspec +4 -6
- data/lib/gray_scott/color.rb +0 -2
- data/lib/gray_scott/controller.rb +1 -2
- data/lib/gray_scott/model.rb +0 -2
- data/lib/gray_scott/version.rb +1 -1
- data/lib/gray_scott.rb +6 -4
- data/resources/gray_scott.glade +222 -268
- metadata +11 -12
- data/.travis.yml +0 -14
- data/bin/console +0 -15
- data/bin/setup +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b05f0ded43ea9aacb610353610ceee7467ea79e9780910b99aca883268a2e5a
|
4
|
+
data.tar.gz: 478e33120c796fa6c4d05f353d7e5193b83d94cabd94936966df41d128fcf84e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48b77d17fce3734b60a27521f478bad40a8fb7caada166ddcf7f49a6f95529366220eb1d8880a869c6464c8c595129a86fda68a84b2f2f826c68ac96179053b4
|
7
|
+
data.tar.gz: 586fb519f89010e7c72decfcb9610c5348d17597c258e1997d5bc131f2b57d40df7e682daf55dd9403cd0ea04ab3db23fb65cdfd18c671cfb3b588a02f45fd51
|
data/.github/FUNDING.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
name: test
|
2
|
+
on: [push, pull_request]
|
3
|
+
jobs:
|
4
|
+
build:
|
5
|
+
name: ${{ matrix.os }} Ruby ${{ matrix.ruby }}
|
6
|
+
runs-on: ${{ matrix.os }}-latest
|
7
|
+
strategy:
|
8
|
+
matrix:
|
9
|
+
os: [ 'ubuntu' ]
|
10
|
+
ruby: [ '2.6', '2.7', '3.0' ]
|
11
|
+
steps:
|
12
|
+
- uses: actions/checkout@v2
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
|
+
with:
|
15
|
+
ruby-version: ${{ matrix.ruby }}
|
16
|
+
- run: |
|
17
|
+
sudo apt install -y xvfb libgtk-3-0
|
18
|
+
- run: |
|
19
|
+
bundle install
|
20
|
+
- run: |
|
21
|
+
xvfb-run bundle exec rake spec
|
data/README.md
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# Gray-Scott
|
2
2
|
|
3
|
-
![Gem](https://img.shields.io/gem/v/gray_scott_gtk3)
|
4
|
-
![build status](https://travis-ci.com/kojix2/Gray-Scott.svg?branch=master)
|
3
|
+
[![Gem](https://img.shields.io/gem/v/gray_scott_gtk3)](https://rubygems.org/gems/gray_scott_gtk3)
|
4
|
+
[![build status](https://travis-ci.com/kojix2/Gray-Scott.svg?branch=master)](https://travis-ci.com/github/kojix2/Gray-Scott)
|
5
|
+
[![DOI](https://zenodo.org/badge/158914232.svg)](https://zenodo.org/badge/latestdoi/158914232)
|
5
6
|
|
6
7
|
Ruby implementation of the Reaction diffusion system (Gray-Scott model).
|
7
8
|
|
data/gray_scott_gtk3.gemspec
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
-
require 'gray_scott/version'
|
3
|
+
require_relative 'lib/gray_scott/version'
|
6
4
|
|
7
5
|
Gem::Specification.new do |spec|
|
8
6
|
spec.name = 'gray_scott_gtk3'
|
@@ -18,13 +16,13 @@ Gem::Specification.new do |spec|
|
|
18
16
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
17
|
end
|
20
18
|
spec.bindir = 'exe'
|
21
|
-
spec.executables =
|
19
|
+
spec.executables = ['grayscott']
|
22
20
|
spec.require_paths = ['lib']
|
23
21
|
|
24
22
|
spec.add_dependency 'gtk3'
|
25
23
|
spec.add_dependency 'numo-narray'
|
26
24
|
|
27
|
-
spec.add_development_dependency 'bundler'
|
28
|
-
spec.add_development_dependency 'rake'
|
25
|
+
spec.add_development_dependency 'bundler'
|
26
|
+
spec.add_development_dependency 'rake'
|
29
27
|
spec.add_development_dependency 'rspec'
|
30
28
|
end
|
data/lib/gray_scott/color.rb
CHANGED
@@ -5,7 +5,6 @@ require_relative 'controller/aboutdialog'
|
|
5
5
|
module GrayScott
|
6
6
|
class Controller
|
7
7
|
include Color
|
8
|
-
include XumoShortHand
|
9
8
|
attr_accessor :resource_dir, :height, :width, :model, :color
|
10
9
|
|
11
10
|
def initialize(dir, height: 256, width: 256)
|
@@ -22,7 +21,7 @@ module GrayScott
|
|
22
21
|
builder.add_from_file File.join(resource_dir, 'gray_scott.glade')
|
23
22
|
|
24
23
|
%w[win execute_button gimage legend_image uv_combobox pen_density pen_radius].each do |s|
|
25
|
-
instance_variable_set(
|
24
|
+
instance_variable_set("@#{s}", builder.get_object(s))
|
26
25
|
end
|
27
26
|
|
28
27
|
builder.connect_signals { |handler| method(handler) }
|
data/lib/gray_scott/model.rb
CHANGED
data/lib/gray_scott/version.rb
CHANGED
data/lib/gray_scott.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'gtk3'
|
4
4
|
|
5
|
+
# Support for Cumo
|
5
6
|
if Object.const_defined? :Cumo
|
6
7
|
Xumo = Cumo
|
7
8
|
else
|
@@ -9,13 +10,14 @@ else
|
|
9
10
|
Xumo = Numo
|
10
11
|
end
|
11
12
|
|
12
|
-
|
13
|
-
|
13
|
+
# Monkey patch
|
14
|
+
module Xumo
|
15
|
+
class SFloat
|
14
16
|
alias _ inplace
|
15
17
|
end
|
16
|
-
SFloat = Xumo::SFloat
|
17
|
-
UInt8 = Xumo::UInt8
|
18
18
|
end
|
19
|
+
SFloat = Xumo::SFloat
|
20
|
+
UInt8 = Xumo::UInt8
|
19
21
|
|
20
22
|
require 'gray_scott/model'
|
21
23
|
require 'gray_scott/color'
|
data/resources/gray_scott.glade
CHANGED
@@ -1,127 +1,122 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!-- Generated with glade 3.
|
2
|
+
<!-- Generated with glade 3.38.2 -->
|
3
3
|
<interface>
|
4
|
-
<requires lib="gtk+" version="3.
|
4
|
+
<requires lib="gtk+" version="3.24"/>
|
5
5
|
<object class="GtkAdjustment" id="f">
|
6
|
-
<property name="upper">0.
|
6
|
+
<property name="upper">0.10</property>
|
7
7
|
<property name="value">0.04</property>
|
8
|
-
<property name="
|
9
|
-
<property name="
|
8
|
+
<property name="step-increment">0.01</property>
|
9
|
+
<property name="page-increment">0.01</property>
|
10
10
|
<signal name="value-changed" handler="on_f_changed" swapped="no"/>
|
11
11
|
</object>
|
12
12
|
<object class="GtkAdjustment" id="frames">
|
13
13
|
<property name="lower">1</property>
|
14
14
|
<property name="upper">1000</property>
|
15
15
|
<property name="value">5</property>
|
16
|
-
<property name="
|
17
|
-
<property name="
|
16
|
+
<property name="step-increment">1</property>
|
17
|
+
<property name="page-increment">10</property>
|
18
18
|
<signal name="value-changed" handler="on_frames_changed" swapped="no"/>
|
19
19
|
</object>
|
20
20
|
<object class="GtkAdjustment" id="k">
|
21
|
-
<property name="upper">0.
|
22
|
-
<property name="value">0.
|
23
|
-
<property name="
|
24
|
-
<property name="
|
21
|
+
<property name="upper">0.10</property>
|
22
|
+
<property name="value">0.059999999999999998</property>
|
23
|
+
<property name="step-increment">0.01</property>
|
24
|
+
<property name="page-increment">0.01</property>
|
25
25
|
<signal name="value-changed" handler="on_k_changed" swapped="no"/>
|
26
26
|
</object>
|
27
27
|
<object class="GtkAdjustment" id="msec">
|
28
28
|
<property name="upper">10000</property>
|
29
29
|
<property name="value">40</property>
|
30
|
-
<property name="
|
31
|
-
<property name="
|
30
|
+
<property name="step-increment">1</property>
|
31
|
+
<property name="page-increment">10</property>
|
32
32
|
<signal name="value-changed" handler="on_msec_changed" swapped="no"/>
|
33
33
|
</object>
|
34
34
|
<object class="GtkAdjustment" id="pen_density">
|
35
35
|
<property name="upper">1</property>
|
36
36
|
<property name="value">0.5</property>
|
37
|
-
<property name="
|
38
|
-
<property name="
|
37
|
+
<property name="step-increment">0.01</property>
|
38
|
+
<property name="page-increment">0.10</property>
|
39
39
|
</object>
|
40
40
|
<object class="GtkAdjustment" id="pen_radius">
|
41
41
|
<property name="lower">1</property>
|
42
42
|
<property name="upper">16</property>
|
43
43
|
<property name="value">0.5</property>
|
44
|
-
<property name="
|
45
|
-
<property name="
|
44
|
+
<property name="step-increment">1</property>
|
45
|
+
<property name="page-increment">2</property>
|
46
46
|
</object>
|
47
47
|
<object class="GtkWindow" id="win">
|
48
|
-
<property name="
|
49
|
-
<property name="
|
48
|
+
<property name="can-focus">False</property>
|
49
|
+
<property name="has-tooltip">True</property>
|
50
50
|
<property name="title" translatable="yes">Gray-Scott model</property>
|
51
51
|
<property name="resizable">False</property>
|
52
52
|
<signal name="destroy" handler="main_quit" swapped="no"/>
|
53
53
|
<child>
|
54
54
|
<object class="GtkBox">
|
55
55
|
<property name="visible">True</property>
|
56
|
-
<property name="
|
56
|
+
<property name="can-focus">False</property>
|
57
57
|
<property name="orientation">vertical</property>
|
58
58
|
<child>
|
59
59
|
<object class="GtkMenuBar">
|
60
60
|
<property name="visible">True</property>
|
61
|
-
<property name="
|
61
|
+
<property name="can-focus">False</property>
|
62
62
|
<child>
|
63
63
|
<object class="GtkMenuItem">
|
64
64
|
<property name="visible">True</property>
|
65
|
-
<property name="
|
65
|
+
<property name="can-focus">False</property>
|
66
66
|
<property name="label" translatable="yes">File</property>
|
67
|
-
<property name="
|
67
|
+
<property name="use-underline">True</property>
|
68
68
|
<child type="submenu">
|
69
69
|
<object class="GtkMenu">
|
70
70
|
<property name="visible">True</property>
|
71
|
-
<property name="
|
71
|
+
<property name="can-focus">False</property>
|
72
72
|
<child>
|
73
|
-
<object class="
|
74
|
-
<property name="label">gtk-new</property>
|
73
|
+
<object class="GtkMenuItem">
|
75
74
|
<property name="visible">True</property>
|
76
|
-
<property name="
|
77
|
-
<property name="
|
78
|
-
<property name="
|
75
|
+
<property name="can-focus">False</property>
|
76
|
+
<property name="label" translatable="yes">gtk-new</property>
|
77
|
+
<property name="use-underline">True</property>
|
79
78
|
<signal name="activate" handler="on_clear_clicked" swapped="no"/>
|
80
79
|
</object>
|
81
80
|
</child>
|
82
81
|
<child>
|
83
|
-
<object class="
|
84
|
-
<property name="label">gtk-open</property>
|
82
|
+
<object class="GtkMenuItem">
|
85
83
|
<property name="visible">True</property>
|
86
|
-
<property name="
|
87
|
-
<property name="
|
88
|
-
<property name="
|
84
|
+
<property name="can-focus">False</property>
|
85
|
+
<property name="label" translatable="yes">gtk-open</property>
|
86
|
+
<property name="use-underline">True</property>
|
89
87
|
<signal name="activate" handler="on_open_clicked" swapped="no"/>
|
90
88
|
</object>
|
91
89
|
</child>
|
92
90
|
<child>
|
93
|
-
<object class="
|
94
|
-
<property name="label">gtk-save-as</property>
|
91
|
+
<object class="GtkMenuItem">
|
95
92
|
<property name="visible">True</property>
|
96
|
-
<property name="
|
97
|
-
<property name="
|
98
|
-
<property name="
|
93
|
+
<property name="can-focus">False</property>
|
94
|
+
<property name="label" translatable="yes">gtk-save-as</property>
|
95
|
+
<property name="use-underline">True</property>
|
99
96
|
<signal name="activate" handler="on_save_clicked" swapped="no"/>
|
100
97
|
</object>
|
101
98
|
</child>
|
102
99
|
<child>
|
103
|
-
<object class="
|
104
|
-
<property name="label">gtk-convert</property>
|
100
|
+
<object class="GtkMenuItem">
|
105
101
|
<property name="visible">True</property>
|
106
|
-
<property name="
|
107
|
-
<property name="
|
108
|
-
<property name="
|
102
|
+
<property name="can-focus">False</property>
|
103
|
+
<property name="label" translatable="yes">gtk-convert</property>
|
104
|
+
<property name="use-underline">True</property>
|
109
105
|
<signal name="activate" handler="on_convert_clicked" swapped="no"/>
|
110
106
|
</object>
|
111
107
|
</child>
|
112
108
|
<child>
|
113
109
|
<object class="GtkSeparatorMenuItem">
|
114
110
|
<property name="visible">True</property>
|
115
|
-
<property name="
|
111
|
+
<property name="can-focus">False</property>
|
116
112
|
</object>
|
117
113
|
</child>
|
118
114
|
<child>
|
119
|
-
<object class="
|
120
|
-
<property name="label">gtk-quit</property>
|
115
|
+
<object class="GtkMenuItem">
|
121
116
|
<property name="visible">True</property>
|
122
|
-
<property name="
|
123
|
-
<property name="
|
124
|
-
<property name="
|
117
|
+
<property name="can-focus">False</property>
|
118
|
+
<property name="label" translatable="yes">gtk-quit</property>
|
119
|
+
<property name="use-underline">True</property>
|
125
120
|
<signal name="activate" handler="main_quit" swapped="no"/>
|
126
121
|
</object>
|
127
122
|
</child>
|
@@ -132,20 +127,19 @@
|
|
132
127
|
<child>
|
133
128
|
<object class="GtkMenuItem">
|
134
129
|
<property name="visible">True</property>
|
135
|
-
<property name="
|
130
|
+
<property name="can-focus">False</property>
|
136
131
|
<property name="label" translatable="yes">Help</property>
|
137
|
-
<property name="
|
132
|
+
<property name="use-underline">True</property>
|
138
133
|
<child type="submenu">
|
139
134
|
<object class="GtkMenu">
|
140
135
|
<property name="visible">True</property>
|
141
|
-
<property name="
|
136
|
+
<property name="can-focus">False</property>
|
142
137
|
<child>
|
143
|
-
<object class="
|
144
|
-
<property name="label">gtk-about</property>
|
138
|
+
<object class="GtkMenuItem">
|
145
139
|
<property name="visible">True</property>
|
146
|
-
<property name="
|
147
|
-
<property name="
|
148
|
-
<property name="
|
140
|
+
<property name="can-focus">False</property>
|
141
|
+
<property name="label" translatable="yes">gtk-about</property>
|
142
|
+
<property name="use-underline">True</property>
|
149
143
|
<signal name="activate" handler="show_about" swapped="no"/>
|
150
144
|
</object>
|
151
145
|
</child>
|
@@ -156,46 +150,46 @@
|
|
156
150
|
<child>
|
157
151
|
<object class="GtkMenuItem">
|
158
152
|
<property name="visible">True</property>
|
159
|
-
<property name="
|
153
|
+
<property name="can-focus">False</property>
|
160
154
|
<property name="label" translatable="yes">Debug</property>
|
161
|
-
<property name="
|
155
|
+
<property name="use-underline">True</property>
|
162
156
|
<child type="submenu">
|
163
157
|
<object class="GtkMenu">
|
164
158
|
<property name="visible">True</property>
|
165
|
-
<property name="
|
159
|
+
<property name="can-focus">False</property>
|
166
160
|
<child>
|
167
161
|
<object class="GtkMenuItem">
|
168
162
|
<property name="visible">True</property>
|
169
|
-
<property name="
|
163
|
+
<property name="can-focus">False</property>
|
170
164
|
<property name="label" translatable="yes">p @u</property>
|
171
|
-
<property name="
|
165
|
+
<property name="use-underline">True</property>
|
172
166
|
<signal name="activate" handler="debug_p_u" swapped="no"/>
|
173
167
|
</object>
|
174
168
|
</child>
|
175
169
|
<child>
|
176
170
|
<object class="GtkMenuItem">
|
177
171
|
<property name="visible">True</property>
|
178
|
-
<property name="
|
172
|
+
<property name="can-focus">False</property>
|
179
173
|
<property name="label" translatable="yes">p @v</property>
|
180
|
-
<property name="
|
174
|
+
<property name="use-underline">True</property>
|
181
175
|
<signal name="activate" handler="debug_p_v" swapped="no"/>
|
182
176
|
</object>
|
183
177
|
</child>
|
184
178
|
<child>
|
185
179
|
<object class="GtkMenuItem">
|
186
180
|
<property name="visible">True</property>
|
187
|
-
<property name="
|
181
|
+
<property name="can-focus">False</property>
|
188
182
|
<property name="label" translatable="yes">p @f</property>
|
189
|
-
<property name="
|
183
|
+
<property name="use-underline">True</property>
|
190
184
|
<signal name="activate" handler="debug_p_f" swapped="no"/>
|
191
185
|
</object>
|
192
186
|
</child>
|
193
187
|
<child>
|
194
188
|
<object class="GtkMenuItem">
|
195
189
|
<property name="visible">True</property>
|
196
|
-
<property name="
|
190
|
+
<property name="can-focus">False</property>
|
197
191
|
<property name="label" translatable="yes">p @k</property>
|
198
|
-
<property name="
|
192
|
+
<property name="use-underline">True</property>
|
199
193
|
<signal name="activate" handler="debug_p_k" swapped="no"/>
|
200
194
|
</object>
|
201
195
|
</child>
|
@@ -213,15 +207,15 @@
|
|
213
207
|
<child>
|
214
208
|
<object class="GtkToolbar">
|
215
209
|
<property name="visible">True</property>
|
216
|
-
<property name="
|
210
|
+
<property name="can-focus">False</property>
|
217
211
|
<child>
|
218
212
|
<object class="GtkToolButton">
|
219
213
|
<property name="visible">True</property>
|
220
|
-
<property name="
|
221
|
-
<property name="
|
214
|
+
<property name="can-focus">False</property>
|
215
|
+
<property name="tooltip-text" translatable="yes">clear</property>
|
222
216
|
<property name="label" translatable="yes">clear</property>
|
223
|
-
<property name="
|
224
|
-
<property name="
|
217
|
+
<property name="use-underline">True</property>
|
218
|
+
<property name="icon-name">document-new</property>
|
225
219
|
<signal name="clicked" handler="on_clear_clicked" swapped="no"/>
|
226
220
|
</object>
|
227
221
|
<packing>
|
@@ -232,11 +226,11 @@
|
|
232
226
|
<child>
|
233
227
|
<object class="GtkToolButton">
|
234
228
|
<property name="visible">True</property>
|
235
|
-
<property name="
|
236
|
-
<property name="
|
229
|
+
<property name="can-focus">False</property>
|
230
|
+
<property name="tooltip-text" translatable="yes">open</property>
|
237
231
|
<property name="label" translatable="yes">open</property>
|
238
|
-
<property name="
|
239
|
-
<property name="
|
232
|
+
<property name="use-underline">True</property>
|
233
|
+
<property name="icon-name">document-open</property>
|
240
234
|
<signal name="clicked" handler="on_open_clicked" swapped="no"/>
|
241
235
|
</object>
|
242
236
|
<packing>
|
@@ -247,11 +241,11 @@
|
|
247
241
|
<child>
|
248
242
|
<object class="GtkToolButton">
|
249
243
|
<property name="visible">True</property>
|
250
|
-
<property name="
|
251
|
-
<property name="
|
244
|
+
<property name="can-focus">False</property>
|
245
|
+
<property name="tooltip-text" translatable="yes">save model</property>
|
252
246
|
<property name="label" translatable="yes">save</property>
|
253
|
-
<property name="
|
254
|
-
<property name="
|
247
|
+
<property name="use-underline">True</property>
|
248
|
+
<property name="icon-name">document-save</property>
|
255
249
|
<signal name="clicked" handler="on_save_clicked" swapped="no"/>
|
256
250
|
</object>
|
257
251
|
<packing>
|
@@ -262,11 +256,11 @@
|
|
262
256
|
<child>
|
263
257
|
<object class="GtkToolButton">
|
264
258
|
<property name="visible">True</property>
|
265
|
-
<property name="
|
266
|
-
<property name="
|
259
|
+
<property name="can-focus">False</property>
|
260
|
+
<property name="tooltip-text" translatable="yes">save png image</property>
|
267
261
|
<property name="label" translatable="yes">save_png</property>
|
268
|
-
<property name="
|
269
|
-
<property name="
|
262
|
+
<property name="use-underline">True</property>
|
263
|
+
<property name="icon-name">document-save-as</property>
|
270
264
|
<signal name="clicked" handler="on_convert_clicked" swapped="no"/>
|
271
265
|
</object>
|
272
266
|
<packing>
|
@@ -277,11 +271,11 @@
|
|
277
271
|
<child>
|
278
272
|
<object class="GtkToggleToolButton" id="execute_button">
|
279
273
|
<property name="visible">True</property>
|
280
|
-
<property name="
|
281
|
-
<property name="
|
282
|
-
<property name="label" translatable="yes">
|
283
|
-
<property name="
|
284
|
-
<property name="
|
274
|
+
<property name="can-focus">False</property>
|
275
|
+
<property name="tooltip-text" translatable="yes">execute</property>
|
276
|
+
<property name="label" translatable="yes">go</property>
|
277
|
+
<property name="use-underline">True</property>
|
278
|
+
<property name="icon-name">media-playback-start</property>
|
285
279
|
<signal name="toggled" handler="on_execute_toggled" swapped="no"/>
|
286
280
|
</object>
|
287
281
|
<packing>
|
@@ -299,143 +293,24 @@
|
|
299
293
|
<child>
|
300
294
|
<object class="GtkBox">
|
301
295
|
<property name="visible">True</property>
|
302
|
-
<property name="
|
303
|
-
<property name="margin_left">5</property>
|
304
|
-
<property name="margin_right">5</property>
|
305
|
-
<property name="spacing">3</property>
|
306
|
-
<child>
|
307
|
-
<object class="GtkGrid">
|
308
|
-
<property name="visible">True</property>
|
309
|
-
<property name="can_focus">False</property>
|
310
|
-
<property name="margin_top">1</property>
|
311
|
-
<property name="border_width">0</property>
|
312
|
-
<child>
|
313
|
-
<object class="GtkLabel" id="flabel">
|
314
|
-
<property name="visible">True</property>
|
315
|
-
<property name="can_focus">False</property>
|
316
|
-
<property name="tooltip_text" translatable="yes">Feed is the feed rate of V</property>
|
317
|
-
<property name="margin_left">5</property>
|
318
|
-
<property name="margin_right">5</property>
|
319
|
-
<property name="margin_top">5</property>
|
320
|
-
<property name="margin_bottom">5</property>
|
321
|
-
<property name="label" translatable="yes">Feed</property>
|
322
|
-
</object>
|
323
|
-
<packing>
|
324
|
-
<property name="left_attach">0</property>
|
325
|
-
<property name="top_attach">0</property>
|
326
|
-
</packing>
|
327
|
-
</child>
|
328
|
-
<child>
|
329
|
-
<object class="GtkScale" id="fscale">
|
330
|
-
<property name="visible">True</property>
|
331
|
-
<property name="can_focus">True</property>
|
332
|
-
<property name="tooltip_text" translatable="yes">Feed is the feed rate of V</property>
|
333
|
-
<property name="margin_left">5</property>
|
334
|
-
<property name="margin_right">5</property>
|
335
|
-
<property name="hexpand">True</property>
|
336
|
-
<property name="adjustment">f</property>
|
337
|
-
<property name="restrict_to_fill_level">False</property>
|
338
|
-
<property name="fill_level">0</property>
|
339
|
-
<property name="round_digits">0</property>
|
340
|
-
<property name="digits">4</property>
|
341
|
-
<property name="value_pos">left</property>
|
342
|
-
</object>
|
343
|
-
<packing>
|
344
|
-
<property name="left_attach">1</property>
|
345
|
-
<property name="top_attach">0</property>
|
346
|
-
</packing>
|
347
|
-
</child>
|
348
|
-
<child>
|
349
|
-
<object class="GtkScale" id="kscale">
|
350
|
-
<property name="visible">True</property>
|
351
|
-
<property name="can_focus">True</property>
|
352
|
-
<property name="tooltip_text" translatable="yes">Kill is the removal/kill rate of U</property>
|
353
|
-
<property name="margin_left">5</property>
|
354
|
-
<property name="margin_right">5</property>
|
355
|
-
<property name="hexpand">True</property>
|
356
|
-
<property name="adjustment">k</property>
|
357
|
-
<property name="restrict_to_fill_level">False</property>
|
358
|
-
<property name="fill_level">0</property>
|
359
|
-
<property name="round_digits">0</property>
|
360
|
-
<property name="digits">4</property>
|
361
|
-
<property name="value_pos">left</property>
|
362
|
-
</object>
|
363
|
-
<packing>
|
364
|
-
<property name="left_attach">3</property>
|
365
|
-
<property name="top_attach">0</property>
|
366
|
-
</packing>
|
367
|
-
</child>
|
368
|
-
<child>
|
369
|
-
<object class="GtkLabel" id="klabel">
|
370
|
-
<property name="visible">True</property>
|
371
|
-
<property name="can_focus">False</property>
|
372
|
-
<property name="tooltip_text" translatable="yes">Kill is the removal/kill rate of U</property>
|
373
|
-
<property name="margin_left">5</property>
|
374
|
-
<property name="margin_right">5</property>
|
375
|
-
<property name="margin_top">5</property>
|
376
|
-
<property name="margin_bottom">5</property>
|
377
|
-
<property name="label" translatable="yes">Kill</property>
|
378
|
-
</object>
|
379
|
-
<packing>
|
380
|
-
<property name="left_attach">2</property>
|
381
|
-
<property name="top_attach">0</property>
|
382
|
-
</packing>
|
383
|
-
</child>
|
384
|
-
</object>
|
385
|
-
<packing>
|
386
|
-
<property name="expand">True</property>
|
387
|
-
<property name="fill">True</property>
|
388
|
-
<property name="position">2</property>
|
389
|
-
</packing>
|
390
|
-
</child>
|
391
|
-
</object>
|
392
|
-
<packing>
|
393
|
-
<property name="expand">True</property>
|
394
|
-
<property name="fill">True</property>
|
395
|
-
<property name="padding">5</property>
|
396
|
-
<property name="position">2</property>
|
397
|
-
</packing>
|
398
|
-
</child>
|
399
|
-
<child>
|
400
|
-
<object class="GtkBox">
|
401
|
-
<property name="visible">True</property>
|
402
|
-
<property name="can_focus">False</property>
|
296
|
+
<property name="can-focus">False</property>
|
403
297
|
<property name="orientation">vertical</property>
|
404
298
|
<child>
|
405
299
|
<object class="GtkActionBar">
|
406
300
|
<property name="visible">True</property>
|
407
|
-
<property name="
|
301
|
+
<property name="can-focus">False</property>
|
408
302
|
<child>
|
409
303
|
<object class="GtkScaleButton" id="pen_density_scale">
|
410
304
|
<property name="visible">True</property>
|
411
|
-
<property name="
|
412
|
-
<property name="
|
413
|
-
<property name="
|
414
|
-
<property name="tooltip_text" translatable="yes">pen density</property>
|
305
|
+
<property name="can-focus">True</property>
|
306
|
+
<property name="receives-default">True</property>
|
307
|
+
<property name="tooltip-text" translatable="yes">pen density</property>
|
415
308
|
<property name="relief">none</property>
|
416
309
|
<property name="orientation">vertical</property>
|
417
310
|
<property name="adjustment">pen_density</property>
|
418
311
|
<property name="icons">applications-graphics
|
419
312
|
applications-graphics
|
420
313
|
applications-graphics</property>
|
421
|
-
<child internal-child="plus_button">
|
422
|
-
<object class="GtkButton">
|
423
|
-
<property name="can_focus">True</property>
|
424
|
-
<property name="receives_default">True</property>
|
425
|
-
<property name="halign">center</property>
|
426
|
-
<property name="valign">center</property>
|
427
|
-
<property name="relief">none</property>
|
428
|
-
</object>
|
429
|
-
</child>
|
430
|
-
<child internal-child="minus_button">
|
431
|
-
<object class="GtkButton">
|
432
|
-
<property name="can_focus">True</property>
|
433
|
-
<property name="receives_default">True</property>
|
434
|
-
<property name="halign">center</property>
|
435
|
-
<property name="valign">center</property>
|
436
|
-
<property name="relief">none</property>
|
437
|
-
</object>
|
438
|
-
</child>
|
439
314
|
</object>
|
440
315
|
<packing>
|
441
316
|
<property name="position">0</property>
|
@@ -444,34 +319,15 @@ applications-graphics</property>
|
|
444
319
|
<child>
|
445
320
|
<object class="GtkScaleButton" id="pen_radius_scale">
|
446
321
|
<property name="visible">True</property>
|
447
|
-
<property name="
|
448
|
-
<property name="
|
449
|
-
<property name="
|
450
|
-
<property name="tooltip_text" translatable="yes">pen radius</property>
|
322
|
+
<property name="can-focus">True</property>
|
323
|
+
<property name="receives-default">True</property>
|
324
|
+
<property name="tooltip-text" translatable="yes">pen radius</property>
|
451
325
|
<property name="relief">none</property>
|
452
326
|
<property name="orientation">vertical</property>
|
453
327
|
<property name="adjustment">pen_radius</property>
|
454
328
|
<property name="icons">applications-graphics
|
455
329
|
applications-graphics
|
456
330
|
applications-graphics</property>
|
457
|
-
<child internal-child="plus_button">
|
458
|
-
<object class="GtkButton">
|
459
|
-
<property name="can_focus">True</property>
|
460
|
-
<property name="receives_default">True</property>
|
461
|
-
<property name="halign">center</property>
|
462
|
-
<property name="valign">center</property>
|
463
|
-
<property name="relief">none</property>
|
464
|
-
</object>
|
465
|
-
</child>
|
466
|
-
<child internal-child="minus_button">
|
467
|
-
<object class="GtkButton">
|
468
|
-
<property name="can_focus">True</property>
|
469
|
-
<property name="receives_default">True</property>
|
470
|
-
<property name="halign">center</property>
|
471
|
-
<property name="valign">center</property>
|
472
|
-
<property name="relief">none</property>
|
473
|
-
</object>
|
474
|
-
</child>
|
475
331
|
</object>
|
476
332
|
<packing>
|
477
333
|
<property name="position">0</property>
|
@@ -480,7 +336,7 @@ applications-graphics</property>
|
|
480
336
|
<child>
|
481
337
|
<object class="GtkComboBoxText" id="uv_combobox">
|
482
338
|
<property name="visible">True</property>
|
483
|
-
<property name="
|
339
|
+
<property name="can-focus">False</property>
|
484
340
|
<property name="active">1</property>
|
485
341
|
<items>
|
486
342
|
<item translatable="yes">U</item>
|
@@ -495,7 +351,7 @@ applications-graphics</property>
|
|
495
351
|
<child>
|
496
352
|
<object class="GtkComboBoxText">
|
497
353
|
<property name="visible">True</property>
|
498
|
-
<property name="
|
354
|
+
<property name="can-focus">False</property>
|
499
355
|
<property name="active">0</property>
|
500
356
|
<items>
|
501
357
|
<item translatable="yes">colorful</item>
|
@@ -517,30 +373,30 @@ applications-graphics</property>
|
|
517
373
|
<child>
|
518
374
|
<object class="GtkSpinButton">
|
519
375
|
<property name="visible">True</property>
|
520
|
-
<property name="
|
521
|
-
<property name="
|
522
|
-
<property name="
|
376
|
+
<property name="can-focus">True</property>
|
377
|
+
<property name="tooltip-text" translatable="yes">frames</property>
|
378
|
+
<property name="input-purpose">digits</property>
|
523
379
|
<property name="adjustment">frames</property>
|
524
|
-
<property name="
|
380
|
+
<property name="climb-rate">1</property>
|
525
381
|
<property name="numeric">True</property>
|
526
382
|
</object>
|
527
383
|
<packing>
|
528
|
-
<property name="
|
384
|
+
<property name="pack-type">end</property>
|
529
385
|
<property name="position">0</property>
|
530
386
|
</packing>
|
531
387
|
</child>
|
532
388
|
<child>
|
533
389
|
<object class="GtkSpinButton">
|
534
390
|
<property name="visible">True</property>
|
535
|
-
<property name="
|
536
|
-
<property name="
|
537
|
-
<property name="
|
391
|
+
<property name="can-focus">True</property>
|
392
|
+
<property name="tooltip-text" translatable="yes">msec</property>
|
393
|
+
<property name="input-purpose">digits</property>
|
538
394
|
<property name="adjustment">msec</property>
|
539
|
-
<property name="
|
395
|
+
<property name="climb-rate">1</property>
|
540
396
|
<property name="numeric">True</property>
|
541
397
|
</object>
|
542
398
|
<packing>
|
543
|
-
<property name="
|
399
|
+
<property name="pack-type">end</property>
|
544
400
|
<property name="position">0</property>
|
545
401
|
</packing>
|
546
402
|
</child>
|
@@ -554,7 +410,7 @@ applications-graphics</property>
|
|
554
410
|
<child>
|
555
411
|
<object class="GtkSeparator">
|
556
412
|
<property name="visible">True</property>
|
557
|
-
<property name="
|
413
|
+
<property name="can-focus">False</property>
|
558
414
|
</object>
|
559
415
|
<packing>
|
560
416
|
<property name="expand">False</property>
|
@@ -566,21 +422,120 @@ applications-graphics</property>
|
|
566
422
|
<packing>
|
567
423
|
<property name="expand">False</property>
|
568
424
|
<property name="fill">True</property>
|
425
|
+
<property name="position">2</property>
|
426
|
+
</packing>
|
427
|
+
</child>
|
428
|
+
<child>
|
429
|
+
<object class="GtkBox">
|
430
|
+
<property name="visible">True</property>
|
431
|
+
<property name="can-focus">False</property>
|
432
|
+
<property name="spacing">3</property>
|
433
|
+
<child>
|
434
|
+
<!-- n-columns=4 n-rows=1 -->
|
435
|
+
<object class="GtkGrid">
|
436
|
+
<property name="visible">True</property>
|
437
|
+
<property name="can-focus">False</property>
|
438
|
+
<property name="border-width">0</property>
|
439
|
+
<child>
|
440
|
+
<object class="GtkLabel" id="flabel">
|
441
|
+
<property name="visible">True</property>
|
442
|
+
<property name="can-focus">False</property>
|
443
|
+
<property name="tooltip-text" translatable="yes">Feed is the feed rate of V</property>
|
444
|
+
<property name="margin-start">5</property>
|
445
|
+
<property name="margin-end">5</property>
|
446
|
+
<property name="margin-top">5</property>
|
447
|
+
<property name="margin-bottom">5</property>
|
448
|
+
<property name="label" translatable="yes">Feed</property>
|
449
|
+
</object>
|
450
|
+
<packing>
|
451
|
+
<property name="left-attach">0</property>
|
452
|
+
<property name="top-attach">0</property>
|
453
|
+
</packing>
|
454
|
+
</child>
|
455
|
+
<child>
|
456
|
+
<object class="GtkScale" id="fscale">
|
457
|
+
<property name="visible">True</property>
|
458
|
+
<property name="can-focus">True</property>
|
459
|
+
<property name="tooltip-text" translatable="yes">Feed is the feed rate of V</property>
|
460
|
+
<property name="margin-start">5</property>
|
461
|
+
<property name="margin-end">5</property>
|
462
|
+
<property name="hexpand">True</property>
|
463
|
+
<property name="adjustment">f</property>
|
464
|
+
<property name="restrict-to-fill-level">False</property>
|
465
|
+
<property name="fill-level">0</property>
|
466
|
+
<property name="round-digits">0</property>
|
467
|
+
<property name="digits">4</property>
|
468
|
+
<property name="value-pos">left</property>
|
469
|
+
</object>
|
470
|
+
<packing>
|
471
|
+
<property name="left-attach">1</property>
|
472
|
+
<property name="top-attach">0</property>
|
473
|
+
</packing>
|
474
|
+
</child>
|
475
|
+
<child>
|
476
|
+
<object class="GtkScale" id="kscale">
|
477
|
+
<property name="visible">True</property>
|
478
|
+
<property name="can-focus">True</property>
|
479
|
+
<property name="tooltip-text" translatable="yes">Kill is the removal/kill rate of U</property>
|
480
|
+
<property name="margin-start">5</property>
|
481
|
+
<property name="margin-end">5</property>
|
482
|
+
<property name="hexpand">True</property>
|
483
|
+
<property name="adjustment">k</property>
|
484
|
+
<property name="restrict-to-fill-level">False</property>
|
485
|
+
<property name="fill-level">0</property>
|
486
|
+
<property name="round-digits">0</property>
|
487
|
+
<property name="digits">4</property>
|
488
|
+
<property name="value-pos">left</property>
|
489
|
+
</object>
|
490
|
+
<packing>
|
491
|
+
<property name="left-attach">3</property>
|
492
|
+
<property name="top-attach">0</property>
|
493
|
+
</packing>
|
494
|
+
</child>
|
495
|
+
<child>
|
496
|
+
<object class="GtkLabel" id="klabel">
|
497
|
+
<property name="visible">True</property>
|
498
|
+
<property name="can-focus">False</property>
|
499
|
+
<property name="tooltip-text" translatable="yes">Kill is the removal/kill rate of U</property>
|
500
|
+
<property name="margin-start">5</property>
|
501
|
+
<property name="margin-end">5</property>
|
502
|
+
<property name="margin-top">5</property>
|
503
|
+
<property name="margin-bottom">5</property>
|
504
|
+
<property name="label" translatable="yes">Kill</property>
|
505
|
+
</object>
|
506
|
+
<packing>
|
507
|
+
<property name="left-attach">2</property>
|
508
|
+
<property name="top-attach">0</property>
|
509
|
+
</packing>
|
510
|
+
</child>
|
511
|
+
</object>
|
512
|
+
<packing>
|
513
|
+
<property name="expand">True</property>
|
514
|
+
<property name="fill">True</property>
|
515
|
+
<property name="position">2</property>
|
516
|
+
</packing>
|
517
|
+
</child>
|
518
|
+
</object>
|
519
|
+
<packing>
|
520
|
+
<property name="expand">True</property>
|
521
|
+
<property name="fill">True</property>
|
522
|
+
<property name="padding">5</property>
|
569
523
|
<property name="position">3</property>
|
570
524
|
</packing>
|
571
525
|
</child>
|
572
526
|
<child>
|
573
527
|
<object class="GtkBox">
|
574
528
|
<property name="visible">True</property>
|
575
|
-
<property name="
|
529
|
+
<property name="can-focus">False</property>
|
576
530
|
<property name="orientation">vertical</property>
|
577
531
|
<child>
|
578
532
|
<object class="GtkImage" id="legend_image">
|
579
|
-
<property name="
|
580
|
-
<property name="
|
533
|
+
<property name="width-request">512</property>
|
534
|
+
<property name="height-request">16</property>
|
581
535
|
<property name="visible">True</property>
|
582
|
-
<property name="
|
583
|
-
<property name="
|
536
|
+
<property name="can-focus">False</property>
|
537
|
+
<property name="halign">center</property>
|
538
|
+
<property name="icon-name">image-missing</property>
|
584
539
|
<property name="icon_size">1</property>
|
585
540
|
</object>
|
586
541
|
<packing>
|
@@ -592,7 +547,7 @@ applications-graphics</property>
|
|
592
547
|
<child>
|
593
548
|
<object class="GtkSeparator">
|
594
549
|
<property name="visible">True</property>
|
595
|
-
<property name="
|
550
|
+
<property name="can-focus">False</property>
|
596
551
|
</object>
|
597
552
|
<packing>
|
598
553
|
<property name="expand">False</property>
|
@@ -602,20 +557,22 @@ applications-graphics</property>
|
|
602
557
|
</child>
|
603
558
|
<child>
|
604
559
|
<object class="GtkEventBox">
|
560
|
+
<property name="width-request">512</property>
|
561
|
+
<property name="height-request">512</property>
|
605
562
|
<property name="visible">True</property>
|
606
|
-
<property name="
|
607
|
-
<property name="
|
608
|
-
<property name="
|
609
|
-
<property name="margin_top">5</property>
|
610
|
-
<property name="margin_bottom">5</property>
|
563
|
+
<property name="can-focus">False</property>
|
564
|
+
<property name="halign">center</property>
|
565
|
+
<property name="valign">center</property>
|
611
566
|
<signal name="motion-notify-event" handler="on_motion" swapped="no"/>
|
612
567
|
<child>
|
613
568
|
<object class="GtkImage" id="gimage">
|
614
|
-
<property name="
|
615
|
-
<property name="
|
569
|
+
<property name="width-request">512</property>
|
570
|
+
<property name="height-request">512</property>
|
616
571
|
<property name="visible">True</property>
|
617
|
-
<property name="
|
618
|
-
<property name="
|
572
|
+
<property name="can-focus">False</property>
|
573
|
+
<property name="halign">center</property>
|
574
|
+
<property name="valign">center</property>
|
575
|
+
<property name="icon-name">image-missing</property>
|
619
576
|
<property name="icon_size">6</property>
|
620
577
|
</object>
|
621
578
|
</child>
|
@@ -635,8 +592,5 @@ applications-graphics</property>
|
|
635
592
|
</child>
|
636
593
|
</object>
|
637
594
|
</child>
|
638
|
-
<child type="titlebar">
|
639
|
-
<placeholder/>
|
640
|
-
</child>
|
641
595
|
</object>
|
642
596
|
</interface>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gray_scott_gtk3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gtk3
|
@@ -42,30 +42,30 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,14 +88,13 @@ executables:
|
|
88
88
|
extensions: []
|
89
89
|
extra_rdoc_files: []
|
90
90
|
files:
|
91
|
+
- ".github/FUNDING.yml"
|
92
|
+
- ".github/workflows/ci.yml"
|
91
93
|
- ".gitignore"
|
92
94
|
- ".rspec"
|
93
|
-
- ".travis.yml"
|
94
95
|
- Gemfile
|
95
96
|
- README.md
|
96
97
|
- Rakefile
|
97
|
-
- bin/console
|
98
|
-
- bin/setup
|
99
98
|
- exe/grayscott
|
100
99
|
- gray_scott_gtk3.gemspec
|
101
100
|
- lib/gray_scott.rb
|
@@ -125,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
124
|
- !ruby/object:Gem::Version
|
126
125
|
version: '0'
|
127
126
|
requirements: []
|
128
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.2.22
|
129
128
|
signing_key:
|
130
129
|
specification_version: 4
|
131
130
|
summary: Gray-Scott model.
|
data/.travis.yml
DELETED
data/bin/console
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'bundler/setup'
|
5
|
-
require 'gray_scott_gtk3'
|
6
|
-
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
9
|
-
|
10
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
11
|
-
# require "pry"
|
12
|
-
# Pry.start
|
13
|
-
|
14
|
-
require 'irb'
|
15
|
-
IRB.start(__FILE__)
|