KDevelop API Documentation

EditorProxy Class Reference

#include <editorproxy.h>

Inheritance diagram for EditorProxy:

Inheritance graph
[legend]
Collaboration diagram for EditorProxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void setLineNumber (KParts::Part *part, int lineNum, int col)
void installPopup (KParts::Part *part)
void registerEditor (EditorWrapper *wrapper)
void deregisterEditor (EditorWrapper *wrapper)
QWidgetwidgetForPart (KParts::Part *part)
QWidgettopWidgetForPart (KParts::Part *part)
bool isDelayedViewCapable ()

Static Public Member Functions

EditorProxygetInstance ()

Private Slots

void popupAboutToShow ()
void showPopup ()

Private Member Functions

 EditorProxy ()

Private Attributes

QMemArray< int > m_popupIds
QValueList< EditorWrapper * > m_editorParts
bool m_delayedViewCreationCompatibleUI

Static Private Attributes

EditorProxys_instance = 0

Constructor & Destructor Documentation

EditorProxy::EditorProxy  )  [private]
 

Definition at line 47 of file editorproxy.cpp.

References KShortcut::append(), m_delayedViewCreationCompatibleUI, main(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), KAction::setShortcut(), and showPopup().


Member Function Documentation

void EditorProxy::deregisterEditor EditorWrapper wrapper  ) 
 

Definition at line 272 of file editorproxy.cpp.

References m_editorParts.

Referenced by EditorWrapper::~EditorWrapper().

EditorProxy * EditorProxy::getInstance  )  [static]
 

Definition at line 64 of file editorproxy.cpp.

References s_instance.

Referenced by PartController::activatePart(), NewMainWindow::childWindowCloseRequest(), PartController::closePart(), NewMainWindow::documentChangedState(), PartController::editDocumentInternal(), EditorWrapper::EditorWrapper(), NewMainWindow::slotPartURLChanged(), PartController::slotWaitForFactoryHack(), NewMainWindow::tabContext(), and EditorWrapper::~EditorWrapper().

void EditorProxy::installPopup KParts::Part part  ) 
 

Definition at line 98 of file editorproxy.cpp.

References KActionCollection::action(), KXMLGUIClient::actionCollection(), KXMLGUIFactory::container(), KXMLGUIClient::factory(), PartController::getInstance(), TopLevel::getInstance(), KTextEditor::PopupMenuInterface::installPopup(), k_funcinfo, kdWarning(), m_popupIds, KDevMainWindow::main(), KParts::PartManager::parts(), popupAboutToShow(), and KParts::Part::widget().

Referenced by PartController::slotWaitForFactoryHack().

bool EditorProxy::isDelayedViewCapable  ) 
 

Definition at line 381 of file editorproxy.cpp.

void EditorProxy::popupAboutToShow  )  [private, slot]
 

Definition at line 155 of file editorproxy.cpp.

References KParts::PartManager::activePart(), KTextEditor::ViewCursorInterface::cursorPositionReal(), Core::fillContextMenu(), Core::getInstance(), PartController::getInstance(), KTextEditor::SelectionInterface::hasSelection(), kdDebug(), m_popupIds, KTextEditor::SelectionInterface::selection(), KTextEditor::EditInterface::textLine(), KParts::ReadOnlyPart::url(), and KParts::Part::widget().

Referenced by installPopup().

void EditorProxy::registerEditor EditorWrapper wrapper  ) 
 

Definition at line 267 of file editorproxy.cpp.

References m_editorParts.

Referenced by EditorWrapper::EditorWrapper().

void EditorProxy::setLineNumber KParts::Part part,
int  lineNum,
int  col
 

Definition at line 73 of file editorproxy.cpp.

References m_editorParts, KTextEditor::ViewCursorInterface::setCursorPositionReal(), and KParts::Part::widget().

Referenced by PartController::editDocumentInternal().

void EditorProxy::showPopup  )  [private, slot]
 

Definition at line 249 of file editorproxy.cpp.

References KParts::PartManager::activePart(), KXMLGUIFactory::container(), KTextEditor::ViewCursorInterface::cursorCoordinates(), KXMLGUIClient::factory(), PartController::getInstance(), k_funcinfo, kdDebug(), and KParts::Part::widget().

Referenced by EditorProxy().

QWidget * EditorProxy::topWidgetForPart KParts::Part part  ) 
 

Definition at line 367 of file editorproxy.cpp.

References m_editorParts, and KParts::Part::widget().

Referenced by NewMainWindow::childWindowCloseRequest(), PartController::closePart(), NewMainWindow::documentChangedState(), NewMainWindow::slotPartURLChanged(), and NewMainWindow::tabContext().

QWidget * EditorProxy::widgetForPart KParts::Part part  ) 
 

Definition at line 353 of file editorproxy.cpp.

References m_editorParts, and KParts::Part::widget().

Referenced by PartController::activatePart().


Member Data Documentation

bool EditorProxy::m_delayedViewCreationCompatibleUI [private]
 

Definition at line 78 of file editorproxy.h.

Referenced by EditorProxy().

QValueList< EditorWrapper* > EditorProxy::m_editorParts [private]
 

Definition at line 76 of file editorproxy.h.

Referenced by deregisterEditor(), registerEditor(), setLineNumber(), topWidgetForPart(), and widgetForPart().

QMemArray<int> EditorProxy::m_popupIds [private]
 

Definition at line 73 of file editorproxy.h.

Referenced by installPopup(), and popupAboutToShow().

EditorProxy * EditorProxy::s_instance = 0 [static, private]
 

Definition at line 44 of file editorproxy.cpp.

Referenced by getInstance().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:24:13 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003