KDevelop API Documentation

PartController Class Reference

#include <partcontroller.h>

Inheritance diagram for PartController:

Inheritance graph
[legend]
Collaboration diagram for PartController:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotActivePartChanged (KParts::Part *part)
void slotCloseWindow ()
void slotCloseOtherWindows ()
void slotCloseAllWindows ()
void slotSave ()
void slotReload ()

Public Member Functions

 PartController (QWidget *toplevel)
void setEncoding (const QString &encoding)
 Call before a call to editDocument to set the encoding of the document to be opened.
void editDocument (const KURL &inputUrl, int lineNum=-1, int col=-1)
 Open a new or existing document.
void editDocumentInternal (const KURL &inputUrl, int lineNum=-1, int col=-1, bool activate=true)
void integrateTextEditorPart (KTextEditor::Document *doc)
void showDocument (const KURL &url, bool newWin=false)
 Show a HTML document in the documentation viewer.
void showPart (KParts::Part *part, const QString &name, const QString &shortDescription)
 Embed a part into the main area of the mainwindow.
KParts::ReadOnlyPartpartForURL (const KURL &url)
 Find the embedded part corresponding to a given URL.
KParts::ReadOnlyPartqtDesignerPart ()
KParts::PartpartForWidget (const QWidget *widget)
 Find the embedded part corresponding to a given main widget.
void activatePart (KParts::Part *part)
 Activate this part.
bool closePart (KParts::Part *part)
 Close this part (close the window/tab for this part).
KURL::List openURLs ()
 Returns a list of open documents.
bool querySaveFiles ()
void saveAllFiles ()
 Save all open files.
void saveFiles (const KURL::List &list)
 Save a list of files.
bool saveFile (const KURL &url, bool force=false)
void revertAllFiles ()
 Reload all open files.
void revertFiles (const KURL::List &list)
 Reload a list of files.
bool closeAllFiles ()
 Close all open files.
bool closeFiles (const KURL::List &list)
 Close a list of files.
DocumentState documentState (KURL const &)
 Check the state of a document.
bool readyToClose ()
bool closeFile (const KURL &)
bool closeAllOthers (const KURL &)
void reloadFile (const KURL &, bool force=false)

Static Public Member Functions

void createInstance (QWidget *parent)
PartControllergetInstance ()

Protected Member Functions

 ~PartController ()

Private Slots

void slotWaitForFactoryHack ()
void slotSaveAllFiles ()
void slotRevertAllFiles ()
void slotOpenFile ()
void slotOpenRecent (const KURL &)
void slotBack ()
void slotForward ()
void slotBackAboutToShow ()
void slotForwardAboutToShow ()
void slotPopupActivated (int id)
void slotSwitchTo ()
void slotPartAdded (KParts::Part *)
void slotPartRemoved (KParts::Part *)
void slotUploadFinished ()
void updateMenuItems ()
void slotDocumentDirty (Kate::Document *doc, bool isModified, unsigned char reason)
void slotNewStatus ()

Private Member Functions

KURL findURLInProject (const KURL &url)
KParts::PartfindOpenDocument (const KURL &url)
void setupActions ()
bool closeFilesDialog (KURL::List const &ignoreList)
bool saveFilesDialog (KURL::List const &ignoreList)
void doEmitState (KURL const &)
KParts::FactoryfindPartFactory (const QString &mimeType, const QString &partType, const QString &preferredName=QString::null)
KTextEditor::EditorcreateEditorPart (bool activate)
void integratePart (KParts::Part *part, const KURL &url, QWidget *widget=0, bool isTextEditor=false, bool activate=true)
KURL::List modifiedDocuments ()
void clearModified (KURL::List const &filelist)
bool isDirty (KURL const &url)
bool reactToDirty (KURL const &url)
KURL storedURLForPart (KParts::ReadOnlyPart *)
void updatePartURL (KParts::ReadOnlyPart *)
bool partURLHasChanged (KParts::ReadOnlyPart *)
void addHistoryEntry (const KURL &url, int line=-1, int col=-1)
void jumpTo (const HistoryEntry &)

Private Attributes

