Jump to content

KDE Games/API cleanup: Difference between revisions

From KDE Community Wiki
Majewsky (talk | contribs)
import list of files (.h/.cpp and pretty includes) from trunk
Majewsky (talk | contribs)
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
libkdegames v5 is the new iteration of libkdegames which is intended to ship with KDE Development Platform 5 (though it may also happen earlier, e.g. 4.9). The aim for this new iteration of the library is to '''remove most of the API that is obsolete, unused or in a state of bad quality''', in order to improve maintainability and relevance of the remaining API. Also, QtWidgets-specific parts need to be separated to prepare for QML-based games.
libkdegames v5 is the new iteration of libkdegames which is intended to ship with KDE Development Platform 4.9. The aim for this new iteration of the library is to '''remove most of the API that is obsolete, unused or in a state of bad quality''', in order to improve maintainability and relevance of the remaining API. Also, QtWidgets-specific parts need to be separated to prepare for QML-based games.


<small>The fine print: The SO version for libkdegames v5 is actually 6.</small>
<small>The fine print: The SO version for libkdegames v5 is actually 6.</small>


== List of components ==
== Components ==


libkdegames consists of multiple (possibly interdependent) components, as defined by this list. See the list below for which file belongs to which component.
libkdegames consists of multiple (possibly interdependent) components, as defined by this list. The "Dependencies" column records only dependencies to other libkdegames components. See the table below for which file belongs to which component.
 
=== Needing attention ===
 
This table lists the components which need attention.


{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="background: #ececec; white-space:nowrap;"
|- style="background: #ececec; white-space:nowrap;"
! Component
! Component
! Short desc.
! Dependencies
! Move target
|- style="background-color:#EEFFEE"
| style="background-color:#ABFFAB" | highscore
| Highscore recording and GUI.
| -
|
|- style="background-color:#EEEEFF"
| style="background-color:#ABABFF" | kchat
| Chat widget.
| -
|
|- style="background-color:#FFFFCD"
| style="background-color:#FFFFA0" | kgame
| General game framework.
| kchat
| ksirk
|- style="background-color:#FFFFCD"
| style="background-color:#FFFFA0" | kgamecanvas
| Alternative to QGraphicsView.
| kgamerenderer (integration)
| libkgamecanvas_private
|- style="background-color:#FFFFCD"
| style="background-color:#FFFFA0" | misc/svgdocument
| Transform SVG elements.
| -
| ksirk
|}
&nbsp;
{| border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="white-space:nowrap;"
! Color key
| style="background-color:#FFABAB" | Delete
| style="background-color:#FFFFA0" | Make private
| style="background-color:#ABFFAB" | Keep
| style="background-color:#ABFFFF" width="100" | New
| style="background-color:#ABABFF" | Undecided
|-
! Description
! Description
!  width=120 | Maintainer
| style="background-color:#FFEEEE" | Code and headers are removed from the source tree.
|-
| style="background-color:#FFFFCD" | Code is moved into the tree of the only application which uses it. Headers are not exported anymore.
| kgamerenderer
| style="background-color:#EEFFEE" | Code stays in libkdegames. API and implementation changes may still be necessary.
| Multithreaded rendering of (static) theme graphics.
| style="background-color:#EEFFFF" | New code and API (e.g. coming from Project Tagaro).
| Stefan Majewsky
| style="background-color:#EEEEFF" | To be discussed on kde-games-devel mailinglist.
|}
|}


== List of files ==
=== Done ===
 
This table lists those components which have already been taken care of.


