You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
15 years ago
|
|
||
|
#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;
|
||
|
}
|
||
|
|
||
15 years ago
|
void CodeCompletionInterface::setCodeCompletionInterfaceDCOPSuffix (const TQCString &/*suffix*/)
|
||
15 years ago
|
{
|
||
|
//d->interface->setObjId ("CodeCompletionInterface#"+suffix);
|
||
|
}
|
||
|
|
||
|
CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
|
||
|
{
|
||
|
if (!view)
|
||
|
return 0;
|
||
|
|
||
14 years ago
|
return dynamic_cast<KTextEditor::CodeCompletionInterface*>(view);
|
||
15 years ago
|
}
|
||
|
|
||
|
|