KActionm_closeWindowAction
KActionm_saveAllFilesAction
KActionm_revertAllFilesAction
KActionm_closeAllWindowsAction
KActionm_closeOtherWindowsAction
KActionm_switchToAction
KRecentFilesActionm_openRecentAction
QString m_presetEncoding
KToolBarPopupActionm_backAction
KToolBarPopupActionm_forwardAction
bool m_openNextAsText
QValueList< KParts::ReadWritePart * > _dirtyDocuments
QMap< KParts::ReadOnlyPart *,
KURL
_partURLMap
QGuardedPtr< KParts::Factory_editorFactory
QValueList< HistoryEntrym_history
QValueList< HistoryEntry
>::Iterator 
m_Current
bool m_isJumping
QGuardedPtr< KParts::ReadOnlyPartm_latestPart

Static Private Attributes

PartControllers_instance = 0

Constructor & Destructor Documentation

PartController::PartController QWidget toplevel  ) 
 

Definition at line 73 of file partcontroller.cpp.

References KParts::PartManager::activePartChanged(), m_Current, m_history, m_isJumping, m_openNextAsText, KParts::PartManager::partAdded(), KParts::PartManager::partRemoved(), setupActions(), slotActivePartChanged(), slotPartAdded(), and slotPartRemoved().

Referenced by createInstance().

PartController::~PartController  )  [protected]
 

Definition at line 89 of file partcontroller.cpp.


Member Function Documentation

void PartController::activatePart KParts::Part part  )  [virtual]
 

Activate this part.

Parameters:
part the part to activate

Implements KDevPartController.

Definition at line 718 of file partcontroller.cpp.

References TopLevel::getInstance(), EditorProxy::getInstance(), KDevMainWindow::raiseView(), KParts::PartManager::setActivePart(), and EditorProxy::widgetForPart().

Referenced by editDocumentInternal(), NewMainWindow::openURL(), showDocument(), showPart(), and slotSwitchTo().

void PartController::addHistoryEntry const KURL url,
int  line = -1,
int  col = -1
[private]
 

Definition at line 1458 of file partcontroller.cpp.

References PartController::HistoryEntry::line, m_Current, m_history, updateMenuItems(), KURL::url(), and PartController::HistoryEntry::url.

Referenced by editDocumentInternal(), and slotActivePartChanged().

void PartController::clearModified KURL::List const &  filelist  )  [private]
 

Definition at line 986 of file partcontroller.cpp.

References partForURL(), and KParts::ReadWritePart::setModified().

Referenced by saveFilesDialog().

bool PartController::closeAllFiles  )  [virtual]
 

Close all open files.

Implements KDevPartController.

Definition at line 1057 of file partcontroller.cpp.

References closeFilesDialog().

Referenced by readyToClose(), and slotCloseAllWindows().

bool PartController::closeAllOthers const KURL  ) 
 

Definition at line 1067 of file partcontroller.cpp.

References closeFilesDialog().

Referenced by slotCloseOtherWindows(), and NewMainWindow::tabContextActivated().

bool PartController::closeFile const KURL  ) 
 

Definition at line 1052 of file partcontroller.cpp.

References closePart(), and partForURL().

Referenced by NewMainWindow::tabContextActivated().

bool PartController::closeFiles const KURL::List list  )  [virtual]
 

Close a list of files.

Parameters:
list a list of URLs for the files to close

Implements KDevPartController.

Definition at line 1038 of file partcontroller.cpp.

References closePart(), and partForURL().

bool PartController::closeFilesDialog KURL::List const &  ignoreList  )  [private]
 

Definition at line 1020 of file partcontroller.cpp.

References closePart(), KParts::PartManager::parts(), saveFilesDialog(), and KParts::ReadOnlyPart::url().

Referenced by closeAllFiles(), and closeAllOthers().

bool PartController::closePart KParts::Part part  )  [virtual]
 

Close this part (close the window/tab for this part).

Parameters:
part the part to close
Returns:

Implements KDevPartController.

Definition at line 737 of file partcontroller.cpp.

References _dirtyDocuments, KDevPartController::closedFile(), KParts::ReadOnlyPart::closeURL(), TopLevel::getInstance(), EditorProxy::getInstance(), KParts::PartManager::removePart(), KDevMainWindow::removeView(), EditorProxy::topWidgetForPart(), and KParts::ReadOnlyPart::url().

