# OpenStudio
# Copyright (c) 2008-2015, Alliance for Sustainable Energy.  All rights reserved.
# See the file "License.txt" for additional terms and conditions.

require("legacy_openstudio/lib/dialogs/DialogInterface")
require("legacy_openstudio/lib/dialogs/LastReportDialog")


module LegacyOpenStudio

  class LastReportInterface < DialogInterface

    def initialize
      super
      @dialog = LastReportDialog.new(nil, self, @hash)
      
      @last_report = ''
      @hash['LAST_REPORT'] = @last_report
    end
    
    def last_report=(text)
      @last_report = text
      populate_hash
      update
    end
    
    def populate_hash
      @hash['LAST_REPORT'] = @last_report
      super
    end
    
    def report
      super
    end
    

   
  end

end
