Skip to content

Commit

Permalink
add Component: CircularProgressIndicator
Browse files Browse the repository at this point in the history
  • Loading branch information
youpy committed May 25, 2010
1 parent bfc21fc commit 03ca1d8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/pimento/component/circular_progress_indicator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module Pimento
class CircularProgressIndicator < DotComponent
handles :dot

def num_objects; 1; end
end
end
10 changes: 10 additions & 0 deletions template/circular_progress_indicator_ro.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<object class="NSProgressIndicator" id="<%= options[:id_offset] %>">
<reference key="NSNextResponder" ref="1006"/>
<int key="NSvFlags">1292</int>
<object class="NSPSMatrix" key="NSDrawMatrix"/>
<string key="NSFrame">{{<%= x - 8 %>, <%= @canvas.height - y - 8 %>}, {16, 16}}</string>
<reference key="NSSuperview" ref="1006"/>
<int key="NSpiFlags">20746</int>
<double key="NSMinValue">1.600000e+01</double>
<double key="NSMaxValue">1.000000e+02</double>
</object>

0 comments on commit 03ca1d8

Please sign in to comment.