qtruby4 2.1.0.b-mswin32 → 2.1.0-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/Qt3Support4.dll +0 -0
- data/bin/QtAssistantClient4.dll +0 -0
- data/bin/QtCLucene4.dll +0 -0
- data/bin/QtCore4.dll +0 -0
- data/bin/QtDesigner4.dll +0 -0
- data/bin/QtDesignerComponents4.dll +0 -0
- data/bin/QtGui4.dll +0 -0
- data/bin/QtHelp4.dll +0 -0
- data/bin/QtMultimedia4.dll +0 -0
- data/bin/QtNetwork4.dll +0 -0
- data/bin/QtOpenGL4.dll +0 -0
- data/bin/QtScript4.dll +0 -0
- data/bin/QtScriptTools4.dll +0 -0
- data/bin/QtSql4.dll +0 -0
- data/bin/QtSvg4.dll +0 -0
- data/bin/QtTest4.dll +0 -0
- data/bin/QtWebKit4.dll +0 -0
- data/bin/QtXml4.dll +0 -0
- data/bin/QtXmlPatterns4.dll +0 -0
- data/bin/accessible/qtaccessiblecompatwidgets4.dll +0 -0
- data/bin/accessible/qtaccessiblewidgets4.dll +0 -0
- data/bin/assistant.exe +0 -0
- data/bin/assistant_adp.exe +0 -0
- data/bin/codecs/qcncodecs4.dll +0 -0
- data/bin/codecs/qjpcodecs4.dll +0 -0
- data/bin/codecs/qkrcodecs4.dll +0 -0
- data/bin/codecs/qtwcodecs4.dll +0 -0
- data/bin/designer.exe +0 -0
- data/bin/designer/arthurplugin.dll +0 -0
- data/bin/designer/containerextension.dll +0 -0
- data/bin/designer/customwidgetplugin.dll +0 -0
- data/bin/designer/phononwidgets.dll +0 -0
- data/bin/designer/qt3supportwidgets.dll +0 -0
- data/bin/designer/qwebview.dll +0 -0
- data/bin/designer/taskmenuextension.dll +0 -0
- data/bin/designer/worldtimeclockplugin.dll +0 -0
- data/bin/graphicssystems/qglgraphicssystem4.dll +0 -0
- data/bin/graphicssystems/qtracegraphicssystem4.dll +0 -0
- data/bin/iconengines/qsvgicon4.dll +0 -0
- data/bin/imageformats/qgif4.dll +0 -0
- data/bin/imageformats/qico4.dll +0 -0
- data/bin/imageformats/qjpeg4.dll +0 -0
- data/bin/imageformats/qmng4.dll +0 -0
- data/bin/imageformats/qsvg4.dll +0 -0
- data/bin/imageformats/qtiff4.dll +0 -0
- data/bin/linguist.exe +0 -0
- data/bin/phonon4.dll +0 -0
- data/bin/phonon_backend/phonon_ds94.dll +0 -0
- data/bin/qtruby4shared.dll +0 -0
- data/bin/rbqtapi +152 -0
- data/bin/rbrcc.exe +0 -0
- data/bin/rbuic4.exe +0 -0
- data/bin/smokeqt.dll +0 -0
- data/bin/smokeqtcore.dll +0 -0
- data/bin/smokeqtgui.dll +0 -0
- data/bin/smokeqtmultimedia.dll +0 -0
- data/bin/smokeqtnetwork.dll +0 -0
- data/bin/smokeqtopengl.dll +0 -0
- data/bin/smokeqtscript.dll +0 -0
- data/bin/smokeqtsql.dll +0 -0
- data/bin/smokeqtsvg.dll +0 -0
- data/bin/smokeqttest.dll +0 -0
- data/bin/smokeqtuitools.dll +0 -0
- data/bin/smokeqtwebkit.dll +0 -0
- data/bin/smokeqtxml.dll +0 -0
- data/bin/smokeqtxmlpatterns.dll +0 -0
- data/bin/sqldrivers/qsqlite4.dll +0 -0
- data/bin/sqldrivers/qsqlodbc4.dll +0 -0
- data/bin/sqldrivers/qsqlpsql4.dll +0 -0
- data/examples/base/kicons.rb +54 -0
- data/examples/base/rui.rb +21 -0
- data/examples/designer/calculatorbuilder/calculatorbuilder.qrc +5 -0
- data/examples/designer/calculatorbuilder/calculatorform.rb +60 -0
- data/examples/designer/calculatorbuilder/calculatorform.ui +299 -0
- data/examples/designer/calculatorbuilder/main.rb +33 -0
- data/examples/designer/calculatorbuilder/makefile +2 -0
- data/examples/designer/calculatorform/calculatorform.rb +46 -0
- data/examples/designer/calculatorform/calculatorform.ui +277 -0
- data/examples/designer/calculatorform/main.rb +32 -0
- data/examples/designer/calculatorform/makefile +3 -0
- data/examples/desktop/screenshot/main.rb +32 -0
- data/examples/desktop/screenshot/screenshot.rb +156 -0
- data/examples/desktop/systray/images/bad.svg +64 -0
- data/examples/desktop/systray/images/heart.svg +55 -0
- data/examples/desktop/systray/images/trash.svg +58 -0
- data/examples/desktop/systray/main.rb +41 -0
- data/examples/desktop/systray/makefile +2 -0
- data/examples/desktop/systray/systray.qrc +7 -0
- data/examples/desktop/systray/window.rb +223 -0
- data/examples/dialogs/complexwizard/complexwizard.rb +140 -0
- data/examples/dialogs/complexwizard/licensewizard.rb +294 -0
- data/examples/dialogs/complexwizard/main.rb +31 -0
- data/examples/dialogs/configdialog/configdialog.rb +109 -0
- data/examples/dialogs/configdialog/images/config.png +0 -0
- data/examples/dialogs/configdialog/images/query.png +0 -0
- data/examples/dialogs/configdialog/images/update.png +0 -0
- data/examples/dialogs/configdialog/main.rb +31 -0
- data/examples/dialogs/configdialog/pages.rb +140 -0
- data/examples/dialogs/extension/finddialog.rb +89 -0
- data/examples/dialogs/extension/main.rb +31 -0
- data/examples/dialogs/findfiles/main.rb +32 -0
- data/examples/dialogs/findfiles/window.rb +177 -0
- data/examples/dialogs/simplewizard/classwizard.rb +374 -0
- data/examples/dialogs/simplewizard/main.rb +31 -0
- data/examples/dialogs/simplewizard/simplewizard.rb +110 -0
- data/examples/dialogs/standarddialogs/dialog.rb +340 -0
- data/examples/dialogs/standarddialogs/main.rb +31 -0
- data/examples/dialogs/tabdialog/main.rb +38 -0
- data/examples/dialogs/tabdialog/tabdialog.rb +178 -0
- data/examples/draganddrop/draggableicons/dragwidget.rb +125 -0
- data/examples/draganddrop/draggableicons/images/boat.png +0 -0
- data/examples/draganddrop/draggableicons/images/car.png +0 -0
- data/examples/draganddrop/draggableicons/images/house.png +0 -0
- data/examples/draganddrop/draggableicons/main.rb +41 -0
- data/examples/draganddrop/draggabletext/draglabel.rb +51 -0
- data/examples/draganddrop/draggabletext/dragwidget.rb +94 -0
- data/examples/draganddrop/draggabletext/main.rb +33 -0
- data/examples/draganddrop/draggabletext/words.txt +41 -0
- data/examples/draganddrop/dropsite/dropsitewidget.rb +98 -0
- data/examples/draganddrop/dropsite/dropsitewindow.rb +114 -0
- data/examples/draganddrop/dropsite/main.rb +33 -0
- data/examples/draganddrop/fridgemagnets/draglabel.rb +78 -0
- data/examples/draganddrop/fridgemagnets/dragwidget.rb +130 -0
- data/examples/draganddrop/fridgemagnets/main.rb +33 -0
- data/examples/draganddrop/fridgemagnets/words.txt +48 -0
- data/examples/draganddrop/puzzle/example.jpg +0 -0
- data/examples/draganddrop/puzzle/main.rb +33 -0
- data/examples/draganddrop/puzzle/mainwindow.rb +136 -0
- data/examples/draganddrop/puzzle/pieceslist.rb +95 -0
- data/examples/draganddrop/puzzle/puzzlewidget.rb +190 -0
- data/examples/graphicsview/collidingmice/images/cheese.jpg +0 -0
- data/examples/graphicsview/collidingmice/main.rb +53 -0
- data/examples/graphicsview/collidingmice/makefile +2 -0
- data/examples/graphicsview/collidingmice/mice.qrc +5 -0
- data/examples/graphicsview/collidingmice/mouse.rb +176 -0
- data/examples/graphicsview/dragdroprobot/coloritem.rb +86 -0
- data/examples/graphicsview/dragdroprobot/images/head.png +0 -0
- data/examples/graphicsview/dragdroprobot/main.rb +57 -0
- data/examples/graphicsview/dragdroprobot/makefile +2 -0
- data/examples/graphicsview/dragdroprobot/robot.qrc +5 -0
- data/examples/graphicsview/dragdroprobot/robot.rb +246 -0
- data/examples/itemviews/chart/chart.qrc +5 -0
- data/examples/itemviews/chart/main.rb +33 -0
- data/examples/itemviews/chart/mainwindow.rb +151 -0
- data/examples/itemviews/chart/makefile +2 -0
- data/examples/itemviews/chart/mydata.cht +8 -0
- data/examples/itemviews/chart/pieview.rb +516 -0
- data/examples/itemviews/chart/qtdata.cht +14 -0
- data/examples/itemviews/dirview/main.rb +39 -0
- data/examples/itemviews/pixelator/imagemodel.rb +51 -0
- data/examples/itemviews/pixelator/images.qrc +5 -0
- data/examples/itemviews/pixelator/images/qt.png +0 -0
- data/examples/itemviews/pixelator/main.rb +34 -0
- data/examples/itemviews/pixelator/mainwindow.rb +218 -0
- data/examples/itemviews/pixelator/makefile +3 -0
- data/examples/itemviews/pixelator/pixeldelegate.rb +67 -0
- data/examples/itemviews/puzzle/example.jpg +0 -0
- data/examples/itemviews/puzzle/main.rb +36 -0
- data/examples/itemviews/puzzle/mainwindow.rb +143 -0
- data/examples/itemviews/puzzle/piecesmodel.rb +174 -0
- data/examples/itemviews/puzzle/puzzlewidget.rb +192 -0
- data/examples/itemviews/simpledommodel/domitem.rb +62 -0
- data/examples/itemviews/simpledommodel/dommodel.rb +139 -0
- data/examples/itemviews/simpledommodel/main.rb +33 -0
- data/examples/itemviews/simpledommodel/mainwindow.rb +66 -0
- data/examples/itemviews/simpletreemodel/default.txt +40 -0
- data/examples/itemviews/simpletreemodel/main.rb +41 -0
- data/examples/itemviews/simpletreemodel/makefile +2 -0
- data/examples/itemviews/simpletreemodel/simpletreemodel.qrc +5 -0
- data/examples/itemviews/simpletreemodel/treeitem.rb +67 -0
- data/examples/itemviews/simpletreemodel/treemodel.rb +164 -0
- data/examples/itemviews/sortingmodel/default.txt +40 -0
- data/examples/itemviews/sortingmodel/main.rb +53 -0
- data/examples/itemviews/sortingmodel/treeitem.rb +73 -0
- data/examples/itemviews/sortingmodel/treemodel.rb +166 -0
- data/examples/itemviews/spinboxdelegate/main.rb +47 -0
- data/examples/itemviews/spinboxdelegate/spinboxdelegate.rb +62 -0
- data/examples/killerfilter/killerfilter.rb +55 -0
- data/examples/layouts/basiclayouts/dialog.rb +110 -0
- data/examples/layouts/basiclayouts/main.rb +31 -0
- data/examples/layouts/borderlayout/borderlayout.rb +190 -0
- data/examples/layouts/borderlayout/main.rb +32 -0
- data/examples/layouts/borderlayout/window.rb +52 -0
- data/examples/layouts/flowlayouts/flowlayout.rb +108 -0
- data/examples/layouts/flowlayouts/main.rb +32 -0
- data/examples/layouts/flowlayouts/window.rb +43 -0
- data/examples/mainwindows/application/images/copy.png +0 -0
- data/examples/mainwindows/application/images/cut.png +0 -0
- data/examples/mainwindows/application/images/new.png +0 -0
- data/examples/mainwindows/application/images/open.png +0 -0
- data/examples/mainwindows/application/images/paste.png +0 -0
- data/examples/mainwindows/application/images/save.png +0 -0
- data/examples/mainwindows/application/main.rb +32 -0
- data/examples/mainwindows/application/mainwindow.rb +285 -0
- data/examples/mainwindows/dockwidgets/images/new.png +0 -0
- data/examples/mainwindows/dockwidgets/images/print.png +0 -0
- data/examples/mainwindows/dockwidgets/images/save.png +0 -0
- data/examples/mainwindows/dockwidgets/images/undo.png +0 -0
- data/examples/mainwindows/dockwidgets/main.rb +32 -0
- data/examples/mainwindows/dockwidgets/mainwindow.rb +302 -0
- data/examples/mainwindows/mdi/images/copy.png +0 -0
- data/examples/mainwindows/mdi/images/cut.png +0 -0
- data/examples/mainwindows/mdi/images/new.png +0 -0
- data/examples/mainwindows/mdi/images/open.png +0 -0
- data/examples/mainwindows/mdi/images/paste.png +0 -0
- data/examples/mainwindows/mdi/images/save.png +0 -0
- data/examples/mainwindows/mdi/main.rb +32 -0
- data/examples/mainwindows/mdi/mainwindow.rb +363 -0
- data/examples/mainwindows/mdi/mdichild.rb +152 -0
- data/examples/mainwindows/menus/main.rb +32 -0
- data/examples/mainwindows/menus/mainwindow.rb +327 -0
- data/examples/mainwindows/recentfiles/main.rb +32 -0
- data/examples/mainwindows/recentfiles/mainwindow.rb +258 -0
- data/examples/mainwindows/sdi/images/copy.png +0 -0
- data/examples/mainwindows/sdi/images/cut.png +0 -0
- data/examples/mainwindows/sdi/images/new.png +0 -0
- data/examples/mainwindows/sdi/images/open.png +0 -0
- data/examples/mainwindows/sdi/images/paste.png +0 -0
- data/examples/mainwindows/sdi/images/save.png +0 -0
- data/examples/mainwindows/sdi/main.rb +32 -0
- data/examples/mainwindows/sdi/mainwindow.rb +335 -0
- data/examples/network/broadcastreceiver/main.rb +32 -0
- data/examples/network/broadcastreceiver/receiver.rb +64 -0
- data/examples/network/broadcastsender/main.rb +32 -0
- data/examples/network/broadcastsender/sender.rb +70 -0
- data/examples/network/fortuneclient/client.rb +150 -0
- data/examples/network/fortuneclient/main.rb +32 -0
- data/examples/network/fortuneserver/main.rb +32 -0
- data/examples/network/fortuneserver/server.rb +88 -0
- data/examples/network/ftp/ftpwindow.rb +254 -0
- data/examples/network/ftp/images/cdtoparent.png +0 -0
- data/examples/network/ftp/images/dir.png +0 -0
- data/examples/network/ftp/images/file.png +0 -0
- data/examples/network/ftp/main.rb +32 -0
- data/examples/network/http/httpwindow.rb +187 -0
- data/examples/network/http/main.rb +32 -0
- data/examples/network/loopback/dialog.rb +163 -0
- data/examples/network/loopback/main.rb +32 -0
- data/examples/opengl/grabber/glwidget.rb +265 -0
- data/examples/opengl/grabber/main.rb +32 -0
- data/examples/opengl/grabber/mainwindow.rb +189 -0
- data/examples/opengl/hellogl/glwidget.rb +226 -0
- data/examples/opengl/hellogl/main.rb +32 -0
- data/examples/opengl/hellogl/window.rb +66 -0
- data/examples/opengl/textures/glwidget.rb +151 -0
- data/examples/opengl/textures/images/side1.png +0 -0
- data/examples/opengl/textures/images/side2.png +0 -0
- data/examples/opengl/textures/images/side3.png +0 -0
- data/examples/opengl/textures/images/side4.png +0 -0
- data/examples/opengl/textures/images/side5.png +0 -0
- data/examples/opengl/textures/images/side6.png +0 -0
- data/examples/opengl/textures/main.rb +32 -0
- data/examples/opengl/textures/window.rb +77 -0
- data/examples/painting/basicdrawing/images/brick.png +0 -0
- data/examples/painting/basicdrawing/images/qt-logo.png +0 -0
- data/examples/painting/basicdrawing/main.rb +32 -0
- data/examples/painting/basicdrawing/renderarea.rb +166 -0
- data/examples/painting/basicdrawing/window.rb +215 -0
- data/examples/painting/concentriccircles/circlewidget.rb +88 -0
- data/examples/painting/concentriccircles/main.rb +32 -0
- data/examples/painting/concentriccircles/window.rb +72 -0
- data/examples/painting/fontsampler/main.rb +32 -0
- data/examples/painting/fontsampler/mainwindow.rb +368 -0
- data/examples/painting/fontsampler/mainwindowbase.ui +136 -0
- data/examples/painting/fontsampler/makefile +8 -0
- data/examples/painting/fontsampler/previewdialog.rb +256 -0
- data/examples/painting/fontsampler/previewdialogbase.ui +224 -0
- data/examples/painting/fontsampler/previewlabel.rb +43 -0
- data/examples/painting/imagecomposition/imagecomposer.rb +152 -0
- data/examples/painting/imagecomposition/imagecomposition.qrc +6 -0
- data/examples/painting/imagecomposition/images/background.png +0 -0
- data/examples/painting/imagecomposition/images/blackrectangle.png +0 -0
- data/examples/painting/imagecomposition/images/butterfly.png +0 -0
- data/examples/painting/imagecomposition/images/checker.png +0 -0
- data/examples/painting/imagecomposition/main.rb +33 -0
- data/examples/painting/imagecomposition/makefile +2 -0
- data/examples/painting/painterpaths/main.rb +32 -0
- data/examples/painting/painterpaths/renderarea.rb +97 -0
- data/examples/painting/painterpaths/window.rb +247 -0
- data/examples/painting/svgviewer/files/bubbles.svg +212 -0
- data/examples/painting/svgviewer/files/cubic.svg +77 -0
- data/examples/painting/svgviewer/files/spheres.svg +79 -0
- data/examples/painting/svgviewer/main.rb +38 -0
- data/examples/painting/svgviewer/mainwindow.rb +99 -0
- data/examples/painting/svgviewer/makefile +2 -0
- data/examples/painting/svgviewer/svgview.rb +156 -0
- data/examples/painting/svgviewer/svgviewer.qrc +6 -0
- data/examples/painting/svgviewer/svgwindow.rb +87 -0
- data/examples/painting/transformations/main.rb +32 -0
- data/examples/painting/transformations/renderarea.rb +127 -0
- data/examples/painting/transformations/window.rb +153 -0
- data/examples/passivepopup/passivepopup.rb +38 -0
- data/examples/qtscribble/scribble.rb +270 -0
- data/examples/richtext/calendar/main.rb +33 -0
- data/examples/richtext/calendar/mainwindow.rb +173 -0
- data/examples/richtext/orderform/detailsdialog.rb +130 -0
- data/examples/richtext/orderform/main.rb +34 -0
- data/examples/richtext/orderform/mainwindow.rb +194 -0
- data/examples/richtext/syntaxhighlighter/examples/example +79 -0
- data/examples/richtext/syntaxhighlighter/highlighter.rb +90 -0
- data/examples/richtext/syntaxhighlighter/main.rb +34 -0
- data/examples/richtext/syntaxhighlighter/mainwindow.rb +105 -0
- data/examples/ruboids/Manifest +26 -0
- data/examples/ruboids/README +53 -0
- data/examples/ruboids/TODO +29 -0
- data/examples/ruboids/boids.properties +33 -0
- data/examples/ruboids/generateManifest.rb +42 -0
- data/examples/ruboids/index.html +147 -0
- data/examples/ruboids/release.rb +152 -0
- data/examples/ruboids/ruboids/Boid.rb +141 -0
- data/examples/ruboids/ruboids/BoidView.rb +159 -0
- data/examples/ruboids/ruboids/Camera.rb +24 -0
- data/examples/ruboids/ruboids/CameraDialog.rb +218 -0
- data/examples/ruboids/ruboids/Canvas.rb +143 -0
- data/examples/ruboids/ruboids/Cloud.rb +61 -0
- data/examples/ruboids/ruboids/CloudView.rb +54 -0
- data/examples/ruboids/ruboids/Flock.rb +47 -0
- data/examples/ruboids/ruboids/Graphics.rb +278 -0
- data/examples/ruboids/ruboids/Params.rb +87 -0
- data/examples/ruboids/ruboids/Point.rb +153 -0
- data/examples/ruboids/ruboids/Thing.rb +34 -0
- data/examples/ruboids/ruboids/Triangle.rb +21 -0
- data/examples/ruboids/ruboids/View.rb +88 -0
- data/examples/ruboids/ruboids/World.rb +82 -0
- data/examples/ruboids/ruboids/WorldWindow.rb +52 -0
- data/examples/ruboids/ruboids/info.rb +12 -0
- data/examples/ruboids/ruboids/ruboids.rb +29 -0
- data/examples/textedit/textedit.rb +150 -0
- data/examples/tutorial/t1/t1.rb +10 -0
- data/examples/tutorial/t10/cannon.rb +72 -0
- data/examples/tutorial/t10/lcdrange.rb +45 -0
- data/examples/tutorial/t10/t10.rb +55 -0
- data/examples/tutorial/t11/cannon.rb +124 -0
- data/examples/tutorial/t11/lcdrange.rb +45 -0
- data/examples/tutorial/t11/t11.rb +65 -0
- data/examples/tutorial/t12/cannon.rb +158 -0
- data/examples/tutorial/t12/lcdrange.rb +59 -0
- data/examples/tutorial/t12/t12.rb +66 -0
- data/examples/tutorial/t13/cannon.rb +208 -0
- data/examples/tutorial/t13/gamebrd.rb +113 -0
- data/examples/tutorial/t13/lcdrange.rb +60 -0
- data/examples/tutorial/t13/t13.rb +11 -0
- data/examples/tutorial/t14/cannon.rb +263 -0
- data/examples/tutorial/t14/gamebrd.rb +123 -0
- data/examples/tutorial/t14/lcdrange.rb +63 -0
- data/examples/tutorial/t14/t14.rb +11 -0
- data/examples/tutorial/t2/t2.rb +16 -0
- data/examples/tutorial/t3/t3.rb +18 -0
- data/examples/tutorial/t4/t4.rb +25 -0
- data/examples/tutorial/t5/t5.rb +37 -0
- data/examples/tutorial/t6/t6.rb +52 -0
- data/examples/tutorial/t7/lcdrange.rb +32 -0
- data/examples/tutorial/t7/t7.rb +42 -0
- data/examples/tutorial/t8/cannon.rb +38 -0
- data/examples/tutorial/t8/lcdrange.rb +45 -0
- data/examples/tutorial/t8/t8.rb +43 -0
- data/examples/tutorial/t9/cannon.rb +45 -0
- data/examples/tutorial/t9/lcdrange.rb +46 -0
- data/examples/tutorial/t9/t9.rb +43 -0
- data/examples/widgets/analogclock/analogclock.rb +94 -0
- data/examples/widgets/analogclock/main.rb +9 -0
- data/examples/widgets/calculator/button.rb +45 -0
- data/examples/widgets/calculator/calculator.rb +382 -0
- data/examples/widgets/calculator/main.rb +32 -0
- data/examples/widgets/charactermap/characterwidget.rb +110 -0
- data/examples/widgets/charactermap/main.rb +32 -0
- data/examples/widgets/charactermap/mainwindow.rb +118 -0
- data/examples/widgets/digitalclock/digitalclock.rb +30 -0
- data/examples/widgets/digitalclock/main.rb +9 -0
- data/examples/widgets/groupbox/main.rb +32 -0
- data/examples/widgets/groupbox/window.rb +134 -0
- data/examples/widgets/icons/iconpreviewarea.rb +111 -0
- data/examples/widgets/icons/iconsizespinbox.rb +39 -0
- data/examples/widgets/icons/imagedelegate.rb +73 -0
- data/examples/widgets/icons/images/designer.png +0 -0
- data/examples/widgets/icons/images/find_disabled.png +0 -0
- data/examples/widgets/icons/images/find_normal.png +0 -0
- data/examples/widgets/icons/images/monkey_off_128x128.png +0 -0
- data/examples/widgets/icons/images/monkey_off_16x16.png +0 -0
- data/examples/widgets/icons/images/monkey_off_32x32.png +0 -0
- data/examples/widgets/icons/images/monkey_off_64x64.png +0 -0
- data/examples/widgets/icons/images/monkey_on_128x128.png +0 -0
- data/examples/widgets/icons/images/monkey_on_16x16.png +0 -0
- data/examples/widgets/icons/images/monkey_on_32x32.png +0 -0
- data/examples/widgets/icons/images/monkey_on_64x64.png +0 -0
- data/examples/widgets/icons/images/qtopia_16x16.png +0 -0
- data/examples/widgets/icons/images/qtopia_32x32.png +0 -0
- data/examples/widgets/icons/images/qtopia_48x48.png +0 -0
- data/examples/widgets/icons/main.rb +32 -0
- data/examples/widgets/icons/mainwindow.rb +351 -0
- data/examples/widgets/imageviewer/imageviewer.rb +219 -0
- data/examples/widgets/imageviewer/main.rb +32 -0
- data/examples/widgets/lineedits/main.rb +32 -0
- data/examples/widgets/lineedits/window.rb +199 -0
- data/examples/widgets/movie/images/open.png +0 -0
- data/examples/widgets/movie/images/pause.png +0 -0
- data/examples/widgets/movie/images/play.png +0 -0
- data/examples/widgets/movie/images/quit.png +0 -0
- data/examples/widgets/movie/images/stop.png +0 -0
- data/examples/widgets/movie/main.rb +32 -0
- data/examples/widgets/movie/movieplayer.rb +201 -0
- data/examples/widgets/movie/movies/fire.mng +0 -0
- data/examples/widgets/screenshot/main.rb +32 -0
- data/examples/widgets/screenshot/screenshot.rb +155 -0
- data/examples/widgets/scribble/main.rb +32 -0
- data/examples/widgets/scribble/mainwindow.rb +202 -0
- data/examples/widgets/scribble/scribblearea.rb +154 -0
- data/examples/widgets/sliders/main.rb +32 -0
- data/examples/widgets/sliders/slidersgroup.rb +97 -0
- data/examples/widgets/sliders/window.rb +124 -0
- data/examples/widgets/spinboxes/main.rb +32 -0
- data/examples/widgets/spinboxes/window.rb +213 -0
- data/examples/widgets/tetrix/main.rb +33 -0
- data/examples/widgets/tetrix/tetrixboard.rb +346 -0
- data/examples/widgets/tetrix/tetrixpiece.rb +135 -0
- data/examples/widgets/tetrix/tetrixwindow.rb +88 -0
- data/examples/widgets/tooltips/images/circle.png +0 -0
- data/examples/widgets/tooltips/images/square.png +0 -0
- data/examples/widgets/tooltips/images/triangle.png +0 -0
- data/examples/widgets/tooltips/main.rb +32 -0
- data/examples/widgets/tooltips/shapeitem.rb +31 -0
- data/examples/widgets/tooltips/sortingbox.rb +222 -0
- data/examples/widgets/wiggly/dialog.rb +48 -0
- data/examples/widgets/wiggly/main.rb +11 -0
- data/examples/widgets/wiggly/wigglywidget.rb +76 -0
- data/examples/widgets/windowflags/controllerwindow.rb +195 -0
- data/examples/widgets/windowflags/main.rb +32 -0
- data/examples/widgets/windowflags/previewwindow.rb +103 -0
- data/examples/xml/dombookmarks/frank.xbel +230 -0
- data/examples/xml/dombookmarks/jennifer.xbel +93 -0
- data/examples/xml/dombookmarks/main.rb +34 -0
- data/examples/xml/dombookmarks/mainwindow.rb +129 -0
- data/examples/xml/dombookmarks/xbeltree.rb +172 -0
- data/examples/xml/saxbookmarks/frank.xbel +230 -0
- data/examples/xml/saxbookmarks/jennifer.xbel +93 -0
- data/examples/xml/saxbookmarks/main.rb +34 -0
- data/examples/xml/saxbookmarks/mainwindow.rb +144 -0
- data/examples/xml/saxbookmarks/xbelgenerator.rb +95 -0
- data/examples/xml/saxbookmarks/xbelhandler.rb +122 -0
- data/lib/Qt/qtruby4.rb +5 -1
- data/lib/qtruby4.dll +0 -0
- data/lib/qtscript.dll +0 -0
- data/lib/qtscript/qtscript.rb +40 -0
- data/lib/qttest.dll +0 -0
- data/lib/qttest/qttest.rb +166 -0
- data/lib/qtuitools.dll +0 -0
- data/lib/qtuitools/qtuitools.rb +17 -0
- data/lib/qtwebkit.dll +0 -0
- data/lib/qtwebkit/qtwebkit.rb +17 -0
- metadata +420 -7
@@ -0,0 +1,64 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
3
|
+
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
4
|
+
<svg viewBox="-10 -10 178 178" height="177.523" id="svg1" inkscape:version="0.40" sodipodi:docbase="/mnt/donnees/09-Mes_images/Travaux/Travaux vectoriel/pictogrammes/sécu SVG/produits chimiques" sodipodi:docname="XiIrritant.svg" sodipodi:version="0.32" width="155.932" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:xlink="http://www.w3.org/1999/xlink">
|
5
|
+
<metadata>
|
6
|
+
<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
7
|
+
<cc:Work rdf:about="">
|
8
|
+
<dc:title>Irritant</dc:title>
|
9
|
+
<dc:description>produit chimique</dc:description>
|
10
|
+
<dc:subject>
|
11
|
+
<rdf:Bag>
|
12
|
+
<rdf:li></rdf:li>
|
13
|
+
<rdf:li>symbol</rdf:li>
|
14
|
+
<rdf:li>signs_and_symbols</rdf:li>
|
15
|
+
</rdf:Bag>
|
16
|
+
</dc:subject>
|
17
|
+
<dc:publisher>
|
18
|
+
<cc:Agent rdf:about="http://www.openclipart.org">
|
19
|
+
<dc:title>yves GUILLOU</dc:title>
|
20
|
+
</cc:Agent>
|
21
|
+
</dc:publisher>
|
22
|
+
<dc:creator>
|
23
|
+
<cc:Agent>
|
24
|
+
<dc:title>yves GUILLOU</dc:title>
|
25
|
+
</cc:Agent>
|
26
|
+
</dc:creator>
|
27
|
+
<dc:rights>
|
28
|
+
<cc:Agent>
|
29
|
+
<dc:title>yves GUILLOU</dc:title>
|
30
|
+
</cc:Agent>
|
31
|
+
</dc:rights>
|
32
|
+
<dc:date></dc:date>
|
33
|
+
<dc:format>image/svg+xml</dc:format>
|
34
|
+
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
35
|
+
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
36
|
+
<dc:language>en</dc:language>
|
37
|
+
</cc:Work>
|
38
|
+
<cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
|
39
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
40
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
41
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
42
|
+
</cc:License>
|
43
|
+
</rdf:RDF>
|
44
|
+
</metadata>
|
45
|
+
<sodipodi:namedview bordercolor="#666666" borderopacity="1.0" id="base" inkscape:current-layer="svg1" inkscape:cx="62.372805" inkscape:cy="34.864537" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="1121" inkscape:window-width="1590" inkscape:window-x="200" inkscape:window-y="0" inkscape:zoom="6.6399849" pagecolor="#ffffff"/>
|
46
|
+
<defs id="defs2">
|
47
|
+
<marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10">
|
48
|
+
<path d="M 0 0 L 10 5 L 0 10 z" id="path4"/>
|
49
|
+
</marker>
|
50
|
+
<marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10">
|
51
|
+
<path d="M 10 0 L 0 5 L 10 10 z" id="path6"/>
|
52
|
+
</marker>
|
53
|
+
</defs>
|
54
|
+
<g id="g7">
|
55
|
+
<g id="g8">
|
56
|
+
<path d="M 155.932 155.932L 155.932 0L 0 0L 0 155.932L 155.932 155.932z" id="path9" style="stroke:none; fill:#000000"/>
|
57
|
+
<path d="M 150.83 150.83L 150.83 5.1011L 5.1011 5.1011L 5.1011 150.83L 150.83 150.83z" id="path10" style="stroke:none; fill:#ff9900"/>
|
58
|
+
</g>
|
59
|
+
<g id="g11">
|
60
|
+
<path d="M 140.823 111.783L 44.3677 14.0771L 15.1084 44.1489L 111.564 141.854L 140.823 111.783z" id="path12" style="stroke:none; fill:#000000"/>
|
61
|
+
<path d="M 111.783 15.1084L 14.0771 111.564L 44.1489 140.823L 141.855 44.3677L 111.783 15.1084z" id="path13" style="stroke:none; fill:#000000"/>
|
62
|
+
</g>
|
63
|
+
</g>
|
64
|
+
</svg>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) --><svg viewBox="100 200 550 500" height="841.88976pt" id="svg1" inkscape:version="0.40+cvs" sodipodi:docbase="C:\Documents and Settings\Jon Phillips\My Documents\projects\clipart-project\submissions" sodipodi:docname="heart-left-highlight.svg" sodipodi:version="0.32" width="595.27559pt" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
|
3
|
+
<metadata>
|
4
|
+
<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
5
|
+
<cc:Work rdf:about="">
|
6
|
+
<dc:title>Heart Left-Highlight</dc:title>
|
7
|
+
<dc:description>This is a normal valentines day heart.</dc:description>
|
8
|
+
<dc:subject>
|
9
|
+
<rdf:Bag>
|
10
|
+
<rdf:li>holiday</rdf:li>
|
11
|
+
<rdf:li>valentines</rdf:li>
|
12
|
+
<rdf:li></rdf:li>
|
13
|
+
<rdf:li>valentine</rdf:li>
|
14
|
+
<rdf:li>hash(0x8a091c0)</rdf:li>
|
15
|
+
<rdf:li>hash(0x8a0916c)</rdf:li>
|
16
|
+
<rdf:li>signs_and_symbols</rdf:li>
|
17
|
+
<rdf:li>hash(0x8a091f0)</rdf:li>
|
18
|
+
<rdf:li>day</rdf:li>
|
19
|
+
</rdf:Bag>
|
20
|
+
</dc:subject>
|
21
|
+
<dc:publisher>
|
22
|
+
<cc:Agent rdf:about="http://www.openclipart.org">
|
23
|
+
<dc:title>Jon Phillips</dc:title>
|
24
|
+
</cc:Agent>
|
25
|
+
</dc:publisher>
|
26
|
+
<dc:creator>
|
27
|
+
<cc:Agent>
|
28
|
+
<dc:title>Jon Phillips</dc:title>
|
29
|
+
</cc:Agent>
|
30
|
+
</dc:creator>
|
31
|
+
<dc:rights>
|
32
|
+
<cc:Agent>
|
33
|
+
<dc:title>Jon Phillips</dc:title>
|
34
|
+
</cc:Agent>
|
35
|
+
</dc:rights>
|
36
|
+
<dc:date></dc:date>
|
37
|
+
<dc:format>image/svg+xml</dc:format>
|
38
|
+
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
39
|
+
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
40
|
+
<dc:language>en</dc:language>
|
41
|
+
</cc:Work>
|
42
|
+
<cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
|
43
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
44
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
45
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
46
|
+
</cc:License>
|
47
|
+
</rdf:RDF>
|
48
|
+
</metadata>
|
49
|
+
<defs id="defs3"/>
|
50
|
+
<sodipodi:namedview bordercolor="#666666" borderopacity="1.0" id="base" inkscape:current-layer="layer1" inkscape:cx="549.40674" inkscape:cy="596.00159" inkscape:document-units="px" inkscape:guide-bbox="true" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="615" inkscape:window-width="866" inkscape:window-x="88" inkscape:window-y="116" inkscape:zoom="0.35000000" pagecolor="#ffffff" showguides="true"/>
|
51
|
+
<g id="layer1" inkscape:groupmode="layer" inkscape:label="Layer 1">
|
52
|
+
<path d="M 263.41570,235.14588 C 197.17570,235.14588 143.41575,288.90587 143.41575,355.14588 C 143.41575,489.90139 279.34890,525.23318 371.97820,658.45392 C 459.55244,526.05056 600.54070,485.59932 600.54070,355.14588 C 600.54070,288.90588 546.78080,235.14587 480.54070,235.14588 C 432.49280,235.14588 391.13910,263.51631 371.97820,304.33338 C 352.81740,263.51630 311.46370,235.14587 263.41570,235.14588 z " id="path7" sodipodi:nodetypes="ccccccc" style="fill:#e60000;fill-opacity:1.0000000;stroke:#000000;stroke-width:18.700001;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"/>
|
53
|
+
<path d="M 265.00000,253.59375 C 207.04033,253.59375 160.00000,300.63407 160.00000,358.59375 C 160.00000,476.50415 278.91857,507.43251 359.96875,624.00000 C 366.52868,614.08205 220.00000,478.47309 220.00000,378.59375 C 220.00000,320.63407 267.04033,273.59375 325.00000,273.59375 C 325.50453,273.59375 325.99718,273.64912 326.50000,273.65625 C 309.22436,261.07286 288.00557,253.59374 265.00000,253.59375 z " id="path220" sodipodi:nodetypes="ccccccc" style="fill:#e6e6e6;fill-opacity:0.64556962;stroke:none;stroke-width:18.700001;stroke-miterlimit:4.0000000;stroke-opacity:1.0000000"/>
|
54
|
+
</g>
|
55
|
+
</svg>
|
@@ -0,0 +1,58 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!-- Generator: Adobe Illustrator 10, SVG Export Plug-In . SVG Version: 3.0.0 Build 76) --><svg enable-background="new 0 0 347 348" height="348" i:pageBounds="0 792 612 0" i:rulerOrigin="0 0" i:viewOrigin="131 567" overflow="visible" space="preserve" viewBox="-20 -20 387 388" width="347" xmlns="http://www.w3.org/2000/svg" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/" xmlns:graph="http://ns.adobe.com/Graphs/1.0/" xmlns:i="http://ns.adobe.com/AdobeIllustrator/10.0/" xmlns:x="http://ns.adobe.com/Extensibility/1.0/" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<metadata>
|
4
|
+
<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
5
|
+
<cc:Work rdf:about="">
|
6
|
+
<dc:title>Keep Tidy Inside</dc:title>
|
7
|
+
<dc:description></dc:description>
|
8
|
+
<dc:subject>
|
9
|
+
<rdf:Bag>
|
10
|
+
<rdf:li></rdf:li>
|
11
|
+
<rdf:li>symbol</rdf:li>
|
12
|
+
<rdf:li>bin</rdf:li>
|
13
|
+
<rdf:li>signs_and_symbols</rdf:li>
|
14
|
+
<rdf:li>clean</rdf:li>
|
15
|
+
<rdf:li>rubish</rdf:li>
|
16
|
+
<rdf:li>trash</rdf:li>
|
17
|
+
<rdf:li>inside</rdf:li>
|
18
|
+
<rdf:li>garbage</rdf:li>
|
19
|
+
<rdf:li>sign</rdf:li>
|
20
|
+
</rdf:Bag>
|
21
|
+
</dc:subject>
|
22
|
+
<dc:publisher>
|
23
|
+
<cc:Agent rdf:about="http://www.openclipart.org">
|
24
|
+
<dc:title>Martin Owens</dc:title>
|
25
|
+
</cc:Agent>
|
26
|
+
</dc:publisher>
|
27
|
+
<dc:creator>
|
28
|
+
<cc:Agent>
|
29
|
+
<dc:title>Martin Owens</dc:title>
|
30
|
+
</cc:Agent>
|
31
|
+
</dc:creator>
|
32
|
+
<dc:rights>
|
33
|
+
<cc:Agent>
|
34
|
+
<dc:title>Martin Owens</dc:title>
|
35
|
+
</cc:Agent>
|
36
|
+
</dc:rights>
|
37
|
+
<dc:date></dc:date>
|
38
|
+
<dc:format>image/svg+xml</dc:format>
|
39
|
+
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
40
|
+
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
41
|
+
<dc:language>en</dc:language>
|
42
|
+
</cc:Work>
|
43
|
+
<cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
|
44
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
45
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
46
|
+
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
47
|
+
</cc:License>
|
48
|
+
</rdf:RDF>
|
49
|
+
</metadata>
|
50
|
+
<g i:dimmedPercent="50" i:knockout="Off" i:layer="yes" i:rgbTrio="#4F008000FFFF" id="Layer_1">
|
51
|
+
<path d="M347,174c0,96.098-77.679,174-173.5,174C77.679,348,0,270.098,0,174 C0,77.902,77.679,0,173.5,0C269.321,0,347,77.902,347,174z" fill="#10A040" i:knockout="Off"/>
|
52
|
+
<path d="M238,53c0,13.807-11.864,25-26.5,25S185,66.807,185,53s11.864-25,26.5-25 S238,39.193,238,53z" fill="#FFFFFF" i:knockout="Off"/>
|
53
|
+
<path d="M66,175c1.055,6.355,19.333,126.417,19.333,126.417h68.333 c0,0,14.105-122.524,14.333-126.417c6.224-0.622,6.667-13-2-13c-12.164,0-89.205-0.059-98,0S61.167,174.487,66,175z" fill="#FFFFFF" i:knockout="Off"/>
|
54
|
+
<path d="M78,141c17.292-5.325,24.179-23.532,27-31c14.513,6.596,40.333,12.265,59,8 c3.683,19.419-28.043,19.31-23,37C132.577,145.705,89.404,167.292,78,141z" fill="#FFFFFF" i:knockout="Off"/>
|
55
|
+
<path d="M103,82l139-1c-0.6,3.421,33.633,57.497,29,67c-4.089,0.418-67,5-67,5 c6.109-9.379-13-43-13-43L103,82z" fill="#FFFFFF" i:knockout="Off"/>
|
56
|
+
<path d="M270,156l-66-3c0,0-23.565,143.355-24,145s1.855,2.536,3,1s51-82,51-82 s19.754,80.701,20,82s3.721,1.209,4,0S270,156,270,156z" fill="#FFFFFF" i:knockout="Off"/>
|
57
|
+
</g>
|
58
|
+
</svg>
|
@@ -0,0 +1,41 @@
|
|
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
|
+
require 'Qt'
|
27
|
+
require 'qrc_systray.rb'
|
28
|
+
require 'window.rb'
|
29
|
+
|
30
|
+
app = Qt::Application.new(ARGV)
|
31
|
+
|
32
|
+
if !Qt::SystemTrayIcon.isSystemTrayAvailable
|
33
|
+
Qt::MessageBox.critical(nil, Qt::Object.tr("Systray"),
|
34
|
+
Qt::Object.tr("I couldn't detect any system tray " \
|
35
|
+
"on this system."))
|
36
|
+
exit 1
|
37
|
+
end
|
38
|
+
|
39
|
+
window = Window.new
|
40
|
+
window.show
|
41
|
+
app.exec
|
@@ -0,0 +1,223 @@
|
|
1
|
+
=begin
|
2
|
+
**
|
3
|
+
** Copyright (C) 2004-2006 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 Window < Qt::Widget
|
27
|
+
|
28
|
+
slots 'setIcon(int)',
|
29
|
+
'iconActivated(QSystemTrayIcon::ActivationReason)',
|
30
|
+
:showMessage,
|
31
|
+
:messageClicked
|
32
|
+
|
33
|
+
def initialize(parent = nil)
|
34
|
+
super(parent)
|
35
|
+
createIconGroupBox()
|
36
|
+
createMessageGroupBox()
|
37
|
+
|
38
|
+
@iconLabel.minimumWidth = @durationLabel.sizeHint.width
|
39
|
+
|
40
|
+
createActions()
|
41
|
+
createTrayIcon()
|
42
|
+
|
43
|
+
connect(@showMessageButton, SIGNAL(:clicked), self, SLOT(:showMessage))
|
44
|
+
connect(@showIconCheckBox, SIGNAL('toggled(bool)'),
|
45
|
+
@trayIcon, SLOT('setVisible(bool)'))
|
46
|
+
connect(@iconComboBox, SIGNAL('currentIndexChanged(int)'),
|
47
|
+
self, SLOT('setIcon(int)'))
|
48
|
+
connect(@trayIcon, SIGNAL(:messageClicked), self, SLOT(:messageClicked))
|
49
|
+
connect(@trayIcon, SIGNAL('activated(QSystemTrayIcon::ActivationReason)'),
|
50
|
+
self, SLOT('iconActivated(QSystemTrayIcon::ActivationReason)'))
|
51
|
+
|
52
|
+
self.layout = Qt::VBoxLayout.new do |m|
|
53
|
+
m.addWidget(@iconGroupBox)
|
54
|
+
m.addWidget(@messageGroupBox)
|
55
|
+
end
|
56
|
+
|
57
|
+
@iconComboBox.currentIndex = 1
|
58
|
+
@trayIcon.show
|
59
|
+
|
60
|
+
setWindowTitle(tr("Systray"))
|
61
|
+
resize(400, 300)
|
62
|
+
end
|
63
|
+
|
64
|
+
def setVisible(visible)
|
65
|
+
@minimizeAction.enabled = visible
|
66
|
+
@maximizeAction.enabled = !visible
|
67
|
+
@restoreAction.enabled = !visible
|
68
|
+
super(visible)
|
69
|
+
end
|
70
|
+
|
71
|
+
def closeEvent(event)
|
72
|
+
if @trayIcon.visible?
|
73
|
+
Qt::MessageBox.information(self, tr("Systray"),
|
74
|
+
tr("The program will keep running in the " \
|
75
|
+
"system tray. To terminate the program, " \
|
76
|
+
"choose <b>Quit</b> in the context menu " \
|
77
|
+
"that pops up when clicking self program's " \
|
78
|
+
"entry in the system tray."))
|
79
|
+
hide()
|
80
|
+
event.ignore()
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
def setIcon(index)
|
85
|
+
icon = @iconComboBox.itemIcon(index)
|
86
|
+
@trayIcon.icon = icon
|
87
|
+
setWindowIcon(icon)
|
88
|
+
|
89
|
+
@trayIcon.toolTip = @iconComboBox.itemText(index)
|
90
|
+
end
|
91
|
+
|
92
|
+
def iconActivated(reason)
|
93
|
+
case reason
|
94
|
+
when Qt::SystemTrayIcon::Trigger:
|
95
|
+
when Qt::SystemTrayIcon::DoubleClick:
|
96
|
+
@iconComboBox.currentIndex = (iconComboBox.currentIndex + 1) % @iconComboBox.length
|
97
|
+
break
|
98
|
+
when Qt::SystemTrayIcon::MiddleClick:
|
99
|
+
showMessage()
|
100
|
+
break
|
101
|
+
else
|
102
|
+
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
def showMessage()
|
107
|
+
icon = @typeComboBox.itemData(@typeComboBox.currentIndex).to_i
|
108
|
+
@trayIcon.showMessage(@titleEdit.text, @bodyEdit.toPlainText, icon,
|
109
|
+
@durationSpinBox.value() * 1000)
|
110
|
+
end
|
111
|
+
|
112
|
+
def messageClicked()
|
113
|
+
Qt::MessageBox.information(nil, tr("Systray"),
|
114
|
+
tr("Sorry, I already gave what help I could.\n" \
|
115
|
+
"Maybe you should try asking a human?"))
|
116
|
+
end
|
117
|
+
|
118
|
+
def createIconGroupBox()
|
119
|
+
@iconGroupBox = Qt::GroupBox.new(tr("Tray Icon"))
|
120
|
+
|
121
|
+
@iconLabel = Qt::Label.new("Icon:")
|
122
|
+
|
123
|
+
@iconComboBox = Qt::ComboBox.new
|
124
|
+
@iconComboBox.addItem(Qt::Icon.new(":/images/bad.svg"), tr("Bad"))
|
125
|
+
@iconComboBox.addItem(Qt::Icon.new(":/images/heart.svg"), tr("Heart"))
|
126
|
+
@iconComboBox.addItem(Qt::Icon.new(":/images/trash.svg"), tr("Trash"))
|
127
|
+
|
128
|
+
@showIconCheckBox = Qt::CheckBox.new(tr("Show icon"))
|
129
|
+
@showIconCheckBox.checked = true
|
130
|
+
|
131
|
+
@iconGroupBox.layout = Qt::HBoxLayout.new do |l|
|
132
|
+
l.addWidget(@iconLabel)
|
133
|
+
l.addWidget(@iconComboBox)
|
134
|
+
l.addStretch()
|
135
|
+
l.addWidget(@showIconCheckBox)
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
def createMessageGroupBox()
|
140
|
+
@messageGroupBox = Qt::GroupBox.new(tr("Balloon Message"))
|
141
|
+
|
142
|
+
@typeLabel = Qt::Label.new(tr("Type:"))
|
143
|
+
|
144
|
+
@typeComboBox = Qt::ComboBox.new
|
145
|
+
@typeComboBox.addItem(tr("None"), Qt::Variant.new(Qt::SystemTrayIcon::NoIcon.to_i))
|
146
|
+
@typeComboBox.addItem(style().standardIcon(Qt::Style::SP_MessageBoxInformation),
|
147
|
+
tr("Information"),
|
148
|
+
Qt::Variant.new(Qt::SystemTrayIcon::Information.to_i))
|
149
|
+
@typeComboBox.addItem(style().standardIcon(Qt::Style::SP_MessageBoxWarning),
|
150
|
+
tr("Warning"),
|
151
|
+
Qt::Variant.new(Qt::SystemTrayIcon::Warning.to_i))
|
152
|
+
@typeComboBox.addItem(style().standardIcon(Qt::Style::SP_MessageBoxCritical),
|
153
|
+
tr("Critical"),
|
154
|
+
Qt::Variant.new(Qt::SystemTrayIcon::Critical.to_i))
|
155
|
+
@typeComboBox.currentIndex = 1
|
156
|
+
|
157
|
+
@durationLabel = Qt::Label.new(tr("Duration:"))
|
158
|
+
|
159
|
+
@durationSpinBox = Qt::SpinBox.new do |s|
|
160
|
+
s.range = 5..60
|
161
|
+
s.suffix = " s"
|
162
|
+
s.value = 15
|
163
|
+
end
|
164
|
+
|
165
|
+
@durationWarningLabel = Qt::Label.new(tr("(some systems might ignore self " \
|
166
|
+
"hint)"))
|
167
|
+
@durationWarningLabel.indent = 10
|
168
|
+
|
169
|
+
@titleLabel = Qt::Label.new(tr("Title:"))
|
170
|
+
|
171
|
+
@titleEdit = Qt::LineEdit.new(tr("Cannot connect to network"))
|
172
|
+
|
173
|
+
@bodyLabel = Qt::Label.new(tr("Body:"))
|
174
|
+
|
175
|
+
@bodyEdit = Qt::TextEdit.new
|
176
|
+
@bodyEdit.setPlainText(tr("Don't believe me. Honestly, I don't have a " \
|
177
|
+
"clue.\nClick self balloon for details."))
|
178
|
+
|
179
|
+
@showMessageButton = Qt::PushButton.new(tr("Show Message"))
|
180
|
+
@showMessageButton.default = true
|
181
|
+
|
182
|
+
@messageGroupBox.layout = Qt::GridLayout.new do |m|
|
183
|
+
m.addWidget(@typeLabel, 0, 0)
|
184
|
+
m.addWidget(@typeComboBox, 0, 1, 1, 2)
|
185
|
+
m.addWidget(@durationLabel, 1, 0)
|
186
|
+
m.addWidget(@durationSpinBox, 1, 1)
|
187
|
+
m.addWidget(@durationWarningLabel, 1, 2, 1, 3)
|
188
|
+
m.addWidget(@titleLabel, 2, 0)
|
189
|
+
m.addWidget(@titleEdit, 2, 1, 1, 4)
|
190
|
+
m.addWidget(@bodyLabel, 3, 0)
|
191
|
+
m.addWidget(@bodyEdit, 3, 1, 2, 4)
|
192
|
+
m.addWidget(@showMessageButton, 5, 4)
|
193
|
+
m.setColumnStretch(3, 1)
|
194
|
+
m.setRowStretch(4, 1)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
def createActions()
|
199
|
+
@minimizeAction = Qt::Action.new(tr("Mi&nimize"), self)
|
200
|
+
connect(@minimizeAction, SIGNAL(:triggered), self, SLOT(:hide))
|
201
|
+
|
202
|
+
@maximizeAction = Qt::Action.new(tr("Ma&ximize"), self)
|
203
|
+
connect(@maximizeAction, SIGNAL(:triggered), self, SLOT(:showMaximized))
|
204
|
+
|
205
|
+
@restoreAction = Qt::Action.new(tr("&Restore"), self)
|
206
|
+
connect(@restoreAction, SIGNAL(:triggered), self, SLOT(:show))
|
207
|
+
|
208
|
+
@quitAction = Qt::Action.new(tr("&Quit"), self)
|
209
|
+
connect(@quitAction, SIGNAL(:triggered), $qApp, SLOT(:quit))
|
210
|
+
end
|
211
|
+
|
212
|
+
def createTrayIcon()
|
213
|
+
@trayIconMenu = Qt::Menu.new(self) do |t|
|
214
|
+
t.addAction(@minimizeAction)
|
215
|
+
t.addAction(@maximizeAction)
|
216
|
+
t.addAction(@restoreAction)
|
217
|
+
t.addSeparator()
|
218
|
+
t.addAction(@quitAction)
|
219
|
+
end
|
220
|
+
@trayIcon = Qt::SystemTrayIcon.new(self)
|
221
|
+
@trayIcon.contextMenu = @trayIconMenu
|
222
|
+
end
|
223
|
+
end
|