Referenced by NewMainWindow::childWindowCloseRequest(), closeFile(), closeFiles(), closeFilesDialog(), and slotCloseWindow().

KTextEditor::Editor * PartController::createEditorPart bool  activate  )  [private]
 

Definition at line 531 of file partcontroller.cpp.

References _editorFactory, findPartFactory(), and main().

Referenced by editDocumentInternal().

void PartController::createInstance QWidget parent  )  [static]
 

Definition at line 94 of file partcontroller.cpp.

References PartController(), and s_instance.

Referenced by NewMainWindow::createFramework(), and MainWindow::createFramework().

DocumentState PartController::documentState KURL const &   )  [virtual]
 

Check the state of a document.

Parameters:
url the URL to check
Returns:
the DocumentState enum corresponding to the document state

Implements KDevPartController.

Definition at line 1315 of file partcontroller.cpp.

References DocumentState, isDirty(), KParts::ReadWritePart::isModified(), and partForURL().

Referenced by doEmitState(), and saveFile().

void PartController::doEmitState KURL const &   )  [private]
 

Definition at line 1341 of file partcontroller.cpp.

References KDevPartController::documentChangedState(), and documentState().

Referenced by slotDocumentDirty(), and slotNewStatus().

void PartController::editDocument const KURL inputUrl,
int  lineNum = -1,
int  col = -1
[virtual]
 

Open a new or existing document.

Parameters:
url the URL of the document to open
lineNum the line number to place the cursor at, if applicable
col the column number to place the cursor at, if applicable

Implements KDevPartController.

Definition at line 230 of file partcontroller.cpp.

References editDocumentInternal().

Referenced by editDocumentInternal(), Debugger::gotoExecutionPoint(), jumpTo(), ProjectSession::loadDocument(), main(), showDocument(), slotOpenFile(), and slotOpenRecent().

void PartController::editDocumentInternal const KURL inputUrl,
int  lineNum = -1,
int  col = -1,
bool  activate = true
 

Definition at line 235 of file partcontroller.cpp.

References activatePart(), addHistoryEntry(), KRecentFilesAction::addURL(), MimeWarningDialog::always_open_as_text, URLUtil::canonicalPath(), KParts::BrowserExtension::childObject(), KURL::cleanPath(), createEditorPart(), KParts::Factory::createPart(), KSharedPtr< T >::data(), editDocument(), KIO::NetAccess::exists(), KMimeType::findByURL(), findPartFactory(), findURLInProject(), EditorProxy::getInstance(), API::getInstance(), integratePart(), KURL::isLocalFile(), KURL::isRelativeURL(), KURL::isValid(), k_funcinfo, k_lineinfo, kdDebug(), m_openNextAsText, m_openRecentAction, m_presetEncoding, main(), KServiceTypeProfile::OfferList, KServiceTypeProfile::offers(), MimeWarningDialog::open_with_kde, KParts::ReadOnlyPart::openURL(), partForURL(), KURL::path(), KURL::prettyURL(), KDevApi::project(), KDevProject::projectDirectory(), KService::Ptr, KMimeType::Ptr, qtDesignerPart(), KConfigBase::readBoolEntry(), KConfigBase::readListEntry(), KRun::run(), KRun::runURL(), KRecentFilesAction::saveEntries(), KParts::URLArgs::serviceType, KConfigBase::setGroup(), EditorProxy::setLineNumber(), KURL::setPath(), KParts::BrowserExtension::setURLArgs(), MimeWarningDialog::text, KURL::url(), KParts::Part::widget(), and KConfigBase::writeEntry().

Referenced by editDocument(), and ProjectSession::loadDocument().

KParts::Part * PartController::findOpenDocument const KURL url  )  [private]
 

Definition at line 192 of file partcontroller.cpp.

References KURL::cleanPath(), findURLInProject(), API::getInstance(), partForURL(), and KDevApi::project().

KParts::Factory * PartController::findPartFactory const QString mimeType,
const QString partType,
const QString preferredName = QString::null
[private]
 

Definition at line 505 of file partcontroller.cpp.

References KLibLoader::factory(), KService::Ptr, and KLibLoader::self().

Referenced by createEditorPart(), and editDocumentInternal().

KURL PartController::findURLInProject const KURL url  )  [private]
 

