-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for #383 - many fixes for replay attempt
* replay effort will stall soon. It may not be possible.
- Loading branch information
Cecil
committed
Dec 20, 2017
1 parent
15d90b6
commit 0867507
Showing
10 changed files
with
299 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Shoes.app do | ||
|
||
stack do | ||
para "Native button test" | ||
flow do | ||
@btn1 = button "button 1", width: 75 do | ||
@eb.append "button 1 clicked\n" | ||
end | ||
@btn2 = button "button 2" do | ||
@eb.append "button 2 clicked\n" | ||
end | ||
flow do | ||
@ck2 = check checked: true do | ||
@eb.append "Happy: " | ||
@eb.append "feeling good\n" if @r1.checked? | ||
@eb.append "feeling something\n" if @r2.checked? | ||
@eb.append "feeling low\n" if @r3.checked? | ||
end | ||
para "Happy?" | ||
end | ||
stack do | ||
flow {@r1 = radio :happy; para "Estatic"} | ||
flow {@r2 = radio :happy; para "So-So"} | ||
flow {@r3 = radio :happy; para "Not really"} | ||
end | ||
end | ||
@eb = edit_box width: 500, height: 350 | ||
end | ||
click do |btn,x,y,mods| | ||
@eb.append "click #{btn}, x: #{x}, y: #{y}. mods: #{mods}\n" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
:context: | ||
:app: "/home/ccoupe/Projects/shoes3/Tests/events/button.rb" | ||
:time: 2017-12-18 23:46:58.596135799 -07:00 | ||
:events: | ||
- :time: 2.380615873 | ||
:button: 1 | ||
:x: 0 | ||
:y: 35 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Button {} | ||
:type: :btn_activate | ||
- :time: 3.780337516 | ||
:button: 1 | ||
:x: 75 | ||
:y: 35 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Button {} | ||
:type: :btn_activate | ||
- :time: 6.24463253 | ||
:button: 1 | ||
:x: 0 | ||
:y: 100 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Radio {} | ||
:type: :btn_activate | ||
- :time: 6.244678214 | ||
:button: 1 | ||
:x: 0 | ||
:y: 135 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Radio {} | ||
:type: :btn_activate | ||
- :time: 8.060630508 | ||
:button: 1 | ||
:x: 0 | ||
:y: 65 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Check {} | ||
:type: :btn_activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--- | ||
:context: | ||
:app: "/home/ccoupe/Projects/shoes3/minlin/samples/simple/chipmunk.rb" | ||
:time: 2017-12-17 21:37:26.497452015 -07:00 | ||
:events: | ||
- :time: 3.111306338 | ||
:button: 1 | ||
:x: 19 | ||
:y: 59 | ||
:modifiers: shift | ||
:object: &1 !ruby/object:Shoes::Types::Shape {} | ||
:type: :click | ||
- :time: 6.447366351 | ||
:button: 1 | ||
:x: 82 | ||
:y: 52 | ||
:modifiers: control | ||
:object: &3 !ruby/object:Shoes::Types::Shape {} | ||
:type: :click | ||
- :time: 10.895925171 | ||
:button: 1 | ||
:x: 112 | ||
:y: 49 | ||
:modifiers: shift | ||
:object: &2 !ruby/object:Shoes::Types::Shape {} | ||
:type: :click | ||
- :time: 15.735470191 | ||
:button: 1 | ||
:x: 17 | ||
:y: 52 | ||
:modifiers: control_shift | ||
:object: *1 | ||
:type: :click | ||
- :time: 19.503386712 | ||
:button: 1 | ||
:x: 109 | ||
:y: 52 | ||
:modifiers: control_shift | ||
:object: *2 | ||
:type: :click | ||
- :time: 22.647864317 | ||
:button: 1 | ||
:x: 82 | ||
:y: 54 | ||
:modifiers: | ||
:object: *3 | ||
:type: :click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
:context: | ||
:app: "/home/ccoupe/Projects/shoes3/Tests/events/event1.rb" | ||
:time: 2017-12-18 19:14:17.527820709 -07:00 | ||
:events: | ||
- :time: 2.084820129 | ||
:button: 1 | ||
:x: 379 | ||
:y: 55 | ||
:modifiers: | ||
:object: | ||
:type: :click | ||
- :time: 3.299109652 | ||
:button: 1 | ||
:x: 0 | ||
:y: 70 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Button {} | ||
:type: :btn_activate | ||
- :time: 4.835090063 | ||
:button: 1 | ||
:x: 75 | ||
:y: 70 | ||
:modifiers: | ||
:object: !ruby/object:Shoes::Types::Button {} | ||
:type: :btn_activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,4 @@ VALUE shoes_canvas_button(int argc, VALUE *argv, VALUE self) { | |
|
||
return button; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters