[Kde-games-devel] KMahjongg's Board Editor
Christian Krippendorf
Coding at Christian-Krippendorf.de
Mon May 28 21:47:17 UTC 2012
On 28.05.2012 23:11, Roney Gomes wrote:
> Hi.
>
> I've been reading KMahjongg's source code recently and noticed that
> there's a huge -- but apparently unused -- class responsible for some
> sort of layouts editor. However, it doesn't seem to be used anywhere --
> actually, there's a pointer to an Editor object in the class that
> implements the main window, but that's all.
>
> Googling for "Kmahjongg editor" I found that there was an "Edit" option
> in the menu bar, but it was removed in a previous release.
>
> Such class is now regarded as dead code and will be deleted in the
> future or someone is working on it?
>
> Thanks in advance.
The class you mean is "Editor" and it is for creating new layouts or
edit layouts. Since 4.x of KDE the Editor-Class was not used anymore.
But the class is used again in actual trunk source. I made the
Editor-Class working again. Starting on line 300 in "kmahjongg.cpp" you
can find the following code:
void KMahjongg::slotBoardEditor()
{
boardEditor->setVisible(true);
// Set the default size.
boardEditor->setGeometry(Prefs::editorGeometry());
}
http://svnsearch.org/svnsearch/repos/KDE/search?view=&branch=&sound=&logMessage=BoardEditor&from=19970413&to=20120528&path=&author=&IssueCode=&filename=&filetype=
Here you can find the svn commits related to the BoardEditor. So the
BoardEditor should be available in KDE 4.9 again.
--
Mit freundlichen Grüßen / Best Regards
Christian Krippendorf
--
Mit freundlichen Grüßen / Best Regards
Christian Krippendorf
More information about the kde-games-devel
mailing list