Definition at line 212 of file partcontroller.cpp.

References KDevProject::allFiles(), API::getInstance(), KDevApi::project(), and KURL::url().

Referenced by editDocumentInternal(), and findOpenDocument().

PartController * PartController::getInstance  )  [static]
 

Definition at line 101 of file partcontroller.cpp.

Referenced by NewMainWindow::childWindowCloseRequest(), MainWindow::childWindowCloseRequest(), ProjectManager::closeProject(), NewMainWindow::fillWindowMenu(), Debugger::gotoExecutionPoint(), EditorProxy::installPopup(), ProjectSession::loadDocument(), main(), Debugger::marksChanged(), NewMainWindow::openURL(), API::partController(), EditorProxy::popupAboutToShow(), Core::queryClose(), Debugger::setBreakpoint(), EditorWrapper::show(), EditorProxy::showPopup(), DocumentationPart::slotDuplicate(), MainWindowShare::slotKeyBindings(), DocumentationPart::slotOpenInNewWindow(), MainWindow::slotViewActivated(), NewMainWindow::tabContext(), and NewMainWindow::tabContextActivated().

void PartController::integratePart KParts::Part part,
const KURL url,
QWidget widget = 0,
bool  isTextEditor = false,
bool  activate = true
[private]
 

Definition at line 550 of file partcontroller.cpp.

References KParts::PartManager::addPart(), KInterfaceDesigner::DesignerType, KDevMainWindow::embedPartView(), KURL::filename(), API::getInstance(), TopLevel::getInstance(), integrateTextEditorPart(), KURL::isLocalFile(), kdDebug(), KDevApi::languageSupport(), KDevPartController::loadedFile(), KURL::path(), slotDocumentDirty(), slotUploadFinished(), KParts::ReadOnlyPart::url(), KURL::url(), and KParts::Part::widget().

Referenced by editDocumentInternal(), and showDocument().

void PartController::integrateTextEditorPart KTextEditor::Document doc  ) 
 

Definition at line 608 of file partcontroller.cpp.

References slotNewStatus(), and KTextEditor::Document::views().

Referenced by integratePart(), and EditorWrapper::show().

bool PartController::isDirty KURL const &  url  )  [private]
 

Definition at line 1254 of file partcontroller.cpp.

References _dirtyDocuments, and partForURL().

Referenced by documentState().

void PartController::jumpTo const HistoryEntry  )  [private]
 

Definition at line 1451 of file partcontroller.cpp.

References PartController::HistoryEntry::col, editDocument(), PartController::HistoryEntry::line, m_isJumping, and PartController::HistoryEntry::url.

Referenced by slotBack(), slotForward(), and slotPopupActivated().

KURL::List PartController::modifiedDocuments  )  [private]
 

Definition at line 870 of file partcontroller.cpp.

References KParts::ReadWritePart::isModified(), KParts::PartManager::parts(), and KParts::ReadOnlyPart::url().

Referenced by saveFilesDialog().

KURL::List PartController::openURLs  )  [virtual]
 

Returns a list of open documents.

Returns:
the list of URLs

Implements KDevPartController.

Definition at line 1346 of file partcontroller.cpp.

References KParts::PartManager::parts(), and KParts::ReadOnlyPart::url().

Referenced by NewMainWindow::fillWindowMenu(), revertAllFiles(), and saveAllFiles().

KParts::ReadOnlyPart * PartController::partForURL const KURL url  )  [virtual]
 

Find the embedded part corresponding to a given URL.

Parameters:
url the URL of the document
Returns:
the corresponding part, 0 if not found.

Implements KDevPartController.

Definition at line 692 of file partcontroller.cpp.

References KParts::PartManager::parts(), and KParts::ReadOnlyPart::url().

Referenced by clearModified(), closeFile(), closeFiles(), documentState(), editDocumentInternal(), findOpenDocument(), Debugger::gotoExecutionPoint(), isDirty(), Debugger::marksChanged(), reactToDirty(), reloadFile(), saveFile(), and Debugger::setBreakpoint().

KParts::Part * PartController::partForWidget const QWidget widget  )  [virtual]
 

Find the embedded part corresponding to a given main widget.

Parameters:
widget the parts main widget
Returns:
the corresponding part, 0 if not found

