[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: Pathes to Khtml and Kjs
From:       Fredrik Johansson <fredrik () mumme ! se>
Date:       2006-06-30 21:16:44
Message-ID: 200606302316.44837.fredrik () mumme ! se
[Download RAW message or body]

[Attachment #2 (text/plain)]

fredag 30 juni 2006 19:57 skrev Leo Savernik:
> Am Freitag, 30. Juni 2006 18:08 schrieb Fredrik Johansson:
> > Actually I looked at mozilla venkman for keys (target audience is
> > probably more used to venkman than Kdevelop)
>
> Hmm, makes sense.
>
> > When I check in my Kdevelop it doesnt comply
> > action          kdevelop                        js-debugger
> > step                    F11                             F11
> >
> > stepover                F10                             *
> > stepout         F12                             *
> > next                    *                               F12 (stepover and
> > stepout combined)
I was wrong here, of course stepout isnt the same as next

>
> probably make F10 an alternative shortcut.
>
> > continue                F9                              F5
>
> dito for F9
>
> [...]
>
> This should please both camps.
>
> mfg
> 	Leo

Ok changed my file to this, however beeing a KDE (and C++) newbie/hobbyist I 
don't know if I did it in a akward way or not.

And regarding the SVN question in previous mail, no I dont have SVN access so 
If anyone would want patch it in when they have time Id be greatefull.

/ Fredrik J

["kjs_debugwin.cpp.diff" (text/x-diff)]

Index: ecma/kjs_debugwin.cpp
===================================================================
--- ecma/kjs_debugwin.cpp	(revision 556526)
+++ ecma/kjs_debugwin.cpp	(working copy)
@@ -441,17 +441,25 @@
 
   m_actionCollection = new KActionCollection(this);
   m_actionCollection->setInstance(this);
-  m_nextAction       = new KAction(i18n("Next \
breakpoint","&Next"),"dbgnext",KShortcut(),this,SLOT(slotNext()), +
+  // Venkman use F12, KDevelop F10
+  KShortcut scNext = KShortcut(KKeySequence(KKey(Qt::Key_F12)));
+  scNext.append(KKeySequence(KKey(Qt::Key_F10)));
+  m_nextAction       = new KAction(i18n("Next \
breakpoint","&Next"),"dbgnext",scNext,this,SLOT(slotNext()),  \
                m_actionCollection,"next");
-  m_stepAction       = new \
KAction(i18n("&Step"),"dbgstep",KShortcut(),this,SLOT(slotStep()), +  m_stepAction    \
= new KAction(i18n("&Step"),"dbgstep",KShortcut(Qt::Key_F11),this,SLOT(slotStep()),  \
                m_actionCollection,"step");
-  m_continueAction   = new \
KAction(i18n("&Continue"),"dbgrun",KShortcut(),this,SLOT(slotContinue()), +  // \
Venkman use F5, Kdevelop F9 +  KShortcut scCont = \
KShortcut(KKeySequence(KKey(Qt::Key_F5))); +  \
scCont.append(KKeySequence(KKey(Qt::Key_F9))); +  m_continueAction   = new \
KAction(i18n("&Continue"),"dbgrun",scCont,this,SLOT(slotContinue()),  \
                m_actionCollection,"cont");
-  m_stopAction       = new \
KAction(i18n("St&op"),"stop",KShortcut(),this,SLOT(slotStop()), +  m_stopAction       \
= new KAction(i18n("St&op"),"stop",KShortcut(Qt::Key_F4),this,SLOT(slotStop()),  \
                m_actionCollection,"stop");
-  m_breakAction      = new KAction(i18n("&Break at Next \
Statement"),"dbgrunto",KShortcut(),this,SLOT(slotBreakNext()), +  m_breakAction      \
= new KAction(i18n("&Break at Next \
Statement"),"dbgrunto",KShortcut(Qt::Key_F8),this,SLOT(slotBreakNext()),  \
m_actionCollection,"breaknext");  
+
   m_nextAction->setToolTip(i18n("Next breakpoint","Next"));
   m_stepAction->setToolTip(i18n("Step"));
   m_continueAction->setToolTip(i18n("Continue"));
@@ -727,7 +735,7 @@
       // but we still know the interpreter
       sourceFile = new SourceFile("(unknown)",source.qstring(),exec->interpreter());
       m_sourceSelFiles.append(sourceFile);
-      m_sourceSel->insertItem("???");
+      m_sourceSel->insertItem(QString::number(index) += "-???");
     }
   }
   else {



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic