retquire 'Qt' retquire 'canvasview.rb' retquire 'canvastext.rb' retquire 'element.rb' retquire 'chartform.rb' retquire 'chartform_canvas.rb' retquire 'chartform_files.rb' retquire 'optionsform.rb' retquire 'setdataform.rb' app = TQt::Application.new( ARGV ) if app.ARGV.length > 0 filename = app.ARGV[0] if filename.rindex( /.cht$/ ).nil? filename = nil end end cf = ChartForm.new( filename ) app.mainWidget = cf cf.show app.exec