rugui 1.4.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +3 -0
- data/README.rdoc +11 -3
- data/lib/rugui/framework_adapters/Rubygame.rb +233 -0
- data/lib/rugui/generators/rugui/rugui_generator.rb +15 -2
- data/lib/rugui/generators/rugui/templates/{framework_specific/gtk/app → app}/controllers/application_controller.rb +0 -0
- data/lib/rugui/generators/rugui/templates/{framework_specific/gtk/app → app}/views/application_view.rb +0 -0
- data/lib/rugui/generators/rugui/templates/{framework_specific/gtk/app → app}/views/view_helpers/application_view_helper.rb +0 -0
- data/lib/rugui/generators/rugui/templates/{framework_specific/gtk/app → app}/views/view_helpers/main_view_helper.rb +0 -0
- data/lib/rugui/generators/rugui/templates/{framework_specific/gtk/config/environment.rb → config/environment.rb.tt} +2 -2
- data/lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb +0 -4
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/main_controller.rb +0 -4
- data/lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/controllers/main_controller.rb +13 -0
- data/lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/images/sample_image.png +0 -0
- data/lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/music/sample_music.mp3 +0 -0
- data/lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/sfx/sample_sound.mp3 +0 -0
- data/lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/views/main_view.rb +9 -0
- data/lib/rugui/version.rb +2 -2
- metadata +60 -59
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/application_controller.rb +0 -4
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/application_view.rb +0 -4
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/application_view_helper.rb +0 -4
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/main_view_helper.rb +0 -3
- data/lib/rugui/generators/rugui/templates/framework_specific/qt/config/environment.rb +0 -39
data/Changelog
CHANGED
data/README.rdoc
CHANGED
@@ -23,6 +23,12 @@ has made it possible to write a QT adapter and now it is possible to use all of
|
|
23
23
|
the RuGUI features together with QT. As the framework evolve other framework
|
24
24
|
adapters may be written, enabling the use of RuGUI with any other GUI frameworks.
|
25
25
|
|
26
|
+
A basic support for building Rubygame applications was also added. It is still
|
27
|
+
missing some functionality like signal connections and widget creation but it is
|
28
|
+
usable. By using RuGUI you will gain a template directory structure as well some
|
29
|
+
of the features of RuGUI, like configuration, a shell script for running your
|
30
|
+
game, support for rspec and test-unit, etc.
|
31
|
+
|
26
32
|
== Instalation
|
27
33
|
|
28
34
|
Install the gem:
|
@@ -41,10 +47,12 @@ on the ActiveSupport gem, which can be installed by:
|
|
41
47
|
|
42
48
|
gem install activesupport
|
43
49
|
|
44
|
-
|
45
|
-
|
50
|
+
Also the rugui generator uses thor, so you will also need to install it:
|
51
|
+
|
52
|
+
gem install thor
|
46
53
|
|
47
|
-
|
54
|
+
Both gems should be installed when installing rugui gem, so you probably won't
|
55
|
+
need to do this.
|
48
56
|
|
49
57
|
== Generating an Application
|
50
58
|
|
@@ -0,0 +1,233 @@
|
|
1
|
+
require 'rubygame'
|
2
|
+
|
3
|
+
Rubygame::TTF.setup if defined?(Rubygame::TTF)
|
4
|
+
|
5
|
+
module RuGUI
|
6
|
+
module FrameworkAdapters
|
7
|
+
module Rubygame
|
8
|
+
class BaseController < RuGUI::FrameworkAdapters::BaseFrameworkAdapter::BaseController
|
9
|
+
def queue(&block)
|
10
|
+
block.call
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
class BaseMainController < RuGUI::FrameworkAdapters::Rubygame::BaseController
|
15
|
+
def run
|
16
|
+
catch :quit do
|
17
|
+
loop do
|
18
|
+
self.adapted_object.step
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def refresh
|
24
|
+
end
|
25
|
+
|
26
|
+
def quit
|
27
|
+
throw :quit
|
28
|
+
Rubygame.quit
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class BaseView < RuGUI::FrameworkAdapters::BaseFrameworkAdapter::BaseView
|
33
|
+
# Queues the block call, so that it is only gets executed in the main thread.
|
34
|
+
def queue(&block)
|
35
|
+
block.call
|
36
|
+
end
|
37
|
+
|
38
|
+
# Connects the signal from the widget to the given receiver block.
|
39
|
+
# The block is executed in the context of the receiver.
|
40
|
+
def connect_declared_signal_block(widget, signal, receiver, block)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Connects the signal from the widget to the given receiver method.
|
44
|
+
def connect_declared_signal(widget, signal, receiver, method)
|
45
|
+
end
|
46
|
+
|
47
|
+
# Builds widgets from the given filename, using the proper builder.
|
48
|
+
def build_widgets_from(filename)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Registers widgets as attributes of the view class.
|
52
|
+
def register_widgets
|
53
|
+
end
|
54
|
+
|
55
|
+
class << self
|
56
|
+
# Returns the builder file extension to be used for this view class.
|
57
|
+
def builder_file_extension
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
module RuGUI
|
66
|
+
class BaseController < BaseObject
|
67
|
+
include Rubygame::EventHandler::HasEventHandler
|
68
|
+
end
|
69
|
+
|
70
|
+
class BaseMainController < BaseController
|
71
|
+
attr_accessor :screen
|
72
|
+
|
73
|
+
def initialize
|
74
|
+
super
|
75
|
+
|
76
|
+
setup_clock
|
77
|
+
setup_event_queue
|
78
|
+
setup_screen
|
79
|
+
setup_quit_events
|
80
|
+
setup_autoload_resources
|
81
|
+
setup_main_view_screen
|
82
|
+
end
|
83
|
+
|
84
|
+
def step
|
85
|
+
clear_screen
|
86
|
+
tick
|
87
|
+
handle_events
|
88
|
+
update
|
89
|
+
screen.update
|
90
|
+
end
|
91
|
+
|
92
|
+
def tick
|
93
|
+
event_queue << clock.tick
|
94
|
+
end
|
95
|
+
|
96
|
+
def clock
|
97
|
+
@clock ||= Rubygame::Clock.new
|
98
|
+
end
|
99
|
+
|
100
|
+
def event_queue
|
101
|
+
@event_queue ||= Rubygame::EventQueue.new
|
102
|
+
end
|
103
|
+
|
104
|
+
class << self
|
105
|
+
def ignored_events(*args)
|
106
|
+
@ignored_events ||= []
|
107
|
+
@ignored_events += args unless args.empty?
|
108
|
+
@ignored_events
|
109
|
+
end
|
110
|
+
|
111
|
+
def framerate(frames_per_second=nil)
|
112
|
+
@framerate ||= frames_per_second || 30
|
113
|
+
end
|
114
|
+
|
115
|
+
def screen_width(width=nil)
|
116
|
+
@screen_width ||= width || 640
|
117
|
+
end
|
118
|
+
|
119
|
+
def screen_height(height=nil)
|
120
|
+
@screen_height ||= height || 480
|
121
|
+
end
|
122
|
+
|
123
|
+
def screen_depth(depth=nil)
|
124
|
+
@screen_depth ||= depth || 0
|
125
|
+
end
|
126
|
+
|
127
|
+
def screen_flags(flags=nil)
|
128
|
+
@screen_flags ||= flags || [Rubygame::HWSURFACE, Rubygame::DOUBLEBUF]
|
129
|
+
end
|
130
|
+
|
131
|
+
def screen_title(title=nil)
|
132
|
+
@screen_title ||= title || "RuGUI Game!"
|
133
|
+
end
|
134
|
+
|
135
|
+
def quit_hooks(quit_hooks=nil)
|
136
|
+
@quit_hooks ||= quit_hooks || [:escape, :q, Rubygame::Events::QuitRequested]
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
protected
|
141
|
+
# Your MainController can overwrite this and implement different clear screen logic.
|
142
|
+
def clear_screen
|
143
|
+
screen.fill :black
|
144
|
+
end
|
145
|
+
|
146
|
+
# Your MainController should overwrite this and implement update logic.
|
147
|
+
def update
|
148
|
+
end
|
149
|
+
|
150
|
+
private
|
151
|
+
def setup_clock
|
152
|
+
clock.target_framerate = self.class.framerate
|
153
|
+
clock.calibrate
|
154
|
+
clock.enable_tick_events
|
155
|
+
end
|
156
|
+
|
157
|
+
def setup_event_queue
|
158
|
+
event_queue.enable_new_style_events
|
159
|
+
event_queue.ignore = self.class.ignored_events
|
160
|
+
end
|
161
|
+
|
162
|
+
def setup_screen
|
163
|
+
self.screen = Rubygame::Screen.new(
|
164
|
+
[self.class.screen_width, self.class.screen_height],
|
165
|
+
self.class.screen_depth,
|
166
|
+
self.class.screen_flags)
|
167
|
+
|
168
|
+
self.screen.title = self.class.screen_title
|
169
|
+
end
|
170
|
+
|
171
|
+
def setup_quit_events
|
172
|
+
hooks = self.class.quit_hooks.inject({}) { |accumulator, hook| accumulator.merge(hook => :quit) }
|
173
|
+
make_magic_hooks hooks
|
174
|
+
end
|
175
|
+
|
176
|
+
def setup_main_view_screen
|
177
|
+
main_view.screen = screen if respond_to?(:main_view) && main_view.respond_to?(:screen=)
|
178
|
+
end
|
179
|
+
|
180
|
+
def setup_autoload_resources
|
181
|
+
Rubygame::Surface.autoload_dirs << images_dir if File.exist?(images_dir)
|
182
|
+
Rubygame::Sound.autoload_dirs << sound_dir if File.exist?(sound_dir)
|
183
|
+
Rubygame::Music.autoload_dirs << music_dir if File.exist?(music_dir)
|
184
|
+
end
|
185
|
+
|
186
|
+
def handle_events
|
187
|
+
event_queue.each do |event|
|
188
|
+
handle event
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
def images_dir
|
193
|
+
RuGUI.root.join('app', 'resources', 'images')
|
194
|
+
end
|
195
|
+
|
196
|
+
def sound_dir
|
197
|
+
RuGUI.root.join('app', 'resources', 'sfx')
|
198
|
+
end
|
199
|
+
|
200
|
+
def music_dir
|
201
|
+
RuGUI.root.join('app', 'resources', 'music')
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
module Rubygame
|
207
|
+
module Sprites
|
208
|
+
module Sprite
|
209
|
+
# Makes it call super
|
210
|
+
def initialize
|
211
|
+
super
|
212
|
+
|
213
|
+
@groups = []
|
214
|
+
@depth = 0
|
215
|
+
end
|
216
|
+
end
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
module RuGUI
|
221
|
+
class BaseImageSprite
|
222
|
+
include Rubygame::Sprites::Sprite
|
223
|
+
|
224
|
+
def initialize(name)
|
225
|
+
@groups = []
|
226
|
+
@depth = 0
|
227
|
+
|
228
|
+
@image = Rubygame::Surface[name]
|
229
|
+
@image.set_colorkey(@image.get_at([0, 0]))
|
230
|
+
@rect = @image.make_rect
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
@@ -6,7 +6,7 @@ class Rugui < Thor::Group
|
|
6
6
|
:desc => "The path where to generate the application, if not specified it will create the application in a directory with the same name of the application in the current directory."
|
7
7
|
|
8
8
|
class_option :framework_adapter, :type => :string, :aliases => '-a', :default => 'gtk',
|
9
|
-
:desc => "Choose which framework adapter to use, must
|
9
|
+
:desc => "Choose which framework adapter to use, must be one of 'gtk', 'qt' or 'rubygame'"
|
10
10
|
|
11
11
|
class_option :test_framework, :type => :string, :aliases => '-t', :default => 'RSpec',
|
12
12
|
:desc => "Choose which test framework to use, defaults to 'RSpec', but can be set to 'test-unit' also"
|
@@ -68,6 +68,8 @@ class Rugui < Thor::Group
|
|
68
68
|
def create_app_files
|
69
69
|
inside 'app' do
|
70
70
|
copy_file 'main.rb'
|
71
|
+
directory 'controllers'
|
72
|
+
directory 'views'
|
71
73
|
end
|
72
74
|
end
|
73
75
|
|
@@ -79,13 +81,24 @@ class Rugui < Thor::Group
|
|
79
81
|
directory framework_specific_file('app/controllers'), 'app/controllers'
|
80
82
|
directory framework_specific_file('app/views'), 'app/views'
|
81
83
|
directory framework_specific_file('app/resources'), 'app/resources'
|
82
|
-
directory framework_specific_file('config'), 'config'
|
83
84
|
end
|
84
85
|
|
85
86
|
def create_test_files
|
86
87
|
directory test_framework_dir
|
87
88
|
end
|
88
89
|
|
90
|
+
protected
|
91
|
+
def framework_adapter_name
|
92
|
+
case options[:framework_adapter]
|
93
|
+
when 'gtk'
|
94
|
+
'GTK'
|
95
|
+
when 'qt'
|
96
|
+
'Qt4'
|
97
|
+
when 'rubygame'
|
98
|
+
'Rubygame'
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
89
102
|
private
|
90
103
|
def framework_specific_file(path)
|
91
104
|
File.join('framework_specific', options[:framework_adapter], path)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,8 +11,8 @@ RuGUI::Initializer.run do |config|
|
|
11
11
|
# See RuGUI::Configuration for more options.
|
12
12
|
|
13
13
|
# Changes the framework adapter. Currently the only implemented framework
|
14
|
-
# adapters are GTK and
|
15
|
-
|
14
|
+
# adapters are GTK, Qt4 and Rubygame. Defaults to GTK.
|
15
|
+
config.framework_adapter = '<%= framework_adapter_name %>'
|
16
16
|
|
17
17
|
# Add additional load paths for your own custom dirs
|
18
18
|
# config.load_paths += %W( #{APPLICATION_ROOT}/extras )
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# The main controller for the application.
|
2
|
+
#
|
3
|
+
# NOTE: This controller doesn't inherit from ApplicationController, instead, it
|
4
|
+
# inherits from RuGUI::BaseMainController. Use it only as a starting point.
|
5
|
+
# Commonly it is used only to register global models and controllers, as well as
|
6
|
+
# the main view, but this is entirely up to you.
|
7
|
+
class MainController < RuGUI::BaseMainController
|
8
|
+
# Add your stuff here.
|
9
|
+
|
10
|
+
def update
|
11
|
+
main_view.update_screen
|
12
|
+
end
|
13
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
data/lib/rugui/version.rb
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 1
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 1.
|
7
|
+
- 5
|
8
|
+
- 0
|
9
|
+
version: 1.5.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Vicente Mundim
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-04-
|
20
|
+
date: 2010-04-06 00:00:00 -03:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -63,68 +63,69 @@ extra_rdoc_files:
|
|
63
63
|
- README.rdoc
|
64
64
|
files:
|
65
65
|
- bin/rugui
|
66
|
-
- lib/rugui/
|
67
|
-
- lib/rugui/
|
66
|
+
- lib/rugui/framework_adapters/base_framework_adapter.rb
|
67
|
+
- lib/rugui/framework_adapters/GTK.rb
|
68
|
+
- lib/rugui/framework_adapters/Rubygame.rb
|
69
|
+
- lib/rugui/framework_adapters/framework_adapter_support.rb
|
70
|
+
- lib/rugui/framework_adapters/Qt4.rb
|
71
|
+
- lib/rugui/initializer.rb
|
72
|
+
- lib/rugui/entity_registration_support.rb
|
73
|
+
- lib/rugui/configuration.rb
|
68
74
|
- lib/rugui/tasks/spec_application.rake
|
75
|
+
- lib/rugui/tasks/test_application.rake
|
69
76
|
- lib/rugui/tasks/rugui.rb
|
70
77
|
- lib/rugui/tasks/runner_application.rake
|
71
78
|
- lib/rugui/tasks/spec_framework.rake
|
72
|
-
- lib/rugui/tasks/rugui_framework.rb
|
73
|
-
- lib/rugui/tasks/test_application.rake
|
74
79
|
- lib/rugui/tasks/gems_application.rake
|
75
|
-
- lib/rugui/
|
80
|
+
- lib/rugui/tasks/rugui_framework.rb
|
81
|
+
- lib/rugui/base_view_helper.rb
|
82
|
+
- lib/rugui/vendor_gem_source_index.rb
|
76
83
|
- lib/rugui/initialize_hooks.rb
|
77
|
-
- lib/rugui/
|
78
|
-
- lib/rugui/base_view.rb
|
84
|
+
- lib/rugui/observable_property_proxy.rb
|
79
85
|
- lib/rugui/property_changed_support.rb
|
86
|
+
- lib/rugui/log_support.rb
|
87
|
+
- lib/rugui/base_object.rb
|
80
88
|
- lib/rugui/generators.rb
|
81
|
-
- lib/rugui/
|
82
|
-
- lib/rugui/
|
83
|
-
- lib/rugui/configuration.rb
|
84
|
-
- lib/rugui/framework_adapters/GTK.rb
|
85
|
-
- lib/rugui/framework_adapters/framework_adapter_support.rb
|
86
|
-
- lib/rugui/framework_adapters/Qt4.rb
|
87
|
-
- lib/rugui/framework_adapters/base_framework_adapter.rb
|
88
|
-
- lib/rugui/signal_support.rb
|
89
|
+
- lib/rugui/property_observer.rb
|
90
|
+
- lib/rugui/base_view.rb
|
89
91
|
- lib/rugui/observable_property_support.rb
|
90
|
-
- lib/rugui/
|
92
|
+
- lib/rugui/gem_builder.rb
|
91
93
|
- lib/rugui/plugin/loader.rb
|
92
|
-
- lib/rugui/entity_registration_support.rb
|
93
94
|
- lib/rugui/base_model.rb
|
94
|
-
- lib/rugui/log_support.rb
|
95
95
|
- lib/rugui/generators/rugui/rugui_generator.rb
|
96
|
+
- lib/rugui/generators/rugui/templates/app/views/application_view.rb
|
97
|
+
- lib/rugui/generators/rugui/templates/app/views/view_helpers/main_view_helper.rb
|
98
|
+
- lib/rugui/generators/rugui/templates/app/views/view_helpers/application_view_helper.rb
|
99
|
+
- lib/rugui/generators/rugui/templates/app/main.rb
|
100
|
+
- lib/rugui/generators/rugui/templates/app/controllers/application_controller.rb
|
96
101
|
- lib/rugui/generators/rugui/templates/bin/main_executable
|
97
102
|
- lib/rugui/generators/rugui/templates/bin/main_executable.bat
|
98
|
-
- lib/rugui/generators/rugui/templates/
|
99
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/application_controller.rb
|
100
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/main_view.rb
|
101
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/application_view.rb
|
102
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/main_view_helper.rb
|
103
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/view_helpers/application_view_helper.rb
|
104
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/resources/ui/main_view.ui
|
105
|
-
- lib/rugui/generators/rugui/templates/framework_specific/qt/config/environment.rb
|
106
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
|
107
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/application_controller.rb
|
108
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/main_view.rb
|
109
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/application_view.rb
|
110
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/main_view_helper.rb
|
111
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/view_helpers/application_view_helper.rb
|
112
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/glade/main_view.glade
|
113
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/styles/main.rc
|
114
|
-
- lib/rugui/generators/rugui/templates/framework_specific/gtk/config/environment.rb
|
115
|
-
- lib/rugui/generators/rugui/templates/test/test_helper.rb
|
103
|
+
- lib/rugui/generators/rugui/templates/spec/spec_helper.rb
|
116
104
|
- lib/rugui/generators/rugui/templates/spec/spec.opts
|
117
105
|
- lib/rugui/generators/rugui/templates/spec/rcov.opts
|
118
|
-
- lib/rugui/generators/rugui/templates/
|
119
|
-
- lib/rugui/generators/rugui/templates/app/main.rb
|
120
|
-
- lib/rugui/generators/rugui/templates/README
|
106
|
+
- lib/rugui/generators/rugui/templates/test/test_helper.rb
|
121
107
|
- lib/rugui/generators/rugui/templates/Rakefile
|
122
|
-
- lib/rugui/generators/rugui/templates/
|
108
|
+
- lib/rugui/generators/rugui/templates/README
|
109
|
+
- lib/rugui/generators/rugui/templates/config/environments/test.rb
|
123
110
|
- lib/rugui/generators/rugui/templates/config/environments/development.rb
|
124
111
|
- lib/rugui/generators/rugui/templates/config/environments/production.rb
|
125
|
-
- lib/rugui/generators/rugui/templates/config/
|
126
|
-
- lib/rugui/
|
127
|
-
- lib/rugui/
|
112
|
+
- lib/rugui/generators/rugui/templates/config/environment.rb.tt
|
113
|
+
- lib/rugui/generators/rugui/templates/config/boot.rb
|
114
|
+
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/views/main_view.rb
|
115
|
+
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/controllers/main_controller.rb
|
116
|
+
- lib/rugui/generators/rugui/templates/framework_specific/qt/app/resources/ui/main_view.ui
|
117
|
+
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/views/main_view.rb
|
118
|
+
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/controllers/main_controller.rb
|
119
|
+
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/glade/main_view.glade
|
120
|
+
- lib/rugui/generators/rugui/templates/framework_specific/gtk/app/resources/styles/main.rc
|
121
|
+
- lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/views/main_view.rb
|
122
|
+
- lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/controllers/main_controller.rb
|
123
|
+
- lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/sfx/sample_sound.mp3
|
124
|
+
- lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/music/sample_music.mp3
|
125
|
+
- lib/rugui/generators/rugui/templates/framework_specific/rubygame/app/resources/images/sample_image.png
|
126
|
+
- lib/rugui/signal_support.rb
|
127
|
+
- lib/rugui/gem_dependency.rb
|
128
|
+
- lib/rugui/base_controller.rb
|
128
129
|
- lib/rugui/version.rb
|
129
130
|
- lib/rugui.rb
|
130
131
|
- LICENSE
|
@@ -166,22 +167,22 @@ signing_key:
|
|
166
167
|
specification_version: 3
|
167
168
|
summary: A rails like MVC framework for building desktop applications with GUI frameworks.
|
168
169
|
test_files:
|
169
|
-
- spec/
|
170
|
-
- spec/framework/log_support_spec.rb
|
171
|
-
- spec/framework/base_view_helper_spec.rb
|
172
|
-
- spec/framework/observable_property_proxy_spec.rb
|
170
|
+
- spec/framework/base_model_spec.rb
|
173
171
|
- spec/framework/property_observer_spec.rb
|
174
|
-
- spec/framework/
|
172
|
+
- spec/framework/observable_property_proxy_spec.rb
|
175
173
|
- spec/framework/observable_property_support_spec.rb
|
176
174
|
- spec/framework/base_view_spec.rb
|
177
|
-
- spec/framework/
|
178
|
-
- spec/
|
175
|
+
- spec/framework/base_view_helper_spec.rb
|
176
|
+
- spec/framework/log_support_spec.rb
|
177
|
+
- spec/framework/base_controller_spec.rb
|
179
178
|
- spec/spec_helper.rb
|
180
|
-
- spec/
|
181
|
-
- spec/resource_files/my_view.glade
|
182
|
-
- spec/helpers/view_helpers.rb
|
179
|
+
- spec/helpers/initialize_hooks_helper.rb
|
183
180
|
- spec/helpers/models.rb
|
184
|
-
- spec/helpers/
|
181
|
+
- spec/helpers/view_helpers.rb
|
185
182
|
- spec/helpers/observables.rb
|
183
|
+
- spec/helpers/controllers.rb
|
186
184
|
- spec/helpers/views.rb
|
187
|
-
- spec/
|
185
|
+
- spec/spec.opts
|
186
|
+
- spec/resource_files/my_other_view.glade
|
187
|
+
- spec/resource_files/my_view.glade
|
188
|
+
- spec/rcov.opts
|
@@ -1,39 +0,0 @@
|
|
1
|
-
# Uncomment below to force the RuGUI application into production mode
|
2
|
-
# ENV['RUGUI_ENV'] ||= 'production'
|
3
|
-
|
4
|
-
# Bootstrap the RuGUI environment, and default configuration
|
5
|
-
require File.join(File.dirname(__FILE__), 'boot')
|
6
|
-
|
7
|
-
RuGUI::Initializer.run do |config|
|
8
|
-
# Settings in config/environments/* take precedence over those specified here.
|
9
|
-
# Application configuration should go into files in config/initializers
|
10
|
-
# -- all .rb files in that directory are automatically loaded.
|
11
|
-
# See RuGUI::Configuration for more options.
|
12
|
-
|
13
|
-
# Changes the framework adapter. Currently the only implemented framework
|
14
|
-
# adapters are GTK and Qt4. Defaults to GTK.
|
15
|
-
config.framework_adapter = 'Qt4'
|
16
|
-
|
17
|
-
# Add additional load paths for your own custom dirs
|
18
|
-
# config.load_paths += %W( #{APPLICATION_ROOT}/extras )
|
19
|
-
|
20
|
-
# The log output, by default it is :stdout, but can be :stderr or any valid
|
21
|
-
# filename. Defaults to :stdout.
|
22
|
-
#config.logger[:output] = :stdout
|
23
|
-
|
24
|
-
# The level for logging. You can use :debug, :info, :warn, :error or :fatal
|
25
|
-
# That is the sequence of severity. Defaults to :info.
|
26
|
-
#config.logger[:level] = :info
|
27
|
-
|
28
|
-
# The format of timestamp. See the formatting for Time.strftime
|
29
|
-
#
|
30
|
-
# See with more details here:
|
31
|
-
# http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
|
32
|
-
#config.logger[:format] = "%Y-%m-%d %H:%M:%S"
|
33
|
-
|
34
|
-
# Specify gems that this application depends on.
|
35
|
-
# They can then be installed with "rake gems:install" on new installations.
|
36
|
-
# config.gem "bj"
|
37
|
-
# config.gem "hapricot", :version => '>0.8', :source => "http://code.whytheluckystiff.net"
|
38
|
-
# config.gem "aws-s3", :lib => "aws/s3"
|
39
|
-
end
|