Implements KDevPartController.

Definition at line 704 of file partcontroller.cpp.

References KParts::PartManager::parts().

bool PartController::partURLHasChanged KParts::ReadOnlyPart  )  [private]
 

Definition at line 658 of file partcontroller.cpp.

References _partURLMap, KURL::isEmpty(), and KParts::ReadOnlyPart::url().

Referenced by slotUploadFinished().

KParts::ReadOnlyPart * PartController::qtDesignerPart  ) 
 

Definition at line 1514 of file partcontroller.cpp.

References KInterfaceDesigner::Designer::designerType(), and KParts::PartManager::parts().

Referenced by editDocumentInternal().

bool PartController::querySaveFiles  ) 
 

Definition at line 981 of file partcontroller.cpp.

References saveFilesDialog().

Referenced by ProjectManager::closeProject(), and Core::queryClose().

bool PartController::reactToDirty KURL const &  url  )  [private]
 

Definition at line 1259 of file partcontroller.cpp.

References KParts::ReadWritePart::isModified(), k_funcinfo, kdDebug(), main(), partForURL(), KURL::path(), KConfigBase::readEntry(), reloadFile(), KConfigBase::setGroup(), KMessageBox::sorry(), and KMessageBox::warningYesNo().

Referenced by slotDocumentDirty().

bool PartController::readyToClose  ) 
 

Definition at line 1112 of file partcontroller.cpp.

References closeAllFiles().

Referenced by Core::queryClose().

void PartController::reloadFile const KURL ,
bool  force = false
 

Definition at line 812 of file partcontroller.cpp.

References _dirtyDocuments, Clean, KTextEditor::ViewCursorInterface::cursorPositionReal(), KDevPartController::documentChangedState(), KParts::ReadWritePart::isModified(), main(), KParts::ReadOnlyPart::openURL(), partForURL(), KURL::path(), KTextEditor::ViewCursorInterface::setCursorPositionReal(), KParts::ReadWritePart::setModified(), KMessageBox::warningYesNo(), and KParts::Part::widget().

Referenced by reactToDirty(), revertFiles(), slotReload(), and NewMainWindow::tabContextActivated().

void PartController::revertAllFiles  )  [virtual]
 

Reload all open files.

Implements KDevPartController.

Definition at line 860 of file partcontroller.cpp.

References openURLs(), and revertFiles().

Referenced by slotRevertAllFiles().

void PartController::revertFiles const KURL::List list  )  [virtual]
 

Reload a list of files.

Parameters:
list the list of URLs to reload

Implements KDevPartController.

Definition at line 850 of file partcontroller.cpp.

References reloadFile().

Referenced by revertAllFiles().

void PartController::saveAllFiles  )  [virtual]
 

Save all open files.

Implements KDevPartController.

Definition at line 966 of file partcontroller.cpp.

References openURLs(), and saveFiles().

Referenced by slotSaveAllFiles().

bool PartController::saveFile const KURL url,
bool  force = false
 

Definition at line 912 of file partcontroller.cpp.

References _dirtyDocuments, Clean, Dirty, DirtyAndModified, KDevPartController::documentChangedState(), documentState(), kdDebug(), main(), Modified, partForURL(), KURL::path(), KParts::ReadWritePart::save(), KDevPartController::savedFile(), and KMessageBox::warningYesNoCancel().

Referenced by saveFiles(), slotSave(), and NewMainWindow::tabContextActivated().

void PartController::saveFiles const KURL::List list  )  [virtual]
 

Save a list of files.

Parameters:
list the list of URLs to save

Implements KDevPartController.

Definition at line 971 of file partcontroller.cpp.

References saveFile().

Referenced by saveAllFiles(), and saveFilesDialog().

bool PartController::saveFilesDialog KURL::List const &  ignoreList  )  [private]
 

Definition at line 1000 of file partcontroller.cpp.

References clearModified(), KSaveSelectDialog::filesNotToSave(), KSaveSelectDialog::filesToSave(), main(), modifiedDocuments(), and saveFiles().

Referenced by closeFilesDialog(), and querySaveFiles().

void PartController::setEncoding const QString encoding  )  [virtual]
 

Call before a call to editDocument to set the encoding of the document to be opened.

