[rkward-cvs] rkward/rkward/plugin rkstandardcomponentgui.cpp,1.7,1.8 rkstandardcomponentgui.h,1.4,1.5
Thomas Friedrichsmeier
tfry at users.sourceforge.net
Thu Apr 20 14:33:56 UTC 2006
- Previous message: [rkward-cvs] rkward/rkward/windows rkcommandeditorwindow.cpp,1.28,1.29 rkcommandeditorwindow.h,1.20,1.21 rkcommandeditorwindowpart.cpp,1.4,1.5 rkcommandeditorwindowpart.rc,1.4,1.5
- Next message: [rkward-cvs] rkward ChangeLog,1.119,1.120
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/rkward/rkward/rkward/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4781/rkward/plugin
Modified Files:
rkstandardcomponentgui.cpp rkstandardcomponentgui.h
Log Message:
Make Ctrl+C copy work for code display in plugins
Index: rkstandardcomponentgui.h
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkstandardcomponentgui.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** rkstandardcomponentgui.h 20 Apr 2006 14:02:12 -0000 1.4
--- rkstandardcomponentgui.h 20 Apr 2006 14:33:54 -0000 1.5
***************
*** 93,96 ****
--- 93,97 ----
void updateCodeNow ();
void switchInterface () { component->switchInterface (); };
+ void copyCode ();
private:
RKComponentPropertyCode *code_property;
Index: rkstandardcomponentgui.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkstandardcomponentgui.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** rkstandardcomponentgui.cpp 20 Apr 2006 14:02:12 -0000 1.7
--- rkstandardcomponentgui.cpp 20 Apr 2006 14:33:54 -0000 1.8
***************
*** 19,22 ****
--- 19,23 ----
#include <klocale.h>
+ #include <kaction.h>
#include <qtimer.h>
***************
*** 52,55 ****
--- 53,61 ----
code_update_timer = new QTimer (this);
connect (code_update_timer, SIGNAL (timeout ()), this, SLOT (updateCodeNow ()));
+
+ if (!enslaved) {
+ KActionCollection *action_collection = new KActionCollection (this);
+ KStdAction::copy (this, SLOT (copyCode ()), action_collection);
+ }
}
***************
*** 146,149 ****
--- 152,161 ----
}
+ void RKStandardComponentGUI::copyCode () {
+ RK_TRACE (PLUGIN);
+
+ code_display->copy ();
+ }
+
void RKStandardComponentGUI::help () {
RK_TRACE (PLUGIN);
- Previous message: [rkward-cvs] rkward/rkward/windows rkcommandeditorwindow.cpp,1.28,1.29 rkcommandeditorwindow.h,1.20,1.21 rkcommandeditorwindowpart.cpp,1.4,1.5 rkcommandeditorwindowpart.rc,1.4,1.5
- Next message: [rkward-cvs] rkward ChangeLog,1.119,1.120
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the rkward-tracker
mailing list