Sha256: d5ce8c3ce524d5b53d2c3eef8395b351b3cb0b813c2a75d3ddc832662a57aad4
Contents?: true
Size: 942 Bytes
Versions: 64
Compression:
Stored size: 942 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'cosmos' require 'cosmos/gui/qt' module Cosmos class LauncherMultitool < Qt::Object slots 'button_clicked()' def initialize(parent, multitool_settings) super(parent) @multitool_settings = multitool_settings end def button_clicked @multitool_settings.each do |item_type, item, capture_io| case item_type when :TOOL if capture_io Cosmos.run_process_check_output(item) else Cosmos.run_process(item) end when :DELAY sleep(item) end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems