blob: 74492b0f02efb82919277be4ac23ad26785ae6ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'Qt'
require 'canvasview.rb'
require 'canvastext.rb'
require 'element.rb'
require 'chartform.rb'
require 'chartform_canvas.rb'
require 'chartform_files.rb'
require 'optionsform.rb'
require '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
|