{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="background: #ececec; white-space:nowrap;"
|- style="background: #ececec; white-space:nowrap;"
! Source file
! Component
! Belongs to component
! Short desc.
|-
! Dependencies
|-
! Move target
| cardcache.cpp
|- style="background-color:#EEFFFF"
| style="background-color:#ABFFFF" | audio
| Simple sound playback.
| -
|
|- style="background-color:#EEFFEE"
| style="background-color:#ABFFAB" | base
| Macros and API-less behavior.
| -
|
|- style="background-color:#EEFFEE"
| style="background-color:#ABFFAB" | carddecks
| SVG card deck files used by KPat and LSkat.
| -
|  
|  
|-
|- style="background-color:#FFFFCD"
| cardcache.h
| style="background-color:#FFFFA0" | cardloading
| Carddeck theme loading and selection.
| -
| lskat
|- style="background-color:#EEFFEE"
| style="background-color:#ABFFAB" | kgamerenderer
| Rendering of theme graphics.
| theming
|  
|  
|-
|- style="background-color:#FFEEEE"
| cardcache_p.h
| style="background-color:#FFABAB" | kggz
| Network-enabled multiplayer.
| -
|  
|  
|-
|- style="background-color:#EEFFEE"
| carddeckinfo.cpp
| style="background-color:#ABFFAB" | misc/clock
| Game clock (second accuracy).  
| -
|  
|  
|-
|- style="background-color:#EEFFEE"
| carddeckinfo.h
| style="background-color:#ABFFAB" | misc/difficulty
| Track difficulty level.
| -
|  
|  
|-
|- style="background-color:#FFFFCD"
| carddeckinfo_p.h
| style="background-color:#FFFFA0" | misc/grid2d
| Coordinate calculations on 2D grids.
| -
| krosswordpuzzle (playground)
|- style="background-color:#FFEEEE"
| style="background-color:#FFABAB" | misc/lcd
| Enhanced QLCDNumber.
| -
|  
|  
|-
|- style="background-color:#EEFFEE"
| chooserastergraphicssystem.cpp
| style="background-color:#ABFFAB" | misc/popupitem
| Message popup for QGraphicsView.
| -
|  
|  
|-
|- style="background-color:#FFEEEE"
| colorproxy_p.cpp
| style="background-color:#FFABAB" | misc/progress
| A very old progress bar.
| -
|  
|  
|-
|- style="background-color:#FFEEEE"
| colorproxy_p.h
| style="background-color:#FFABAB" | misc/randomname
| Function to generate a random name.
| -
|  
|  
|-
|- style="background-color:#EEFFEE"
| digits/kgamesvgdigits.cpp
| style="background-color:#ABFFAB" | misc/standardactions
| Standard KActions for games.
| -
|  
|  
|-
|- style="background-color:#FFEEEE"
| digits/kgamesvgdigits.h
| style="background-color:#FFABAB" | misc/svgdigits
| Digits rendered from SVG.
| -
|  
|  
|-
|- style="background-color:#EEFFEE"
| highscore/kexthighscore.cpp
| style="background-color:#ABFFAB" | theming
| Management of SVG themes.
| -
|  
|  
|}
&nbsp;
{| border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="white-space:nowrap;"
! Color key
| style="background-color:#FFABAB" | Deleted
| style="background-color:#FFFFA0" | Moved out
| style="background-color:#ABFFAB" | Kept
| style="background-color:#ABFFFF" width="100" | New
|-
|-
| highscore/kexthighscore_gui.cpp
! Description
|  
| style="background-color:#FFEEEE" | Has been deleted from libkdegames.
| style="background-color:#FFFFCD" | Has been moved into the source tree of the mentioned move target.
| style="background-color:#EEFFEE" | Has been kept in libkdegames. Where appropriate, API and implementation have been updated.
| style="background-color:#EEFFFF" | Has been merged into libkdegames.
|}
 
