From a44d3c2ebd20e05c7c574cd3a13888fc471067b9 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sun, 20 Jul 2008 05:57:23 +0000 Subject: [ADD] Added pokescripting to the spec file [FIX] Added status tips and whats this tags to widgets in pokemodr [FIX] Removed the list sprite for the species [FIX] No more nidoran group needed (scripts should take care of it) [FIX] Height no longer broken between feet and inches [FIX] Fixed a bug in the TeamMember stat generation [FIX] No more global skins; should be scripted [FIX] Missed somt COPY() macros git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@227 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemodr/ScriptWidget.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'pokemodr/ScriptWidget.cpp') diff --git a/pokemodr/ScriptWidget.cpp b/pokemodr/ScriptWidget.cpp index 2097dd62..1e3ac794 100644 --- a/pokemodr/ScriptWidget.cpp +++ b/pokemodr/ScriptWidget.cpp @@ -38,7 +38,9 @@ Pokemodr::ScriptWidget::ScriptWidget(QWidget* parent, const Pokemod::Script& val languages["Ruby"] = "ruby"; languages["JavaScript"] = "kjs"; languages["Java"] = "java"; - languages["Falcon"] = "falcon"; + languages["Falcon"] = "falcon"; // No highlight rules yet + languages["PHP"] = "php"; + languages["C#"] = "mono"; QList langs = languages.keys(); foreach (QString language, langs) varInterpreter->addItem(language, languages[language]); @@ -57,10 +59,11 @@ Pokemodr::ScriptWidget::ScriptWidget(QWidget* parent, const Pokemod::Script& val m_view->action(KStandardAction::name(KStandardAction::Cut))->setShortcuts(QKeySequence::UnknownKey); m_view->action(KStandardAction::name(KStandardAction::Copy))->setShortcuts(QKeySequence::UnknownKey); m_view->action(KStandardAction::name(KStandardAction::PasteText))->setShortcuts(QKeySequence::UnknownKey); - // FIXME: this is so hacky and error prone...needs KDE4 trunk though + // FIXME: Needs KDE4 4.0.98 or higher (maybe less, but 98 should be enough) // QList collections = KActionCollection::allCollections(); // foreach (KActionCollection* collection, collections) // { +// // FIXME: Nothing else should have a Preferences action right? // if (collection->action(KStandardAction::name(KStandardAction::Preferences))) // { // connect(collection->action(KStandardAction::name(KStandardAction::Cut)), SIGNAL(triggered()), m_view->action(KStandardAction::name(KStandardAction::Cut)), SIGNAL(triggered())); -- cgit