summaryrefslogtreecommitdiffstats
path: root/src/documentationpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/documentationpart.cpp')
-rw-r--r--src/documentationpart.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/documentationpart.cpp b/src/documentationpart.cpp
new file mode 100644
index 00000000..b9ad78d0
--- /dev/null
+++ b/src/documentationpart.cpp
@@ -0,0 +1,21 @@
+#include "partcontroller.h"
+
+#include "documentationpart.h"
+
+HTMLDocumentationPart::HTMLDocumentationPart()
+ : KDevHTMLPart()
+{
+ setOptions(CanDuplicate | CanOpenInNewWindow);
+}
+
+void HTMLDocumentationPart::slotDuplicate( )
+{
+ PartController::getInstance()->showDocument(url(), true);
+}
+
+void HTMLDocumentationPart::slotOpenInNewWindow( const KURL & url )
+{
+ PartController::getInstance()->showDocument(url, true);
+}
+
+#include "documentationpart.moc"