== List of files (as of 4.8 release) ==
 
 
{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="background: #ececec; white-space:nowrap;"
! Source file
! Belongs to component
|-
|-
| highscore/kexthighscore_gui.h
| chooserastergraphicssystem.<span style="color:green">cpp</span>
|  
| base
|-
|-
| highscore/kexthighscore.h
| colorproxy_p.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgamerenderer
|-
|-
| highscore/kexthighscore_internal.cpp
| highscore/kexthighscore.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/kexthighscore_internal.h
| highscore/kexthighscore_gui.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/kexthighscore_item.cpp
| highscore/kexthighscore_internal.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/kexthighscore_item.h
| highscore/kexthighscore_item.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/kexthighscore_tab.cpp
| highscore/kexthighscore_tab.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/kexthighscore_tab.h
| highscore/khighscore.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/khighscore.cpp
| highscore/kscoredialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| highscore
|-
|-
| highscore/khighscore.h
| kchatbase.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kchat
|-
|-
| highscore/kscoredialog.cpp
| kchatbaseitemdelegate.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kchat
|-
|-
| highscore/kscoredialog.h
| kchatbasemodel.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kchat
|-
|-
| kcarddialog.cpp
| kchat.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kchat
|-
|-
| kcarddialog.h
| kchatdialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kchat
|-
|-
| kchatbase.cpp
| kgamecanvas.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgamecanvas
|-
|-
| kchatbase.h
| kgameclock.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/clock
|-
|-
| kchatbaseitemdelegate.cpp
| kgame/dialogs/kgameconnectdialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchatbaseitemdelegate.h
| kgame/dialogs/kgamedebugdialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchatbasemodel.cpp
| kgame/dialogs/kgamedialogconfig.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchatbasemodel.h
| kgame/dialogs/kgamedialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchat.cpp
| kgame/dialogs/kgameerrordialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchatdialog.cpp
| kgamedifficulty.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/difficulty
|-
|-
| kchatdialog.h
| kgame/kgamechat.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kchat.h
| kgame/kgame.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgamecanvas.cpp
| kgame/kgameerror.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgamecanvas.h
| kgame/kgameio.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgameclock.cpp
| kgame/kgamemessage.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgameclock.h
| kgame/kgamenetwork.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgameconnectdialog.cpp
| kgame/kgameprocess.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgameconnectdialog.h
| kgame/kgamepropertyarray.<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedebugdialog.cpp
| kgame/kgameproperty.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedebugdialog.h
| kgame/kgamepropertyhandler.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedialogconfig.cpp
| kgame/kgamesequence.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedialogconfig.h
| kgame/kgameversion.<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedialog.cpp
| kgame/kmessageclient.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgamedialog.h
| kgame/kmessageio.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgameerrordialog.cpp
| kgame/kmessageserver.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| kgame
|-
|-
| kgame/dialogs/kgameerrordialog.h
| kgame/kplayer.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgamedifficulty.cpp
| kgamepopupitem.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/popupitem
|-
|-
| kgamedifficulty.h
| kgamerendereditem.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgamerenderer
|-
|-
| kgame/kgamechat.cpp
| kgamerenderedobjectitem.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgamerenderer
|-
|-
| kgame/kgamechat.h
| kgamerendererclient.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgamerenderer
|-
|-
| kgame/kgame.cpp
| kgamerenderer.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| kgamerenderer
|-
|-
| kgame/kgameerror.cpp
| kgamesvgdocument.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| misc/svgdocument
|-
|-
| kgame/kgameerror.h
| kgametheme.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| theming
|-
|-
| kgame/kgame.h
| kgamethemeselector.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| theming
|-
|-
| kgame/kgameio.cpp
| kstandardgameaction.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/standardactions
|-
|-
| kgame/kgameio.h
| libkdegames_export.<span style="color:red">h</span>
|  
| base
|-
|-
| kgame/kgamemessage.cpp
| tests/kgamepopupitemtest.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/popupitem
|-
|-
| kgame/kgamemessage.h
| tests/kgamepropertytest.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kgame
|-
|-
| kgame/kgamenetwork.cpp
| includes/KChat
|  
| kchat
|-
|-
| kgame/kgamenetwork.h
| includes/KChatBase
|  
| kchat
|-
|-
| kgame/kgameprocess.cpp
| includes/KChatBaseItemDelegate
|  
| kchat
|-
|-
| kgame/kgameprocess.h
| includes/KChatDialog
|  
| kchat
|-
|-
| kgame/kgamepropertyarray.h
| includes/KExtHighscore
|  
| highscore
|-
|-
| kgame/kgameproperty.cpp
| includes/KGameCanvas
|  
| kgamecanvas
|-
|-
| kgame/kgameproperty.h
| includes/KGameClock
|  
| misc/clock
|-
|-
| kgame/kgamepropertyhandler.cpp
| includes/KGameDifficulty
|  
| misc/difficulty
|-
|-
| kgame/kgamepropertyhandler.h
| includes/KGame/KGame
|  
| kgame
|-
|-
| kgame/kgamesequence.cpp
| includes/KGame/KGameChat
|  
| kgame
|-
|-
| kgame/kgamesequence.h
| includes/KGame/KGameConnectDialog
|  
| kgame
|-
|-
| kgame/kgameversion.h
| includes/KGame/KGameDebugDialog
|  
| kgame
|-
|-
| kgame/kmessageclient.cpp
| includes/KGame/KGameDialog
|  
| kgame
|-
|-
| kgame/kmessageclient.h
| includes/KGame/KGameDialogConfig
|  
| kgame
|-
|-
| kgame/kmessageio.cpp
| includes/KGame/KGameError
|  
| kgame
|-
|-
| kgame/kmessageio.h
| includes/KGame/KGameErrorDialog
|  
| kgame
|-
|-
| kgame/kmessageserver.cpp
| includes/KGame/KGameIO
|  
| kgame
|-
|-
| kgame/kmessageserver.h
| includes/KGame/KGameMessage
|  
| kgame
|-
|-
| kgame/kmessageserver_p.h
| includes/KGame/KGameNetwork
|  
| kgame
|-
|-
| kgame/kplayer.cpp
| includes/KGame/KGameProcess
|  
| kgame
|-
|-
| kgame/kplayer.h
| includes/KGame/KGameProperty
|  
| kgame
|-
|-
| kgamelcd.cpp
| includes/KGame/KGamePropertyArray
|  
| kgame
|-
|-
| kgamelcd.h
| includes/KGame/KGamePropertyHandler
|  
| kgame
|-
|-
| kgamemisc.cpp
| includes/KGame/KGameSequence
|  
| kgame
|-
|-
| kgamemisc.h
| includes/KGame/KGameVersion
|  
| kgame
|-
|-
| kgamepopupitem.cpp
| includes/KGame/KMessageClient
|  
| kgame
|-
|-
| kgamepopupitem.h
| includes/KGame/KMessageIO
|  
| kgame
|-
|-
| kgameprogress.cpp
| includes/KGame/KMessageServer
|  
| kgame
|-
|-
| kgameprogress.h
| includes/KGame/KPlayer
|  
| kgame
|-
|-
| kgamerendereditem.cpp
| includes/KGamePopupItem
|  
| misc/popupitem
|-
|-
| kgamerendereditem.h
| includes/KGameRenderedItem
|  
| kgamerenderer
|-
|-
| kgamerenderedobjectitem.cpp
| includes/KGameRenderedObjectItem
|  
| kgamerenderer
|-
|-
| kgamerenderedobjectitem.h
| includes/KGameRenderer
|  
| kgamerenderer
|-
|-
| kgamerendererclient.cpp
| includes/KGameRendererClient
|  
| kgamerenderer
|-
|-
| kgamerendererclient.h
| includes/KGameSvgDocument
|  
| misc/svgdocument
|-
|-
| kgamerenderer.cpp
| includes/KGameTheme
|  
| theming
|-
|-
| kgamerenderer.h
| includes/KGameThemeSelector
|  
| theming
|-
|-
| kgamerenderer_p.h
| includes/KHighscore
|  
| highscore
|-
|-
| kgamesvgdocument.cpp
| includes/KScoreDialog
|  
| highscore
|-
|-
| kgamesvgdocument.h
| includes/KStandardGameAction
|  
| misc/standardactions
|}
 
