codecompletioninterface.cpp
#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 QCString &/*suffix*/)
{
//d->interface->setObjId ("CodeCompletionInterface#"+suffix);
}
CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
{
if (!view)
return 0;
return static_cast<CodeCompletionInterface*>(view->qt_cast("KTextEditor::CodeCompletionInterface"));
}
KTextEditor::CodeCompletionInterface
This is an interface for the KTextEditor::View class.
Definition: codecompletioninterface.h:86
KTextEditor::View
The View class represents a single view of a Document .
Definition: ktexteditor/view.h:32

KDE Home | KDE Accessibility Home | Description of Access Keys