Parameters:
encoding the encoding to open as

Implements KDevPartController.

Definition at line 187 of file partcontroller.cpp.

References m_presetEncoding.

void PartController::setupActions  )  [private]
 

Definition at line 107 of file partcontroller.cpp.

References KXMLGUIClient::actionCollection(), MainWindowUtils::beautifyToolTip(), KStdAction::close(), TopLevel::getInstance(), KRecentFilesAction::loadEntries(), m_backAction, m_closeAllWindowsAction, m_closeOtherWindowsAction, m_closeWindowAction, m_forwardAction, m_openRecentAction, m_revertAllFilesAction, m_saveAllFilesAction, m_switchToAction, KDevMainWindow::main(), KStdAction::open(), KStdAction::openRecent(), KToolBarPopupAction::popupMenu(), KAction::setEnabled(), KAction::setToolTip(), KAction::setWhatsThis(), slotBack(), slotBackAboutToShow(), slotCloseAllWindows(), slotCloseOtherWindows(), slotCloseWindow(), slotForward(), slotForwardAboutToShow(), slotOpenFile(), slotOpenRecent(), slotPopupActivated(), slotRevertAllFiles(), slotSaveAllFiles(), slotSwitchTo(), and KAction::text.

Referenced by PartController().

void PartController::showDocument const KURL url,
bool  newWin = false
[virtual]
 

Show a HTML document in the documentation viewer.

Parameters:
url the URL of the document to view
newWin if true, the new window will be created instead of using current

Implements KDevPartController.

Definition at line 476 of file partcontroller.cpp.

References activatePart(), KParts::PartManager::activePart(), editDocument(), KMimeType::findByURL(), integratePart(), KURL::isLocalFile(), kdDebug(), KDevHTMLPart::openURL(), KDevPartController::partURLChanged(), KDevHTMLPart::resolveEnvVarsInURL(), and KURL::url().

Referenced by ProjectSession::loadDocument(), DocumentationPart::slotDuplicate(), DocumentationPart::slotOpenInNewWindow(), and NewMainWindow::tabContextActivated().

void PartController::showPart KParts::Part part,
const QString name,
const QString shortDescription
[virtual]
 

Embed a part into the main area of the mainwindow.

Parameters:
part the part to embed
name the name of the part
shortDescription currently not used (?)

Implements KDevPartController.

Definition at line 1178 of file partcontroller.cpp.

References activatePart(), KParts::PartManager::addPart(), KDevMainWindow::embedPartView(), TopLevel::getInstance(), KParts::PartManager::parts(), and KParts::Part::widget().

void PartController::slotActivePartChanged KParts::Part part  )  [slot]
 

Definition at line 1121 of file partcontroller.cpp.

References _partURLMap, addHistoryEntry(), k_funcinfo, kdDebug(), m_latestPart, slotWaitForFactoryHack(), and updateMenuItems().

Referenced by PartController().

void PartController::slotBack  )  [private, slot]
 

Definition at line 1370 of file partcontroller.cpp.

References jumpTo(), m_Current, and m_history.

Referenced by setupActions().

void PartController::slotBackAboutToShow  )  [private, slot]
 

Definition at line 1386 of file partcontroller.cpp.

References m_backAction, m_Current, m_history, and KToolBarPopupAction::popupMenu().

Referenced by setupActions().

void PartController::slotCloseAllWindows  )  [slot]
 

Definition at line 1062 of file partcontroller.cpp.

References closeAllFiles().

Referenced by ProjectManager::closeProject(), and setupActions().

void PartController::slotCloseOtherWindows  )  [slot]
 

Definition at line 1076 of file partcontroller.cpp.

References KParts::PartManager::activePart(), closeAllOthers(), and KParts::ReadOnlyPart::url().

Referenced by setupActions().

void PartController::slotCloseWindow  )  [slot]
 

Definition at line 865 of file partcontroller.cpp.

References KParts::PartManager::activePart(), and closePart().

Referenced by setupActions().

void PartController::slotDocumentDirty Kate::Document *  doc,
bool  isModified,
unsigned char  reason
[private, slot]
 

Definition at line 1200 of file partcontroller.cpp.