=== Removed files ===
 
{| class="sortable" border="1" cellpadding="5" cellspacing="0" style="border: gray solid 1px; border-collapse: collapse; text-align: left; width:100%;"
|- style="background: #ececec; white-space:nowrap;"
! Source file
! Belongs to component
|-
|-
| kgamesvgdocument_p.h
| cardcache.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| cardloading
|-
|-
| kgametheme.cpp
| carddeckinfo.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| cardloading
|-
|-
| kgametheme.h
| digits/kgamesvgdigits.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/svgdigits
|-
|-
| kgamethemeselector.cpp
| kcarddialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| cardloading
|-
|-
| kgamethemeselector.h
| kgamelcd.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/lcd
|-
|-
| kggzgames/kggzgames_export.h
| kgamemisc.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|
| misc/randomname
|-
| kggzgames/kggzrankingsdialog.cpp
|
|-
| kggzgames/kggzrankingsdialog.h
|
|-
| kggzgames/kggzseatsdialog.cpp
|
|-
| kggzgames/kggzseatsdialog.h
|
|-
| kggzmod/event.cpp
|
|-
| kggzmod/event.h
|
|-
| kggzmod/kggzmod_export.h
|
|-
| kggzmod/misc_private.h
|
|-
| kggzmod/module.cpp
|
|-
|-
| kggzmod/module.h
| kgameprogress.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/progress
|-
|-
| kggzmod/module_private.h
| kggzgames/kggzgames_export.<span style="color:red">h</span>
|  
| kggz
|-
|-
| kggzmod/player.cpp
| kggzgames/kggzrankingsdialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| kggzmod/player.h
| kggzgames/kggzseatsdialog.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| kggzmod/player_private.h
| kggzmod/event.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| kggzmod/request.cpp
| kggzmod/kggzmod_export.<span style="color:red">h</span>
|
| kggz
|-
| kggzmod/request.h
|
|-
| kggzmod/statistics.cpp
|
|-
| kggzmod/statistics.h
|
|-
| kggzmod/statistics_private.h
|
|-
| kggznet/kggznet_export.h
|
|-
| kggznet/kggzpacket.cpp
|
|-
| kggznet/kggzpacket.h
|
|-
| kggznet/kggzraw.cpp
|
|-
| kggznet/kggzraw.h
|
|-
| kgrid2d.h
|
|-
| kstandardgameaction.cpp
|  
|-
|-
| kstandardgameaction.h
| kggzmod/misc_private.<span style="color:red">h</span>
|  
| kggz
|-
|-
| libkdegames_export.h
| kggzmod/module.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| kggz
|-
|-
| tests/kgamepopupitemtest.cpp
| kggzmod/player.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| kggz
|-
|-
| tests/kgamepopupitemtest.h
| kggzmod/request.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| tests/kgamepropertytest.cpp
| kggzmod/statistics.<span style="color:green">cpp</span>/<span style="color:red">h</span>/<span style="color:blue">ph</span>
|  
| kggz
|-
|-
| tests/kgamepropertytest.h
| kggznet/kggznet_export.<span style="color:red">h</span>
|  
| kggz
|-
|-
| tests/kgamesvgdigitstest.cpp
| kggznet/kggzpacket.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| tests/kgamesvgdigitstest.h
| kggznet/kggzraw.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| kggz
|-
|-
| tests/kgamesvgdocumenttest.cpp
| kgrid2d.<span style="color:red">h</span>
|  
| misc/grid2d
|-
|-
| tests/kgamesvgdocumenttest.h
| tests/kgamesvgdigitstest.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/svgdigits
|-
|-
| includes/CMakeLists.txt
| tests/kgamesvgdocumenttest.<span style="color:green">cpp</span>/<span style="color:red">h</span>
|  
| misc/svgdocument
|-
|-
| includes/KCardCache
| includes/KCardCache
|  
| cardloading
|-
|-
| includes/KCardDeckInfo
| includes/KCardDeckInfo
|  
| cardloading
|-
|-
| includes/KCardDialog
| includes/KCardDialog
|  
| cardloading
|-
| includes/KChat
|
|-
| includes/KChatBase
|
|-
| includes/KChatBaseItemDelegate
|
|-
| includes/KChatDialog
|
|-
| includes/KExtHighscore
|
|-
| includes/KGameCanvas
|
|-
| includes/KGameClock
|
|-
| includes/KGameDifficulty
|
|-
| includes/KGame/KGame
|
|-
| includes/KGame/KGameChat
|
|-
| includes/KGame/KGameConnectDialog
|
|-
| includes/KGame/KGameDebugDialog
|
|-
| includes/KGame/KGameDialog
|
|-
| includes/KGame/KGameDialogConfig
|
|-
| includes/KGame/KGameError
|
|-
| includes/KGame/KGameErrorDialog
|
|-
| includes/KGame/KGameIO
|
|-
| includes/KGame/KGameMessage
|
|-
| includes/KGame/KGameNetwork
|
|-
| includes/KGame/KGameProcess
|
|-
| includes/KGame/KGameProperty
|
|-
| includes/KGame/KGamePropertyArray
|
|-
| includes/KGame/KGamePropertyHandler
|
|-
| includes/KGame/KGameSequence
|
|-
| includes/KGame/KGameVersion
|
|-
| includes/KGame/KMessageClient
|
|-
| includes/KGame/KMessageIO
|
|-
| includes/KGame/KMessageServer
|
|-
| includes/KGame/KPlayer
|
|-
|-
| includes/KGameLCD
| includes/KGameLCD
|  
| misc/lcd
|-
|-
| includes/KGameMisc
| includes/KGameMisc
|  
| misc/randomname
|-
| includes/KGamePopupItem
|
|-
|-
| includes/KGameProgress
| includes/KGameProgress
|  
| misc/progress
|-
| includes/KGameRenderedItem
|
|-
| includes/KGameRenderedObjectItem
|
|-
| includes/KGameRenderer
|
|-
| includes/KGameRendererClient
|
|-
|-
| includes/KGameSvgDigits
| includes/KGameSvgDigits
|  
| misc/svgdigits
|-
| includes/KGameSvgDocument
|
|-
| includes/KGameTheme
|
|-
| includes/KGameThemeSelector
|
|-
|-
| includes/KGGZRankingsDialog
| includes/KGGZRankingsDialog
|  
| kggz
|-
|-
| includes/KGGZSeatsDialog
| includes/KGGZSeatsDialog
|  
| kggz
|-
|-
| includes/KGrid2D
| includes/KGrid2D
|  
| misc/grid2d
|-
| includes/KHighscore
|
|-
| includes/KScoreDialog
|
|-
| includes/KStandardGameAction
|
|}
|}

