qtbindings 4.6.3.0-x86-mingw32 → 4.6.3.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +4 -1
- data/KNOWN_ISSUES.txt +11 -20
- data/README.txt +3 -2
- data/TODO.txt +1 -0
- data/bin/1.8/rbrcc.exe +0 -0
- data/bin/1.8/rbuic4.exe +0 -0
- data/bin/1.8/smokeapi.exe +0 -0
- data/bin/1.8/smokedeptool.exe +0 -0
- data/bin/1.9/rbrcc.exe +0 -0
- data/bin/1.9/rbuic4.exe +0 -0
- data/bin/1.9/smokeapi.exe +0 -0
- data/bin/1.9/smokedeptool.exe +0 -0
- data/bin/plugins/{qtaccessiblecompatwidgets4.dll → accessible/qtaccessiblecompatwidgets4.dll} +0 -0
- data/bin/plugins/{qtaccessiblewidgets4.dll → accessible/qtaccessiblewidgets4.dll} +0 -0
- data/bin/plugins/{qcncodecs4.dll → codecs/qcncodecs4.dll} +0 -0
- data/bin/plugins/{qjpcodecs4.dll → codecs/qjpcodecs4.dll} +0 -0
- data/bin/plugins/{qkrcodecs4.dll → codecs/qkrcodecs4.dll} +0 -0
- data/bin/plugins/{qtwcodecs4.dll → codecs/qtwcodecs4.dll} +0 -0
- data/bin/plugins/{arthurplugin.dll → designer/arthurplugin.dll} +0 -0
- data/bin/plugins/{containerextension.dll → designer/containerextension.dll} +0 -0
- data/bin/plugins/{customwidgetplugin.dll → designer/customwidgetplugin.dll} +0 -0
- data/bin/plugins/{phononwidgets.dll → designer/phononwidgets.dll} +0 -0
- data/bin/plugins/{qt3supportwidgets.dll → designer/qt3supportwidgets.dll} +0 -0
- data/bin/plugins/{qwebview.dll → designer/qwebview.dll} +0 -0
- data/bin/plugins/{taskmenuextension.dll → designer/taskmenuextension.dll} +0 -0
- data/bin/plugins/{worldtimeclockplugin.dll → designer/worldtimeclockplugin.dll} +0 -0
- data/bin/plugins/{qglgraphicssystem4.dll → graphicssystems/qglgraphicssystem4.dll} +0 -0
- data/bin/plugins/{qtracegraphicssystem4.dll → graphicssystems/qtracegraphicssystem4.dll} +0 -0
- data/bin/plugins/{qsvgicon4.dll → iconengines/qsvgicon4.dll} +0 -0
- data/bin/plugins/{qgif4.dll → imageformats/qgif4.dll} +0 -0
- data/bin/plugins/{qico4.dll → imageformats/qico4.dll} +0 -0
- data/bin/plugins/{qjpeg4.dll → imageformats/qjpeg4.dll} +0 -0
- data/bin/plugins/{qmng4.dll → imageformats/qmng4.dll} +0 -0
- data/bin/plugins/{qsvg4.dll → imageformats/qsvg4.dll} +0 -0
- data/bin/plugins/{qtiff4.dll → imageformats/qtiff4.dll} +0 -0
- data/bin/plugins/phonon_backend/phonon_ds94.dll +0 -0
- data/bin/plugins/{qsqlite4.dll → sqldrivers/qsqlite4.dll} +0 -0
- data/bin/plugins/{qsqlodbc4.dll → sqldrivers/qsqlodbc4.dll} +0 -0
- data/examples/designer/calculatorbuilder/main.rb +2 -2
- data/examples/designer/calculatorform/calculatorform.rb +1 -1
- data/examples/designer/calculatorform/main.rb +1 -1
- data/examples/desktop/screenshot/main.rb +1 -1
- data/examples/desktop/systray/main.rb +2 -2
- data/examples/dialogs/complexwizard/licensewizard.rb +1 -1
- data/examples/dialogs/complexwizard/main.rb +1 -1
- data/examples/dialogs/configdialog/configdialog.rb +1 -1
- data/examples/dialogs/configdialog/main.rb +1 -1
- data/examples/dialogs/extension/main.rb +1 -1
- data/examples/dialogs/findfiles/main.rb +1 -1
- data/examples/dialogs/simplewizard/classwizard.rb +4 -4
- data/examples/dialogs/simplewizard/main.rb +1 -1
- data/examples/dialogs/standarddialogs/main.rb +1 -1
- data/examples/dialogs/tabdialog/main.rb +1 -1
- data/examples/draganddrop/draggableicons/main.rb +1 -1
- data/examples/draganddrop/draggabletext/dragwidget.rb +1 -1
- data/examples/draganddrop/draggabletext/main.rb +1 -1
- data/examples/draganddrop/dropsite/dropsitewindow.rb +1 -1
- data/examples/draganddrop/dropsite/main.rb +1 -1
- data/examples/draganddrop/fridgemagnets/dragwidget.rb +1 -1
- data/examples/draganddrop/fridgemagnets/main.rb +1 -1
- data/examples/draganddrop/puzzle/main.rb +1 -1
- data/examples/draganddrop/puzzle/mainwindow.rb +2 -2
- data/examples/graphicsview/collidingmice/main.rb +2 -2
- data/examples/graphicsview/dragdroprobot/main.rb +3 -3
- data/examples/itemviews/chart/main.rb +2 -2
- data/examples/itemviews/chart/mainwindow.rb +1 -1
- data/examples/itemviews/chart/pieview.rb +2 -2
- data/examples/itemviews/pixelator/main.rb +2 -2
- data/examples/itemviews/pixelator/mainwindow.rb +2 -2
- data/examples/itemviews/puzzle/main.rb +1 -1
- data/examples/itemviews/puzzle/mainwindow.rb +2 -2
- data/examples/itemviews/simpledommodel/dommodel.rb +7 -7
- data/examples/itemviews/simpledommodel/main.rb +1 -1
- data/examples/itemviews/simpledommodel/mainwindow.rb +1 -1
- data/examples/itemviews/simpletreemodel/main.rb +2 -2
- data/examples/itemviews/simpletreemodel/treemodel.rb +1 -1
- data/examples/itemviews/sortingmodel/main.rb +1 -1
- data/examples/itemviews/sortingmodel/treemodel.rb +1 -1
- data/examples/itemviews/spinboxdelegate/main.rb +1 -1
- data/examples/itemviews/spinboxdelegate/spinboxdelegate.rb +2 -2
- data/examples/layouts/basiclayouts/main.rb +1 -1
- data/examples/layouts/borderlayout/main.rb +1 -1
- data/examples/layouts/borderlayout/window.rb +1 -1
- data/examples/layouts/flowlayouts/main.rb +1 -1
- data/examples/layouts/flowlayouts/window.rb +1 -1
- data/examples/mainwindows/application/main.rb +1 -1
- data/examples/mainwindows/dockwidgets/main.rb +1 -1
- data/examples/mainwindows/dockwidgets/mainwindow.rb +1 -1
- data/examples/mainwindows/mdi/main.rb +1 -1
- data/examples/mainwindows/mdi/mainwindow.rb +1 -1
- data/examples/mainwindows/mdi/mdichild.rb +1 -1
- data/examples/mainwindows/menus/main.rb +1 -1
- data/examples/mainwindows/recentfiles/main.rb +1 -1
- data/examples/mainwindows/sdi/main.rb +1 -1
- data/examples/network/broadcastreceiver/main.rb +1 -1
- data/examples/network/broadcastsender/main.rb +1 -1
- data/examples/network/fortuneclient/client.rb +3 -4
- data/examples/network/fortuneclient/main.rb +1 -1
- data/examples/network/fortuneserver/main.rb +1 -1
- data/examples/network/ftp/main.rb +1 -1
- data/examples/network/http/main.rb +1 -1
- data/examples/network/loopback/main.rb +1 -1
- data/examples/opengl/grabber/main.rb +1 -1
- data/examples/opengl/grabber/mainwindow.rb +1 -1
- data/examples/opengl/hellogl/main.rb +1 -1
- data/examples/opengl/hellogl/window.rb +1 -1
- data/examples/opengl/textures/main.rb +1 -1
- data/examples/opengl/textures/window.rb +1 -1
- data/examples/painting/basicdrawing/main.rb +1 -1
- data/examples/painting/basicdrawing/renderarea.rb +13 -13
- data/examples/painting/basicdrawing/window.rb +1 -1
- data/examples/painting/concentriccircles/main.rb +1 -1
- data/examples/painting/concentriccircles/window.rb +1 -1
- data/examples/painting/fontsampler/main.rb +1 -1
- data/examples/painting/fontsampler/mainwindow.rb +2 -2
- data/examples/painting/fontsampler/previewdialog.rb +2 -2
- data/examples/painting/imagecomposition/main.rb +2 -2
- data/examples/painting/painterpaths/main.rb +1 -1
- data/examples/painting/painterpaths/window.rb +1 -1
- data/examples/painting/svgviewer/main.rb +2 -2
- data/examples/painting/svgviewer/mainwindow.rb +1 -1
- data/examples/painting/svgviewer/svgwindow.rb +1 -1
- data/examples/painting/transformations/main.rb +1 -1
- data/examples/painting/transformations/renderarea.rb +4 -4
- data/examples/painting/transformations/window.rb +1 -1
- data/examples/qdbus/chat/chat.rb +2 -2
- data/examples/qdbus/complexpingpong/complexping.rb +1 -1
- data/examples/qdbus/complexpingpong/complexpong.rb +1 -1
- data/examples/qdbus/pingpong/ping.rb +1 -1
- data/examples/qdbus/pingpong/pong.rb +1 -1
- data/examples/qdbus/remotecontrolledcar/car/main.rb +1 -1
- data/examples/qdbus/remotecontrolledcar/controller/controller.rb +1 -1
- data/examples/qdbus/remotecontrolledcar/controller/main.rb +1 -1
- data/examples/richtext/calendar/main.rb +1 -1
- data/examples/richtext/orderform/main.rb +1 -1
- data/examples/richtext/orderform/mainwindow.rb +1 -1
- data/examples/richtext/syntaxhighlighter/main.rb +1 -1
- data/examples/richtext/syntaxhighlighter/mainwindow.rb +1 -1
- data/examples/ruboids/release.rb +2 -2
- data/examples/ruboids/ruboids/Boid.rb +4 -4
- data/examples/ruboids/ruboids/BoidView.rb +1 -1
- data/examples/ruboids/ruboids/Camera.rb +1 -1
- data/examples/ruboids/ruboids/CameraDialog.rb +2 -2
- data/examples/ruboids/ruboids/Canvas.rb +5 -5
- data/examples/ruboids/ruboids/Cloud.rb +3 -3
- data/examples/ruboids/ruboids/CloudView.rb +5 -5
- data/examples/ruboids/ruboids/Flock.rb +3 -3
- data/examples/ruboids/ruboids/Graphics.rb +1 -1
- data/examples/ruboids/ruboids/Thing.rb +1 -1
- data/examples/ruboids/ruboids/Triangle.rb +1 -1
- data/examples/ruboids/ruboids/World.rb +6 -6
- data/examples/ruboids/ruboids/WorldWindow.rb +2 -2
- data/examples/ruboids/ruboids/ruboids.rb +4 -4
- data/examples/textedit/textedit.rb +1 -1
- data/examples/tutorial/t10/t10.rb +2 -2
- data/examples/tutorial/t11/t11.rb +2 -2
- data/examples/tutorial/t12/t12.rb +2 -2
- data/examples/tutorial/t13/gamebrd.rb +2 -2
- data/examples/tutorial/t13/t13.rb +1 -1
- data/examples/tutorial/t14/cannon.rb +1 -1
- data/examples/tutorial/t14/gamebrd.rb +2 -2
- data/examples/tutorial/t14/t14.rb +1 -1
- data/examples/tutorial/t7/t7.rb +1 -1
- data/examples/tutorial/t8/t8.rb +2 -2
- data/examples/tutorial/t9/t9.rb +2 -2
- data/examples/widgets/analogclock/main.rb +1 -1
- data/examples/widgets/calculator/calculator.rb +1 -1
- data/examples/widgets/calculator/main.rb +1 -1
- data/examples/widgets/charactermap/main.rb +1 -1
- data/examples/widgets/charactermap/mainwindow.rb +2 -2
- data/examples/widgets/digitalclock/main.rb +1 -1
- data/examples/widgets/groupbox/main.rb +1 -1
- data/examples/widgets/icons/main.rb +1 -1
- data/examples/widgets/icons/mainwindow.rb +3 -3
- data/examples/widgets/imageviewer/main.rb +1 -1
- data/examples/widgets/lineedits/main.rb +1 -1
- data/examples/widgets/lineedits/window.rb +2 -2
- data/examples/widgets/movie/main.rb +1 -1
- data/examples/widgets/screenshot/main.rb +1 -1
- data/examples/widgets/scribble/main.rb +1 -1
- data/examples/widgets/scribble/mainwindow.rb +1 -1
- data/examples/widgets/sliders/main.rb +1 -1
- data/examples/widgets/sliders/slidersgroup.rb +1 -1
- data/examples/widgets/sliders/window.rb +3 -3
- data/examples/widgets/spinboxes/main.rb +1 -1
- data/examples/widgets/tetrix/main.rb +1 -1
- data/examples/widgets/tetrix/tetrixboard.rb +7 -7
- data/examples/widgets/tetrix/tetrixwindow.rb +1 -1
- data/examples/widgets/tooltips/main.rb +1 -1
- data/examples/widgets/tooltips/sortingbox.rb +1 -1
- data/examples/widgets/wiggly/dialog.rb +2 -2
- data/examples/widgets/wiggly/main.rb +1 -1
- data/examples/widgets/windowflags/controllerwindow.rb +1 -1
- data/examples/widgets/windowflags/main.rb +1 -1
- data/examples/xml/dombookmarks/main.rb +1 -1
- data/examples/xml/dombookmarks/mainwindow.rb +1 -1
- data/examples/xml/saxbookmarks/main.rb +1 -1
- data/examples/xml/saxbookmarks/mainwindow.rb +1 -1
- data/examples/xml/saxbookmarks/xbelhandler.rb +1 -1
- data/ext/cmake/modules/MacroOptionalAddBindings.cmake +2 -2
- data/ext/generator/generators/smoke/helpers.cpp +4 -3
- data/ext/generator/generators/smoke/writeSmokeDataFile.cpp +1 -1
- data/ext/ruby/CMakeLists.txt +1 -0
- data/ext/ruby/qtdeclarative/CMakeLists.txt +17 -0
- data/ext/ruby/qtdeclarative/qtdeclarative.cpp +66 -0
- data/ext/ruby/qtdeclarative/qtdeclarative.rb +17 -0
- data/ext/ruby/qtdeclarative/qtdeclarativehandlers.cpp +35 -0
- data/ext/ruby/qtruby/src/Qt.cpp +30 -21
- data/ext/ruby/qtruby/src/qtruby.cpp +8 -3
- data/ext/smoke/CMakeLists.txt +1 -0
- data/ext/smoke/qtcore/QtGuess.txt +1 -0
- data/ext/smoke/qtcore/smokeconfig.xml +1 -0
- data/ext/smoke/qtdeclarative/CMakeLists.txt +45 -0
- data/ext/smoke/qtdeclarative/config.xml.cmake +12 -0
- data/ext/smoke/qtdeclarative/qtdeclarative_includes.h +3 -0
- data/ext/smoke/qtdeclarative/smokeconfig.xml +58 -0
- data/ext/smoke/qtdeclarative_smoke.h +16 -0
- data/ext/smoke/qtnetwork/smokeconfig.xml +14 -11
- data/ext/smoke/qtopengl/smokeconfig.xml +1 -0
- data/ext/smoke/qtsql/CMakeLists.txt +4 -0
- data/ext/smoke/qtsql/qtsql_includes.h +1 -0
- data/ext/smoke/qtsql/smokeconfig.xml +3 -0
- data/extconf.rb +64 -18
- data/lib/1.8/libqtruby4shared.dll +0 -0
- data/lib/1.8/libsmokebase.dll +0 -0
- data/lib/1.8/libsmokeqtcore.dll +0 -0
- data/lib/1.8/libsmokeqtgui.dll +0 -0
- data/lib/1.8/libsmokeqtmultimedia.dll +0 -0
- data/lib/1.8/libsmokeqtnetwork.dll +0 -0
- data/lib/1.8/libsmokeqtopengl.dll +0 -0
- data/lib/1.8/libsmokeqtscript.dll +0 -0
- data/lib/1.8/libsmokeqtsql.dll +0 -0
- data/lib/1.8/libsmokeqtsvg.dll +0 -0
- data/lib/1.8/libsmokeqttest.dll +0 -0
- data/lib/1.8/libsmokeqtuitools.dll +0 -0
- data/lib/1.8/libsmokeqtwebkit.dll +0 -0
- data/lib/1.8/libsmokeqtxml.dll +0 -0
- data/lib/1.8/libsmokeqtxmlpatterns.dll +0 -0
- data/lib/1.8/qtruby4.so +0 -0
- data/lib/1.8/qtscript.so +0 -0
- data/lib/1.8/qttest.so +0 -0
- data/lib/1.8/qtuitools.so +0 -0
- data/lib/1.8/qtwebkit.so +0 -0
- data/lib/1.9/libqtruby4shared.dll +0 -0
- data/lib/1.9/libsmokebase.dll +0 -0
- data/lib/1.9/libsmokeqtcore.dll +0 -0
- data/lib/1.9/libsmokeqtgui.dll +0 -0
- data/lib/1.9/libsmokeqtmultimedia.dll +0 -0
- data/lib/1.9/libsmokeqtnetwork.dll +0 -0
- data/lib/1.9/libsmokeqtopengl.dll +0 -0
- data/lib/1.9/libsmokeqtscript.dll +0 -0
- data/lib/1.9/libsmokeqtsql.dll +0 -0
- data/lib/1.9/libsmokeqtsvg.dll +0 -0
- data/lib/1.9/libsmokeqttest.dll +0 -0
- data/lib/1.9/libsmokeqtuitools.dll +0 -0
- data/lib/1.9/libsmokeqtwebkit.dll +0 -0
- data/lib/1.9/libsmokeqtxml.dll +0 -0
- data/lib/1.9/libsmokeqtxmlpatterns.dll +0 -0
- data/lib/1.9/qtruby4.so +0 -0
- data/lib/1.9/qtscript.so +0 -0
- data/lib/1.9/qttest.so +0 -0
- data/lib/1.9/qtuitools.so +0 -0
- data/lib/1.9/qtwebkit.so +0 -0
- data/lib/Qt/qtruby4.rb +3177 -3140
- data/lib/qtbindings_version.rb +2 -2
- metadata +39 -425
- data/examples/qtscribble/scribble.rb +0 -270
- data/ext/ruby/qtruby/examples/base/kicons.rb +0 -54
- data/ext/ruby/qtruby/examples/base/rui.rb +0 -21
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorbuilder.qrc +0 -5
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorform.rb +0 -60
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorform.ui +0 -299
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/main.rb +0 -33
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/makefile +0 -2
- data/ext/ruby/qtruby/examples/designer/calculatorform/calculatorform.rb +0 -46
- data/ext/ruby/qtruby/examples/designer/calculatorform/calculatorform.ui +0 -277
- data/ext/ruby/qtruby/examples/designer/calculatorform/main.rb +0 -32
- data/ext/ruby/qtruby/examples/designer/calculatorform/makefile +0 -3
- data/ext/ruby/qtruby/examples/desktop/screenshot/main.rb +0 -32
- data/ext/ruby/qtruby/examples/desktop/screenshot/screenshot.rb +0 -156
- data/ext/ruby/qtruby/examples/desktop/systray/images/bad.svg +0 -64
- data/ext/ruby/qtruby/examples/desktop/systray/images/heart.svg +0 -55
- data/ext/ruby/qtruby/examples/desktop/systray/images/trash.svg +0 -58
- data/ext/ruby/qtruby/examples/desktop/systray/main.rb +0 -41
- data/ext/ruby/qtruby/examples/desktop/systray/makefile +0 -2
- data/ext/ruby/qtruby/examples/desktop/systray/systray.qrc +0 -7
- data/ext/ruby/qtruby/examples/desktop/systray/window.rb +0 -223
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/complexwizard.rb +0 -140
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb +0 -294
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/main.rb +0 -31
- data/ext/ruby/qtruby/examples/dialogs/configdialog/configdialog.rb +0 -109
- data/ext/ruby/qtruby/examples/dialogs/configdialog/images/config.png +0 -0
- data/ext/ruby/qtruby/examples/dialogs/configdialog/images/query.png +0 -0
- data/ext/ruby/qtruby/examples/dialogs/configdialog/images/update.png +0 -0
- data/ext/ruby/qtruby/examples/dialogs/configdialog/main.rb +0 -31
- data/ext/ruby/qtruby/examples/dialogs/configdialog/pages.rb +0 -140
- data/ext/ruby/qtruby/examples/dialogs/extension/finddialog.rb +0 -89
- data/ext/ruby/qtruby/examples/dialogs/extension/main.rb +0 -31
- data/ext/ruby/qtruby/examples/dialogs/findfiles/main.rb +0 -32
- data/ext/ruby/qtruby/examples/dialogs/findfiles/window.rb +0 -177
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/classwizard.rb +0 -374
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/main.rb +0 -31
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/simplewizard.rb +0 -110
- data/ext/ruby/qtruby/examples/dialogs/standarddialogs/dialog.rb +0 -340
- data/ext/ruby/qtruby/examples/dialogs/standarddialogs/main.rb +0 -31
- data/ext/ruby/qtruby/examples/dialogs/tabdialog/main.rb +0 -38
- data/ext/ruby/qtruby/examples/dialogs/tabdialog/tabdialog.rb +0 -178
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/dragwidget.rb +0 -125
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/images/boat.png +0 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/images/car.png +0 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/images/house.png +0 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/main.rb +0 -41
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/draglabel.rb +0 -51
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/dragwidget.rb +0 -94
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/main.rb +0 -33
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/words.txt +0 -41
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/dropsitewidget.rb +0 -98
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/dropsitewindow.rb +0 -114
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/main.rb +0 -33
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/draglabel.rb +0 -78
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/dragwidget.rb +0 -130
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/main.rb +0 -33
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/words.txt +0 -48
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/example.jpg +0 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/main.rb +0 -33
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/mainwindow.rb +0 -136
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/pieceslist.rb +0 -95
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/puzzlewidget.rb +0 -190
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/images/cheese.jpg +0 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/main.rb +0 -53
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/makefile +0 -2
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/mice.qrc +0 -5
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/mouse.rb +0 -176
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/coloritem.rb +0 -86
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/images/head.png +0 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/main.rb +0 -57
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/makefile +0 -2
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/robot.qrc +0 -5
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/robot.rb +0 -246
- data/ext/ruby/qtruby/examples/itemviews/chart/chart.qrc +0 -5
- data/ext/ruby/qtruby/examples/itemviews/chart/main.rb +0 -33
- data/ext/ruby/qtruby/examples/itemviews/chart/mainwindow.rb +0 -151
- data/ext/ruby/qtruby/examples/itemviews/chart/makefile +0 -2
- data/ext/ruby/qtruby/examples/itemviews/chart/mydata.cht +0 -8
- data/ext/ruby/qtruby/examples/itemviews/chart/pieview.rb +0 -516
- data/ext/ruby/qtruby/examples/itemviews/chart/qtdata.cht +0 -14
- data/ext/ruby/qtruby/examples/itemviews/dirview/main.rb +0 -39
- data/ext/ruby/qtruby/examples/itemviews/pixelator/imagemodel.rb +0 -51
- data/ext/ruby/qtruby/examples/itemviews/pixelator/images.qrc +0 -5
- data/ext/ruby/qtruby/examples/itemviews/pixelator/images/qt.png +0 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/main.rb +0 -34
- data/ext/ruby/qtruby/examples/itemviews/pixelator/mainwindow.rb +0 -218
- data/ext/ruby/qtruby/examples/itemviews/pixelator/makefile +0 -3
- data/ext/ruby/qtruby/examples/itemviews/pixelator/pixeldelegate.rb +0 -67
- data/ext/ruby/qtruby/examples/itemviews/puzzle/example.jpg +0 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/main.rb +0 -36
- data/ext/ruby/qtruby/examples/itemviews/puzzle/mainwindow.rb +0 -143
- data/ext/ruby/qtruby/examples/itemviews/puzzle/piecesmodel.rb +0 -174
- data/ext/ruby/qtruby/examples/itemviews/puzzle/puzzlewidget.rb +0 -192
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/domitem.rb +0 -62
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/dommodel.rb +0 -139
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/main.rb +0 -33
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/mainwindow.rb +0 -66
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/default.txt +0 -40
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/main.rb +0 -41
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/makefile +0 -2
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/simpletreemodel.qrc +0 -5
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/treeitem.rb +0 -67
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/treemodel.rb +0 -164
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/default.txt +0 -40
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/main.rb +0 -53
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/treeitem.rb +0 -73
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/treemodel.rb +0 -166
- data/ext/ruby/qtruby/examples/itemviews/spinboxdelegate/main.rb +0 -47
- data/ext/ruby/qtruby/examples/itemviews/spinboxdelegate/spinboxdelegate.rb +0 -62
- data/ext/ruby/qtruby/examples/killerfilter/killerfilter.rb +0 -55
- data/ext/ruby/qtruby/examples/layouts/basiclayouts/dialog.rb +0 -110
- data/ext/ruby/qtruby/examples/layouts/basiclayouts/main.rb +0 -31
- data/ext/ruby/qtruby/examples/layouts/borderlayout/borderlayout.rb +0 -190
- data/ext/ruby/qtruby/examples/layouts/borderlayout/main.rb +0 -32
- data/ext/ruby/qtruby/examples/layouts/borderlayout/window.rb +0 -52
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/flowlayout.rb +0 -108
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/main.rb +0 -32
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/window.rb +0 -43
- data/ext/ruby/qtruby/examples/mainwindows/application/images/copy.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/images/cut.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/images/new.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/images/open.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/images/paste.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/images/save.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/application/mainwindow.rb +0 -285
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/images/new.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/images/print.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/images/save.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/images/undo.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/mainwindow.rb +0 -302
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/copy.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/cut.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/new.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/open.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/paste.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/images/save.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/mdi/mainwindow.rb +0 -363
- data/ext/ruby/qtruby/examples/mainwindows/mdi/mdichild.rb +0 -152
- data/ext/ruby/qtruby/examples/mainwindows/menus/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/menus/mainwindow.rb +0 -327
- data/ext/ruby/qtruby/examples/mainwindows/recentfiles/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/recentfiles/mainwindow.rb +0 -258
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/copy.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/cut.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/new.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/open.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/paste.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/images/save.png +0 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/main.rb +0 -32
- data/ext/ruby/qtruby/examples/mainwindows/sdi/mainwindow.rb +0 -335
- data/ext/ruby/qtruby/examples/network/broadcastreceiver/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/broadcastreceiver/receiver.rb +0 -64
- data/ext/ruby/qtruby/examples/network/broadcastsender/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/broadcastsender/sender.rb +0 -70
- data/ext/ruby/qtruby/examples/network/fortuneclient/client.rb +0 -150
- data/ext/ruby/qtruby/examples/network/fortuneclient/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/fortuneserver/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/fortuneserver/server.rb +0 -88
- data/ext/ruby/qtruby/examples/network/ftp/ftpwindow.rb +0 -254
- data/ext/ruby/qtruby/examples/network/ftp/images/cdtoparent.png +0 -0
- data/ext/ruby/qtruby/examples/network/ftp/images/dir.png +0 -0
- data/ext/ruby/qtruby/examples/network/ftp/images/file.png +0 -0
- data/ext/ruby/qtruby/examples/network/ftp/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/http/httpwindow.rb +0 -187
- data/ext/ruby/qtruby/examples/network/http/main.rb +0 -32
- data/ext/ruby/qtruby/examples/network/loopback/dialog.rb +0 -163
- data/ext/ruby/qtruby/examples/network/loopback/main.rb +0 -32
- data/ext/ruby/qtruby/examples/opengl/grabber/glwidget.rb +0 -265
- data/ext/ruby/qtruby/examples/opengl/grabber/main.rb +0 -32
- data/ext/ruby/qtruby/examples/opengl/grabber/mainwindow.rb +0 -189
- data/ext/ruby/qtruby/examples/opengl/hellogl/glwidget.rb +0 -226
- data/ext/ruby/qtruby/examples/opengl/hellogl/main.rb +0 -32
- data/ext/ruby/qtruby/examples/opengl/hellogl/window.rb +0 -66
- data/ext/ruby/qtruby/examples/opengl/textures/glwidget.rb +0 -151
- data/ext/ruby/qtruby/examples/opengl/textures/images/side1.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/images/side2.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/images/side3.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/images/side4.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/images/side5.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/images/side6.png +0 -0
- data/ext/ruby/qtruby/examples/opengl/textures/main.rb +0 -32
- data/ext/ruby/qtruby/examples/opengl/textures/window.rb +0 -77
- data/ext/ruby/qtruby/examples/painting/basicdrawing/images/brick.png +0 -0
- data/ext/ruby/qtruby/examples/painting/basicdrawing/images/qt-logo.png +0 -0
- data/ext/ruby/qtruby/examples/painting/basicdrawing/main.rb +0 -32
- data/ext/ruby/qtruby/examples/painting/basicdrawing/renderarea.rb +0 -166
- data/ext/ruby/qtruby/examples/painting/basicdrawing/window.rb +0 -215
- data/ext/ruby/qtruby/examples/painting/concentriccircles/circlewidget.rb +0 -88
- data/ext/ruby/qtruby/examples/painting/concentriccircles/main.rb +0 -32
- data/ext/ruby/qtruby/examples/painting/concentriccircles/window.rb +0 -72
- data/ext/ruby/qtruby/examples/painting/fontsampler/main.rb +0 -32
- data/ext/ruby/qtruby/examples/painting/fontsampler/mainwindow.rb +0 -368
- data/ext/ruby/qtruby/examples/painting/fontsampler/mainwindowbase.ui +0 -136
- data/ext/ruby/qtruby/examples/painting/fontsampler/makefile +0 -8
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewdialog.rb +0 -256
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewdialogbase.ui +0 -224
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewlabel.rb +0 -43
- data/ext/ruby/qtruby/examples/painting/imagecomposition/imagecomposer.rb +0 -152
- data/ext/ruby/qtruby/examples/painting/imagecomposition/imagecomposition.qrc +0 -6
- data/ext/ruby/qtruby/examples/painting/imagecomposition/images/background.png +0 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/images/blackrectangle.png +0 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/images/butterfly.png +0 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/images/checker.png +0 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/main.rb +0 -33
- data/ext/ruby/qtruby/examples/painting/imagecomposition/makefile +0 -2
- data/ext/ruby/qtruby/examples/painting/painterpaths/main.rb +0 -32
- data/ext/ruby/qtruby/examples/painting/painterpaths/renderarea.rb +0 -97
- data/ext/ruby/qtruby/examples/painting/painterpaths/window.rb +0 -247
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/bubbles.svg +0 -212
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/cubic.svg +0 -77
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/spheres.svg +0 -79
- data/ext/ruby/qtruby/examples/painting/svgviewer/main.rb +0 -38
- data/ext/ruby/qtruby/examples/painting/svgviewer/mainwindow.rb +0 -99
- data/ext/ruby/qtruby/examples/painting/svgviewer/makefile +0 -2
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgview.rb +0 -156
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgviewer.qrc +0 -6
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgwindow.rb +0 -87
- data/ext/ruby/qtruby/examples/painting/transformations/main.rb +0 -32
- data/ext/ruby/qtruby/examples/painting/transformations/renderarea.rb +0 -127
- data/ext/ruby/qtruby/examples/painting/transformations/window.rb +0 -153
- data/ext/ruby/qtruby/examples/passivepopup/passivepopup.rb +0 -38
- data/ext/ruby/qtruby/examples/qdbus/chat/chat.rb +0 -146
- data/ext/ruby/qtruby/examples/qdbus/chat/chat_adaptor.rb +0 -12
- data/ext/ruby/qtruby/examples/qdbus/chat/chat_interface.rb +0 -13
- data/ext/ruby/qtruby/examples/qdbus/chat/chatmainwindow.ui +0 -184
- data/ext/ruby/qtruby/examples/qdbus/chat/chatsetnickname.ui +0 -145
- data/ext/ruby/qtruby/examples/qdbus/chat/makefile +0 -8
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/complexping.rb +0 -92
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/complexpong.rb +0 -83
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/ping-common.rb +0 -1
- data/ext/ruby/qtruby/examples/qdbus/listnames/listnames.rb +0 -69
- data/ext/ruby/qtruby/examples/qdbus/pingpong/ping-common.rb +0 -1
- data/ext/ruby/qtruby/examples/qdbus/pingpong/ping.rb +0 -52
- data/ext/ruby/qtruby/examples/qdbus/pingpong/pong.rb +0 -55
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/car/car.rb +0 -151
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/car/main.rb +0 -50
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/controller.rb +0 -66
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/controller.ui +0 -61
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/main.rb +0 -32
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/makefile +0 -2
- data/ext/ruby/qtruby/examples/qtscribble/scribble.rb +0 -270
- data/ext/ruby/qtruby/examples/richtext/calendar/main.rb +0 -33
- data/ext/ruby/qtruby/examples/richtext/calendar/mainwindow.rb +0 -173
- data/ext/ruby/qtruby/examples/richtext/orderform/detailsdialog.rb +0 -130
- data/ext/ruby/qtruby/examples/richtext/orderform/main.rb +0 -34
- data/ext/ruby/qtruby/examples/richtext/orderform/mainwindow.rb +0 -194
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/examples/example +0 -79
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/highlighter.rb +0 -90
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/main.rb +0 -34
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/mainwindow.rb +0 -105
- data/ext/ruby/qtruby/examples/ruboids/Manifest +0 -26
- data/ext/ruby/qtruby/examples/ruboids/README +0 -53
- data/ext/ruby/qtruby/examples/ruboids/TODO +0 -29
- data/ext/ruby/qtruby/examples/ruboids/boids.properties +0 -33
- data/ext/ruby/qtruby/examples/ruboids/generateManifest.rb +0 -42
- data/ext/ruby/qtruby/examples/ruboids/index.html +0 -147
- data/ext/ruby/qtruby/examples/ruboids/release.rb +0 -152
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Boid.rb +0 -141
- data/ext/ruby/qtruby/examples/ruboids/ruboids/BoidView.rb +0 -159
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Camera.rb +0 -24
- data/ext/ruby/qtruby/examples/ruboids/ruboids/CameraDialog.rb +0 -218
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Canvas.rb +0 -143
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Cloud.rb +0 -61
- data/ext/ruby/qtruby/examples/ruboids/ruboids/CloudView.rb +0 -54
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Flock.rb +0 -47
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Graphics.rb +0 -278
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Params.rb +0 -87
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Point.rb +0 -153
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Thing.rb +0 -34
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Triangle.rb +0 -21
- data/ext/ruby/qtruby/examples/ruboids/ruboids/View.rb +0 -88
- data/ext/ruby/qtruby/examples/ruboids/ruboids/World.rb +0 -82
- data/ext/ruby/qtruby/examples/ruboids/ruboids/WorldWindow.rb +0 -52
- data/ext/ruby/qtruby/examples/ruboids/ruboids/info.rb +0 -12
- data/ext/ruby/qtruby/examples/ruboids/ruboids/ruboids.rb +0 -29
- data/ext/ruby/qtruby/examples/textedit/textedit.rb +0 -150
- data/ext/ruby/qtruby/examples/tutorial/t1/t1.rb +0 -10
- data/ext/ruby/qtruby/examples/tutorial/t10/cannon.rb +0 -72
- data/ext/ruby/qtruby/examples/tutorial/t10/lcdrange.rb +0 -45
- data/ext/ruby/qtruby/examples/tutorial/t10/t10.rb +0 -55
- data/ext/ruby/qtruby/examples/tutorial/t11/cannon.rb +0 -124
- data/ext/ruby/qtruby/examples/tutorial/t11/lcdrange.rb +0 -45
- data/ext/ruby/qtruby/examples/tutorial/t11/t11.rb +0 -65
- data/ext/ruby/qtruby/examples/tutorial/t12/cannon.rb +0 -158
- data/ext/ruby/qtruby/examples/tutorial/t12/lcdrange.rb +0 -59
- data/ext/ruby/qtruby/examples/tutorial/t12/t12.rb +0 -66
- data/ext/ruby/qtruby/examples/tutorial/t13/cannon.rb +0 -208
- data/ext/ruby/qtruby/examples/tutorial/t13/gamebrd.rb +0 -113
- data/ext/ruby/qtruby/examples/tutorial/t13/lcdrange.rb +0 -60
- data/ext/ruby/qtruby/examples/tutorial/t13/t13.rb +0 -11
- data/ext/ruby/qtruby/examples/tutorial/t14/cannon.rb +0 -263
- data/ext/ruby/qtruby/examples/tutorial/t14/gamebrd.rb +0 -123
- data/ext/ruby/qtruby/examples/tutorial/t14/lcdrange.rb +0 -63
- data/ext/ruby/qtruby/examples/tutorial/t14/t14.rb +0 -11
- data/ext/ruby/qtruby/examples/tutorial/t2/t2.rb +0 -16
- data/ext/ruby/qtruby/examples/tutorial/t3/t3.rb +0 -18
- data/ext/ruby/qtruby/examples/tutorial/t4/t4.rb +0 -25
- data/ext/ruby/qtruby/examples/tutorial/t5/t5.rb +0 -37
- data/ext/ruby/qtruby/examples/tutorial/t6/t6.rb +0 -52
- data/ext/ruby/qtruby/examples/tutorial/t7/lcdrange.rb +0 -32
- data/ext/ruby/qtruby/examples/tutorial/t7/t7.rb +0 -42
- data/ext/ruby/qtruby/examples/tutorial/t8/cannon.rb +0 -38
- data/ext/ruby/qtruby/examples/tutorial/t8/lcdrange.rb +0 -45
- data/ext/ruby/qtruby/examples/tutorial/t8/t8.rb +0 -43
- data/ext/ruby/qtruby/examples/tutorial/t9/cannon.rb +0 -45
- data/ext/ruby/qtruby/examples/tutorial/t9/lcdrange.rb +0 -46
- data/ext/ruby/qtruby/examples/tutorial/t9/t9.rb +0 -43
- data/ext/ruby/qtruby/examples/widgets/analogclock/analogclock.rb +0 -94
- data/ext/ruby/qtruby/examples/widgets/analogclock/main.rb +0 -9
- data/ext/ruby/qtruby/examples/widgets/calculator/button.rb +0 -45
- data/ext/ruby/qtruby/examples/widgets/calculator/calculator.rb +0 -382
- data/ext/ruby/qtruby/examples/widgets/calculator/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/charactermap/characterwidget.rb +0 -110
- data/ext/ruby/qtruby/examples/widgets/charactermap/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/charactermap/mainwindow.rb +0 -118
- data/ext/ruby/qtruby/examples/widgets/digitalclock/digitalclock.rb +0 -30
- data/ext/ruby/qtruby/examples/widgets/digitalclock/main.rb +0 -9
- data/ext/ruby/qtruby/examples/widgets/groupbox/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/groupbox/window.rb +0 -134
- data/ext/ruby/qtruby/examples/widgets/icons/iconpreviewarea.rb +0 -111
- data/ext/ruby/qtruby/examples/widgets/icons/iconsizespinbox.rb +0 -39
- data/ext/ruby/qtruby/examples/widgets/icons/imagedelegate.rb +0 -73
- data/ext/ruby/qtruby/examples/widgets/icons/images/designer.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/find_disabled.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/find_normal.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_off_128x128.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_off_16x16.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_off_32x32.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_off_64x64.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_on_128x128.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_on_16x16.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_on_32x32.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/monkey_on_64x64.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/qtopia_16x16.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/qtopia_32x32.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/images/qtopia_48x48.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/icons/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/icons/mainwindow.rb +0 -351
- data/ext/ruby/qtruby/examples/widgets/imageviewer/imageviewer.rb +0 -219
- data/ext/ruby/qtruby/examples/widgets/imageviewer/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/lineedits/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/lineedits/window.rb +0 -199
- data/ext/ruby/qtruby/examples/widgets/movie/images/open.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/movie/images/pause.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/movie/images/play.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/movie/images/quit.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/movie/images/stop.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/movie/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/movie/movieplayer.rb +0 -201
- data/ext/ruby/qtruby/examples/widgets/movie/movies/fire.mng +0 -0
- data/ext/ruby/qtruby/examples/widgets/screenshot/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/screenshot/screenshot.rb +0 -155
- data/ext/ruby/qtruby/examples/widgets/scribble/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/scribble/mainwindow.rb +0 -202
- data/ext/ruby/qtruby/examples/widgets/scribble/scribblearea.rb +0 -154
- data/ext/ruby/qtruby/examples/widgets/sliders/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/sliders/slidersgroup.rb +0 -97
- data/ext/ruby/qtruby/examples/widgets/sliders/window.rb +0 -124
- data/ext/ruby/qtruby/examples/widgets/spinboxes/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/spinboxes/window.rb +0 -213
- data/ext/ruby/qtruby/examples/widgets/tetrix/main.rb +0 -33
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixboard.rb +0 -346
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixpiece.rb +0 -135
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixwindow.rb +0 -88
- data/ext/ruby/qtruby/examples/widgets/tooltips/images/circle.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/tooltips/images/square.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/tooltips/images/triangle.png +0 -0
- data/ext/ruby/qtruby/examples/widgets/tooltips/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/tooltips/shapeitem.rb +0 -31
- data/ext/ruby/qtruby/examples/widgets/tooltips/sortingbox.rb +0 -222
- data/ext/ruby/qtruby/examples/widgets/wiggly/dialog.rb +0 -48
- data/ext/ruby/qtruby/examples/widgets/wiggly/main.rb +0 -9
- data/ext/ruby/qtruby/examples/widgets/wiggly/wigglywidget.rb +0 -76
- data/ext/ruby/qtruby/examples/widgets/windowflags/controllerwindow.rb +0 -195
- data/ext/ruby/qtruby/examples/widgets/windowflags/main.rb +0 -32
- data/ext/ruby/qtruby/examples/widgets/windowflags/previewwindow.rb +0 -103
- data/ext/ruby/qtruby/examples/xml/dombookmarks/frank.xbel +0 -230
- data/ext/ruby/qtruby/examples/xml/dombookmarks/jennifer.xbel +0 -93
- data/ext/ruby/qtruby/examples/xml/dombookmarks/main.rb +0 -34
- data/ext/ruby/qtruby/examples/xml/dombookmarks/mainwindow.rb +0 -129
- data/ext/ruby/qtruby/examples/xml/dombookmarks/xbeltree.rb +0 -172
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/frank.xbel +0 -230
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/jennifer.xbel +0 -93
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/main.rb +0 -34
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/mainwindow.rb +0 -144
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/xbelgenerator.rb +0 -95
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/xbelhandler.rb +0 -122
- data/ext/ruby/qtruby/src/lib/CMakeLists.txt +0 -16
- data/ext/ruby/qtruby/src/lib/Qt.rb +0 -1
- data/ext/ruby/qtruby/src/lib/Qt/CMakeLists.txt +0 -9
- data/ext/ruby/qtruby/src/lib/Qt/qtruby4.rb +0 -3177
- data/ext/ruby/qtruby/src/lib/Qt3.rb +0 -6
- data/ext/ruby/qtruby/src/lib/Qt4.rb +0 -6
@@ -1,270 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby -w
|
2
|
-
|
3
|
-
#
|
4
|
-
# A class that lets the user draw with the mouse. The
|
5
|
-
# window knows how to redraw itself.
|
6
|
-
#
|
7
|
-
|
8
|
-
require 'Qt'
|
9
|
-
|
10
|
-
class ScribbleArea < Qt::Widget
|
11
|
-
|
12
|
-
slots "setColor(QColor)", "slotLoad(const QString&)", "slotSave(const QString&)", "slotClearArea()"
|
13
|
-
|
14
|
-
#
|
15
|
-
# The constructor. Initializes the member variables.
|
16
|
-
#
|
17
|
-
def initialize(parent)
|
18
|
-
super(parent)
|
19
|
-
# initialize member variables
|
20
|
-
@_buffer = Qt::Pixmap.new()
|
21
|
-
@_last = Qt::Point.new()
|
22
|
-
@_currentcolor = Qt::black
|
23
|
-
|
24
|
-
# don't blank the window before repainting
|
25
|
-
setAttribute( Qt::WA_NoBackground )
|
26
|
-
|
27
|
-
# create a pop-up menu
|
28
|
-
@_popupmenu = Qt::Menu.new()
|
29
|
-
@_popupmenu.addAction( "&Clear", self, SLOT( "slotClearArea()" ) )
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# This slot sets the curren color for the scribble area. It will be
|
34
|
-
# connected with the colorChanged( Qt::Color ) signal from the
|
35
|
-
# ScribbleWindow.
|
36
|
-
#
|
37
|
-
def setColor( new_color )
|
38
|
-
@_currentcolor = new_color
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# This slot clears the drawing area by filling the off-screen buffer with
|
43
|
-
# white and copying it over to the window.
|
44
|
-
#
|
45
|
-
def slotClearArea()
|
46
|
-
# fill the off screen buffer with plain white
|
47
|
-
@_buffer.fill( white )
|
48
|
-
|
49
|
-
# and copy it over to the window
|
50
|
-
bitBlt( self, 0, 0, @_buffer )
|
51
|
-
end
|
52
|
-
|
53
|
-
|
54
|
-
#
|
55
|
-
# This method does the actual loading. It relies on Qt::Pixmap (and the
|
56
|
-
# underlying I/O machinery) to determine the filetype.
|
57
|
-
#
|
58
|
-
def slotLoad( filename )
|
59
|
-
if !@_buffer.load( filename )
|
60
|
-
Qt::MessageBox.warning( nil, "Load error", "Could not load file" )
|
61
|
-
end
|
62
|
-
|
63
|
-
repaint() # refresh the window
|
64
|
-
end
|
65
|
-
|
66
|
-
|
67
|
-
#
|
68
|
-
# This method does the actual saving. We hard-code the file type as
|
69
|
-
# BMP. Unix users might want to replace this with something like XPM.
|
70
|
-
#
|
71
|
-
def slotSave( filename )
|
72
|
-
if !@_buffer.save( filename, "BMP" )
|
73
|
-
Qt::MessageBox.warning( nil, "Save error", "Could not save file" )
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
|
78
|
-
#
|
79
|
-
# This method is called whenever the user presses the
|
80
|
-
# mouse over the window. It just records the position of the mouse
|
81
|
-
# at the time of the click.
|
82
|
-
#
|
83
|
-
def mousePressEvent(event)
|
84
|
-
if event.button() == RightButton
|
85
|
-
@_popupmenu.exec( Qt::Cursor.pos() )
|
86
|
-
else
|
87
|
-
@_last = event.pos() # retrieve the coordinates from the event
|
88
|
-
end
|
89
|
-
end
|
90
|
-
|
91
|
-
|
92
|
-
#
|
93
|
-
# The method is called whenever the usr moves the mouse
|
94
|
-
# while the mouse button is pressed. If we had called
|
95
|
-
# setMouseTracking(true) before, the method would also be called
|
96
|
-
# when the mouse was moved with any button pressed. We know that
|
97
|
-
# we haven't, and thus don't have to check whether any buttons are
|
98
|
-
# pressed.
|
99
|
-
#
|
100
|
-
def mouseMoveEvent(event)
|
101
|
-
# create a Qt::Painter object for drawing onto the window
|
102
|
-
windowpainter = Qt::Painter.new()
|
103
|
-
# and another Qt::Painter object for drawing int an off-screen pixmap
|
104
|
-
bufferpainter = Qt::Painter.new()
|
105
|
-
|
106
|
-
# start painting
|
107
|
-
windowpainter.begin( self ) # This painter paints onto the window
|
108
|
-
bufferpainter.begin( @_buffer ) # and this one paints in the buffer
|
109
|
-
|
110
|
-
# set a standard pen with the currently selected color
|
111
|
-
windowpainter.setPen( @_currentcolor )
|
112
|
-
bufferpainter.setPen( @_currentcolor )
|
113
|
-
|
114
|
-
# draw a line in both the window and the buffer
|
115
|
-
windowpainter.drawLine( @_last, event.pos() )
|
116
|
-
bufferpainter.drawLine( @_last, event.pos() )
|
117
|
-
|
118
|
-
# done with painting
|
119
|
-
windowpainter.end()
|
120
|
-
bufferpainter.end()
|
121
|
-
|
122
|
-
# remember the current mouse position
|
123
|
-
@_last = event.pos()
|
124
|
-
end
|
125
|
-
|
126
|
-
#
|
127
|
-
# This method is called whenever the widget needs
|
128
|
-
# painting, for example when it has been obscured and then revealed again.
|
129
|
-
#
|
130
|
-
def paintEvent(event)
|
131
|
-
bitBlt(self, 0, 0, @_buffer)
|
132
|
-
end
|
133
|
-
|
134
|
-
#
|
135
|
-
# This method get called whenever the widget needs
|
136
|
-
# painting, for example, when it has been obscured and then revealed again.
|
137
|
-
#
|
138
|
-
def resizeEvent(event)
|
139
|
-
save = Qt::Pixmap.new( @_buffer )
|
140
|
-
@_buffer = save.scaled(event.size.width, event.size.height)
|
141
|
-
@_buffer.fill( Qt::Color.new(Qt::white) )
|
142
|
-
drawPixmap( @_buffer, 0, 0, save )
|
143
|
-
end
|
144
|
-
end
|
145
|
-
|
146
|
-
class ScribbleWindow < Qt::Widget
|
147
|
-
|
148
|
-
slots "slotAbout()", "slotAboutQt()", "slotColorMenu(int)", "slotLoad()", "slotSave()"
|
149
|
-
signals "colorChanged(QColor)", "load(const QString&)", "save(const QString&)"
|
150
|
-
|
151
|
-
COLOR_MENU_ID_BLACK = 0
|
152
|
-
COLOR_MENU_ID_RED = 1
|
153
|
-
COLOR_MENU_ID_BLUE = 2
|
154
|
-
COLOR_MENU_ID_GREEN = 3
|
155
|
-
COLOR_MENU_ID_YELLOW = 4
|
156
|
-
|
157
|
-
def initialize()
|
158
|
-
super
|
159
|
-
# The next lines build the menu bar. We first create the menus
|
160
|
-
# one by one, then add them to the menu bar. #
|
161
|
-
@_menubar = Qt::MenuBar.new( self ) # create a menu bar
|
162
|
-
|
163
|
-
@_filemenu = @_menubar.addMenu( "&File" ) # create a file menu
|
164
|
-
@_filemenu.addAction( "&Load", self, SLOT( "slotLoad()" ) )
|
165
|
-
@_filemenu.addAction( "&Save", self, SLOT( "slotSave()" ) )
|
166
|
-
@_filemenu.addSeparator()
|
167
|
-
@_filemenu.addAction( "&Quit", $qApp, SLOT( "quit()" ) )
|
168
|
-
|
169
|
-
@_colormenu = @_menubar.addMenu( "&Color" ) # create a color menu
|
170
|
-
# @_colormenu.addAction( "B&lack", COLOR_MENU_ID_BLACK)
|
171
|
-
# @_colormenu.addAction( "&Red", COLOR_MENU_ID_RED)
|
172
|
-
# @_colormenu.addAction( "&Blue", COLOR_MENU_ID_BLUE)
|
173
|
-
# @_colormenu.addAction( "&Green", COLOR_MENU_ID_GREEN)
|
174
|
-
# @_colormenu.addAction( "&Yellow", COLOR_MENU_ID_YELLOW)
|
175
|
-
# Qt::Object.connect( @_colormenu, SIGNAL( "activated( int )" ),
|
176
|
-
# self, SLOT( "slotColorMenu( int )" ) )
|
177
|
-
|
178
|
-
@_helpmenu = @_menubar.addMenu( "&Help" ) # create a help menu
|
179
|
-
@_helpmenu.addAction( "&About QtScribble", self, SLOT( "slotAbout()" ) )
|
180
|
-
@_helpmenu.addAction( "&About Qt", self, SLOT( "slotAboutQt()" ) )
|
181
|
-
|
182
|
-
# We create a Qt::ScrollView and a ScribbleArea. The ScribbleArea will
|
183
|
-
# be managed by the scroll view.#
|
184
|
-
@_scrollview = Qt::ScrollArea.new( self )
|
185
|
-
@_scrollview.setGeometry( 0, @_menubar.height(),
|
186
|
-
width(), height() - @_menubar.height() )
|
187
|
-
@_scribblearea = ScribbleArea.new( @_scrollview )
|
188
|
-
@_scribblearea.setGeometry( 0, 0, 1000, 1000 )
|
189
|
-
# @_scrollview.addChild( @_scribblearea )
|
190
|
-
Qt::Object.connect( self, SIGNAL( "colorChanged(QColor)" ),
|
191
|
-
@_scribblearea, SLOT( "setColor(QColor)" ) )
|
192
|
-
Qt::Object.connect( self, SIGNAL( "save(const QString&)" ),
|
193
|
-
@_scribblearea, SLOT( "slotSave(const QString&)" ) )
|
194
|
-
Qt::Object.connect( self, SIGNAL( "load(const QString&)" ),
|
195
|
-
@_scribblearea, SLOT( "slotLoad(const QString&)" ) )
|
196
|
-
end
|
197
|
-
|
198
|
-
def resizeEvent( event )
|
199
|
-
# When the whole window is resized, we have to rearrange the geometry
|
200
|
-
# in the ScribbleWindow as well. Note that the ScribbleArea does not need
|
201
|
-
# to be changed.
|
202
|
-
@_scrollview.setGeometry( 0, @_menubar.height(),
|
203
|
-
width(), height() - @_menubar.height() )
|
204
|
-
end
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
def slotAbout()
|
209
|
-
Qt::MessageBox.information( self, "About QtScribble 5",
|
210
|
-
"This is the Scribble 5 application\n" +
|
211
|
-
"Copyright 1998 by Mathias Kalle Dalheimer\n")
|
212
|
-
end
|
213
|
-
|
214
|
-
def slotAboutQt()
|
215
|
-
Qt::MessageBox.aboutQt( self, "About Qt" )
|
216
|
-
end
|
217
|
-
|
218
|
-
def slotColorMenu( item )
|
219
|
-
case item
|
220
|
-
when COLOR_MENU_ID_BLACK
|
221
|
-
emit colorChanged( black )
|
222
|
-
when COLOR_MENU_ID_RED
|
223
|
-
emit colorChanged( darkRed )
|
224
|
-
when COLOR_MENU_ID_BLUE
|
225
|
-
emit colorChanged( darkBlue )
|
226
|
-
when COLOR_MENU_ID_GREEN
|
227
|
-
emit colorChanged( darkGreen )
|
228
|
-
when COLOR_MENU_ID_YELLOW
|
229
|
-
emit colorChanged( yellow )
|
230
|
-
end
|
231
|
-
end
|
232
|
-
|
233
|
-
|
234
|
-
#
|
235
|
-
# This is the slot for the menu item File/Load. It opens a
|
236
|
-
# Qt::FileDialog to ask the user for a filename, then emits a save()
|
237
|
-
# signal with the filename as parameter.
|
238
|
-
#
|
239
|
-
def slotLoad()
|
240
|
-
# Open a file dialog for loading. The default directory is the
|
241
|
-
# current directory, the filter *.bmp.
|
242
|
-
#
|
243
|
-
filename = Qt::FileDialog.getOpenFileName( ".", "*.bmp", self )
|
244
|
-
if !filename.nil?
|
245
|
-
emit load( filename )
|
246
|
-
end
|
247
|
-
end
|
248
|
-
|
249
|
-
#
|
250
|
-
# This is the slot for the menu item File/Load. It opens a
|
251
|
-
# Qt::FileDialog to ask the user for a filename, then emits a save()
|
252
|
-
# signal with the filename as parameter.
|
253
|
-
#
|
254
|
-
def slotSave()
|
255
|
-
# Open a file dialog for saving. The default directory is the
|
256
|
-
# current directory, the filter *.bmp.
|
257
|
-
#
|
258
|
-
filename = Qt::FileDialog.getSaveFileName( ".", "*.bmp", self )
|
259
|
-
if !filename.nil?
|
260
|
-
emit save( filename )
|
261
|
-
end
|
262
|
-
end
|
263
|
-
end
|
264
|
-
|
265
|
-
myapp = Qt::Application.new(ARGV)
|
266
|
-
mywidget = ScribbleWindow.new()
|
267
|
-
mywidget.setGeometry(50, 500, 400, 400)
|
268
|
-
|
269
|
-
mywidget.show()
|
270
|
-
myapp.exec()
|
@@ -1,54 +0,0 @@
|
|
1
|
-
class KIconCollection
|
2
|
-
IconInfo = Struct.new(:collection, :id, :filetype)
|
3
|
-
def initialize(icon_collections)
|
4
|
-
@icon_info = {}
|
5
|
-
icon_collections.each_pair {
|
6
|
-
|collection_name, collection|
|
7
|
-
collection.each_pair {
|
8
|
-
|key, value|
|
9
|
-
info = IconInfo.new(collection_name, value, "png")
|
10
|
-
@icon_info[key] = info
|
11
|
-
}
|
12
|
-
}
|
13
|
-
end
|
14
|
-
def dims
|
15
|
-
"32x32"
|
16
|
-
end
|
17
|
-
def kdedir
|
18
|
-
ENV["KDEDIR"]
|
19
|
-
end
|
20
|
-
def get_icon_path(icon_type)
|
21
|
-
info = @icon_info[icon_type]
|
22
|
-
"#{kdedir}/share/icons/default.kde/#{dims}/#{info.collection}/#{info.id}.#{info.filetype}"
|
23
|
-
end
|
24
|
-
def get_icon_set(icon_type)
|
25
|
-
path = get_icon_path(icon_type)
|
26
|
-
pixmap = Qt::Pixmap.new(path)
|
27
|
-
icon_set = Qt::IconSet.new
|
28
|
-
icon_set.setPixmap(pixmap, Qt::IconSet.Small)
|
29
|
-
icon_set
|
30
|
-
end
|
31
|
-
def make_qt_action(parent, text_with_accel, icon_type)
|
32
|
-
act = Qt::Action.new(parent)
|
33
|
-
act.setIconSet(get_icon_set(icon_type))
|
34
|
-
act.setMenuText(text_with_accel)
|
35
|
-
act
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
module Icons
|
40
|
-
FILE_NEW, FILE_OPEN, FILE_CLOSE, FILE_SAVE, FILE_SAVE_AS, EXIT = 1,2,3,4,5,6
|
41
|
-
end
|
42
|
-
|
43
|
-
icon_collections = {
|
44
|
-
"actions" => {
|
45
|
-
Icons::FILE_NEW => "filenew",
|
46
|
-
Icons::FILE_OPEN => "fileopen",
|
47
|
-
Icons::FILE_CLOSE => "fileclose",
|
48
|
-
Icons::FILE_SAVE => "filesave",
|
49
|
-
Icons::FILE_SAVE_AS => "filesaveas",
|
50
|
-
Icons::EXIT => "exit"
|
51
|
-
}
|
52
|
-
}
|
53
|
-
$kIcons = KIconCollection.new(icon_collections)
|
54
|
-
print "Using KDEDIR == ", $kIcons.kdedir, "\n"
|
@@ -1,21 +0,0 @@
|
|
1
|
-
require '../base/kicons.rb'
|
2
|
-
|
3
|
-
RAction = Struct.new(:text_with_accel, :icon_type, :rec, :slot, :included_in, :action)
|
4
|
-
RSeperator = Struct.new(:included_in, :id)
|
5
|
-
|
6
|
-
def build_actions(actions)
|
7
|
-
actions.each { |a|
|
8
|
-
if a.is_a? RSeperator
|
9
|
-
a.included_in.each {
|
10
|
-
|to| a.id = to.insertSeparator()
|
11
|
-
}
|
12
|
-
else
|
13
|
-
qt_action = $kIcons.make_qt_action(self, a.text_with_accel, a.icon_type)
|
14
|
-
connect(qt_action, SIGNAL('activated()'), a.rec, a.slot)
|
15
|
-
a.included_in.each {
|
16
|
-
|to| qt_action.addTo(to)
|
17
|
-
}
|
18
|
-
a.action = qt_action
|
19
|
-
end
|
20
|
-
}
|
21
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
**
|
3
|
-
** Copyright (C) 2004-2005 Trolltech AS. All rights reserved.
|
4
|
-
**
|
5
|
-
** This file is part of the example classes of the Qt Toolkit.
|
6
|
-
**
|
7
|
-
** This file may be used under the terms of the GNU General Public
|
8
|
-
** License version 2.0 as published by the Free Software Foundation
|
9
|
-
** and appearing in the file LICENSE.GPL included in the packaging of
|
10
|
-
** this file. Please review the following information to ensure GNU
|
11
|
-
** General Public Licensing requirements will be met:
|
12
|
-
** http://www.trolltech.com/products/qt/opensource.html
|
13
|
-
**
|
14
|
-
** If you are unsure which license is appropriate for your use, please
|
15
|
-
** review the following information:
|
16
|
-
** http://www.trolltech.com/products/qt/licensing.html or contact the
|
17
|
-
** sales department at sales@trolltech.com.
|
18
|
-
**
|
19
|
-
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
|
20
|
-
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
21
|
-
**
|
22
|
-
|
23
|
-
** Translated to QtRuby by Richard Dale
|
24
|
-
=end
|
25
|
-
|
26
|
-
class CalculatorForm < Qt::Widget
|
27
|
-
|
28
|
-
slots 'on_inputSpinBox1_valueChanged(int)',
|
29
|
-
'on_inputSpinBox2_valueChanged(int)'
|
30
|
-
|
31
|
-
def initialize(parent = nil)
|
32
|
-
super(parent)
|
33
|
-
loader = Qt::UiLoader.new
|
34
|
-
|
35
|
-
file = Qt::File.new(":/forms/calculatorform.ui")
|
36
|
-
file.open(Qt::File::ReadOnly)
|
37
|
-
formWidget = loader.load(file, self)
|
38
|
-
file.close
|
39
|
-
|
40
|
-
@ui_inputSpinBox1 = findChild(Qt::SpinBox, "inputSpinBox1")
|
41
|
-
@ui_inputSpinBox2 = findChild(Qt::SpinBox, "inputSpinBox2")
|
42
|
-
@ui_outputWidget = findChild(Qt::Label, "outputWidget")
|
43
|
-
|
44
|
-
Qt::MetaObject.connectSlotsByName(self)
|
45
|
-
|
46
|
-
self.layout = Qt::VBoxLayout.new do |l|
|
47
|
-
l.addWidget(formWidget)
|
48
|
-
end
|
49
|
-
|
50
|
-
self.windowTitle = tr("Calculator Builder")
|
51
|
-
end
|
52
|
-
|
53
|
-
def on_inputSpinBox1_valueChanged(value)
|
54
|
-
@ui_outputWidget.text = (value + @ui_inputSpinBox2.value).to_s
|
55
|
-
end
|
56
|
-
|
57
|
-
def on_inputSpinBox2_valueChanged(value)
|
58
|
-
@ui_outputWidget.text = (value + @ui_inputSpinBox1.value).to_s
|
59
|
-
end
|
60
|
-
end
|
@@ -1,299 +0,0 @@
|
|
1
|
-
<ui version="4.0" >
|
2
|
-
<class>CalculatorForm</class>
|
3
|
-
<widget class="QWidget" name="CalculatorForm" >
|
4
|
-
<property name="objectName" >
|
5
|
-
<string notr="true" >CalculatorForm</string>
|
6
|
-
</property>
|
7
|
-
<property name="geometry" >
|
8
|
-
<rect>
|
9
|
-
<x>0</x>
|
10
|
-
<y>0</y>
|
11
|
-
<width>276</width>
|
12
|
-
<height>98</height>
|
13
|
-
</rect>
|
14
|
-
</property>
|
15
|
-
<property name="sizePolicy" >
|
16
|
-
<sizepolicy>
|
17
|
-
<hsizetype>5</hsizetype>
|
18
|
-
<vsizetype>5</vsizetype>
|
19
|
-
<horstretch>0</horstretch>
|
20
|
-
<verstretch>0</verstretch>
|
21
|
-
</sizepolicy>
|
22
|
-
</property>
|
23
|
-
<property name="windowTitle" >
|
24
|
-
<string>Calculator Builder</string>
|
25
|
-
</property>
|
26
|
-
<layout class="QGridLayout" >
|
27
|
-
<property name="objectName" >
|
28
|
-
<string notr="true" />
|
29
|
-
</property>
|
30
|
-
<property name="margin" >
|
31
|
-
<number>9</number>
|
32
|
-
</property>
|
33
|
-
<property name="spacing" >
|
34
|
-
<number>6</number>
|
35
|
-
</property>
|
36
|
-
<item row="0" column="0" >
|
37
|
-
<layout class="QHBoxLayout" >
|
38
|
-
<property name="objectName" >
|
39
|
-
<string notr="true" />
|
40
|
-
</property>
|
41
|
-
<property name="margin" >
|
42
|
-
<number>1</number>
|
43
|
-
</property>
|
44
|
-
<property name="spacing" >
|
45
|
-
<number>6</number>
|
46
|
-
</property>
|
47
|
-
<item>
|
48
|
-
<layout class="QVBoxLayout" >
|
49
|
-
<property name="objectName" >
|
50
|
-
<string notr="true" />
|
51
|
-
</property>
|
52
|
-
<property name="margin" >
|
53
|
-
<number>1</number>
|
54
|
-
</property>
|
55
|
-
<property name="spacing" >
|
56
|
-
<number>6</number>
|
57
|
-
</property>
|
58
|
-
<item>
|
59
|
-
<widget class="QLabel" name="label" >
|
60
|
-
<property name="objectName" >
|
61
|
-
<string notr="true" >label</string>
|
62
|
-
</property>
|
63
|
-
<property name="geometry" >
|
64
|
-
<rect>
|
65
|
-
<x>1</x>
|
66
|
-
<y>1</y>
|
67
|
-
<width>45</width>
|
68
|
-
<height>19</height>
|
69
|
-
</rect>
|
70
|
-
</property>
|
71
|
-
<property name="text" >
|
72
|
-
<string>Input 1</string>
|
73
|
-
</property>
|
74
|
-
</widget>
|
75
|
-
</item>
|
76
|
-
<item>
|
77
|
-
<widget class="QSpinBox" name="inputSpinBox1" >
|
78
|
-
<property name="objectName" >
|
79
|
-
<string notr="true" >inputSpinBox1</string>
|
80
|
-
</property>
|
81
|
-
<property name="geometry" >
|
82
|
-
<rect>
|
83
|
-
<x>1</x>
|
84
|
-
<y>26</y>
|
85
|
-
<width>45</width>
|
86
|
-
<height>25</height>
|
87
|
-
</rect>
|
88
|
-
</property>
|
89
|
-
<property name="mouseTracking" >
|
90
|
-
<bool>true</bool>
|
91
|
-
</property>
|
92
|
-
</widget>
|
93
|
-
</item>
|
94
|
-
</layout>
|
95
|
-
</item>
|
96
|
-
<item>
|
97
|
-
<widget class="QLabel" name="label_3" >
|
98
|
-
<property name="objectName" >
|
99
|
-
<string notr="true" >label_3</string>
|
100
|
-
</property>
|
101
|
-
<property name="geometry" >
|
102
|
-
<rect>
|
103
|
-
<x>54</x>
|
104
|
-
<y>1</y>
|
105
|
-
<width>7</width>
|
106
|
-
<height>52</height>
|
107
|
-
</rect>
|
108
|
-
</property>
|
109
|
-
<property name="text" >
|
110
|
-
<string>+</string>
|
111
|
-
</property>
|
112
|
-
<property name="alignment" >
|
113
|
-
<set>Qt::AlignCenter</set>
|
114
|
-
</property>
|
115
|
-
</widget>
|
116
|
-
</item>
|
117
|
-
<item>
|
118
|
-
<layout class="QVBoxLayout" >
|
119
|
-
<property name="objectName" >
|
120
|
-
<string notr="true" />
|
121
|
-
</property>
|
122
|
-
<property name="margin" >
|
123
|
-
<number>1</number>
|
124
|
-
</property>
|
125
|
-
<property name="spacing" >
|
126
|
-
<number>6</number>
|
127
|
-
</property>
|
128
|
-
<item>
|
129
|
-
<widget class="QLabel" name="label_2" >
|
130
|
-
<property name="objectName" >
|
131
|
-
<string notr="true" >label_2</string>
|
132
|
-
</property>
|
133
|
-
<property name="geometry" >
|
134
|
-
<rect>
|
135
|
-
<x>1</x>
|
136
|
-
<y>1</y>
|
137
|
-
<width>45</width>
|
138
|
-
<height>19</height>
|
139
|
-
</rect>
|
140
|
-
</property>
|
141
|
-
<property name="text" >
|
142
|
-
<string>Input 2</string>
|
143
|
-
</property>
|
144
|
-
</widget>
|
145
|
-
</item>
|
146
|
-
<item>
|
147
|
-
<widget class="QSpinBox" name="inputSpinBox2" >
|
148
|
-
<property name="objectName" >
|
149
|
-
<string notr="true" >inputSpinBox2</string>
|
150
|
-
</property>
|
151
|
-
<property name="geometry" >
|
152
|
-
<rect>
|
153
|
-
<x>1</x>
|
154
|
-
<y>26</y>
|
155
|
-
<width>45</width>
|
156
|
-
<height>25</height>
|
157
|
-
</rect>
|
158
|
-
</property>
|
159
|
-
<property name="mouseTracking" >
|
160
|
-
<bool>true</bool>
|
161
|
-
</property>
|
162
|
-
</widget>
|
163
|
-
</item>
|
164
|
-
</layout>
|
165
|
-
</item>
|
166
|
-
<item>
|
167
|
-
<widget class="QLabel" name="label_3_2" >
|
168
|
-
<property name="objectName" >
|
169
|
-
<string notr="true" >label_3_2</string>
|
170
|
-
</property>
|
171
|
-
<property name="geometry" >
|
172
|
-
<rect>
|
173
|
-
<x>120</x>
|
174
|
-
<y>1</y>
|
175
|
-
<width>7</width>
|
176
|
-
<height>52</height>
|
177
|
-
</rect>
|
178
|
-
</property>
|
179
|
-
<property name="text" >
|
180
|
-
<string>=</string>
|
181
|
-
</property>
|
182
|
-
<property name="alignment" >
|
183
|
-
<set>Qt::AlignCenter</set>
|
184
|
-
</property>
|
185
|
-
</widget>
|
186
|
-
</item>
|
187
|
-
<item>
|
188
|
-
<layout class="QVBoxLayout" >
|
189
|
-
<property name="objectName" >
|
190
|
-
<string notr="true" />
|
191
|
-
</property>
|
192
|
-
<property name="margin" >
|
193
|
-
<number>1</number>
|
194
|
-
</property>
|
195
|
-
<property name="spacing" >
|
196
|
-
<number>6</number>
|
197
|
-
</property>
|
198
|
-
<item>
|
199
|
-
<widget class="QLabel" name="label_2_2_2" >
|
200
|
-
<property name="objectName" >
|
201
|
-
<string notr="true" >label_2_2_2</string>
|
202
|
-
</property>
|
203
|
-
<property name="geometry" >
|
204
|
-
<rect>
|
205
|
-
<x>1</x>
|
206
|
-
<y>1</y>
|
207
|
-
<width>37</width>
|
208
|
-
<height>17</height>
|
209
|
-
</rect>
|
210
|
-
</property>
|
211
|
-
<property name="text" >
|
212
|
-
<string>Output</string>
|
213
|
-
</property>
|
214
|
-
</widget>
|
215
|
-
</item>
|
216
|
-
<item>
|
217
|
-
<widget class="QLabel" name="outputWidget" >
|
218
|
-
<property name="objectName" >
|
219
|
-
<string notr="true" >outputWidget</string>
|
220
|
-
</property>
|
221
|
-
<property name="geometry" >
|
222
|
-
<rect>
|
223
|
-
<x>1</x>
|
224
|
-
<y>24</y>
|
225
|
-
<width>37</width>
|
226
|
-
<height>27</height>
|
227
|
-
</rect>
|
228
|
-
</property>
|
229
|
-
<property name="frameShape" >
|
230
|
-
<enum>QFrame::Box</enum>
|
231
|
-
</property>
|
232
|
-
<property name="frameShadow" >
|
233
|
-
<enum>QFrame::Sunken</enum>
|
234
|
-
</property>
|
235
|
-
<property name="text" >
|
236
|
-
<string>0</string>
|
237
|
-
</property>
|
238
|
-
<property name="alignment" >
|
239
|
-
<set>Qt::AlignAbsolute|Qt::AlignBottom|Qt::AlignCenter|Qt::AlignHCenter|Qt::AlignHorizontal_Mask|Qt::AlignJustify|Qt::AlignLeading|Qt::AlignLeft|Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing|Qt::AlignVCenter|Qt::AlignVertical_Mask</set>
|
240
|
-
</property>
|
241
|
-
</widget>
|
242
|
-
</item>
|
243
|
-
</layout>
|
244
|
-
</item>
|
245
|
-
</layout>
|
246
|
-
</item>
|
247
|
-
<item row="1" column="0" >
|
248
|
-
<spacer>
|
249
|
-
<property name="objectName" >
|
250
|
-
<string notr="true" >verticalSpacer</string>
|
251
|
-
</property>
|
252
|
-
<property name="geometry" >
|
253
|
-
<rect>
|
254
|
-
<x>85</x>
|
255
|
-
<y>69</y>
|
256
|
-
<width>20</width>
|
257
|
-
<height>20</height>
|
258
|
-
</rect>
|
259
|
-
</property>
|
260
|
-
<property name="orientation" >
|
261
|
-
<enum>Qt::Vertical</enum>
|
262
|
-
</property>
|
263
|
-
<property name="sizeHint" >
|
264
|
-
<size>
|
265
|
-
<width>20</width>
|
266
|
-
<height>40</height>
|
267
|
-
</size>
|
268
|
-
</property>
|
269
|
-
</spacer>
|
270
|
-
</item>
|
271
|
-
<item row="0" column="1" >
|
272
|
-
<spacer>
|
273
|
-
<property name="objectName" >
|
274
|
-
<string notr="true" >horizontalSpacer</string>
|
275
|
-
</property>
|
276
|
-
<property name="geometry" >
|
277
|
-
<rect>
|
278
|
-
<x>188</x>
|
279
|
-
<y>26</y>
|
280
|
-
<width>79</width>
|
281
|
-
<height>20</height>
|
282
|
-
</rect>
|
283
|
-
</property>
|
284
|
-
<property name="orientation" >
|
285
|
-
<enum>Qt::Horizontal</enum>
|
286
|
-
</property>
|
287
|
-
<property name="sizeHint" >
|
288
|
-
<size>
|
289
|
-
<width>40</width>
|
290
|
-
<height>20</height>
|
291
|
-
</size>
|
292
|
-
</property>
|
293
|
-
</spacer>
|
294
|
-
</item>
|
295
|
-
</layout>
|
296
|
-
</widget>
|
297
|
-
<resources/>
|
298
|
-
<connections/>
|
299
|
-
</ui>
|