[rkward-cvs] SF.net SVN: rkward:[4005] trunk/rkward/rkward/windows

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Oct 27 18:34:24 UTC 2011


Revision: 4005
          http://rkward.svn.sourceforge.net/rkward/?rev=4005&view=rev
Author:   tfry
Date:     2011-10-27 18:34:24 +0000 (Thu, 27 Oct 2011)
Log Message:
-----------
Add 'step out' button to debugger console

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkdebugconsole.cpp
    trunk/rkward/rkward/windows/rkdebugconsole.h

Modified: trunk/rkward/rkward/windows/rkdebugconsole.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkdebugconsole.cpp	2011-10-27 08:21:54 UTC (rev 4004)
+++ trunk/rkward/rkward/windows/rkdebugconsole.cpp	2011-10-27 18:34:24 UTC (rev 4005)
@@ -29,6 +29,7 @@
 
 #include "../agents/rkdebughandler.h"
 #include "../misc/rkdummypart.h"
+#include "../misc/rkcommonfunctions.h"
 
 #include "../debug.h"
 
@@ -52,6 +53,10 @@
 	step_button = new QPushButton (i18n ("Next"), this);
 	connect (step_button, SIGNAL (clicked()), this, SLOT (stepButtonClicked()));
 	button_layout->addWidget (step_button);
+	step_out_button = new QPushButton (i18n ("Step out"), this);
+	connect (step_out_button, SIGNAL (clicked()), this, SLOT (stepOutButtonClicked()));
+	RKCommonFunctions::setTips (i18n ("Continue until the caller of this function is reached (unless another debug statement is hit, earlier)"), step_out_button);
+	button_layout->addWidget (step_out_button);
 	continue_button = new QPushButton (i18n ("Continue"), this);
 	connect (continue_button, SIGNAL (clicked()), this, SLOT (continueButtonClicked()));
 	button_layout->addWidget (continue_button);
@@ -103,6 +108,7 @@
 
 	setEnabled (true);
 	step_button->setEnabled (enable);
+	step_out_button->setEnabled (enable);
 	continue_button->setEnabled (enable);
 	cancel_button->setEnabled (enable);
 }
@@ -114,6 +120,12 @@
 	reply_edit->clear ();
 }
 
+void RKDebugConsole::stepOutButtonClicked () {
+	RK_TRACE (APP);
+
+	sendReply ("browserSetDebug(1)\ncont\n");
+}
+
 void RKDebugConsole::stepButtonClicked () {
 	RK_TRACE (APP);
 

Modified: trunk/rkward/rkward/windows/rkdebugconsole.h
===================================================================
--- trunk/rkward/rkward/windows/rkdebugconsole.h	2011-10-27 08:21:54 UTC (rev 4004)
+++ trunk/rkward/rkward/windows/rkdebugconsole.h	2011-10-27 18:34:24 UTC (rev 4005)
@@ -41,6 +41,7 @@
 private slots:
 	void sendReply ();
 	void stepButtonClicked ();
+	void stepOutButtonClicked ();
 	void continueButtonClicked ();
 	void cancelButtonClicked ();
 private:
@@ -51,6 +52,7 @@
 	QLabel* prompt_label;
 
 	QPushButton* step_button;
+	QPushButton* step_out_button;
 	QPushButton* continue_button;
 	QPushButton* cancel_button;
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.





More information about the rkward-tracker mailing list