Permalink
Browse files

Added toolbar icons for the plugin.

  • Loading branch information...
1 parent 8e5f9d2 commit 420d38503b30fd74441906f880602f53efeec45a @tav committed Aug 31, 2011
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
@@ -399,7 +399,8 @@ def generate
y = (scale * center.y) + base_y
radius = scale * radius
svg << <<-CIRCLE.gsub(/^ {14}/, '')
- <circle cx="#{x}" cy="#{y}" r="#{radius}" stroke="rgb(51, 51, 51)" stroke-width="2" fill="none" />
+ <circle cx="#{x}" cy="#{y}" r="#{radius}"
+ stroke="rgb(51, 51, 51)" stroke-width="2" fill="none" />
CIRCLE
else
loop = loops[i]
@@ -1907,6 +1908,8 @@ def load_wikihouse_upload
if not file_loaded? __FILE__
+ WIKIHOUSE_DIR = File.join File.dirname(__FILE__), "wikihouse-assets"
+
# Initialise the data containers.
WIKIHOUSE_DOWNLOADS = Hash.new
WIKIHOUSE_UPLOADS = Hash.new
@@ -1920,6 +1923,8 @@ def load_wikihouse_upload
end
WIKIHOUSE_DOWNLOAD.tooltip = "Find new models to use at #{WIKIHOUSE_TITLE}"
+ WIKIHOUSE_DOWNLOAD.small_icon = File.join WIKIHOUSE_DIR, "download-16.png"
+ WIKIHOUSE_DOWNLOAD.large_icon = File.join WIKIHOUSE_DIR, "download.png"
# TODO(tav): Irregardless of these procs, all commands seem to get greyed out
# when no models are open -- at least, on OS X.
@@ -1932,6 +1937,8 @@ def load_wikihouse_upload
end
WIKIHOUSE_MAKE.tooltip = "Convert a model of a House into printable components"
+ WIKIHOUSE_MAKE.small_icon = File.join WIKIHOUSE_DIR, "make-16.png"
+ WIKIHOUSE_MAKE.large_icon = File.join WIKIHOUSE_DIR, "make.png"
WIKIHOUSE_MAKE.set_validation_proc {
if Sketchup.active_model
MF_ENABLED
@@ -1945,6 +1952,8 @@ def load_wikihouse_upload
end
WIKIHOUSE_UPLOAD.tooltip = "Upload and share your model at #{WIKIHOUSE_TITLE}"
+ WIKIHOUSE_UPLOAD.small_icon = File.join WIKIHOUSE_DIR, "upload-16.png"
+ WIKIHOUSE_UPLOAD.large_icon = File.join WIKIHOUSE_DIR, "upload.png"
WIKIHOUSE_UPLOAD.set_validation_proc {
if Sketchup.active_model
MF_ENABLED

0 comments on commit 420d385

Please sign in to comment.