References _dirtyDocuments, Clean, KDevPartController::documentChangedState(), doEmitState(), KURL::isEmpty(), k_funcinfo, kdDebug(), KParts::PartManager::parts(), reactToDirty(), storedURLForPart(), KURL::url(), and KParts::ReadOnlyPart::url().

Referenced by integratePart().

void PartController::slotForward  )  [private, slot]
 

Definition at line 1378 of file partcontroller.cpp.

References jumpTo(), m_Current, and m_history.

Referenced by setupActions().

void PartController::slotForwardAboutToShow  )  [private, slot]
 

Definition at line 1411 of file partcontroller.cpp.

References m_Current, m_forwardAction, m_history, and KToolBarPopupAction::popupMenu().

Referenced by setupActions().

void PartController::slotNewStatus  )  [private, slot]
 

Definition at line 1303 of file partcontroller.cpp.

References KTextEditor::View::document(), doEmitState(), k_funcinfo, and kdDebug().

Referenced by integrateTextEditorPart().

void PartController::slotOpenFile  )  [private, slot]
 

Definition at line 1093 of file partcontroller.cpp.

References editDocument(), KEncodingFileDialog::getOpenURLsAndEncoding(), m_presetEncoding, and main().

Referenced by setupActions().

void PartController::slotOpenRecent const KURL  )  [private, slot]
 

Definition at line 1105 of file partcontroller.cpp.

References editDocument(), m_openRecentAction, and KListAction::setCurrentItem().

Referenced by setupActions().

void PartController::slotPartAdded KParts::Part  )  [private, slot]
 

Definition at line 627 of file partcontroller.cpp.

References k_funcinfo, kdDebug(), updateMenuItems(), and updatePartURL().

Referenced by PartController().

void PartController::slotPartRemoved KParts::Part  )  [private, slot]
 

Definition at line 639 of file partcontroller.cpp.

References _partURLMap, k_funcinfo, kdDebug(), and updateMenuItems().

Referenced by PartController().

void PartController::slotPopupActivated int  id  )  [private, slot]
 

Definition at line 1436 of file partcontroller.cpp.

References jumpTo(), m_Current, and m_history.

Referenced by setupActions().

void PartController::slotReload  )  [slot]
 

Definition at line 897 of file partcontroller.cpp.

References KParts::PartManager::activePart(), k_funcinfo, kdDebug(), reloadFile(), and KParts::ReadOnlyPart::url().

void PartController::slotRevertAllFiles  )  [private, slot]
 

Definition at line 807 of file partcontroller.cpp.

References revertAllFiles().

Referenced by setupActions().

void PartController::slotSave  )  [slot]
 

Definition at line 887 of file partcontroller.cpp.

References KParts::PartManager::activePart(), k_funcinfo, kdDebug(), saveFile(), and KParts::ReadOnlyPart::url().

void PartController::slotSaveAllFiles  )  [private, slot]
 

Definition at line 907 of file partcontroller.cpp.

References saveAllFiles().

Referenced by setupActions().

void PartController::slotSwitchTo  )  [private, slot]
 

Definition at line 1145 of file partcontroller.cpp.

References activatePart(), KCompletionBase::completionObject(), KURL::fileName(), kdDebug(), KParts::PartManager::parts(), KDialogBase::plainPage(), KURL::prettyURL(), KCompletion::setItems(), and KParts::ReadOnlyPart::url().

Referenced by setupActions().

void PartController::slotUploadFinished  )  [private, slot]
 

Definition at line 680 of file partcontroller.cpp.

References KDevPartController::partURLChanged(), partURLHasChanged(), and updatePartURL().

Referenced by integratePart().

void PartController::slotWaitForFactoryHack  )  [private, slot]
 

Definition at line 1495 of file partcontroller.cpp.

References KParts::PartManager::activePart(), EditorProxy::getInstance(), and EditorProxy::installPopup().

Referenced by slotActivePartChanged().

KURL PartController::storedURLForPart KParts::ReadOnlyPart  )  [private]
 

Definition at line 670 of file partcontroller.cpp.

References _partURLMap.

Referenced by slotDocumentDirty().

void PartController::updateMenuItems  )  [private, slot]
 

Definition at line 783 of file partcontroller.cpp.

