# Copyright 2007-2014 Terry Ross, Draw Metal LLC.  All Rights Reserved.
# Portions Copyright 2005, @Last Software, Inc.

# DISCLAIMER OF WARRANTIES
# BECAUSE THIS SOFTWARE IS PROVIDED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE.
# THE SOFTWARE IS PROVIDED "AS IS" WITH ALL FAULTS AND WITHOUT WARRANTY OF ANY KIND,    
# EITHER EXPRESSED, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO,
# THE IMPLIED WARRANTIES AND/OR CONDITIONS OF MERCHANTABILITY, OF SATISFACTORY QUALITY,
# OF FITNESS FOR A PARTICULAR PURPOSE OR USE, OF ACCURACY, OF QUIET ENJOYMENT,
# AND OF NON-INFRINGEMENT OF THIRD PARTY RIGHTS.
# THERE IS NO WARRANTY AS TO THE SOFTWARE'S PERFORMANCE, AGAINST INTERFERENCE WITH
# YOUR ENJOYMENT OF THE SOFTWARE, THAT THE FUNCTIONS CONTAINED IN THE SOFTWARE
# WILL MEET YOUR REQUIREMENTS, THAT THE OPERATION OF THE SOFTWARE WILL BE
# UNINTERRUPTED OR ERROR-FREE, OR THAT DEFECTS IN THE SOFTWARE WILL BE CORRECTED.
# YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT USE OF THE SOFTWARE IS AT YOUR SOLE RISK
# AND THAT THE ENTIRE RISK AS TO SATISFACTORY QUALITY, PERFORMANCE, ACCURACY AND EFFORT
# IS WITH YOU.  SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE ENTIRE COST
# OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
# NO ORAL OR WRITTEN INFORMATION OR ADVICE GIVEN BY THE SOFTWARE PROVIDER
# SHALL CREATE A WARRANTY.

require 'sketchup.rb'
require 'extensions.rb'

plugins = File.dirname(__FILE__) 
dm_ext_dir = File.join( plugins, "dm_stock_maker")
dm_load = File.join( dm_ext_dir, "dm_stock_menu.rb" )
dm_langtool = File.join( dm_ext_dir, "dm_LangHandler" )

Sketchup::require( dm_langtool ) 
$dm_lang = DMLangHandler.new(dm_ext_dir) if $dm_lang == nil

stockMakerExtension = SketchupExtension.new( $dm_lang.to("Stock Maker"), dm_load )
stockMakerExtension.description=$dm_lang.to( "Adds Stock Maker to Sketchup Plugins Menu" )
stockMakerExtension.name= $dm_lang.to( "Stock Maker" )
stockMakerExtension.creator= "Terry Ross"
stockMakerExtension.copyright= "© 2007-2014 Terry Ross, Draw Metal LLC."
$dm_sm_ver = "1.4 March 2014"
stockMakerExtension.version= $dm_sm_ver
				
Sketchup.register_extension(stockMakerExtension, true)