Latest revision as of 00:43, 15 April 2012

libkdegames v5 is the new iteration of libkdegames which is intended to ship with KDE Development Platform 4.9. The aim for this new iteration of the library is to remove most of the API that is obsolete, unused or in a state of bad quality, in order to improve maintainability and relevance of the remaining API. Also, QtWidgets-specific parts need to be separated to prepare for QML-based games.

The fine print: The SO version for libkdegames v5 is actually 6.

Components

libkdegames consists of multiple (possibly interdependent) components, as defined by this list. The "Dependencies" column records only dependencies to other libkdegames components. See the table below for which file belongs to which component.

Needing attention

This table lists the components which need attention.

Component Short desc. Dependencies Move target
highscore Highscore recording and GUI. -
kchat Chat widget. -
kgame General game framework. kchat ksirk
kgamecanvas Alternative to QGraphicsView. kgamerenderer (integration) libkgamecanvas_private
misc/svgdocument Transform SVG elements. - ksirk

 

Color key Delete Make private Keep New Undecided
Description Code and headers are removed from the source tree. Code is moved into the tree of the only application which uses it. Headers are not exported anymore. Code stays in libkdegames. API and implementation changes may still be necessary. New code and API (e.g. coming from Project Tagaro). To be discussed on kde-games-devel mailinglist.