References m_backAction, m_closeAllWindowsAction, m_closeOtherWindowsAction, m_closeWindowAction, m_Current, m_forwardAction, m_history, m_revertAllFilesAction, m_saveAllFilesAction, KParts::PartManager::parts(), and KAction::setEnabled().

Referenced by addHistoryEntry(), slotActivePartChanged(), slotPartAdded(), and slotPartRemoved().

void PartController::updatePartURL KParts::ReadOnlyPart  )  [private]
 

Definition at line 648 of file partcontroller.cpp.

References _partURLMap, KURL::isEmpty(), kdDebug(), and KParts::ReadOnlyPart::url().

Referenced by slotPartAdded(), and slotUploadFinished().


Member Data Documentation

QValueList<KParts::ReadWritePart*> PartController::_dirtyDocuments [private]
 

Definition at line 171 of file partcontroller.h.

Referenced by closePart(), isDirty(), reloadFile(), saveFile(), and slotDocumentDirty().

QGuardedPtr<KParts::Factory> PartController::_editorFactory [private]
 

Definition at line 175 of file partcontroller.h.

Referenced by createEditorPart().

QMap< KParts::ReadOnlyPart*, KURL > PartController::_partURLMap [private]
 

Definition at line 173 of file partcontroller.h.

Referenced by partURLHasChanged(), slotActivePartChanged(), slotPartRemoved(), storedURLForPart(), and updatePartURL().

KToolBarPopupAction* PartController::m_backAction [private]
 

Definition at line 166 of file partcontroller.h.

Referenced by setupActions(), slotBackAboutToShow(), and updateMenuItems().

KAction* PartController::m_closeAllWindowsAction [private]
 

Definition at line 162 of file partcontroller.h.

Referenced by setupActions(), and updateMenuItems().

KAction * PartController::m_closeOtherWindowsAction [private]
 

Definition at line 162 of file partcontroller.h.

Referenced by setupActions(), and updateMenuItems().

KAction* PartController::m_closeWindowAction [private]
 

Definition at line 161 of file partcontroller.h.

Referenced by setupActions(), and updateMenuItems().

QValueList<HistoryEntry>::Iterator PartController::m_Current [private]
 

Definition at line 192 of file partcontroller.h.

Referenced by addHistoryEntry(), PartController(), slotBack(), slotBackAboutToShow(), slotForward(), slotForwardAboutToShow(), slotPopupActivated(), and updateMenuItems().

KToolBarPopupAction* PartController::m_forwardAction [private]
 

Definition at line 167 of file partcontroller.h.

Referenced by setupActions(), slotForwardAboutToShow(), and updateMenuItems().

QValueList<HistoryEntry> PartController::m_history [private]
 

Definition at line 191 of file partcontroller.h.

Referenced by addHistoryEntry(), PartController(), slotBack(), slotBackAboutToShow(), slotForward(), slotForwardAboutToShow(), slotPopupActivated(), and updateMenuItems().

bool PartController::m_isJumping [private]
 

Definition at line 193 of file partcontroller.h.

Referenced by jumpTo(), and PartController().

QGuardedPtr<KParts::ReadOnlyPart> PartController::m_latestPart [private]
 

Definition at line 194 of file partcontroller.h.

Referenced by slotActivePartChanged().

bool PartController::m_openNextAsText [private]
 

Definition at line 169 of file partcontroller.h.

Referenced by editDocumentInternal(), and PartController().

KRecentFilesAction* PartController::m_openRecentAction [private]
 

Definition at line 163 of file partcontroller.h.

Referenced by editDocumentInternal(), setupActions(), and slotOpenRecent().

QString PartController::m_presetEncoding [private]
 

Definition at line 164 of file partcontroller.h.

Referenced by editDocumentInternal(), setEncoding(), and slotOpenFile().

KAction * PartController::m_revertAllFilesAction [private]
 

Definition at line 161 of file partcontroller.h.

Referenced by setupActions(), and updateMenuItems().

KAction * PartController::m_saveAllFilesAction [private]
 

Definition at line 161 of file partcontroller.h.

Referenced by setupActions(), and updateMenuItems().

KAction * PartController::m_switchToAction [private]
 

Definition at line 162 of file partcontroller.h.

Referenced by setupActions().

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

Definition at line 62 of file partcontroller.cpp.

Referenced by createInstance().


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:44:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003