KDevelop API Documentation

SourceNavPart Class Reference

Basic plugin to navigate forward/backwards through code. More...

#include <sourcenav_part.h>

Inheritance diagram for SourceNavPart:

Inheritance graph
[legend]
Collaboration diagram for SourceNavPart:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotNavForward ()
void slotNavBack ()

Public Member Functions

 SourceNavPart (QObject *parent, const char *name, const QStringList &)
 ~SourceNavPart ()

Private Slots

void slotPartAdded (KParts::Part *part)
void slotTextChanged ()
void fillBackPopup ()
void fillForwardPopup ()
void backPopupClicked (int id)
void forwardPopupClicked (int id)

Private Member Functions

Anchor getCurrentPos ()
void gotoPos (const Anchor &ankh)
bool isNearby (const Anchor &pos1, const Anchor &pos2)
void enableActions ()
void navigate (AnchorList &list1, AnchorList &list2)
void navigate (int id, AnchorList &list1, AnchorList &list2)
void fillPopup (const AnchorList &list, QPopupMenu *pop)
void cleanupList (AnchorList &list)

Private Attributes

KToolBarPopupActionnavForward
KToolBarPopupActionnavBack
AnchorList navList
AnchorList forwardList
bool backPopupVisible
bool forwardPopupVisible

Detailed Description

Basic plugin to navigate forward/backwards through code.

THIS PART IS OBSOLETE

Please leave the code until I find time to merge it into the history part.

2002-08-10 Harald Fernengel

Deprecated:
THIS PART IS OBSOLETE. Please leave the code until Harald Fernengel finds time to merge it into the history part.

Author(s):
Harald Fernengel

Maintainer(s):
Harald Fernengel

Feature(s):
Navigate forward/backwards through code

Definition at line 59 of file sourcenav_part.h.


Constructor & Destructor Documentation

SourceNavPart::SourceNavPart QObject parent,
const char *  name,
const QStringList
 

Definition at line 44 of file sourcenav_part.cpp.

References KXMLGUIClient::actionCollection(), backPopupClicked(), backPopupVisible, fillBackPopup(), fillForwardPopup(), forwardPopupClicked(), forwardPopupVisible, navBack, navForward, KDevPlugin::partController(), KToolBarPopupAction::popupMenu(), KAction::setEnabled(), KXMLGUIClient::setInstance(), KXMLGUIClient::setXMLFile(), slotNavBack(), slotNavForward(), and slotPartAdded().

SourceNavPart::~SourceNavPart  ) 
 

Definition at line 71 of file sourcenav_part.cpp.


Member Function Documentation

void SourceNavPart::backPopupClicked int  id  )  [private, slot]
 

Definition at line 75 of file sourcenav_part.cpp.

References forwardList, navigate(), and navList.

Referenced by SourceNavPart().

void SourceNavPart::cleanupList AnchorList list  )  [private]
 

Definition at line 254 of file sourcenav_part.cpp.

References AnchorList, and MAX_HISTORY.

Referenced by slotTextChanged().

void SourceNavPart::enableActions  )  [private]
 

Definition at line 248 of file sourcenav_part.cpp.

References forwardList, navBack, navForward, navList, and KAction::setEnabled().

Referenced by navigate(), and slotTextChanged().

void SourceNavPart::fillBackPopup  )  [private, slot]
 

Definition at line 107 of file sourcenav_part.cpp.

References fillPopup(), navBack, navList, and KToolBarPopupAction::popupMenu().

Referenced by SourceNavPart().

void SourceNavPart::fillForwardPopup  )  [private, slot]
 

Definition at line 112 of file sourcenav_part.cpp.

References fillPopup(), forwardList, navForward, and KToolBarPopupAction::popupMenu().

Referenced by SourceNavPart().

void SourceNavPart::fillPopup const AnchorList list,
QPopupMenu pop
[private]
 

Definition at line 85 of file sourcenav_part.cpp.

References AnchorList.

Referenced by fillBackPopup(), and fillForwardPopup().

