1#ifndef __EDITORPROXY_H__
2#define __EDITORPROXY_H__
7#include <tqguardedptr.h>
13#include <tdeparts/part.h>
14#include <tdetexteditor/markinterface.h>
15#include <tdetexteditor/markinterfaceextension.h>
17class EditorProxy :
public TQObject
24 static EditorProxy *getInstance();
26 void setLineNumber(KParts::Part *part,
int lineNum,
int col);
28 void installPopup(KParts::Part *part);
30 void registerEditor(MultiBuffer* wrapper);
31 void deregisterEditor(MultiBuffer* wrapper);
33 TQWidget * widgetForPart( KParts::Part * part );
34 TQWidget * topWidgetForPart( KParts::Part * part );
36 bool isDelayedViewCapable();
38 TQWidget * findPartWidget( KParts::Part * part );
41 void setLineNumberDelayed();
45 void popupAboutToShow();
52 static EditorProxy *s_instance;
54 TQMemArray<int> m_popupIds;
57 TQValueList< MultiBuffer* > m_editorParts;
59 TQTimer* m_delayedLineTimer;
60 bool m_delayedViewCreationCompatibleUI;
61 KParts::Part *m_delayedPart;