qtbindings 4.6.3.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.txt +9 -0
- data/CMakeLists.txt +22 -0
- data/COPYING.LIB.txt +510 -0
- data/COPYING.txt +286 -0
- data/KNOWN_ISSUES.txt +20 -0
- data/README.txt +92 -0
- data/Rakefile +96 -0
- data/TODO.txt +2 -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/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/libgcc_s_dw2-1.dll +0 -0
- data/bin/mingwm10.dll +0 -0
- data/bin/phonon4.dll +0 -0
- data/bin/plugins/arthurplugin.dll +0 -0
- data/bin/plugins/containerextension.dll +0 -0
- data/bin/plugins/customwidgetplugin.dll +0 -0
- data/bin/plugins/phononwidgets.dll +0 -0
- data/bin/plugins/qcncodecs4.dll +0 -0
- data/bin/plugins/qgif4.dll +0 -0
- data/bin/plugins/qglgraphicssystem4.dll +0 -0
- data/bin/plugins/qico4.dll +0 -0
- data/bin/plugins/qjpcodecs4.dll +0 -0
- data/bin/plugins/qjpeg4.dll +0 -0
- data/bin/plugins/qkrcodecs4.dll +0 -0
- data/bin/plugins/qmng4.dll +0 -0
- data/bin/plugins/qsqlite4.dll +0 -0
- data/bin/plugins/qsqlodbc4.dll +0 -0
- data/bin/plugins/qsvg4.dll +0 -0
- data/bin/plugins/qsvgicon4.dll +0 -0
- data/bin/plugins/qt3supportwidgets.dll +0 -0
- data/bin/plugins/qtaccessiblecompatwidgets4.dll +0 -0
- data/bin/plugins/qtaccessiblewidgets4.dll +0 -0
- data/bin/plugins/qtiff4.dll +0 -0
- data/bin/plugins/qtracegraphicssystem4.dll +0 -0
- data/bin/plugins/qtwcodecs4.dll +0 -0
- data/bin/plugins/qwebview.dll +0 -0
- data/bin/plugins/taskmenuextension.dll +0 -0
- data/bin/plugins/worldtimeclockplugin.dll +0 -0
- data/bin/rbqtapi +152 -0
- data/bin/rbrcc +18 -0
- data/bin/rbuic4 +18 -0
- data/bin/smokeapi +18 -0
- data/bin/smokedeptool +18 -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 +34 -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/qdbus/chat/chat.rb +146 -0
- data/examples/qdbus/chat/chat_adaptor.rb +12 -0
- data/examples/qdbus/chat/chat_interface.rb +13 -0
- data/examples/qdbus/chat/chatmainwindow.ui +184 -0
- data/examples/qdbus/chat/chatsetnickname.ui +145 -0
- data/examples/qdbus/chat/makefile +8 -0
- data/examples/qdbus/complexpingpong/complexping.rb +92 -0
- data/examples/qdbus/complexpingpong/complexpong.rb +83 -0
- data/examples/qdbus/complexpingpong/ping-common.rb +1 -0
- data/examples/qdbus/listnames/listnames.rb +69 -0
- data/examples/qdbus/pingpong/ping-common.rb +1 -0
- data/examples/qdbus/pingpong/ping.rb +52 -0
- data/examples/qdbus/pingpong/pong.rb +55 -0
- data/examples/qdbus/remotecontrolledcar/car/car.rb +151 -0
- data/examples/qdbus/remotecontrolledcar/car/main.rb +50 -0
- data/examples/qdbus/remotecontrolledcar/controller/controller.rb +66 -0
- data/examples/qdbus/remotecontrolledcar/controller/controller.ui +61 -0
- data/examples/qdbus/remotecontrolledcar/controller/main.rb +32 -0
- data/examples/qdbus/remotecontrolledcar/controller/makefile +2 -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/run_all.rb +14 -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 +9 -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/ext/CMakeLists.txt +22 -0
- data/ext/cmake/modules/CMakeCSharpCompiler.cmake.in +7 -0
- data/ext/cmake/modules/CMakeCSharpInformation.cmake +366 -0
- data/ext/cmake/modules/CMakeDetermineCSharpCompiler.cmake +85 -0
- data/ext/cmake/modules/CMakeTestCSharpCompiler.cmake +1 -0
- data/ext/cmake/modules/CheckCXXSourceCompiles.cmake +68 -0
- data/ext/cmake/modules/FindMono.cmake +36 -0
- data/ext/cmake/modules/FindPHP5.cmake +179 -0
- data/ext/cmake/modules/FindPerlMore.cmake +78 -0
- data/ext/cmake/modules/FindQScintilla.cmake +57 -0
- data/ext/cmake/modules/FindQt4.cmake +1271 -0
- data/ext/cmake/modules/FindQwt5.cmake +104 -0
- data/ext/cmake/modules/FindRuby.cmake +261 -0
- data/ext/cmake/modules/FindSmoke.cmake +78 -0
- data/ext/cmake/modules/HandleImportedTargetsInCMakeRequiredLibraries.cmake +85 -0
- data/ext/cmake/modules/MacroLogFeature.cmake +146 -0
- data/ext/cmake/modules/MacroOptionalAddBindings.cmake +47 -0
- data/ext/cmake/modules/MacroOptionalFindPackage.cmake +48 -0
- data/ext/cmake/modules/MacroPushRequiredVars.cmake +47 -0
- data/ext/cmake/modules/Qt4ConfigDependentSettings.cmake +384 -0
- data/ext/cmake/modules/Qt4Macros.cmake +414 -0
- data/ext/generator/CMakeLists.txt +38 -0
- data/ext/generator/generator_export.h +31 -0
- data/ext/generator/generatorenvironment.cpp +52 -0
- data/ext/generator/generatorenvironment.h +35 -0
- data/ext/generator/generatorpreprocessor.cpp +242 -0
- data/ext/generator/generatorpreprocessor.h +83 -0
- data/ext/generator/generators/CMakeLists.txt +4 -0
- data/ext/generator/generators/dump/CMakeLists.txt +10 -0
- data/ext/generator/generators/dump/generator_dump.cpp +36 -0
- data/ext/generator/generators/smoke/CMakeLists.txt +13 -0
- data/ext/generator/generators/smoke/generator_smoke.cpp +233 -0
- data/ext/generator/generators/smoke/globals.h +138 -0
- data/ext/generator/generators/smoke/helpers.cpp +773 -0
- data/ext/generator/generators/smoke/writeClasses.cpp +502 -0
- data/ext/generator/generators/smoke/writeSmokeDataFile.cpp +729 -0
- data/ext/generator/generatorvisitor.cpp +922 -0
- data/ext/generator/generatorvisitor.h +119 -0
- data/ext/generator/main.cpp +239 -0
- data/ext/generator/name_compiler.cpp +205 -0
- data/ext/generator/name_compiler.h +76 -0
- data/ext/generator/options.cpp +32 -0
- data/ext/generator/options.h +45 -0
- data/ext/generator/parser/CMakeLists.txt +41 -0
- data/ext/generator/parser/ast.cpp +21 -0
- data/ext/generator/parser/ast.h +923 -0
- data/ext/generator/parser/astutilities.h +65 -0
- data/ext/generator/parser/codegenerator.cpp +867 -0
- data/ext/generator/parser/codegenerator.h +180 -0
- data/ext/generator/parser/codemodel_fwd.h +76 -0
- data/ext/generator/parser/commentformatter.cpp +54 -0
- data/ext/generator/parser/commentformatter.h +45 -0
- data/ext/generator/parser/commentparser.cpp +109 -0
- data/ext/generator/parser/commentparser.h +84 -0
- data/ext/generator/parser/control.cpp +40 -0
- data/ext/generator/parser/control.h +51 -0
- data/ext/generator/parser/cppparser_export.h +33 -0
- data/ext/generator/parser/default_visitor.cpp +470 -0
- data/ext/generator/parser/default_visitor.h +116 -0
- data/ext/generator/parser/dumptree.cpp +146 -0
- data/ext/generator/parser/dumptree.h +50 -0
- data/ext/generator/parser/indexedstring.cpp +213 -0
- data/ext/generator/parser/indexedstring.h +147 -0
- data/ext/generator/parser/kdevelop-parser-rev +1 -0
- data/ext/generator/parser/kdevvarlengtharray.h +346 -0
- data/ext/generator/parser/lexer.cpp +963 -0
- data/ext/generator/parser/lexer.h +308 -0
- data/ext/generator/parser/listnode.cpp +20 -0
- data/ext/generator/parser/listnode.h +97 -0
- data/ext/generator/parser/memorypool.cpp +20 -0
- data/ext/generator/parser/memorypool.h +41 -0
- data/ext/generator/parser/name_compiler.cpp +190 -0
- data/ext/generator/parser/name_compiler.h +77 -0
- data/ext/generator/parser/parser.cpp +4706 -0
- data/ext/generator/parser/parser.h +300 -0
- data/ext/generator/parser/parsesession.cpp +105 -0
- data/ext/generator/parser/parsesession.h +87 -0
- data/ext/generator/parser/problem.h +21 -0
- data/ext/generator/parser/rpp/CMakeLists.txt +39 -0
- data/ext/generator/parser/rpp/Makefile.am +13 -0
- data/ext/generator/parser/rpp/anchor.h +51 -0
- data/ext/generator/parser/rpp/appendedlist.h +363 -0
- data/ext/generator/parser/rpp/chartools.cpp +126 -0
- data/ext/generator/parser/rpp/chartools.h +90 -0
- data/ext/generator/parser/rpp/macrorepository.cpp +44 -0
- data/ext/generator/parser/rpp/macrorepository.h +59 -0
- data/ext/generator/parser/rpp/pp-configuration +86 -0
- data/ext/generator/parser/rpp/pp-engine.cpp +1216 -0
- data/ext/generator/parser/rpp/pp-engine.h +267 -0
- data/ext/generator/parser/rpp/pp-environment.cpp +271 -0
- data/ext/generator/parser/rpp/pp-environment.h +119 -0
- data/ext/generator/parser/rpp/pp-internal.cpp +38 -0
- data/ext/generator/parser/rpp/pp-internal.h +37 -0
- data/ext/generator/parser/rpp/pp-location.cpp +191 -0
- data/ext/generator/parser/rpp/pp-location.h +89 -0
- data/ext/generator/parser/rpp/pp-macro-expander.cpp +568 -0
- data/ext/generator/parser/rpp/pp-macro-expander.cpp.orig +558 -0
- data/ext/generator/parser/rpp/pp-macro-expander.h +130 -0
- data/ext/generator/parser/rpp/pp-macro.cpp +153 -0
- data/ext/generator/parser/rpp/pp-macro.h +176 -0
- data/ext/generator/parser/rpp/pp-scanner.cpp +310 -0
- data/ext/generator/parser/rpp/pp-scanner.h +97 -0
- data/ext/generator/parser/rpp/pp-stream.cpp +425 -0
- data/ext/generator/parser/rpp/pp-stream.h +183 -0
- data/ext/generator/parser/rpp/preprocessor.cpp +65 -0
- data/ext/generator/parser/rpp/preprocessor.h +80 -0
- data/ext/generator/parser/rpp/rpp.pri +2 -0
- data/ext/generator/parser/rpp/test/t001.cpp +23 -0
- data/ext/generator/parser/rpp/test/t002.cpp +15 -0
- data/ext/generator/parser/rpp/test/t003.cpp +10 -0
- data/ext/generator/parser/rpp/test/t004.cpp +9 -0
- data/ext/generator/parser/rpp/test/t005.cpp +10 -0
- data/ext/generator/parser/rpp/test/t006.cpp +10 -0
- data/ext/generator/parser/rpp/test/t007.cpp +6 -0
- data/ext/generator/parser/rpp/test/t008.cpp +6 -0
- data/ext/generator/parser/rpp/test/t009.cpp +5 -0
- data/ext/generator/parser/rpp/test/t010.cpp +15 -0
- data/ext/generator/parser/rpp/test/t011.cpp +9 -0
- data/ext/generator/parser/rpp/tests/CMakeLists.txt +13 -0
- data/ext/generator/parser/rpp/tests/main.cpp +69 -0
- data/ext/generator/parser/rxx.pri +50 -0
- data/ext/generator/parser/rxx_allocator.h +128 -0
- data/ext/generator/parser/safetycounter.h +57 -0
- data/ext/generator/parser/simplecursor.h +74 -0
- data/ext/generator/parser/stringhelpers.cpp +577 -0
- data/ext/generator/parser/stringhelpers.h +118 -0
- data/ext/generator/parser/symbol.h +140 -0
- data/ext/generator/parser/tests/CMakeLists.txt +30 -0
- data/ext/generator/parser/tests/test_generator.cpp +259 -0
- data/ext/generator/parser/tests/test_parser.cpp +474 -0
- data/ext/generator/parser/tests/test_pool.cpp +109 -0
- data/ext/generator/parser/tests/test_pool.h +35 -0
- data/ext/generator/parser/tests/testconfig.h.cmake +4 -0
- data/ext/generator/parser/tokens.cpp +364 -0
- data/ext/generator/parser/tokens.h +147 -0
- data/ext/generator/parser/type_compiler.cpp +135 -0
- data/ext/generator/parser/type_compiler.h +68 -0
- data/ext/generator/parser/visitor.cpp +115 -0
- data/ext/generator/parser/visitor.h +138 -0
- data/ext/generator/type.cpp +195 -0
- data/ext/generator/type.h +497 -0
- data/ext/generator/type_compiler.cpp +275 -0
- data/ext/generator/type_compiler.h +80 -0
- data/ext/ruby/CMakeLists.txt +63 -0
- data/ext/ruby/qtruby/AUTHORS +54 -0
- data/ext/ruby/qtruby/CMakeLists.txt +4 -0
- data/ext/ruby/qtruby/COPYING +355 -0
- data/ext/ruby/qtruby/COPYING.LIB +510 -0
- data/ext/ruby/qtruby/ChangeLog +3732 -0
- data/ext/ruby/qtruby/INSTALL +79 -0
- data/ext/ruby/qtruby/README +264 -0
- data/ext/ruby/qtruby/TODO +8 -0
- data/ext/ruby/qtruby/bin/CMakeLists.txt +1 -0
- data/ext/ruby/qtruby/bin/rbqtapi +152 -0
- data/ext/ruby/qtruby/examples/base/kicons.rb +54 -0
- data/ext/ruby/qtruby/examples/base/rui.rb +21 -0
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorbuilder.qrc +5 -0
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorform.rb +60 -0
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/calculatorform.ui +299 -0
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/main.rb +33 -0
- data/ext/ruby/qtruby/examples/designer/calculatorbuilder/makefile +2 -0
- data/ext/ruby/qtruby/examples/designer/calculatorform/calculatorform.rb +46 -0
- data/ext/ruby/qtruby/examples/designer/calculatorform/calculatorform.ui +277 -0
- data/ext/ruby/qtruby/examples/designer/calculatorform/main.rb +32 -0
- data/ext/ruby/qtruby/examples/designer/calculatorform/makefile +3 -0
- data/ext/ruby/qtruby/examples/desktop/screenshot/main.rb +32 -0
- data/ext/ruby/qtruby/examples/desktop/screenshot/screenshot.rb +156 -0
- data/ext/ruby/qtruby/examples/desktop/systray/images/bad.svg +64 -0
- data/ext/ruby/qtruby/examples/desktop/systray/images/heart.svg +55 -0
- data/ext/ruby/qtruby/examples/desktop/systray/images/trash.svg +58 -0
- data/ext/ruby/qtruby/examples/desktop/systray/main.rb +41 -0
- data/ext/ruby/qtruby/examples/desktop/systray/makefile +2 -0
- data/ext/ruby/qtruby/examples/desktop/systray/systray.qrc +7 -0
- data/ext/ruby/qtruby/examples/desktop/systray/window.rb +223 -0
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/complexwizard.rb +140 -0
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/licensewizard.rb +294 -0
- data/ext/ruby/qtruby/examples/dialogs/complexwizard/main.rb +31 -0
- data/ext/ruby/qtruby/examples/dialogs/configdialog/configdialog.rb +109 -0
- 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 +31 -0
- data/ext/ruby/qtruby/examples/dialogs/configdialog/pages.rb +140 -0
- data/ext/ruby/qtruby/examples/dialogs/extension/finddialog.rb +89 -0
- data/ext/ruby/qtruby/examples/dialogs/extension/main.rb +31 -0
- data/ext/ruby/qtruby/examples/dialogs/findfiles/main.rb +32 -0
- data/ext/ruby/qtruby/examples/dialogs/findfiles/window.rb +177 -0
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/classwizard.rb +374 -0
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/main.rb +31 -0
- data/ext/ruby/qtruby/examples/dialogs/simplewizard/simplewizard.rb +110 -0
- data/ext/ruby/qtruby/examples/dialogs/standarddialogs/dialog.rb +340 -0
- data/ext/ruby/qtruby/examples/dialogs/standarddialogs/main.rb +31 -0
- data/ext/ruby/qtruby/examples/dialogs/tabdialog/main.rb +38 -0
- data/ext/ruby/qtruby/examples/dialogs/tabdialog/tabdialog.rb +178 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggableicons/dragwidget.rb +125 -0
- 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 +41 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/draglabel.rb +51 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/dragwidget.rb +94 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/main.rb +33 -0
- data/ext/ruby/qtruby/examples/draganddrop/draggabletext/words.txt +41 -0
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/dropsitewidget.rb +98 -0
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/dropsitewindow.rb +114 -0
- data/ext/ruby/qtruby/examples/draganddrop/dropsite/main.rb +33 -0
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/draglabel.rb +78 -0
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/dragwidget.rb +130 -0
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/main.rb +33 -0
- data/ext/ruby/qtruby/examples/draganddrop/fridgemagnets/words.txt +48 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/example.jpg +0 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/main.rb +33 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/mainwindow.rb +136 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/pieceslist.rb +95 -0
- data/ext/ruby/qtruby/examples/draganddrop/puzzle/puzzlewidget.rb +190 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/images/cheese.jpg +0 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/main.rb +53 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/makefile +2 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/mice.qrc +5 -0
- data/ext/ruby/qtruby/examples/graphicsview/collidingmice/mouse.rb +176 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/coloritem.rb +86 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/images/head.png +0 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/main.rb +57 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/makefile +2 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/robot.qrc +5 -0
- data/ext/ruby/qtruby/examples/graphicsview/dragdroprobot/robot.rb +246 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/chart.qrc +5 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/main.rb +33 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/mainwindow.rb +151 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/makefile +2 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/mydata.cht +8 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/pieview.rb +516 -0
- data/ext/ruby/qtruby/examples/itemviews/chart/qtdata.cht +14 -0
- data/ext/ruby/qtruby/examples/itemviews/dirview/main.rb +39 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/imagemodel.rb +51 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/images.qrc +5 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/images/qt.png +0 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/main.rb +34 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/mainwindow.rb +218 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/makefile +3 -0
- data/ext/ruby/qtruby/examples/itemviews/pixelator/pixeldelegate.rb +67 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/example.jpg +0 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/main.rb +36 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/mainwindow.rb +143 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/piecesmodel.rb +174 -0
- data/ext/ruby/qtruby/examples/itemviews/puzzle/puzzlewidget.rb +192 -0
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/domitem.rb +62 -0
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/dommodel.rb +139 -0
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/main.rb +33 -0
- data/ext/ruby/qtruby/examples/itemviews/simpledommodel/mainwindow.rb +66 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/default.txt +40 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/main.rb +41 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/makefile +2 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/simpletreemodel.qrc +5 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/treeitem.rb +67 -0
- data/ext/ruby/qtruby/examples/itemviews/simpletreemodel/treemodel.rb +164 -0
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/default.txt +40 -0
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/main.rb +53 -0
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/treeitem.rb +73 -0
- data/ext/ruby/qtruby/examples/itemviews/sortingmodel/treemodel.rb +166 -0
- data/ext/ruby/qtruby/examples/itemviews/spinboxdelegate/main.rb +47 -0
- data/ext/ruby/qtruby/examples/itemviews/spinboxdelegate/spinboxdelegate.rb +62 -0
- data/ext/ruby/qtruby/examples/killerfilter/killerfilter.rb +55 -0
- data/ext/ruby/qtruby/examples/layouts/basiclayouts/dialog.rb +110 -0
- data/ext/ruby/qtruby/examples/layouts/basiclayouts/main.rb +31 -0
- data/ext/ruby/qtruby/examples/layouts/borderlayout/borderlayout.rb +190 -0
- data/ext/ruby/qtruby/examples/layouts/borderlayout/main.rb +32 -0
- data/ext/ruby/qtruby/examples/layouts/borderlayout/window.rb +52 -0
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/flowlayout.rb +108 -0
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/main.rb +32 -0
- data/ext/ruby/qtruby/examples/layouts/flowlayouts/window.rb +43 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/application/mainwindow.rb +285 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/dockwidgets/mainwindow.rb +302 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/mainwindow.rb +363 -0
- data/ext/ruby/qtruby/examples/mainwindows/mdi/mdichild.rb +152 -0
- data/ext/ruby/qtruby/examples/mainwindows/menus/main.rb +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/menus/mainwindow.rb +327 -0
- data/ext/ruby/qtruby/examples/mainwindows/recentfiles/main.rb +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/recentfiles/mainwindow.rb +258 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/mainwindows/sdi/mainwindow.rb +335 -0
- data/ext/ruby/qtruby/examples/network/broadcastreceiver/main.rb +32 -0
- data/ext/ruby/qtruby/examples/network/broadcastreceiver/receiver.rb +64 -0
- data/ext/ruby/qtruby/examples/network/broadcastsender/main.rb +32 -0
- data/ext/ruby/qtruby/examples/network/broadcastsender/sender.rb +70 -0
- data/ext/ruby/qtruby/examples/network/fortuneclient/client.rb +150 -0
- data/ext/ruby/qtruby/examples/network/fortuneclient/main.rb +32 -0
- data/ext/ruby/qtruby/examples/network/fortuneserver/main.rb +32 -0
- data/ext/ruby/qtruby/examples/network/fortuneserver/server.rb +88 -0
- data/ext/ruby/qtruby/examples/network/ftp/ftpwindow.rb +254 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/network/http/httpwindow.rb +187 -0
- data/ext/ruby/qtruby/examples/network/http/main.rb +32 -0
- data/ext/ruby/qtruby/examples/network/loopback/dialog.rb +163 -0
- data/ext/ruby/qtruby/examples/network/loopback/main.rb +32 -0
- data/ext/ruby/qtruby/examples/opengl/grabber/glwidget.rb +265 -0
- data/ext/ruby/qtruby/examples/opengl/grabber/main.rb +32 -0
- data/ext/ruby/qtruby/examples/opengl/grabber/mainwindow.rb +189 -0
- data/ext/ruby/qtruby/examples/opengl/hellogl/glwidget.rb +226 -0
- data/ext/ruby/qtruby/examples/opengl/hellogl/main.rb +32 -0
- data/ext/ruby/qtruby/examples/opengl/hellogl/window.rb +66 -0
- data/ext/ruby/qtruby/examples/opengl/textures/glwidget.rb +151 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/opengl/textures/window.rb +77 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/painting/basicdrawing/renderarea.rb +166 -0
- data/ext/ruby/qtruby/examples/painting/basicdrawing/window.rb +215 -0
- data/ext/ruby/qtruby/examples/painting/concentriccircles/circlewidget.rb +88 -0
- data/ext/ruby/qtruby/examples/painting/concentriccircles/main.rb +32 -0
- data/ext/ruby/qtruby/examples/painting/concentriccircles/window.rb +72 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/main.rb +32 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/mainwindow.rb +368 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/mainwindowbase.ui +136 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/makefile +8 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewdialog.rb +256 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewdialogbase.ui +224 -0
- data/ext/ruby/qtruby/examples/painting/fontsampler/previewlabel.rb +43 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/imagecomposer.rb +152 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/imagecomposition.qrc +6 -0
- 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 +33 -0
- data/ext/ruby/qtruby/examples/painting/imagecomposition/makefile +2 -0
- data/ext/ruby/qtruby/examples/painting/painterpaths/main.rb +32 -0
- data/ext/ruby/qtruby/examples/painting/painterpaths/renderarea.rb +97 -0
- data/ext/ruby/qtruby/examples/painting/painterpaths/window.rb +247 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/bubbles.svg +212 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/cubic.svg +77 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/files/spheres.svg +79 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/main.rb +38 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/mainwindow.rb +99 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/makefile +2 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgview.rb +156 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgviewer.qrc +6 -0
- data/ext/ruby/qtruby/examples/painting/svgviewer/svgwindow.rb +87 -0
- data/ext/ruby/qtruby/examples/painting/transformations/main.rb +32 -0
- data/ext/ruby/qtruby/examples/painting/transformations/renderarea.rb +127 -0
- data/ext/ruby/qtruby/examples/painting/transformations/window.rb +153 -0
- data/ext/ruby/qtruby/examples/passivepopup/passivepopup.rb +38 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/chat.rb +146 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/chat_adaptor.rb +12 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/chat_interface.rb +13 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/chatmainwindow.ui +184 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/chatsetnickname.ui +145 -0
- data/ext/ruby/qtruby/examples/qdbus/chat/makefile +8 -0
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/complexping.rb +92 -0
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/complexpong.rb +83 -0
- data/ext/ruby/qtruby/examples/qdbus/complexpingpong/ping-common.rb +1 -0
- data/ext/ruby/qtruby/examples/qdbus/listnames/listnames.rb +69 -0
- data/ext/ruby/qtruby/examples/qdbus/pingpong/ping-common.rb +1 -0
- data/ext/ruby/qtruby/examples/qdbus/pingpong/ping.rb +52 -0
- data/ext/ruby/qtruby/examples/qdbus/pingpong/pong.rb +55 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/car/car.rb +151 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/car/main.rb +50 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/controller.rb +66 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/controller.ui +61 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/main.rb +32 -0
- data/ext/ruby/qtruby/examples/qdbus/remotecontrolledcar/controller/makefile +2 -0
- data/ext/ruby/qtruby/examples/qtscribble/scribble.rb +270 -0
- data/ext/ruby/qtruby/examples/richtext/calendar/main.rb +33 -0
- data/ext/ruby/qtruby/examples/richtext/calendar/mainwindow.rb +173 -0
- data/ext/ruby/qtruby/examples/richtext/orderform/detailsdialog.rb +130 -0
- data/ext/ruby/qtruby/examples/richtext/orderform/main.rb +34 -0
- data/ext/ruby/qtruby/examples/richtext/orderform/mainwindow.rb +194 -0
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/examples/example +79 -0
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/highlighter.rb +90 -0
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/main.rb +34 -0
- data/ext/ruby/qtruby/examples/richtext/syntaxhighlighter/mainwindow.rb +105 -0
- data/ext/ruby/qtruby/examples/ruboids/Manifest +26 -0
- data/ext/ruby/qtruby/examples/ruboids/README +53 -0
- data/ext/ruby/qtruby/examples/ruboids/TODO +29 -0
- data/ext/ruby/qtruby/examples/ruboids/boids.properties +33 -0
- data/ext/ruby/qtruby/examples/ruboids/generateManifest.rb +42 -0
- data/ext/ruby/qtruby/examples/ruboids/index.html +147 -0
- data/ext/ruby/qtruby/examples/ruboids/release.rb +152 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Boid.rb +141 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/BoidView.rb +159 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Camera.rb +24 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/CameraDialog.rb +218 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Canvas.rb +143 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Cloud.rb +61 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/CloudView.rb +54 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Flock.rb +47 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Graphics.rb +278 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Params.rb +87 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Point.rb +153 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Thing.rb +34 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/Triangle.rb +21 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/View.rb +88 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/World.rb +82 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/WorldWindow.rb +52 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/info.rb +12 -0
- data/ext/ruby/qtruby/examples/ruboids/ruboids/ruboids.rb +29 -0
- data/ext/ruby/qtruby/examples/textedit/textedit.rb +150 -0
- data/ext/ruby/qtruby/examples/tutorial/t1/t1.rb +10 -0
- data/ext/ruby/qtruby/examples/tutorial/t10/cannon.rb +72 -0
- data/ext/ruby/qtruby/examples/tutorial/t10/lcdrange.rb +45 -0
- data/ext/ruby/qtruby/examples/tutorial/t10/t10.rb +55 -0
- data/ext/ruby/qtruby/examples/tutorial/t11/cannon.rb +124 -0
- data/ext/ruby/qtruby/examples/tutorial/t11/lcdrange.rb +45 -0
- data/ext/ruby/qtruby/examples/tutorial/t11/t11.rb +65 -0
- data/ext/ruby/qtruby/examples/tutorial/t12/cannon.rb +158 -0
- data/ext/ruby/qtruby/examples/tutorial/t12/lcdrange.rb +59 -0
- data/ext/ruby/qtruby/examples/tutorial/t12/t12.rb +66 -0
- data/ext/ruby/qtruby/examples/tutorial/t13/cannon.rb +208 -0
- data/ext/ruby/qtruby/examples/tutorial/t13/gamebrd.rb +113 -0
- data/ext/ruby/qtruby/examples/tutorial/t13/lcdrange.rb +60 -0
- data/ext/ruby/qtruby/examples/tutorial/t13/t13.rb +11 -0
- data/ext/ruby/qtruby/examples/tutorial/t14/cannon.rb +263 -0
- data/ext/ruby/qtruby/examples/tutorial/t14/gamebrd.rb +123 -0
- data/ext/ruby/qtruby/examples/tutorial/t14/lcdrange.rb +63 -0
- data/ext/ruby/qtruby/examples/tutorial/t14/t14.rb +11 -0
- data/ext/ruby/qtruby/examples/tutorial/t2/t2.rb +16 -0
- data/ext/ruby/qtruby/examples/tutorial/t3/t3.rb +18 -0
- data/ext/ruby/qtruby/examples/tutorial/t4/t4.rb +25 -0
- data/ext/ruby/qtruby/examples/tutorial/t5/t5.rb +37 -0
- data/ext/ruby/qtruby/examples/tutorial/t6/t6.rb +52 -0
- data/ext/ruby/qtruby/examples/tutorial/t7/lcdrange.rb +32 -0
- data/ext/ruby/qtruby/examples/tutorial/t7/t7.rb +42 -0
- data/ext/ruby/qtruby/examples/tutorial/t8/cannon.rb +38 -0
- data/ext/ruby/qtruby/examples/tutorial/t8/lcdrange.rb +45 -0
- data/ext/ruby/qtruby/examples/tutorial/t8/t8.rb +43 -0
- data/ext/ruby/qtruby/examples/tutorial/t9/cannon.rb +45 -0
- data/ext/ruby/qtruby/examples/tutorial/t9/lcdrange.rb +46 -0
- data/ext/ruby/qtruby/examples/tutorial/t9/t9.rb +43 -0
- data/ext/ruby/qtruby/examples/widgets/analogclock/analogclock.rb +94 -0
- data/ext/ruby/qtruby/examples/widgets/analogclock/main.rb +9 -0
- data/ext/ruby/qtruby/examples/widgets/calculator/button.rb +45 -0
- data/ext/ruby/qtruby/examples/widgets/calculator/calculator.rb +382 -0
- data/ext/ruby/qtruby/examples/widgets/calculator/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/charactermap/characterwidget.rb +110 -0
- data/ext/ruby/qtruby/examples/widgets/charactermap/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/charactermap/mainwindow.rb +118 -0
- data/ext/ruby/qtruby/examples/widgets/digitalclock/digitalclock.rb +30 -0
- data/ext/ruby/qtruby/examples/widgets/digitalclock/main.rb +9 -0
- data/ext/ruby/qtruby/examples/widgets/groupbox/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/groupbox/window.rb +134 -0
- data/ext/ruby/qtruby/examples/widgets/icons/iconpreviewarea.rb +111 -0
- data/ext/ruby/qtruby/examples/widgets/icons/iconsizespinbox.rb +39 -0
- data/ext/ruby/qtruby/examples/widgets/icons/imagedelegate.rb +73 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/widgets/icons/mainwindow.rb +351 -0
- data/ext/ruby/qtruby/examples/widgets/imageviewer/imageviewer.rb +219 -0
- data/ext/ruby/qtruby/examples/widgets/imageviewer/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/lineedits/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/lineedits/window.rb +199 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/widgets/movie/movieplayer.rb +201 -0
- data/ext/ruby/qtruby/examples/widgets/movie/movies/fire.mng +0 -0
- data/ext/ruby/qtruby/examples/widgets/screenshot/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/screenshot/screenshot.rb +155 -0
- data/ext/ruby/qtruby/examples/widgets/scribble/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/scribble/mainwindow.rb +202 -0
- data/ext/ruby/qtruby/examples/widgets/scribble/scribblearea.rb +154 -0
- data/ext/ruby/qtruby/examples/widgets/sliders/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/sliders/slidersgroup.rb +97 -0
- data/ext/ruby/qtruby/examples/widgets/sliders/window.rb +124 -0
- data/ext/ruby/qtruby/examples/widgets/spinboxes/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/spinboxes/window.rb +213 -0
- data/ext/ruby/qtruby/examples/widgets/tetrix/main.rb +33 -0
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixboard.rb +346 -0
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixpiece.rb +135 -0
- data/ext/ruby/qtruby/examples/widgets/tetrix/tetrixwindow.rb +88 -0
- 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 +32 -0
- data/ext/ruby/qtruby/examples/widgets/tooltips/shapeitem.rb +31 -0
- data/ext/ruby/qtruby/examples/widgets/tooltips/sortingbox.rb +222 -0
- data/ext/ruby/qtruby/examples/widgets/wiggly/dialog.rb +48 -0
- data/ext/ruby/qtruby/examples/widgets/wiggly/main.rb +9 -0
- data/ext/ruby/qtruby/examples/widgets/wiggly/wigglywidget.rb +76 -0
- data/ext/ruby/qtruby/examples/widgets/windowflags/controllerwindow.rb +195 -0
- data/ext/ruby/qtruby/examples/widgets/windowflags/main.rb +32 -0
- data/ext/ruby/qtruby/examples/widgets/windowflags/previewwindow.rb +103 -0
- data/ext/ruby/qtruby/examples/xml/dombookmarks/frank.xbel +230 -0
- data/ext/ruby/qtruby/examples/xml/dombookmarks/jennifer.xbel +93 -0
- data/ext/ruby/qtruby/examples/xml/dombookmarks/main.rb +34 -0
- data/ext/ruby/qtruby/examples/xml/dombookmarks/mainwindow.rb +129 -0
- data/ext/ruby/qtruby/examples/xml/dombookmarks/xbeltree.rb +172 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/frank.xbel +230 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/jennifer.xbel +93 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/main.rb +34 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/mainwindow.rb +144 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/xbelgenerator.rb +95 -0
- data/ext/ruby/qtruby/examples/xml/saxbookmarks/xbelhandler.rb +122 -0
- data/ext/ruby/qtruby/rails_support/CMakeLists.txt +1 -0
- data/ext/ruby/qtruby/rails_support/active_item_model.rb +234 -0
- data/ext/ruby/qtruby/rails_support/active_table_model.rb +122 -0
- data/ext/ruby/qtruby/src/CMakeLists.txt +103 -0
- data/ext/ruby/qtruby/src/Qt.cpp +1279 -0
- data/ext/ruby/qtruby/src/extconf.rb +11 -0
- data/ext/ruby/qtruby/src/handlers.cpp +2622 -0
- data/ext/ruby/qtruby/src/lib/CMakeLists.txt +16 -0
- data/ext/ruby/qtruby/src/lib/Qt.rb +1 -0
- data/ext/ruby/qtruby/src/lib/Qt/CMakeLists.txt +9 -0
- data/ext/ruby/qtruby/src/lib/Qt/qtruby4.rb +3177 -0
- data/ext/ruby/qtruby/src/lib/Qt3.rb +6 -0
- data/ext/ruby/qtruby/src/lib/Qt4.rb +6 -0
- data/ext/ruby/qtruby/src/marshall.h +66 -0
- data/ext/ruby/qtruby/src/marshall_basetypes.h +208 -0
- data/ext/ruby/qtruby/src/marshall_complex.h +175 -0
- data/ext/ruby/qtruby/src/marshall_macros.h +647 -0
- data/ext/ruby/qtruby/src/marshall_primitives.h +290 -0
- data/ext/ruby/qtruby/src/marshall_types.cpp +815 -0
- data/ext/ruby/qtruby/src/marshall_types.h +240 -0
- data/ext/ruby/qtruby/src/qtruby.cpp +2483 -0
- data/ext/ruby/qtruby/src/qtruby.h +185 -0
- data/ext/ruby/qtruby/src/smokeruby.h +164 -0
- data/ext/ruby/qtruby/test/opoverloading.rb +46 -0
- data/ext/ruby/qtruby/test/unittests.rb +151 -0
- data/ext/ruby/qtruby/tools/CMakeLists.txt +2 -0
- data/ext/ruby/qtruby/tools/rbrcc/CMakeLists.txt +6 -0
- data/ext/ruby/qtruby/tools/rbrcc/Messages.sh +7 -0
- data/ext/ruby/qtruby/tools/rbrcc/main.cpp +173 -0
- data/ext/ruby/qtruby/tools/rbrcc/rbrcc.pro +14 -0
- data/ext/ruby/qtruby/tools/rbrcc/rcc.cpp +648 -0
- data/ext/ruby/qtruby/tools/rbrcc/rcc.h +165 -0
- data/ext/ruby/qtruby/tools/rbuic/CMakeLists.txt +35 -0
- data/ext/ruby/qtruby/tools/rbuic/LICENSE.GPL +280 -0
- data/ext/ruby/qtruby/tools/rbuic/Messages.sh +7 -0
- data/ext/ruby/qtruby/tools/rbuic/TODO +4 -0
- data/ext/ruby/qtruby/tools/rbuic/customwidgetsinfo.cpp +106 -0
- data/ext/ruby/qtruby/tools/rbuic/customwidgetsinfo.h +95 -0
- data/ext/ruby/qtruby/tools/rbuic/databaseinfo.cpp +102 -0
- data/ext/ruby/qtruby/tools/rbuic/databaseinfo.h +85 -0
- data/ext/ruby/qtruby/tools/rbuic/driver.cpp +384 -0
- data/ext/ruby/qtruby/tools/rbuic/driver.h +141 -0
- data/ext/ruby/qtruby/tools/rbuic/globaldefs.h +60 -0
- data/ext/ruby/qtruby/tools/rbuic/main.cpp +201 -0
- data/ext/ruby/qtruby/tools/rbuic/option.h +107 -0
- data/ext/ruby/qtruby/tools/rbuic/rbuic.pri +23 -0
- data/ext/ruby/qtruby/tools/rbuic/rbuic4.pro +43 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbextractimages.cpp +150 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbextractimages.h +83 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwritedeclaration.cpp +217 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwritedeclaration.h +85 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteicondata.cpp +185 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteicondata.h +86 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteicondeclaration.cpp +88 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteicondeclaration.h +83 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteiconinitialization.cpp +126 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteiconinitialization.h +87 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteinitialization.cpp +2478 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/rbwriteinitialization.h +314 -0
- data/ext/ruby/qtruby/tools/rbuic/ruby/ruby.pri +18 -0
- data/ext/ruby/qtruby/tools/rbuic/treewalker.cpp +318 -0
- data/ext/ruby/qtruby/tools/rbuic/treewalker.h +139 -0
- data/ext/ruby/qtruby/tools/rbuic/ui4.cpp +7623 -0
- data/ext/ruby/qtruby/tools/rbuic/ui4.h +3180 -0
- data/ext/ruby/qtruby/tools/rbuic/uic.cpp +438 -0
- data/ext/ruby/qtruby/tools/rbuic/uic.h +154 -0
- data/ext/ruby/qtruby/tools/rbuic/utils.h +125 -0
- data/ext/ruby/qtruby/tools/rbuic/validator.cpp +100 -0
- data/ext/ruby/qtruby/tools/rbuic/validator.h +80 -0
- data/ext/ruby/qtscript/CMakeLists.txt +19 -0
- data/ext/ruby/qtscript/qtscript.cpp +82 -0
- data/ext/ruby/qtscript/qtscript.rb +40 -0
- data/ext/ruby/qtscript/qtscripthandlers.cpp +36 -0
- data/ext/ruby/qtscript/smokedata.cpp +1403 -0
- data/ext/ruby/qttest/CMakeLists.txt +18 -0
- data/ext/ruby/qttest/ChangeLog +9 -0
- data/ext/ruby/qttest/examples/myfirsttest.rb +30 -0
- data/ext/ruby/qttest/qttest.cpp +82 -0
- data/ext/ruby/qttest/qttest.rb +166 -0
- data/ext/ruby/qttest/qttesthandlers.cpp +35 -0
- data/ext/ruby/qtuitools/CMakeLists.txt +16 -0
- data/ext/ruby/qtuitools/qtuitools.cpp +82 -0
- data/ext/ruby/qtuitools/qtuitools.rb +17 -0
- data/ext/ruby/qtuitools/qtuitoolshandlers.cpp +31 -0
- data/ext/ruby/qtwebkit/CMakeLists.txt +17 -0
- data/ext/ruby/qtwebkit/qtwebkit.cpp +66 -0
- data/ext/ruby/qtwebkit/qtwebkit.rb +17 -0
- data/ext/ruby/qtwebkit/qtwebkithandlers.cpp +39 -0
- data/ext/smoke/CMakeLists.txt +35 -0
- data/ext/smoke/deptool/CMakeLists.txt +7 -0
- data/ext/smoke/deptool/main.cpp +128 -0
- data/ext/smoke/qt_smoke.h +16 -0
- data/ext/smoke/qtcore/CMakeLists.txt +88 -0
- data/ext/smoke/qtcore/QtGuess.txt +181 -0
- data/ext/smoke/qtcore/config.xml.cmake +10 -0
- data/ext/smoke/qtcore/qt-config.xml.cmake +21 -0
- data/ext/smoke/qtcore/qtcore_includes.h +1 -0
- data/ext/smoke/qtcore/smokeconfig.xml +189 -0
- data/ext/smoke/qtcore/tests/CMakeLists.txt +13 -0
- data/ext/smoke/qtcore/tests/test.cpp +846 -0
- data/ext/smoke/qtcore_smoke.h +16 -0
- data/ext/smoke/qtdbus/CMakeLists.txt +38 -0
- data/ext/smoke/qtdbus/config.xml.cmake +11 -0
- data/ext/smoke/qtdbus/qtdbus_includes.h +2 -0
- data/ext/smoke/qtdbus/smokeconfig.xml +63 -0
- data/ext/smoke/qtdbus_smoke.h +16 -0
- data/ext/smoke/qtgui/CMakeLists.txt +76 -0
- data/ext/smoke/qtgui/config.xml.cmake +11 -0
- data/ext/smoke/qtgui/qtgui_includes.h +7 -0
- data/ext/smoke/qtgui/smokeconfig.xml +490 -0
- data/ext/smoke/qtgui_smoke.h +16 -0
- data/ext/smoke/qtmultimedia/CMakeLists.txt +42 -0
- data/ext/smoke/qtmultimedia/config.xml.cmake +12 -0
- data/ext/smoke/qtmultimedia/qtmultimedia_includes.h +3 -0
- data/ext/smoke/qtmultimedia/smokeconfig.xml +50 -0
- data/ext/smoke/qtmultimedia_smoke.h +16 -0
- data/ext/smoke/qtnetwork/CMakeLists.txt +38 -0
- data/ext/smoke/qtnetwork/config.xml.cmake +11 -0
- data/ext/smoke/qtnetwork/qtnetwork_includes.h +2 -0
- data/ext/smoke/qtnetwork/smokeconfig.xml +76 -0
- data/ext/smoke/qtnetwork_smoke.h +16 -0
- data/ext/smoke/qtopengl/CMakeLists.txt +43 -0
- data/ext/smoke/qtopengl/config.xml.cmake +12 -0
- data/ext/smoke/qtopengl/qtopengl_includes.h +3 -0
- data/ext/smoke/qtopengl/smokeconfig.xml +56 -0
- data/ext/smoke/qtopengl_smoke.h +16 -0
- data/ext/smoke/qtscript/CMakeLists.txt +31 -0
- data/ext/smoke/qtscript/config.xml.cmake +11 -0
- data/ext/smoke/qtscript/qtscript_includes.h +14 -0
- data/ext/smoke/qtscript/smokeconfig.xml +39 -0
- data/ext/smoke/qtscript_smoke.h +16 -0
- data/ext/smoke/qtsql/CMakeLists.txt +41 -0
- data/ext/smoke/qtsql/config.xml.cmake +11 -0
- data/ext/smoke/qtsql/qtsql_includes.h +2 -0
- data/ext/smoke/qtsql/smokeconfig.xml +56 -0
- data/ext/smoke/qtsql_smoke.h +16 -0
- data/ext/smoke/qtsvg/CMakeLists.txt +43 -0
- data/ext/smoke/qtsvg/config.xml.cmake +12 -0
- data/ext/smoke/qtsvg/qtsvg_includes.h +3 -0
- data/ext/smoke/qtsvg/smokeconfig.xml +45 -0
- data/ext/smoke/qtsvg_smoke.h +16 -0
- data/ext/smoke/qttest/CMakeLists.txt +35 -0
- data/ext/smoke/qttest/config.xml.cmake +12 -0
- data/ext/smoke/qttest/qttest_includes.h +14 -0
- data/ext/smoke/qttest/smokeconfig.xml +36 -0
- data/ext/smoke/qttest_smoke.h +16 -0
- data/ext/smoke/qtuitools/CMakeLists.txt +30 -0
- data/ext/smoke/qtuitools/config.xml.cmake +12 -0
- data/ext/smoke/qtuitools/qtuitools_includes.h +1 -0
- data/ext/smoke/qtuitools/smokeconfig.xml +20 -0
- data/ext/smoke/qtuitools_smoke.h +16 -0
- data/ext/smoke/qtwebkit/CMakeLists.txt +36 -0
- data/ext/smoke/qtwebkit/config.xml.cmake +11 -0
- data/ext/smoke/qtwebkit/qtwebkit_includes.h +1 -0
- data/ext/smoke/qtwebkit/smokeconfig.xml +45 -0
- data/ext/smoke/qtwebkit_smoke.h +16 -0
- data/ext/smoke/qtxml/CMakeLists.txt +41 -0
- data/ext/smoke/qtxml/config.xml.cmake +11 -0
- data/ext/smoke/qtxml/qtxml_includes.h +2 -0
- data/ext/smoke/qtxml/smokeconfig.xml +70 -0
- data/ext/smoke/qtxml_smoke.h +16 -0
- data/ext/smoke/qtxmlpatterns/CMakeLists.txt +42 -0
- data/ext/smoke/qtxmlpatterns/config.xml.cmake +12 -0
- data/ext/smoke/qtxmlpatterns/qtxmlpatterns_includes.h +3 -0
- data/ext/smoke/qtxmlpatterns/smokeconfig.xml +80 -0
- data/ext/smoke/qtxmlpatterns_smoke.h +16 -0
- data/ext/smoke/smoke.h +557 -0
- data/ext/smoke/smokeapi/CMakeLists.txt +9 -0
- data/ext/smoke/smokeapi/main.cpp +309 -0
- data/ext/smoke/smokebase/CMakeLists.txt +11 -0
- data/ext/smoke/smokebase/smokebase.cpp +6 -0
- data/ext/smoke/solid_smoke.h +16 -0
- data/extconf.rb +231 -0
- 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.rb +1 -0
- data/lib/Qt/qtruby4.rb +3177 -0
- data/lib/Qt4.rb +20 -0
- data/lib/qtbindings_version.rb +2 -0
- data/lib/qtscript/qtscript.rb +40 -0
- data/lib/qttest/qttest.rb +166 -0
- data/lib/qtuitools/qtuitools.rb +17 -0
- data/lib/qtwebkit/qtwebkit.rb +17 -0
- data/qtbindings.gemspec +18 -0
- data/qtbindingsnative.gemspec +18 -0
- metadata +1297 -0
@@ -0,0 +1,76 @@
|
|
1
|
+
/* This file is part of KDevelop
|
2
|
+
Copyright 2002-2005 Roberto Raggi <roberto@kdevelop.org>
|
3
|
+
|
4
|
+
This library is free software; you can redistribute it and/or
|
5
|
+
modify it under the terms of the GNU Library General Public
|
6
|
+
License version 2 as published by the Free Software Foundation.
|
7
|
+
|
8
|
+
This library is distributed in the hope that it will be useful,
|
9
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
Library General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU Library General Public License
|
14
|
+
along with this library; see the file COPYING.LIB. If not, write to
|
15
|
+
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
16
|
+
Boston, MA 02110-1301, USA.
|
17
|
+
*/
|
18
|
+
|
19
|
+
#ifndef NAME_COMPILER_H
|
20
|
+
#define NAME_COMPILER_H
|
21
|
+
|
22
|
+
#include <QString>
|
23
|
+
#include <QStringList>
|
24
|
+
|
25
|
+
#include "generator_export.h"
|
26
|
+
#include "default_visitor.h"
|
27
|
+
#include "type.h"
|
28
|
+
|
29
|
+
class ParseSession;
|
30
|
+
class OperatorAST;
|
31
|
+
class GeneratorVisitor;
|
32
|
+
|
33
|
+
class GENERATOR_EXPORT NameCompiler: protected DefaultVisitor
|
34
|
+
{
|
35
|
+
public:
|
36
|
+
NameCompiler(ParseSession* session, GeneratorVisitor* visitor);
|
37
|
+
|
38
|
+
void run(NameAST *node);
|
39
|
+
void run(UnqualifiedNameAST *node) { m_typeSpecifier = 0; internal_run(node); }
|
40
|
+
|
41
|
+
QString name() const { return m_name.join("::"); }
|
42
|
+
const QStringList& qualifiedName() const { return m_name; }
|
43
|
+
// the int specifies the position of the template arguments.
|
44
|
+
// in case of Foo<void*, int>::Bar it would be 0 => { void*, int }
|
45
|
+
QMap<int, QList<Type> > templateArguments() const { return m_templateArgs; }
|
46
|
+
bool isCastOperator() const { return m_castType.isValid(); }
|
47
|
+
const Type& castType() const { return m_castType; }
|
48
|
+
|
49
|
+
/**
|
50
|
+
* When the name contains one type-specifier, this should contain that specifier after the run.
|
51
|
+
* Especially this is the type-specifier of a conversion-operator like "operator int()"
|
52
|
+
* */
|
53
|
+
TypeSpecifierAST* lastTypeSpecifier() const;
|
54
|
+
|
55
|
+
protected:
|
56
|
+
virtual void visitUnqualifiedName(UnqualifiedNameAST *node);
|
57
|
+
virtual void visitTemplateArgument(TemplateArgumentAST *node);
|
58
|
+
|
59
|
+
void internal_run(AST *node);
|
60
|
+
|
61
|
+
private:
|
62
|
+
ParseSession* m_session;
|
63
|
+
TypeSpecifierAST* m_typeSpecifier;
|
64
|
+
QStringList m_name;
|
65
|
+
QString m_currentIdentifier;
|
66
|
+
QMap<int, QList<Type> > m_templateArgs;
|
67
|
+
GeneratorVisitor* m_visitor;
|
68
|
+
Type m_castType;
|
69
|
+
};
|
70
|
+
|
71
|
+
//Extracts a type-identifier from a template argument
|
72
|
+
// KDevelop::IndexedTypeIdentifier Q_DECL_EXPORT typeIdentifierFromTemplateArgument(ParseSession* session, TemplateArgumentAST *node);
|
73
|
+
uint GENERATOR_EXPORT parseConstVolatile(ParseSession* session, const ListNode<std::size_t> *cv);
|
74
|
+
|
75
|
+
#endif // NAME_COMPILER_H
|
76
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) 2009 Arno Rehn <arno@arnorehn.de>
|
3
|
+
|
4
|
+
This program is free software; you can redistribute it and/or modify
|
5
|
+
it under the terms of the GNU General Public License as published by
|
6
|
+
the Free Software Foundation; either version 2 of the License, or
|
7
|
+
(at your option) any later version.
|
8
|
+
|
9
|
+
This program is distributed in the hope that it will be useful,
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
GNU General Public License for more details.
|
13
|
+
|
14
|
+
You should have received a copy of the GNU General Public License along
|
15
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
16
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
17
|
+
*/
|
18
|
+
|
19
|
+
#include <QDir>
|
20
|
+
#include <QFileInfo>
|
21
|
+
#include <QList>
|
22
|
+
#include <QRegExp>
|
23
|
+
#include <QSet>
|
24
|
+
|
25
|
+
#include "options.h"
|
26
|
+
|
27
|
+
QFileInfo ParserOptions::definesList;
|
28
|
+
QList<QFileInfo>ParserOptions:: headerList;
|
29
|
+
QList<QDir> ParserOptions::includeDirs;
|
30
|
+
bool ParserOptions::resolveTypedefs = false;
|
31
|
+
bool ParserOptions::qtMode = false;
|
32
|
+
QStringList ParserOptions::dropMacros;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (C) 2009 Arno Rehn <arno@arnorehn.de>
|
3
|
+
|
4
|
+
This program is free software; you can redistribute it and/or modify
|
5
|
+
it under the terms of the GNU General Public License as published by
|
6
|
+
the Free Software Foundation; either version 2 of the License, or
|
7
|
+
(at your option) any later version.
|
8
|
+
|
9
|
+
This program is distributed in the hope that it will be useful,
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
GNU General Public License for more details.
|
13
|
+
|
14
|
+
You should have received a copy of the GNU General Public License along
|
15
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
16
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
17
|
+
*/
|
18
|
+
|
19
|
+
#ifndef GENERATOR_OPTIONS_H
|
20
|
+
#define GENERATOR_OPTIONS_H
|
21
|
+
|
22
|
+
#include "generator_export.h"
|
23
|
+
|
24
|
+
class QDir;
|
25
|
+
class QFileInfo;
|
26
|
+
template<typename T>
|
27
|
+
class QSet;
|
28
|
+
template<typename T>
|
29
|
+
class QList;
|
30
|
+
class QRegExp;
|
31
|
+
class QStringList;
|
32
|
+
|
33
|
+
class Typedef;
|
34
|
+
|
35
|
+
struct GENERATOR_EXPORT ParserOptions
|
36
|
+
{
|
37
|
+
static QFileInfo definesList;
|
38
|
+
static QList<QFileInfo> headerList;
|
39
|
+
static QList<QDir> includeDirs;
|
40
|
+
static bool resolveTypedefs;
|
41
|
+
static bool qtMode;
|
42
|
+
static QStringList dropMacros;
|
43
|
+
};
|
44
|
+
|
45
|
+
#endif
|
@@ -0,0 +1,41 @@
|
|
1
|
+
project(parser)
|
2
|
+
|
3
|
+
# add_subdirectory(tests)
|
4
|
+
|
5
|
+
########### next target ###############
|
6
|
+
|
7
|
+
set(cppparser_LIB_SRCS
|
8
|
+
ast.cpp
|
9
|
+
default_visitor.cpp
|
10
|
+
memorypool.cpp
|
11
|
+
visitor.cpp
|
12
|
+
control.cpp
|
13
|
+
lexer.cpp
|
14
|
+
parser.cpp
|
15
|
+
listnode.cpp
|
16
|
+
tokens.cpp
|
17
|
+
dumptree.cpp
|
18
|
+
parsesession.cpp
|
19
|
+
commentparser.cpp
|
20
|
+
commentformatter.cpp
|
21
|
+
codegenerator.cpp
|
22
|
+
indexedstring.cpp
|
23
|
+
stringhelpers.cpp
|
24
|
+
|
25
|
+
rpp/pp-stream.cpp
|
26
|
+
rpp/pp-macro-expander.cpp
|
27
|
+
rpp/pp-scanner.cpp
|
28
|
+
rpp/pp-macro.cpp
|
29
|
+
rpp/pp-engine.cpp
|
30
|
+
rpp/pp-internal.cpp
|
31
|
+
rpp/pp-environment.cpp
|
32
|
+
rpp/pp-location.cpp
|
33
|
+
rpp/preprocessor.cpp
|
34
|
+
rpp/chartools.cpp
|
35
|
+
)
|
36
|
+
|
37
|
+
add_definitions(-D__CPPPARSER_BUILDING)
|
38
|
+
add_library(cppparser SHARED ${cppparser_LIB_SRCS})
|
39
|
+
target_link_libraries(cppparser ${QT_QTCORE_LIBRARY})
|
40
|
+
|
41
|
+
install(TARGETS cppparser DESTINATION ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX} )
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/* This file is part of KDevelop
|
2
|
+
Copyright 2002-2005 Roberto Raggi <roberto@kdevelop.org>
|
3
|
+
|
4
|
+
This library is free software; you can redistribute it and/or
|
5
|
+
modify it under the terms of the GNU Library General Public
|
6
|
+
License version 2 as published by the Free Software Foundation.
|
7
|
+
|
8
|
+
This library is distributed in the hope that it will be useful,
|
9
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
Library General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU Library General Public License
|
14
|
+
along with this library; see the file COPYING.LIB. If not, write to
|
15
|
+
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
16
|
+
Boston, MA 02110-1301, USA.
|
17
|
+
*/
|
18
|
+
|
19
|
+
#include "ast.h"
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,923 @@
|
|
1
|
+
/* This file is part of KDevelop
|
2
|
+
Copyright 2002-2005 Roberto Raggi <roberto@kdevelop.org>
|
3
|
+
|
4
|
+
This library is free software; you can redistribute it and/or
|
5
|
+
modify it under the terms of the GNU Library General Public
|
6
|
+
License version 2 as published by the Free Software Foundation.
|
7
|
+
|
8
|
+
This library is distributed in the hope that it will be useful,
|
9
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
11
|
+
Library General Public License for more details.
|
12
|
+
|
13
|
+
You should have received a copy of the GNU Library General Public License
|
14
|
+
along with this library; see the file COPYING.LIB. If not, write to
|
15
|
+
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
16
|
+
Boston, MA 02110-1301, USA.
|
17
|
+
*/
|
18
|
+
|
19
|
+
#ifndef AST_H
|
20
|
+
#define AST_H
|
21
|
+
|
22
|
+
#include "memorypool.h"
|
23
|
+
#include "listnode.h"
|
24
|
+
|
25
|
+
#define DECLARE_AST_NODE(k) \
|
26
|
+
enum { __node_kind = Kind_##k };
|
27
|
+
|
28
|
+
class ParseSession;
|
29
|
+
struct AccessSpecifierAST;
|
30
|
+
struct AsmDefinitionAST;
|
31
|
+
struct BaseClauseAST;
|
32
|
+
struct BaseSpecifierAST;
|
33
|
+
struct BinaryExpressionAST;
|
34
|
+
struct CastExpressionAST;
|
35
|
+
struct ClassMemberAccessAST;
|
36
|
+
struct ClassSpecifierAST;
|
37
|
+
struct CompoundStatementAST;
|
38
|
+
struct ConditionAST;
|
39
|
+
struct ConditionalExpressionAST;
|
40
|
+
struct CppCastExpressionAST;
|
41
|
+
struct CtorInitializerAST;
|
42
|
+
struct DeclarationAST;
|
43
|
+
struct DeclarationStatementAST;
|
44
|
+
struct DeclaratorAST;
|
45
|
+
struct DeleteExpressionAST;
|
46
|
+
struct DoStatementAST;
|
47
|
+
struct Elaborated;
|
48
|
+
struct EnumSpecifierAST;
|
49
|
+
struct EnumeratorAST;
|
50
|
+
struct ExceptionSpecificationAST;
|
51
|
+
struct ExpressionAST;
|
52
|
+
struct ExpressionOrDeclarationStatementAST;
|
53
|
+
struct ExpressionStatementAST;
|
54
|
+
struct ForStatementAST;
|
55
|
+
struct FunctionCallAST;
|
56
|
+
struct FunctionDefinitionAST;
|
57
|
+
struct IfStatementAST;
|
58
|
+
struct IncrDecrExpressionAST;
|
59
|
+
struct InitDeclaratorAST;
|
60
|
+
struct InitializerAST;
|
61
|
+
struct InitializerClauseAST;
|
62
|
+
struct LabeledStatementAST;
|
63
|
+
struct LinkageBodyAST;
|
64
|
+
struct LinkageSpecificationAST;
|
65
|
+
struct MemInitializerAST;
|
66
|
+
struct NameAST;
|
67
|
+
struct NamespaceAST;
|
68
|
+
struct NamespaceAliasDefinitionAST;
|
69
|
+
struct NewDeclaratorAST;
|
70
|
+
struct NewExpressionAST;
|
71
|
+
struct NewInitializerAST;
|
72
|
+
struct NewTypeIdAST;
|
73
|
+
struct OperatorAST;
|
74
|
+
struct OperatorFunctionIdAST;
|
75
|
+
struct ParameterDeclarationAST;
|
76
|
+
struct ParameterDeclarationClauseAST;
|
77
|
+
struct PostfixExpressionAST;
|
78
|
+
struct PrimaryExpressionAST;
|
79
|
+
struct PtrOperatorAST;
|
80
|
+
struct PtrToMemberAST;
|
81
|
+
struct ReturnStatementAST;
|
82
|
+
struct SimpleDeclarationAST;
|
83
|
+
struct SimpleTypeSpecifierAST;
|
84
|
+
struct SizeofExpressionAST;
|
85
|
+
struct StatementAST;
|
86
|
+
struct StringLiteralAST;
|
87
|
+
struct SubscriptExpressionAST;
|
88
|
+
struct SwitchStatementAST;
|
89
|
+
struct TemplateArgumentAST;
|
90
|
+
struct TemplateDeclarationAST;
|
91
|
+
struct TemplateParameterAST;
|
92
|
+
struct ThrowExpressionAST;
|
93
|
+
struct TranslationUnitAST;
|
94
|
+
struct TryBlockStatementAST;
|
95
|
+
struct CatchStatementAST;
|
96
|
+
struct TypeIdAST;
|
97
|
+
struct TypeIdentificationAST;
|
98
|
+
struct TypeParameterAST;
|
99
|
+
struct TypeSpecifierAST;
|
100
|
+
struct TypedefAST;
|
101
|
+
struct UnaryExpressionAST;
|
102
|
+
struct UnqualifiedNameAST;
|
103
|
+
struct UsingAST;
|
104
|
+
struct UsingDirectiveAST;
|
105
|
+
struct WhileStatementAST;
|
106
|
+
struct WinDeclSpecAST;
|
107
|
+
|
108
|
+
struct AST
|
109
|
+
{///@warning When adding new nodes here, also modify the names[] array in dumptree.cpp
|
110
|
+
enum NODE_KIND
|
111
|
+
{
|
112
|
+
Kind_UNKNOWN = 0,
|
113
|
+
|
114
|
+
Kind_AccessSpecifier, // 1
|
115
|
+
Kind_AsmDefinition, // 2
|
116
|
+
Kind_BaseClause, // 3
|
117
|
+
Kind_BaseSpecifier, // 4
|
118
|
+
Kind_BinaryExpression, // 5
|
119
|
+
Kind_CastExpression, // 6
|
120
|
+
Kind_ClassMemberAccess, // 7
|
121
|
+
Kind_ClassSpecifier, // 8
|
122
|
+
Kind_CompoundStatement, // 9
|
123
|
+
Kind_Condition, // 10
|
124
|
+
Kind_ConditionalExpression, // 11
|
125
|
+
Kind_CppCastExpression, // 12
|
126
|
+
Kind_CtorInitializer, // 13
|
127
|
+
Kind_DeclarationStatement, // 14
|
128
|
+
Kind_Declarator, // 15
|
129
|
+
Kind_DeleteExpression, // 16
|
130
|
+
Kind_DoStatement, // 17
|
131
|
+
Kind_ElaboratedTypeSpecifier, // 18
|
132
|
+
Kind_EnumSpecifier, // 19
|
133
|
+
Kind_Enumerator, // 20
|
134
|
+
Kind_ExceptionSpecification, // 21
|
135
|
+
Kind_ExpressionOrDeclarationStatement, // 22
|
136
|
+
Kind_ExpressionStatement, // 23
|
137
|
+
Kind_ForStatement, // 24
|
138
|
+
Kind_FunctionCall, // 25
|
139
|
+
Kind_FunctionDefinition, // 26
|
140
|
+
Kind_IfStatement, // 27
|
141
|
+
Kind_IncrDecrExpression, // 28
|
142
|
+
Kind_InitDeclarator, // 29
|
143
|
+
Kind_Initializer, // 30
|
144
|
+
Kind_InitializerClause, // 31
|
145
|
+
Kind_LabeledStatement, // 32
|
146
|
+
Kind_LinkageBody, // 33
|
147
|
+
Kind_LinkageSpecification, // 34
|
148
|
+
Kind_MemInitializer, // 35
|
149
|
+
Kind_Name, // 36
|
150
|
+
Kind_Namespace, // 37
|
151
|
+
Kind_NamespaceAliasDefinition, // 38
|
152
|
+
Kind_NewDeclarator, // 39
|
153
|
+
Kind_NewExpression, // 40
|
154
|
+
Kind_NewInitializer, // 41
|
155
|
+
Kind_NewTypeId, // 42
|
156
|
+
Kind_Operator, // 43
|
157
|
+
Kind_OperatorFunctionId, // 44
|
158
|
+
Kind_ParameterDeclaration, // 45
|
159
|
+
Kind_ParameterDeclarationClause, // 46
|
160
|
+
Kind_PostfixExpression, // 47
|
161
|
+
Kind_PrimaryExpression, // 48
|
162
|
+
Kind_PtrOperator, // 49
|
163
|
+
Kind_PtrToMember, // 50
|
164
|
+
Kind_ReturnStatement, // 51
|
165
|
+
Kind_SimpleDeclaration, // 52
|
166
|
+
Kind_SimpleTypeSpecifier, // 53
|
167
|
+
Kind_SizeofExpression, // 54
|
168
|
+
Kind_StringLiteral, // 55
|
169
|
+
Kind_SubscriptExpression, // 56
|
170
|
+
Kind_SwitchStatement, // 57
|
171
|
+
Kind_TemplateArgument, // 58
|
172
|
+
Kind_TemplateDeclaration, // 59
|
173
|
+
Kind_TemplateParameter, // 60
|
174
|
+
Kind_ThrowExpression, // 61
|
175
|
+
Kind_TranslationUnit, // 62
|
176
|
+
Kind_TryBlockStatement, // 63
|
177
|
+
Kind_CatchStatement, // 64
|
178
|
+
Kind_TypeId, // 65
|
179
|
+
Kind_TypeIdentification, // 66
|
180
|
+
Kind_TypeParameter, // 67
|
181
|
+
Kind_Typedef, // 68
|
182
|
+
Kind_UnaryExpression, // 69
|
183
|
+
Kind_UnqualifiedName, // 70
|
184
|
+
Kind_Using, // 71
|
185
|
+
Kind_UsingDirective, // 72
|
186
|
+
Kind_WhileStatement, // 73
|
187
|
+
Kind_WinDeclSpec, // 74
|
188
|
+
Kind_Comment, // 75
|
189
|
+
Kind_JumpStatement, // 76
|
190
|
+
Kind_SignalSlotExpression, // 77
|
191
|
+
NODE_KIND_COUNT
|
192
|
+
};
|
193
|
+
|
194
|
+
int kind;
|
195
|
+
|
196
|
+
std::size_t start_token;
|
197
|
+
std::size_t end_token;
|
198
|
+
};
|
199
|
+
|
200
|
+
struct CommentAST {
|
201
|
+
const ListNode<std::size_t> *comments; //A list of comment-tokens
|
202
|
+
};
|
203
|
+
|
204
|
+
struct TypeSpecifierAST: public AST
|
205
|
+
{
|
206
|
+
const ListNode<std::size_t> *cv; // const or volatile tokens
|
207
|
+
};
|
208
|
+
|
209
|
+
struct StatementAST: public AST
|
210
|
+
{
|
211
|
+
};
|
212
|
+
|
213
|
+
struct ExpressionAST: public AST
|
214
|
+
{
|
215
|
+
};
|
216
|
+
|
217
|
+
struct DeclarationAST: public AST, public CommentAST
|
218
|
+
{
|
219
|
+
};
|
220
|
+
|
221
|
+
struct AccessSpecifierAST: public DeclarationAST
|
222
|
+
{
|
223
|
+
DECLARE_AST_NODE(AccessSpecifier)
|
224
|
+
|
225
|
+
const ListNode<std::size_t> *specs;
|
226
|
+
};
|
227
|
+
|
228
|
+
struct AsmDefinitionAST: public DeclarationAST
|
229
|
+
{
|
230
|
+
DECLARE_AST_NODE(AsmDefinition)
|
231
|
+
|
232
|
+
const ListNode<std::size_t> *cv;
|
233
|
+
};
|
234
|
+
|
235
|
+
struct BaseClauseAST: public AST // ### kill me
|
236
|
+
{
|
237
|
+
DECLARE_AST_NODE(BaseClause)
|
238
|
+
|
239
|
+
const ListNode<BaseSpecifierAST*> *base_specifiers;
|
240
|
+
};
|
241
|
+
|
242
|
+
struct BaseSpecifierAST: public AST
|
243
|
+
{
|
244
|
+
DECLARE_AST_NODE(BaseSpecifier)
|
245
|
+
|
246
|
+
std::size_t virt;
|
247
|
+
std::size_t access_specifier;
|
248
|
+
NameAST *name;
|
249
|
+
};
|
250
|
+
|
251
|
+
struct BinaryExpressionAST: public ExpressionAST
|
252
|
+
{
|
253
|
+
DECLARE_AST_NODE(BinaryExpression)
|
254
|
+
|
255
|
+
std::size_t op; //Index of the token that describes the operator
|
256
|
+
ExpressionAST *left_expression;
|
257
|
+
ExpressionAST *right_expression;
|
258
|
+
};
|
259
|
+
|
260
|
+
///An expression used to do more detailed processing of SIGNAL(..) and SLOT(..) specifications
|
261
|
+
struct SignalSlotExpressionAST : public ExpressionAST {
|
262
|
+
DECLARE_AST_NODE(SignalSlotExpression)
|
263
|
+
//The unqualified name also contains the argument types in its template-arguments
|
264
|
+
UnqualifiedNameAST *name;
|
265
|
+
};
|
266
|
+
|
267
|
+
struct CastExpressionAST: public ExpressionAST
|
268
|
+
{
|
269
|
+
DECLARE_AST_NODE(CastExpression)
|
270
|
+
|
271
|
+
TypeIdAST *type_id;
|
272
|
+
ExpressionAST *expression;
|
273
|
+
};
|
274
|
+
|
275
|
+
struct ClassMemberAccessAST: public ExpressionAST
|
276
|
+
{
|
277
|
+
DECLARE_AST_NODE(ClassMemberAccess)
|
278
|
+
|
279
|
+
std::size_t op; //Index of the token that describes the operator
|
280
|
+
NameAST *name;
|
281
|
+
};
|
282
|
+
|
283
|
+
struct ClassSpecifierAST: public TypeSpecifierAST
|
284
|
+
{
|
285
|
+
DECLARE_AST_NODE(ClassSpecifier)
|
286
|
+
|
287
|
+
WinDeclSpecAST *win_decl_specifiers;
|
288
|
+
std::size_t class_key;
|
289
|
+
NameAST *name;
|
290
|
+
BaseClauseAST *base_clause;
|
291
|
+
const ListNode<DeclarationAST*> *member_specs;
|
292
|
+
};
|
293
|
+
|
294
|
+
struct CompoundStatementAST: public StatementAST
|
295
|
+
{
|
296
|
+
DECLARE_AST_NODE(CompoundStatement)
|
297
|
+
|
298
|
+
const ListNode<StatementAST*> *statements;
|
299
|
+
};
|
300
|
+
|
301
|
+
struct ConditionAST: public AST
|
302
|
+
{
|
303
|
+
DECLARE_AST_NODE(Condition)
|
304
|
+
|
305
|
+
TypeSpecifierAST *type_specifier;
|
306
|
+
DeclaratorAST *declarator;
|
307
|
+
ExpressionAST *expression;
|
308
|
+
};
|
309
|
+
|
310
|
+
struct ConditionalExpressionAST: public ExpressionAST
|
311
|
+
{
|
312
|
+
DECLARE_AST_NODE(ConditionalExpression)
|
313
|
+
|
314
|
+
ExpressionAST *condition;
|
315
|
+
ExpressionAST *left_expression;
|
316
|
+
ExpressionAST *right_expression;
|
317
|
+
};
|
318
|
+
|
319
|
+
/**
|
320
|
+
* type_id is the type that should be casted to
|
321
|
+
* expression is the expression casted from
|
322
|
+
* sub_expressions is a list of post-fix expressions, see PostfixExpressionAST
|
323
|
+
*/
|
324
|
+
struct CppCastExpressionAST: public ExpressionAST
|
325
|
+
{
|
326
|
+
DECLARE_AST_NODE(CppCastExpression)
|
327
|
+
|
328
|
+
std::size_t op; //Index of the token that describes the operator
|
329
|
+
TypeIdAST *type_id;
|
330
|
+
ExpressionAST *expression;
|
331
|
+
const ListNode<ExpressionAST*> *sub_expressions;
|
332
|
+
};
|
333
|
+
|
334
|
+
struct CtorInitializerAST: public AST
|
335
|
+
{
|
336
|
+
DECLARE_AST_NODE(CtorInitializer)
|
337
|
+
|
338
|
+
std::size_t colon;
|
339
|
+
const ListNode<MemInitializerAST*> *member_initializers;
|
340
|
+
};
|
341
|
+
|
342
|
+
struct DeclarationStatementAST: public StatementAST
|
343
|
+
{
|
344
|
+
DECLARE_AST_NODE(DeclarationStatement)
|
345
|
+
|
346
|
+
DeclarationAST *declaration;
|
347
|
+
};
|
348
|
+
|
349
|
+
struct DeclaratorAST: public AST
|
350
|
+
{
|
351
|
+
DECLARE_AST_NODE(Declarator)
|
352
|
+
|
353
|
+
const ListNode<PtrOperatorAST*> *ptr_ops;
|
354
|
+
DeclaratorAST *sub_declarator;
|
355
|
+
NameAST *id;
|
356
|
+
ExpressionAST *bit_expression;
|
357
|
+
const ListNode<ExpressionAST*> *array_dimensions;
|
358
|
+
|
359
|
+
bool parameter_is_initializer; //Used by the declaration-builder to mark a parameter-declaration clause as a mis-parsed initializer
|
360
|
+
ParameterDeclarationClauseAST *parameter_declaration_clause;
|
361
|
+
const ListNode<std::size_t> *fun_cv;
|
362
|
+
ExceptionSpecificationAST *exception_spec;
|
363
|
+
};
|
364
|
+
|
365
|
+
struct DeleteExpressionAST: public ExpressionAST
|
366
|
+
{
|
367
|
+
DECLARE_AST_NODE(DeleteExpression)
|
368
|
+
|
369
|
+
std::size_t scope_token;
|
370
|
+
std::size_t delete_token;
|
371
|
+
std::size_t lbracket_token;
|
372
|
+
std::size_t rbracket_token;
|
373
|
+
ExpressionAST *expression;
|
374
|
+
};
|
375
|
+
|
376
|
+
struct DoStatementAST: public StatementAST
|
377
|
+
{
|
378
|
+
DECLARE_AST_NODE(DoStatement)
|
379
|
+
|
380
|
+
StatementAST *statement;
|
381
|
+
ExpressionAST *expression;
|
382
|
+
};
|
383
|
+
|
384
|
+
struct ElaboratedTypeSpecifierAST: public TypeSpecifierAST
|
385
|
+
{
|
386
|
+
DECLARE_AST_NODE(ElaboratedTypeSpecifier)
|
387
|
+
|
388
|
+
std::size_t type;
|
389
|
+
NameAST *name;
|
390
|
+
};
|
391
|
+
|
392
|
+
struct EnumSpecifierAST: public TypeSpecifierAST
|
393
|
+
{
|
394
|
+
DECLARE_AST_NODE(EnumSpecifier)
|
395
|
+
|
396
|
+
NameAST *name;
|
397
|
+
const ListNode<EnumeratorAST*> *enumerators;
|
398
|
+
};
|
399
|
+
|
400
|
+
struct EnumeratorAST: public AST, public CommentAST
|
401
|
+
{
|
402
|
+
DECLARE_AST_NODE(Enumerator)
|
403
|
+
|
404
|
+
std::size_t id;
|
405
|
+
ExpressionAST *expression;
|
406
|
+
};
|
407
|
+
|
408
|
+
struct ExceptionSpecificationAST: public AST
|
409
|
+
{
|
410
|
+
DECLARE_AST_NODE(ExceptionSpecification)
|
411
|
+
|
412
|
+
std::size_t ellipsis;
|
413
|
+
const ListNode<TypeIdAST*> *type_ids;
|
414
|
+
};
|
415
|
+
|
416
|
+
struct ExpressionOrDeclarationStatementAST: public StatementAST
|
417
|
+
{
|
418
|
+
DECLARE_AST_NODE(ExpressionOrDeclarationStatement)
|
419
|
+
|
420
|
+
StatementAST *expression;
|
421
|
+
StatementAST *declaration;
|
422
|
+
|
423
|
+
// This was not originally part of the AST - added by the context visitor
|
424
|
+
bool expressionChosen;
|
425
|
+
};
|
426
|
+
|
427
|
+
///An expression terminated by a semicolon or similar
|
428
|
+
struct ExpressionStatementAST: public StatementAST
|
429
|
+
{
|
430
|
+
DECLARE_AST_NODE(ExpressionStatement)
|
431
|
+
|
432
|
+
ExpressionAST *expression;
|
433
|
+
};
|
434
|
+
|
435
|
+
struct FunctionCallAST: public ExpressionAST
|
436
|
+
{
|
437
|
+
DECLARE_AST_NODE(FunctionCall)
|
438
|
+
|
439
|
+
ExpressionAST *arguments;
|
440
|
+
};
|
441
|
+
|
442
|
+
struct FunctionDefinitionAST: public DeclarationAST
|
443
|
+
{
|
444
|
+
DECLARE_AST_NODE(FunctionDefinition)
|
445
|
+
|
446
|
+
const ListNode<std::size_t> *storage_specifiers;
|
447
|
+
const ListNode<std::size_t> *function_specifiers;
|
448
|
+
TypeSpecifierAST *type_specifier;
|
449
|
+
InitDeclaratorAST *init_declarator;
|
450
|
+
StatementAST *function_body;
|
451
|
+
WinDeclSpecAST *win_decl_specifiers;
|
452
|
+
CtorInitializerAST *constructor_initializers;
|
453
|
+
};
|
454
|
+
|
455
|
+
struct ForStatementAST: public StatementAST
|
456
|
+
{
|
457
|
+
DECLARE_AST_NODE(ForStatement)
|
458
|
+
|
459
|
+
StatementAST *init_statement;
|
460
|
+
ConditionAST *condition;
|
461
|
+
ExpressionAST *expression;
|
462
|
+
StatementAST *statement;
|
463
|
+
};
|
464
|
+
|
465
|
+
struct IfStatementAST: public StatementAST
|
466
|
+
{
|
467
|
+
DECLARE_AST_NODE(IfStatement)
|
468
|
+
|
469
|
+
ConditionAST *condition;
|
470
|
+
StatementAST *statement;
|
471
|
+
StatementAST *else_statement;
|
472
|
+
};
|
473
|
+
|
474
|
+
struct IncrDecrExpressionAST: public ExpressionAST
|
475
|
+
{
|
476
|
+
DECLARE_AST_NODE(IncrDecrExpression)
|
477
|
+
|
478
|
+
std::size_t op; //Index of the token that describes the operator
|
479
|
+
};
|
480
|
+
|
481
|
+
struct InitDeclaratorAST: public AST
|
482
|
+
{
|
483
|
+
DECLARE_AST_NODE(InitDeclarator)
|
484
|
+
|
485
|
+
DeclaratorAST *declarator;
|
486
|
+
InitializerAST *initializer;
|
487
|
+
};
|
488
|
+
|
489
|
+
struct InitializerAST: public AST
|
490
|
+
{
|
491
|
+
DECLARE_AST_NODE(Initializer)
|
492
|
+
|
493
|
+
InitializerClauseAST *initializer_clause;
|
494
|
+
ExpressionAST *expression;
|
495
|
+
};
|
496
|
+
|
497
|
+
struct InitializerClauseAST: public AST
|
498
|
+
{
|
499
|
+
DECLARE_AST_NODE(InitializerClause)
|
500
|
+
|
501
|
+
// either 'expression' or 'initializer_list' or neither are used.
|
502
|
+
// neither are used when the clause represents the empty initializer "{}"
|
503
|
+
|
504
|
+
// assignment expression
|
505
|
+
ExpressionAST *expression;
|
506
|
+
const ListNode<InitializerClauseAST*> *initializer_list;
|
507
|
+
};
|
508
|
+
|
509
|
+
struct LabeledStatementAST: public StatementAST
|
510
|
+
{
|
511
|
+
DECLARE_AST_NODE(LabeledStatement)
|
512
|
+
|
513
|
+
std::size_t label;
|
514
|
+
//The constant label expression
|
515
|
+
ExpressionAST *expression;
|
516
|
+
StatementAST* statement;
|
517
|
+
};
|
518
|
+
|
519
|
+
struct LinkageBodyAST: public AST
|
520
|
+
{
|
521
|
+
DECLARE_AST_NODE(LinkageBody)
|
522
|
+
|
523
|
+
const ListNode<DeclarationAST*> *declarations;
|
524
|
+
};
|
525
|
+
|
526
|
+
struct LinkageSpecificationAST: public DeclarationAST
|
527
|
+
{
|
528
|
+
DECLARE_AST_NODE(LinkageSpecification)
|
529
|
+
|
530
|
+
std::size_t extern_type;
|
531
|
+
LinkageBodyAST *linkage_body;
|
532
|
+
DeclarationAST *declaration;
|
533
|
+
};
|
534
|
+
|
535
|
+
struct MemInitializerAST: public AST
|
536
|
+
{
|
537
|
+
DECLARE_AST_NODE(MemInitializer)
|
538
|
+
|
539
|
+
NameAST *initializer_id;
|
540
|
+
ExpressionAST *expression;
|
541
|
+
};
|
542
|
+
|
543
|
+
struct NameAST: public AST
|
544
|
+
{
|
545
|
+
DECLARE_AST_NODE(Name)
|
546
|
+
|
547
|
+
bool global;
|
548
|
+
const ListNode<UnqualifiedNameAST*> *qualified_names;
|
549
|
+
UnqualifiedNameAST *unqualified_name;
|
550
|
+
};
|
551
|
+
|
552
|
+
struct NamespaceAST: public DeclarationAST
|
553
|
+
{
|
554
|
+
DECLARE_AST_NODE(Namespace)
|
555
|
+
|
556
|
+
std::size_t namespace_name;
|
557
|
+
LinkageBodyAST *linkage_body;
|
558
|
+
};
|
559
|
+
|
560
|
+
struct NamespaceAliasDefinitionAST: public DeclarationAST
|
561
|
+
{
|
562
|
+
DECLARE_AST_NODE(NamespaceAliasDefinition)
|
563
|
+
|
564
|
+
std::size_t namespace_name;
|
565
|
+
NameAST *alias_name;
|
566
|
+
};
|
567
|
+
|
568
|
+
struct NewDeclaratorAST: public AST
|
569
|
+
{
|
570
|
+
DECLARE_AST_NODE(NewDeclarator)
|
571
|
+
|
572
|
+
PtrOperatorAST *ptr_op;
|
573
|
+
NewDeclaratorAST *sub_declarator;
|
574
|
+
const ListNode<ExpressionAST*> *expressions;
|
575
|
+
};
|
576
|
+
|
577
|
+
struct NewExpressionAST: public ExpressionAST
|
578
|
+
{
|
579
|
+
DECLARE_AST_NODE(NewExpression)
|
580
|
+
|
581
|
+
std::size_t scope_token;
|
582
|
+
std::size_t new_token;
|
583
|
+
ExpressionAST *expression;
|
584
|
+
TypeIdAST *type_id;
|
585
|
+
NewTypeIdAST *new_type_id;
|
586
|
+
NewInitializerAST *new_initializer;
|
587
|
+
};
|
588
|
+
|
589
|
+
struct NewInitializerAST: public AST
|
590
|
+
{
|
591
|
+
DECLARE_AST_NODE(NewInitializer)
|
592
|
+
|
593
|
+
ExpressionAST *expression;
|
594
|
+
};
|
595
|
+
|
596
|
+
struct NewTypeIdAST: public AST
|
597
|
+
{
|
598
|
+
DECLARE_AST_NODE(NewTypeId)
|
599
|
+
|
600
|
+
TypeSpecifierAST *type_specifier;
|
601
|
+
NewInitializerAST *new_initializer;
|
602
|
+
NewDeclaratorAST *new_declarator;
|
603
|
+
};
|
604
|
+
|
605
|
+
struct OperatorAST: public AST
|
606
|
+
{
|
607
|
+
DECLARE_AST_NODE(Operator)
|
608
|
+
|
609
|
+
std::size_t op; //Index of the token that describes the operator
|
610
|
+
std::size_t open;
|
611
|
+
std::size_t close;
|
612
|
+
};
|
613
|
+
|
614
|
+
struct OperatorFunctionIdAST: public AST
|
615
|
+
{
|
616
|
+
DECLARE_AST_NODE(OperatorFunctionId)
|
617
|
+
|
618
|
+
OperatorAST *op;
|
619
|
+
TypeSpecifierAST *type_specifier;
|
620
|
+
const ListNode<PtrOperatorAST*> *ptr_ops;
|
621
|
+
};
|
622
|
+
|
623
|
+
struct ParameterDeclarationAST: public AST
|
624
|
+
{
|
625
|
+
DECLARE_AST_NODE(ParameterDeclaration)
|
626
|
+
|
627
|
+
TypeSpecifierAST *type_specifier;
|
628
|
+
DeclaratorAST *declarator;
|
629
|
+
ExpressionAST *expression;
|
630
|
+
};
|
631
|
+
|
632
|
+
struct ParameterDeclarationClauseAST: public AST
|
633
|
+
{
|
634
|
+
DECLARE_AST_NODE(ParameterDeclarationClause)
|
635
|
+
|
636
|
+
const ListNode<ParameterDeclarationAST*> *parameter_declarations;
|
637
|
+
std::size_t ellipsis;
|
638
|
+
};
|
639
|
+
|
640
|
+
/**
|
641
|
+
* A post-fix expression is an expression that consists of one primary expression and multiple sub-expressions that are evaluated from
|
642
|
+
* left to right, each sub-expression based on the previous expression.
|
643
|
+
*
|
644
|
+
*
|
645
|
+
* Examples:
|
646
|
+
* "a->b" : "a" is the primary expression, "->b" is a sub-expression
|
647
|
+
* "a->b(5,3)" : "a" is the primary expression, "->b" is a sub-expression, and "(5,3)" is a sub-expression
|
648
|
+
**/
|
649
|
+
struct PostfixExpressionAST: public ExpressionAST
|
650
|
+
{
|
651
|
+
DECLARE_AST_NODE(PostfixExpression)
|
652
|
+
|
653
|
+
TypeSpecifierAST *type_specifier;
|
654
|
+
ExpressionAST *expression;
|
655
|
+
const ListNode<ExpressionAST*> *sub_expressions;
|
656
|
+
};
|
657
|
+
|
658
|
+
struct PrimaryExpressionAST: public ExpressionAST
|
659
|
+
{
|
660
|
+
DECLARE_AST_NODE(PrimaryExpression)
|
661
|
+
|
662
|
+
StringLiteralAST *literal;
|
663
|
+
std::size_t token;
|
664
|
+
StatementAST *expression_statement;
|
665
|
+
ExpressionAST *sub_expression;
|
666
|
+
NameAST *name;
|
667
|
+
};
|
668
|
+
|
669
|
+
struct PtrOperatorAST: public AST
|
670
|
+
{
|
671
|
+
DECLARE_AST_NODE(PtrOperator)
|
672
|
+
|
673
|
+
const ListNode<std::size_t> *cv;
|
674
|
+
std::size_t op; //Index of the token that describes the operator. Is zero when mem_ptr is non-zero.
|
675
|
+
PtrToMemberAST *mem_ptr;
|
676
|
+
};
|
677
|
+
|
678
|
+
struct PtrToMemberAST: public AST
|
679
|
+
{
|
680
|
+
DECLARE_AST_NODE(PtrToMember)
|
681
|
+
};
|
682
|
+
|
683
|
+
struct JumpStatementAST : public StatementAST
|
684
|
+
{
|
685
|
+
DECLARE_AST_NODE(JumpStatement)
|
686
|
+
|
687
|
+
// index of operator token which describes the jump, one of
|
688
|
+
// 'break', 'continue' or 'goto. Return statements are handled by
|
689
|
+
// ReturnStatementAST
|
690
|
+
std::size_t op;
|
691
|
+
// identifier for 'goto' statements
|
692
|
+
std::size_t identifier;
|
693
|
+
};
|
694
|
+
|
695
|
+
struct ReturnStatementAST: public StatementAST
|
696
|
+
{
|
697
|
+
DECLARE_AST_NODE(ReturnStatement)
|
698
|
+
|
699
|
+
ExpressionAST *expression;
|
700
|
+
};
|
701
|
+
|
702
|
+
struct SimpleDeclarationAST: public DeclarationAST
|
703
|
+
{
|
704
|
+
DECLARE_AST_NODE(SimpleDeclaration)
|
705
|
+
|
706
|
+
const ListNode<std::size_t> *storage_specifiers;
|
707
|
+
const ListNode<std::size_t> *function_specifiers;
|
708
|
+
TypeSpecifierAST *type_specifier;
|
709
|
+
const ListNode<InitDeclaratorAST*> *init_declarators;
|
710
|
+
WinDeclSpecAST *win_decl_specifiers;
|
711
|
+
};
|
712
|
+
|
713
|
+
struct SimpleTypeSpecifierAST: public TypeSpecifierAST
|
714
|
+
{
|
715
|
+
DECLARE_AST_NODE(SimpleTypeSpecifier)
|
716
|
+
|
717
|
+
const ListNode<std::size_t> *integrals;
|
718
|
+
std::size_t type_of;
|
719
|
+
TypeIdAST *type_id;
|
720
|
+
ExpressionAST *expression;
|
721
|
+
NameAST *name;
|
722
|
+
};
|
723
|
+
|
724
|
+
struct SizeofExpressionAST: public ExpressionAST
|
725
|
+
{
|
726
|
+
DECLARE_AST_NODE(SizeofExpression)
|
727
|
+
|
728
|
+
std::size_t sizeof_token;
|
729
|
+
TypeIdAST *type_id;
|
730
|
+
ExpressionAST *expression;
|
731
|
+
};
|
732
|
+
|
733
|
+
struct StringLiteralAST: public AST
|
734
|
+
{
|
735
|
+
DECLARE_AST_NODE(StringLiteral)
|
736
|
+
|
737
|
+
const ListNode<std::size_t> *literals;
|
738
|
+
};
|
739
|
+
|
740
|
+
/// operator []
|
741
|
+
struct SubscriptExpressionAST: public ExpressionAST
|
742
|
+
{
|
743
|
+
DECLARE_AST_NODE(SubscriptExpression)
|
744
|
+
|
745
|
+
ExpressionAST *subscript;
|
746
|
+
};
|
747
|
+
|
748
|
+
struct SwitchStatementAST: public StatementAST
|
749
|
+
{
|
750
|
+
DECLARE_AST_NODE(SwitchStatement)
|
751
|
+
|
752
|
+
ConditionAST *condition;
|
753
|
+
StatementAST *statement;
|
754
|
+
};
|
755
|
+
|
756
|
+
struct TemplateArgumentAST: public AST
|
757
|
+
{
|
758
|
+
DECLARE_AST_NODE(TemplateArgument)
|
759
|
+
|
760
|
+
TypeIdAST *type_id;
|
761
|
+
ExpressionAST *expression;
|
762
|
+
};
|
763
|
+
|
764
|
+
struct TemplateDeclarationAST: public DeclarationAST
|
765
|
+
{
|
766
|
+
DECLARE_AST_NODE(TemplateDeclaration)
|
767
|
+
|
768
|
+
std::size_t exported;
|
769
|
+
const ListNode<TemplateParameterAST*> *template_parameters;
|
770
|
+
DeclarationAST* declaration;
|
771
|
+
};
|
772
|
+
|
773
|
+
struct TemplateParameterAST: public AST
|
774
|
+
{
|
775
|
+
DECLARE_AST_NODE(TemplateParameter)
|
776
|
+
|
777
|
+
TypeParameterAST *type_parameter; //This is used if this is a template-parameter like "class A"
|
778
|
+
ParameterDeclarationAST *parameter_declaration; //This is used if this is a template-parameter like "int a"
|
779
|
+
};
|
780
|
+
|
781
|
+
struct ThrowExpressionAST: public ExpressionAST
|
782
|
+
{
|
783
|
+
DECLARE_AST_NODE(ThrowExpression)
|
784
|
+
|
785
|
+
std::size_t throw_token;
|
786
|
+
ExpressionAST *expression;
|
787
|
+
};
|
788
|
+
|
789
|
+
struct TranslationUnitAST: public AST, public CommentAST
|
790
|
+
{
|
791
|
+
DECLARE_AST_NODE(TranslationUnit)
|
792
|
+
|
793
|
+
const ListNode<DeclarationAST*> *declarations;
|
794
|
+
|
795
|
+
///true if either a '}' was missing at the end, or there was a '}' too much.
|
796
|
+
///This indicates a temporary state where the user is typing, and the document is completely invalid.
|
797
|
+
bool hadMissingCompoundTokens;
|
798
|
+
|
799
|
+
// Note: non AST related, saves parsing session...
|
800
|
+
ParseSession* session;
|
801
|
+
};
|
802
|
+
|
803
|
+
struct TryBlockStatementAST: public StatementAST
|
804
|
+
{
|
805
|
+
DECLARE_AST_NODE(TryBlockStatement)
|
806
|
+
|
807
|
+
StatementAST* try_block;
|
808
|
+
const ListNode<CatchStatementAST*> *catch_blocks;
|
809
|
+
};
|
810
|
+
|
811
|
+
struct CatchStatementAST: public StatementAST
|
812
|
+
{
|
813
|
+
DECLARE_AST_NODE(CatchStatement)
|
814
|
+
|
815
|
+
ConditionAST* condition;
|
816
|
+
StatementAST* statement;
|
817
|
+
};
|
818
|
+
|
819
|
+
struct TypeIdAST: public AST
|
820
|
+
{
|
821
|
+
DECLARE_AST_NODE(TypeId)
|
822
|
+
|
823
|
+
TypeSpecifierAST *type_specifier;
|
824
|
+
DeclaratorAST *declarator;
|
825
|
+
};
|
826
|
+
|
827
|
+
///"typename"
|
828
|
+
struct TypeIdentificationAST: public ExpressionAST
|
829
|
+
{
|
830
|
+
DECLARE_AST_NODE(TypeIdentification)
|
831
|
+
|
832
|
+
std::size_t typename_token;
|
833
|
+
NameAST *name;
|
834
|
+
ExpressionAST *expression;
|
835
|
+
};
|
836
|
+
|
837
|
+
struct TypeParameterAST: public AST
|
838
|
+
{
|
839
|
+
DECLARE_AST_NODE(TypeParameter)
|
840
|
+
|
841
|
+
std::size_t type;
|
842
|
+
NameAST *name;
|
843
|
+
TypeIdAST *type_id;
|
844
|
+
const ListNode<TemplateParameterAST*> *template_parameters;
|
845
|
+
NameAST *template_name;
|
846
|
+
};
|
847
|
+
|
848
|
+
struct TypedefAST: public DeclarationAST
|
849
|
+
{
|
850
|
+
DECLARE_AST_NODE(Typedef)
|
851
|
+
|
852
|
+
TypeSpecifierAST *type_specifier;
|
853
|
+
const ListNode<InitDeclaratorAST*> *init_declarators;
|
854
|
+
};
|
855
|
+
|
856
|
+
struct UnaryExpressionAST: public ExpressionAST
|
857
|
+
{
|
858
|
+
DECLARE_AST_NODE(UnaryExpression)
|
859
|
+
|
860
|
+
std::size_t op; //Index of the token that describes the operator
|
861
|
+
ExpressionAST *expression;
|
862
|
+
};
|
863
|
+
|
864
|
+
struct UnqualifiedNameAST: public AST
|
865
|
+
{
|
866
|
+
DECLARE_AST_NODE(UnqualifiedName)
|
867
|
+
|
868
|
+
std::size_t tilde;
|
869
|
+
std::size_t id;
|
870
|
+
OperatorFunctionIdAST *operator_id;
|
871
|
+
const ListNode<TemplateArgumentAST*> *template_arguments;
|
872
|
+
};
|
873
|
+
|
874
|
+
struct UsingAST: public DeclarationAST
|
875
|
+
{
|
876
|
+
DECLARE_AST_NODE(Using)
|
877
|
+
|
878
|
+
std::size_t type_name;
|
879
|
+
NameAST *name;
|
880
|
+
};
|
881
|
+
|
882
|
+
struct UsingDirectiveAST: public DeclarationAST
|
883
|
+
{
|
884
|
+
DECLARE_AST_NODE(UsingDirective)
|
885
|
+
|
886
|
+
NameAST *name;
|
887
|
+
};
|
888
|
+
|
889
|
+
struct WhileStatementAST: public StatementAST
|
890
|
+
{
|
891
|
+
DECLARE_AST_NODE(WhileStatement)
|
892
|
+
|
893
|
+
ConditionAST *condition;
|
894
|
+
StatementAST *statement;
|
895
|
+
};
|
896
|
+
|
897
|
+
struct WinDeclSpecAST: public AST
|
898
|
+
{
|
899
|
+
DECLARE_AST_NODE(WinDeclSpec)
|
900
|
+
|
901
|
+
std::size_t specifier;
|
902
|
+
std::size_t modifier;
|
903
|
+
};
|
904
|
+
|
905
|
+
template <class _Tp>
|
906
|
+
_Tp *CreateNode(pool *memory_pool)
|
907
|
+
{
|
908
|
+
_Tp *node = reinterpret_cast<_Tp*>(memory_pool->allocate(sizeof(_Tp)));
|
909
|
+
node->kind = _Tp::__node_kind;
|
910
|
+
return node;
|
911
|
+
}
|
912
|
+
|
913
|
+
template <class _Tp>
|
914
|
+
_Tp ast_cast(AST *item)
|
915
|
+
{
|
916
|
+
if (item && static_cast<_Tp>(0)->__node_kind == item->kind)
|
917
|
+
return static_cast<_Tp>(item);
|
918
|
+
|
919
|
+
return 0;
|
920
|
+
}
|
921
|
+
|
922
|
+
#endif // AST_H
|
923
|
+
|