summaryrefslogtreecommitdiffstats
path: root/interfaces/tdetexteditor/codecompletioninterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/tdetexteditor/codecompletioninterface.cpp')
-rw-r--r--interfaces/tdetexteditor/codecompletioninterface.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/interfaces/tdetexteditor/codecompletioninterface.cpp b/interfaces/tdetexteditor/codecompletioninterface.cpp
new file mode 100644
index 000000000..416dd593a
--- /dev/null
+++ b/interfaces/tdetexteditor/codecompletioninterface.cpp
@@ -0,0 +1,51 @@
+
+#include "codecompletioninterface.h"
+#include "view.h"
+
+using namespace KTextEditor;
+
+namespace KTextEditor
+{
+ class PrivateCodeCompletionInterface
+ {
+ public:
+ PrivateCodeCompletionInterface() {}
+ ~PrivateCodeCompletionInterface(){}
+
+ };
+}
+
+unsigned int CodeCompletionInterface::globalCodeCompletionInterfaceNumber = 0;
+
+CodeCompletionInterface::CodeCompletionInterface()
+{
+ globalCodeCompletionInterfaceNumber++;
+ myCodeCompletionInterfaceNumber = globalCodeCompletionInterfaceNumber++;
+
+ d = new PrivateCodeCompletionInterface();
+}
+
+CodeCompletionInterface::~CodeCompletionInterface()
+{
+ delete d;
+}
+
+unsigned int CodeCompletionInterface::codeCompletionInterfaceNumber () const
+{
+ return myCodeCompletionInterfaceNumber;
+}
+
+void CodeCompletionInterface::setCodeCompletionInterfaceDCOPSuffix (const TQCString &/*suffix*/)
+{
+ //d->interface->setObjId ("CodeCompletionInterface#"+suffix);
+}
+
+CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
+{
+ if (!view)
+ return 0;
+
+ return dynamic_cast<KTextEditor::CodeCompletionInterface*>(view);
+}
+
+