Done

This table lists those components which have already been taken care of.

Component Short desc. Dependencies Move target
audio Simple sound playback. -
base Macros and API-less behavior. -
carddecks SVG card deck files used by KPat and LSkat. -
cardloading Carddeck theme loading and selection. - lskat
kgamerenderer Rendering of theme graphics. theming
kggz Network-enabled multiplayer. -
misc/clock Game clock (second accuracy). -
misc/difficulty Track difficulty level. -
misc/grid2d Coordinate calculations on 2D grids. - krosswordpuzzle (playground)
misc/lcd Enhanced QLCDNumber. -
misc/popupitem Message popup for QGraphicsView. -
misc/progress A very old progress bar. -
misc/randomname Function to generate a random name. -
misc/standardactions Standard KActions for games. -
misc/svgdigits Digits rendered from SVG. -
theming Management of SVG themes. -

 

Color key Deleted Moved out Kept New
Description Has been deleted from libkdegames. Has been moved into the source tree of the mentioned move target. Has been kept in libkdegames. Where appropriate, API and implementation have been updated. Has been merged into libkdegames.

List of files (as of 4.8 release)

Source file Belongs to component
chooserastergraphicssystem.cpp base
colorproxy_p.cpp/h kgamerenderer
highscore/kexthighscore.cpp/h highscore
highscore/kexthighscore_gui.cpp/h highscore
highscore/kexthighscore_internal.cpp/h highscore
highscore/kexthighscore_item.cpp/h highscore
highscore/kexthighscore_tab.cpp/h highscore
highscore/khighscore.cpp/h highscore
highscore/kscoredialog.cpp/h highscore
kchatbase.cpp/h kchat
kchatbaseitemdelegate.cpp/h kchat
kchatbasemodel.cpp/h kchat
kchat.cpp/h kchat
kchatdialog.cpp/h kchat
kgamecanvas.cpp/h kgamecanvas
kgameclock.cpp/h misc/clock
kgame/dialogs/kgameconnectdialog.cpp/h kgame
kgame/dialogs/kgamedebugdialog.cpp/h kgame
kgame/dialogs/kgamedialogconfig.cpp/h kgame
kgame/dialogs/kgamedialog.cpp/h kgame
kgame/dialogs/kgameerrordialog.cpp/h kgame
kgamedifficulty.cpp/h misc/difficulty
kgame/kgamechat.cpp/h kgame
kgame/kgame.cpp/h kgame
kgame/kgameerror.cpp/h kgame
kgame/kgameio.cpp/h kgame
kgame/kgamemessage.cpp/h kgame
kgame/kgamenetwork.cpp/h kgame
kgame/kgameprocess.cpp/h kgame
kgame/kgamepropertyarray.h kgame
kgame/kgameproperty.cpp/h kgame
kgame/kgamepropertyhandler.cpp/h kgame
kgame/kgamesequence.cpp/h kgame
kgame/kgameversion.h kgame
kgame/kmessageclient.cpp/h kgame
kgame/kmessageio.cpp/h kgame
kgame/kmessageserver.cpp/h/ph kgame
kgame/kplayer.cpp/h kgame
kgamepopupitem.cpp/h misc/popupitem
kgamerendereditem.cpp/h kgamerenderer
kgamerenderedobjectitem.cpp/h kgamerenderer
kgamerendererclient.cpp/h kgamerenderer
kgamerenderer.cpp/h/ph kgamerenderer
kgamesvgdocument.cpp/h/ph misc/svgdocument
kgametheme.cpp/h theming
kgamethemeselector.cpp/h theming
kstandardgameaction.cpp/h misc/standardactions
libkdegames_export.h base
tests/kgamepopupitemtest.cpp/h misc/popupitem
tests/kgamepropertytest.cpp/h kgame
includes/KChat kchat
includes/KChatBase kchat
includes/KChatBaseItemDelegate kchat
includes/KChatDialog kchat
includes/KExtHighscore highscore
includes/KGameCanvas kgamecanvas
includes/KGameClock misc/clock
includes/KGameDifficulty misc/difficulty
includes/KGame/KGame kgame
includes/KGame/KGameChat kgame
includes/KGame/KGameConnectDialog kgame
includes/KGame/KGameDebugDialog kgame
includes/KGame/KGameDialog kgame
includes/KGame/KGameDialogConfig kgame
includes/KGame/KGameError kgame
includes/KGame/KGameErrorDialog kgame
includes/KGame/KGameIO kgame
includes/KGame/KGameMessage kgame
includes/KGame/KGameNetwork kgame
includes/KGame/KGameProcess kgame
includes/KGame/KGameProperty kgame
includes/KGame/KGamePropertyArray kgame
includes/KGame/KGamePropertyHandler kgame
includes/KGame/KGameSequence kgame
includes/KGame/KGameVersion kgame
includes/KGame/KMessageClient kgame
includes/KGame/KMessageIO kgame
includes/KGame/KMessageServer kgame
includes/KGame/KPlayer kgame
includes/KGamePopupItem misc/popupitem
includes/KGameRenderedItem kgamerenderer
includes/KGameRenderedObjectItem kgamerenderer
includes/KGameRenderer kgamerenderer
includes/KGameRendererClient kgamerenderer
includes/KGameSvgDocument misc/svgdocument
includes/KGameTheme theming
includes/KGameThemeSelector theming
includes/KHighscore highscore
includes/KScoreDialog highscore
includes/KStandardGameAction misc/standardactions

