KDevelop API Documentation

KNEdit::Document Class Reference

This interface provides access to the NEdit Document class. More...

#include <document.h>

Inheritance diagram for KNEdit::Document:

KTextEditor::Document KTextEditor::HighlightingInterface KTextEditor::Editor KParts::ReadWritePart KParts::ReadOnlyPart KParts::Part QObject KParts::PartBase KXMLGUIClient List of all members.

Public Slots

void processExited ()
void launchFinished (WId)

Signals

void hlChanged ()

Public Member Functions

 Document (bool bReadOnly=false, bool bSingleView=false, QWidget *parentWidget=0, const char *widgetName=0, QObject *parent=0, const char *name=0)
virtual ~Document ()
KTextEditor::ViewcreateView (QWidget *parent, const char *name)
QPtrList< KTextEditor::Viewviews () const
bool openFile ()
bool saveFile ()
QString filename () const
QString serverName () const
bool isReady () const
void invokeNC (const QString &command, bool appendFilename=true)
void addView (KTextEditor::View *view)
void removeView (KTextEditor::View *view)
uint hlMode ()
bool setHlMode (uint mode)
uint hlModeCount ()
QString hlModeName (uint mode)
QString hlModeSectionName (uint mode)

Private Slots

void checkForNEditServer ()

Private Member Functions

void processCommands ()
void serverReady (WId wid)

Private Attributes

QValueList< WId > m_widCache
QPtrList< KTextEditor::View_views
KTextEditor::ViewactiveView
QProcessproc
bool m_singleView
bool m_readOnly
bool m_isReady
QString m_serverName
KWinModulem_kwm
WId m_wid
QStringList m_commands
QTimerm_timer

Detailed Description

This interface provides access to the NEdit Document class.

Definition at line 50 of file document.h.


Constructor & Destructor Documentation

KNEdit::Document::Document bool  bReadOnly = false,
bool  bSingleView = false,
QWidget parentWidget = 0,
const char *  widgetName = 0,
QObject parent = 0,
const char *  name = 0
 

Definition at line 47 of file document.cpp.

References activeView, checkForNEditServer(), createView(), KTextEditor::Document::documentNumber(), endl(), kdDebug(), launchFinished(), m_isReady, m_kwm, m_readOnly, m_serverName, m_singleView, m_timer, m_wid, proc, and processExited().

KNEdit::Document::~Document  )  [virtual]
 

Definition at line 85 of file document.cpp.

References endl(), and kdDebug().


Member Function Documentation

void KNEdit::Document::addView KTextEditor::View view  ) 
 

Definition at line 107 of file document.cpp.

References _views, and activeView.

Referenced by KNEdit::View::View().

void KNEdit::Document::checkForNEditServer  )  [private, slot]
 

Definition at line 199 of file document.cpp.

References m_serverName, m_timer, m_widCache, KWin::Info::name, and serverReady().

Referenced by Document().

KTextEditor::View * KNEdit::Document::createView QWidget parent,
const char *  name
[virtual]
 

Implements KTextEditor::Document.

Definition at line 90 of file document.cpp.

Referenced by Document().

QString KNEdit::Document::filename  )  const [inline]
 

Definition at line 66 of file document.h.

void KNEdit::Document::hlChanged  )  [virtual, signal]
 

Implements KTextEditor::HighlightingInterface.

uint KNEdit::Document::hlMode  )  [virtual]
 

Implements KTextEditor::HighlightingInterface.

Definition at line 232 of file document.cpp.

uint KNEdit::Document::hlModeCount  )  [virtual]
 

Implements KTextEditor::HighlightingInterface.

Definition at line 245 of file document.cpp.

References KNEdit::hlMCount.

QString KNEdit::Document::hlModeName uint  mode  ) 
 

Definition at line 250 of file document.cpp.

References KNEdit::hlMCount, and KNEdit::hlModes.

QString KNEdit::Document::hlModeSectionName uint  mode  ) 
 

Definition at line 257 of file document.cpp.

void KNEdit::Document::invokeNC const QString command,
bool  appendFilename = true
 

Definition at line 121 of file document.cpp.

References m_commands, m_isReady, and serverName().