void SourceNavPart::forwardPopupClicked int  id  )  [private, slot]
 

Definition at line 80 of file sourcenav_part.cpp.

References forwardList, navigate(), and navList.

Referenced by SourceNavPart().

Anchor SourceNavPart::getCurrentPos  )  [private]
 

Definition at line 134 of file sourcenav_part.cpp.

References KParts::PartManager::activePart(), KParts::PartManager::activeWidget(), KTextEditor::ViewCursorInterface::cursorPosition(), KDevPlugin::partController(), and KParts::ReadOnlyPart::url().

Referenced by navigate(), and slotTextChanged().

void SourceNavPart::gotoPos const Anchor ankh  )  [private]
 

Definition at line 156 of file sourcenav_part.cpp.

References KDevPartController::editDocument(), Anchor::line(), KDevPlugin::partController(), and Anchor::url().

Referenced by navigate().

bool SourceNavPart::isNearby const Anchor pos1,
const Anchor pos2
[private]
 

Definition at line 164 of file sourcenav_part.cpp.

References Anchor::isValid(), Anchor::line(), and Anchor::url().

Referenced by navigate(), and slotTextChanged().

void SourceNavPart::navigate int  id,
AnchorList list1,
AnchorList list2
[private]
 

Definition at line 189 of file sourcenav_part.cpp.

References AnchorList, enableActions(), gotoPos(), Anchor::id(), and Anchor::isValid().

void SourceNavPart::navigate AnchorList list1,
AnchorList list2
[private]
 

Definition at line 211 of file sourcenav_part.cpp.

References AnchorList, enableActions(), getCurrentPos(), gotoPos(), and isNearby().

Referenced by backPopupClicked(), forwardPopupClicked(), slotNavBack(), and slotNavForward().

void SourceNavPart::slotNavBack  )  [slot]
 

Definition at line 238 of file sourcenav_part.cpp.

References forwardList, navigate(), and navList.

Referenced by SourceNavPart().

void SourceNavPart::slotNavForward  )  [slot]
 

Definition at line 243 of file sourcenav_part.cpp.

References forwardList, navigate(), and navList.

Referenced by SourceNavPart().

void SourceNavPart::slotPartAdded KParts::Part part  )  [private, slot]
 

Definition at line 118 of file sourcenav_part.cpp.

References slotTextChanged().

Referenced by SourceNavPart().

void SourceNavPart::slotTextChanged  )  [private, slot]
 

Definition at line 172 of file sourcenav_part.cpp.

References cleanupList(), enableActions(), forwardList, getCurrentPos(), Anchor::id(), isNearby(), MAX_CLEANUP, and navList.

Referenced by slotPartAdded().


Member Data Documentation

bool SourceNavPart::backPopupVisible [private]
 

Definition at line 93 of file sourcenav_part.h.

Referenced by SourceNavPart().

AnchorList SourceNavPart::forwardList [private]
 

Definition at line 92 of file sourcenav_part.h.

Referenced by backPopupClicked(), enableActions(), fillForwardPopup(), forwardPopupClicked(), slotNavBack(), slotNavForward(), and slotTextChanged().

bool SourceNavPart::forwardPopupVisible [private]
 

Definition at line 93 of file sourcenav_part.h.

Referenced by SourceNavPart().

KToolBarPopupAction * SourceNavPart::navBack [private]
 

Definition at line 90 of file sourcenav_part.h.

Referenced by enableActions(), fillBackPopup(), and SourceNavPart().

KToolBarPopupAction* SourceNavPart::navForward [private]
 

Definition at line 90 of file sourcenav_part.h.

Referenced by enableActions(), fillForwardPopup(), and SourceNavPart().

AnchorList SourceNavPart::navList [private]
 

Definition at line 91 of file sourcenav_part.h.

Referenced by backPopupClicked(), enableActions(), fillBackPopup(), forwardPopupClicked(), slotNavBack(), slotNavForward(), and slotTextChanged().


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 Tue Feb 22 09:47:52 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003