#include <stdlib.h>
#include <math.h>
#include <qapplication.h>
#include <qnamespace.h>
#include <q3accel.h>
#include <qmessagebox.h>
#include <q3scrollview.h>
#include <qdir.h>
#include <QGraphicsItem>
#include <QTimerEvent>
#include <QPixmap>
#include <QResizeEvent>
#include <QShowEvent>
#include "view.h"
Include dependency graph for view.cpp:

Go to the source code of this file.
Defines | |
| #define | IMG_BACKGROUND ":/trolltech/examples/graphicsview/portedasteroids/bg.png" |
| #define | REFRESH_DELAY 33 |
| #define | SHIP_SPEED 0.3 |
| #define | MISSILE_SPEED 10.0 |
| #define | SHIP_STEPS 64 |
| #define | ROTATE_RATE 2 |
| #define | SHIELD_ON_COST 1 |
| #define | SHIELD_HIT_COST 30 |
| #define | BRAKE_ON_COST 4 |
| #define | MAX_ROCK_SPEED 2.5 |
| #define | MAX_POWERUP_SPEED 1.5 |
| #define | MAX_SHIP_SPEED 12 |
| #define | MAX_BRAKES 5 |
| #define | MAX_SHIELDS 5 |
| #define | MAX_FIREPOWER 5 |
| #define | TEXT_SPEED 4 |
| #define | PI_X_2 6.283185307 |
| #define | M_PI 3.141592654 |
Variables | |
| struct { | |
| int id | |
| const char * path | |
| int frames | |
| } | kas_animations [] |
| #define BRAKE_ON_COST 4 |
| #define IMG_BACKGROUND ":/trolltech/examples/graphicsview/portedasteroids/bg.png" |
| #define MAX_BRAKES 5 |
| #define MAX_FIREPOWER 5 |
| #define MAX_ROCK_SPEED 2.5 |
| #define MAX_SHIELDS 5 |
| #define MAX_SHIP_SPEED 12 |
| #define MISSILE_SPEED 10.0 |
| #define PI_X_2 6.283185307 |
| #define REFRESH_DELAY 33 |
Definition at line 49 of file view.cpp.
Referenced by KAsteroidsView::KAsteroidsView(), KAsteroidsView::newGame(), and KAsteroidsView::pause().
| #define ROTATE_RATE 2 |
Definition at line 53 of file view.cpp.
Referenced by KAsteroidsView::brake(), KAsteroidsView::newShip(), and KAsteroidsView::processShip().
| #define SHIELD_HIT_COST 30 |
| #define SHIELD_ON_COST 1 |
| #define SHIP_STEPS 64 |
| #define TEXT_SPEED 4 |
Definition at line 65 of file view.cpp.
Referenced by KAsteroidsView::hideText(), and KAsteroidsView::showText().
struct { ... }
kas_animations[] [static] |
Referenced by KAsteroidsView::readSprites().
| const char* path |
Definition at line 75 of file view.cpp.
Referenced by _hierPart(), _pathAbEmpty(), _pathAbs(), _pathEmpty(), _pathRootless(), QFileDialogPrivate::_q_autoCompleteDirectory(), QFileSystemWatcherPrivate::_q_directoryChanged(), QFileDialogPrivate::_q_enterDirectory(), QFileSystemWatcherPrivate::_q_fileChanged(), QFileDialogPrivate::_q_navigateToParent(), QFileDialogPrivate::_q_navigateToPrevious(), qdesigner_internal::ResourceModel::absolutePath(), qdesigner_internal::ResourceFile::absolutePath(), qdesigner_internal::FindIconDialog::accept(), QFontEngine::addBitmapFontToPath(), addBitmapToPath(), TrPreviewTool::addFormFile(), QSvgFont::addGlyph(), QFontEngineFT::addGlyphsToPath(), QFontEngine::addGlyphsToPath(), addGlyphToPath(), QCoreApplication::addLibraryPath(), QFontEngineBox::addOutlineToPath(), QFontEngine::addOutlineToPath(), QFontEngineMulti::addOutlineToPath(), QFontEngineFT::addOutlineToPath(), QFontEngineXLFD::addOutlineToPath(), QFileSystemWatcher::addPath(), QGraphicsScene::addPath(), QDBusModel::addPath(), QPollingFileSystemWatcherEngine::addPaths(), QInotifyFileSystemWatcherEngine::addPaths(), QKqueueFileSystemWatcherEngine::addPaths(), QUiLoader::addPluginPath(), qdesigner_internal::FormWindow::addResourceFile(), QResource::addSearchPath(), Main::addSpline(), AddTorrentDialog::AddTorrentDialog(), TrPreviewTool::addTranslator(), QFontEngine::alphaMapForGlyph(), QDirModelPrivate::appendChild(), applyForObject(), QBalloonTip::balloon(), charString(), QFTOutlineMapper::clipElements(), QPainter::clipPath(), collectSingleContour(), QGraphicsItem::collidesWithPath(), QDBusConnection::connect(), QDBusConnectionPrivate::connectRelay(), convertPath(), QFTOutlineMapper::convertPath(), QDockWidgetLayout::convertToGap(), QDockAreaLayoutInfo::convertToGap(), QDockAreaLayoutInfo::convertToWidget(), QDockWidgetLayout::convertToWidget(), QResourceFileEngineHandler::create(), Profile::createDefaultProfile(), TrPreviewTool::createFormFromFile(), createPathNode(), qdesigner_internal::QDesignerResource::createResources(), SortingBox::createShapeItem(), QPainterPathStroker::createStroke(), createSvgGlyph(), qdesigner_internal::FindIconDialog::currentItemChanged(), qdesigner_internal::ResourceModel::data(), DirModel::data(), debugVariant(), qdesigner_internal::FindIconDialog::defaultFilePath(), QDesignerPluginManager::defaultPluginPaths(), QDBusConnection::disconnect(), QDBusConnectionPrivate::disconnectRelay(), QTextLine::draw(), QPainterPrivate::draw_helper(), QPainter::drawArc(), QPainter::drawChord(), QPlastiqueStyle::drawComplexControl(), QCDEStyle::drawControl(), QCommonStyle::drawControl(), QX11PaintEngine::drawEllipse(), QPainter::drawEllipse(), QPaintEngine::drawEllipse(), ArthurStyle::drawHoverRect(), QRasterPaintEngine::drawImage(), QX11PaintEngine::drawLines(), QPainterPrivate::drawOpaqueBackground(), QPainter::drawPath(), Q3SVGPaintEngine::drawPath(), QRasterPaintEngine::drawPath(), QX11PaintEngine::drawPath(), Q3SVGPaintEnginePrivate::drawPath(), QPicturePaintEngine::drawPath(), QPainter::drawPie(), QRasterPaintEngine::drawPoints(), QPainter::drawPoints(), QX11PaintEngine::drawPoints(), QX11PaintEngine::drawPolygon(), QCommonStyle::drawPrimitive(), QPaintEngine::drawRects(), QX11PaintEngine::drawRects(), QPainter::drawRoundRect(), QPainterPrivate::drawStretchToDevice(), QPaintEngine::drawTextItem(), XFormView::drawTextType(), QRasterPaintEngine::drawTiledPixmap(), XFormView::drawVectorType(), driveSpec(), TorrentView::dropEvent(), QDirModel::dropMimeData(), QResourcePrivate::ensureChildren(), QResourcePrivate::ensureInitialized(), QDirModelPrivate::entryInfoList(), QDirModelPrivate::entryList(), HoverPoints::eventFilter(), QPicture::exec(), QProcessPrivate::execChild(), QResourceFileEngine::fileName(), QRasterPaintEngine::fillPath(), QPainter::fillPath(), QX11PaintEnginePrivate::fillPath(), Window::find(), QLibraryInfoPrivate::findConfiguration(), Launcher::findExecutable(), QTextBrowserPrivate::findFile(), QDBusConnectionPrivate::findMetaObject(), QResourceRoot::findNode(), QDesignerPluginManager::findPlugins(), PluginDialog::findPlugins(), QFSFileEnginePrivate::fixToQtSlashes(), QDockWidgetLayout::gapRect(), generateGlyph(), QPdf::generatePath(), BasicToolsPlugin::generateShape(), generateWavyPath(), QHttp::get(), Q3Http::get(), QFontEngineXLFD::getUnscaledGlyph(), QFontEngine::getUnscaledGlyph(), QFontEngineFT::getUnscaledGlyph(), Q3Http::head(), QHttp::head(), HttpWindow::httpRequestFinished(), huntAndEmit(), qdesigner_internal::ResourceModel::iconFileExtension(), IncludeFiles::IncludeFiles(), QDirModel::index(), QDockWidgetLayout::info(), QDockAreaLayoutInfo::info(), QDirPrivate::initFileEngine(), SortingBox::initialItemPosition(), QFileDialogPrivate::initialSelection(), QDockAreaLayoutInfo::insertGap(), QDockWidgetLayout::insertGap(), MainWindow::insertShape(), PaintArea::insertShape(), QDBusModel::introspect(), QDBusUtil::isValidObjectPath(), QDockAreaLayoutInfo::item(), QDockWidgetLayout::item(), qdesigner_internal::FindIconDialog::itemActivated(), QDockAreaLayoutInfo::itemRect(), QDockWidgetLayout::itemRect(), QGraphicsView::items(), QGraphicsScene::items(), QDockWidgetLayout::keepSize(), PathDeformRenderer::lensDeform(), listAllInterfaces(), listInterface(), listObjects(), QLibraryPrivate::load_sys(), Profile::loadableFilePath(), FormHolder::loadFormFile(), NewForm::loadFrom(), TrPreviewTool::loadTranslation(), QLibraryInfo::location(), main(), Q3PointArray::makeArc(), Q3PointArray::makeEllipse(), QMatrix::map(), QGraphicsItem::mapFromItem(), QGraphicsItem::mapFromParent(), QGraphicsItem::mapFromScene(), QGraphicsView::mapFromScene(), QResourceRoot::mappingRootSubdir(), QGraphicsItem::mapToItem(), QGraphicsItem::mapToParent(), QGraphicsItem::mapToScene(), QGraphicsView::mapToScene(), qdesigner_internal::ResourceFile::matchPrefix(), QDirModel::mkdir(), qdesigner_internal::IconCache::nameToIcon(), qdesigner_internal::IconCache::nameToPixmap(), NewForm::NewForm(), QDBusConnection::objectRegisteredAt(), TrPreviewTool::on_viewForms_doubleClicked(), MainWindow::openFile(), FindFileDialog::openFile(), TrPreviewTool::openForm(), MainWindow::openImage(), MainWindow::openRegistryPath(), Q3LocalFs::operationGet(), Q3Ftp::operationListChildren(), Q3LocalFs::operationListChildren(), Q3LocalFs::operationMkDir(), Q3LocalFs::operationPut(), Q3Ftp::operationRemove(), Q3LocalFs::operationRemove(), Q3Ftp::operationRename(), Q3LocalFs::operationRename(), QPainterPath::operator!=(), QPainterPath::operator==(), Chip::paint(), PathStrokeRenderer::paint(), Mouse::paint(), PathDeformRenderer::paint(), HoverPoints::paintPoints(), MetaInfo::parse(), QDBusIntrospection::parseObject(), QDBusIntrospection::parseObjectTree(), parsePathDataFast(), pathArc(), pathArcSegment(), placeCall(), PluginDialog::PluginDialog(), Q3Http::post(), QHttp::post(), QDBusConnectionPrivate::prepareHook(), QAssistantClient::QAssistantClient(), QDesignerSettings::QDesignerSettings(), QFactoryLoader::QFactoryLoader(), qdesigner_internal::ResourceEditor::qrcName(), QSvgArc::QSvgArc(), qt_addBitmapToPath(), qt_graphicsItem_shapeFromPath(), qt_painterpath_check_crossing(), qt_painterpath_split(), qt_svg_compose_path(), QUiLoader::QUiLoader(), QInotifyFileSystemWatcherEngine::readFromInotify(), QDBusConnection::registerObject(), QDesignerPluginManager::registerPath(), qdesigner_internal::ResourceModel::relativePath(), TrPreviewTool::reloadTranslations(), QDockAreaLayoutInfo::remove(), QDirModel::remove(), QDockWidgetLayout::remove(), QCoreApplication::removeLibraryPath(), QFileSystemWatcher::removePath(), QKqueueFileSystemWatcherEngine::removePaths(), QInotifyFileSystemWatcherEngine::removePaths(), QPollingFileSystemWatcherEngine::removePaths(), qdesigner_internal::FormWindow::removeResourceFile(), QGraphicsView::render(), render_qt_text(), qdesigner_internal::ResourceFile::resolvePath(), QMainWindowLayout::restoreState(), QDirModel::rmdir(), NorwegianWoodStyle::roundRectPath(), QKqueueFileSystemWatcherEngine::run(), QDirModelPrivate::savePersistentIndexes(), Config::saveProfile(), QMainWindowPrivate::separatorCursor(), QDockAreaLayoutInfo::separatorRect(), QDockWidgetLayout::separatorRect(), QPainter::setClipPath(), QPainter::setClipRect(), QFSFileEngine::setCurrentPath(), qdesigner_internal::FindIconDialog::setDefaultFilePath(), qdesigner_internal::FindIconDialog::setDefaultQrcPath(), qdesigner_internal::FindIconDialog::setFile(), Q3MimeSourceFactory::setFilePath(), QSettings::setPath(), QDirPrivate::setPath(), qdesigner_internal::WidgetDataBaseItem::setPluginPath(), QGraphicsScene::setSelectionArea(), PathDeformRenderer::setText(), QFileDialogPrivate::setup(), qdesigner_internal::FindIconDialog::setViewDir(), Chip::shape(), QGraphicsPolygonItem::shape(), QGraphicsTextItem::shape(), QGraphicsLineItem::shape(), QGraphicsItem::shape(), Mouse::shape(), QGraphicsSimpleTextItem::shape(), QGraphicsEllipseItem::shape(), AnimatedPixmapItem::shape(), Node::shape(), BouncyLogo::shape(), QGraphicsRectItem::shape(), Launcher::showExamples(), Launcher::showExampleSummary(), QDirPrivate::sortFileList(), qdesigner_internal::ResourceFile::split(), QDockWidgetLayout::splitDockWidget(), QCompleter::splitPath(), QProcessPrivate::startDetached(), Profile::storableFilePath(), QPainter::strokePath(), QPdf::Stroker::strokePath(), QStrokerOps::strokePath(), QDockWidgetLayout::tabifyDockWidget(), QPollingFileSystemWatcherEngine::timeout(), QFileDialogPrivate::toInternal(), QFileDialogPrivate::toNative(), toRootIfNotExists(), qdesigner_internal::PixmapProperty::toString(), qdesigner_internal::IconProperty::toString(), QFontSubset::toTruetype(), QFontSubset::type1AddedGlyphs(), QDBusConnection::unregisterObject(), QRasterPaintEnginePrivate::updateClip_helper(), QPicturePaintEngine::updateClipPath(), Q3SVGPaintEngine::updateClipPath(), QPdfBaseEngine::updateClipPath(), QRasterPaintEngine::updateClipPath(), QFormBuilder::updateCustomWidgets(), QDesignerPluginManager::updateRegisteredPlugins(), QPdfBaseEngine::updateState(), QFileDialogPrivate::workingDirectory(), and FileWriter::writeFile().
1.5.1