Referenced by openFile(), processCommands(), saveFile(), KNEdit::View::setCursorPosition(), and setHlMode().

bool KNEdit::Document::isReady  )  const [inline]
 

Definition at line 68 of file document.h.

References m_isReady.

void KNEdit::Document::launchFinished WId   )  [slot]
 

Definition at line 176 of file document.cpp.

References endl(), kdDebug(), m_isReady, m_serverName, m_timer, m_widCache, KWin::Info::name, KWin::Info::pid, serverReady(), and KWin::Info::visibleName.

Referenced by Document(), and serverReady().

bool KNEdit::Document::openFile  )  [virtual]
 

Implements KParts::ReadOnlyPart.

Definition at line 95 of file document.cpp.

References invokeNC().

void KNEdit::Document::processCommands  )  [private]
 

Definition at line 145 of file document.cpp.

References invokeNC(), and m_commands.

Referenced by serverReady().

void KNEdit::Document::processExited  )  [slot]
 

Definition at line 217 of file document.cpp.

References endl(), kdDebug(), m_isReady, and proc.

Referenced by Document().

void KNEdit::Document::removeView KTextEditor::View view  ) 
 

Definition at line 113 of file document.cpp.

References _views, and activeView.

Referenced by KNEdit::View::~View().

bool KNEdit::Document::saveFile  )  [virtual]
 

Implements KParts::ReadWritePart.

Definition at line 101 of file document.cpp.

References invokeNC().

QString KNEdit::Document::serverName  )  const [inline]
 

Definition at line 67 of file document.h.

References m_serverName.

Referenced by invokeNC().

void KNEdit::Document::serverReady WId  wid  )  [private]
 

Definition at line 155 of file document.cpp.

References activeView, KNEdit::View::embedNEdit(), launchFinished(), m_isReady, m_kwm, m_wid, and processCommands().

Referenced by checkForNEditServer(), and launchFinished().

bool KNEdit::Document::setHlMode uint  mode  ) 
 

Definition at line 237 of file document.cpp.

References KNEdit::hlMCount, KNEdit::hlModes, and invokeNC().

QPtrList<KTextEditor::View> KNEdit::Document::views  )  const [inline, virtual]
 

Implements KTextEditor::Document.

Definition at line 60 of file document.h.

References _views.


Member Data Documentation

QPtrList<KTextEditor::View> KNEdit::Document::_views [private]
 

Definition at line 96 of file document.h.

Referenced by addView(), removeView(), and views().

KTextEditor::View* KNEdit::Document::activeView [private]
 

Definition at line 97 of file document.h.

Referenced by addView(), Document(), removeView(), and serverReady().

QStringList KNEdit::Document::m_commands [private]
 

Definition at line 104 of file document.h.

Referenced by invokeNC(), and processCommands().

bool KNEdit::Document::m_isReady [private]
 

Definition at line 100 of file document.h.

Referenced by Document(), invokeNC(), isReady(), launchFinished(), processExited(), and serverReady().

KWinModule* KNEdit::Document::m_kwm [private]
 

Definition at line 102 of file document.h.

Referenced by Document(), and serverReady().

bool KNEdit::Document::m_readOnly [private]
 

Definition at line 99 of file document.h.

Referenced by Document().

QString KNEdit::Document::m_serverName [private]
 

Definition at line 101 of file document.h.

Referenced by checkForNEditServer(), Document(), launchFinished(), and serverName().

bool KNEdit::Document::m_singleView [private]
 

Definition at line 99 of file document.h.

Referenced by Document().

QTimer* KNEdit::Document::m_timer [private]
 

Definition at line 105 of file document.h.

Referenced by checkForNEditServer(), Document(), and launchFinished().

WId KNEdit::Document::m_wid [private]
 

Definition at line 103 of file document.h.

Referenced by Document(), and serverReady().

QValueList<WId> KNEdit::Document::m_widCache [private]
 

Definition at line 95 of file document.h.

Referenced by checkForNEditServer(), and launchFinished().

QProcess* KNEdit::Document::proc [private]
 

Definition at line 98 of file document.h.

Referenced by Document(), and processExited().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:33 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003