Removed files

Source file Belongs to component
cardcache.cpp/h/ph cardloading
carddeckinfo.cpp/h/ph cardloading
digits/kgamesvgdigits.cpp/h misc/svgdigits
kcarddialog.cpp/h cardloading
kgamelcd.cpp/h misc/lcd
kgamemisc.cpp/h misc/randomname
kgameprogress.cpp/h misc/progress
kggzgames/kggzgames_export.h kggz
kggzgames/kggzrankingsdialog.cpp/h kggz
kggzgames/kggzseatsdialog.cpp/h kggz
kggzmod/event.cpp/h kggz
kggzmod/kggzmod_export.h kggz
kggzmod/misc_private.h kggz
kggzmod/module.cpp/h/ph kggz
kggzmod/player.cpp/h/ph kggz
kggzmod/request.cpp/h kggz
kggzmod/statistics.cpp/h/ph kggz
kggznet/kggznet_export.h kggz
kggznet/kggzpacket.cpp/h kggz
kggznet/kggzraw.cpp/h kggz
kgrid2d.h misc/grid2d
tests/kgamesvgdigitstest.cpp/h misc/svgdigits
tests/kgamesvgdocumenttest.cpp/h misc/svgdocument
includes/KCardCache cardloading
includes/KCardDeckInfo cardloading
includes/KCardDialog cardloading
includes/KGameLCD misc/lcd
includes/KGameMisc misc/randomname
includes/KGameProgress misc/progress
includes/KGameSvgDigits misc/svgdigits
includes/KGGZRankingsDialog kggz
includes/KGGZSeatsDialog kggz
includes/KGrid2D misc/grid2d