KDevelop API Documentation

VCSFileTreeWidgetImpl Class Reference

#include <vcsfiletreewidgetimpl.h>

Inheritance diagram for VCSFileTreeWidgetImpl:

Inheritance graph
[legend]
Collaboration diagram for VCSFileTreeWidgetImpl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VCSFileTreeWidgetImpl (FileTreeWidget *parent, KDevVCSFileInfoProvider *infoProvider)
virtual ~VCSFileTreeWidgetImpl ()
virtual bool canReloadTree () const
 Costraints that must be satisfied to start a reload of the the tree.
virtual void fillPopupMenu (QPopupMenu *popupMenu, QListViewItem *item) const
 Here the popup menu is filled: by standard only the "reload tree" (only if the above function returns true) and "show project files" options are added.

Private Slots

void slotToggleShowVCSFields (bool checked)
 show/hide the header and the additional fields (status and versions)
void slotSyncWithRepository ()
 start a sync operation with the remote repository: this may take a while so we use the async interface provided by the KDevVCSFileInfoProvider interface
void vcsDirStatusReady (const VCSFileInfoMap &modifiedFiles, void *callerData)
 when the requested info are ready the infoProvider object will be so kind the to give them to us in a ready-to-use format: we'll use that info to update all the items which are childs of the

Private Member Functions

bool showVCSFields () const

Private Attributes

KToggleActionm_actionToggleShowVCSFields
KActionm_actionSyncWithRepository
KDevVCSFileInfoProviderm_vcsInfoProvider
bool m_isSyncingWithRepository
 We use this guard to avoid enabling the "reload tree" action when performing syncing with remote repositories.
KFileTreeViewItemm_vcsStatusRequestedItem

Detailed Description

Author:
Mario Scalas Provides VCS feedback to the standard features.

Definition at line 25 of file vcsfiletreewidgetimpl.h.


Constructor & Destructor Documentation

VCSFileTreeWidgetImpl::VCSFileTreeWidgetImpl FileTreeWidget parent,
KDevVCSFileInfoProvider infoProvider
 

Definition at line 185 of file vcsfiletreewidgetimpl.cpp.

References KListView::addColumn(), FileTreeViewWidgetImpl::implementationInvalidated(), kdDebug(), m_actionSyncWithRepository, m_actionToggleShowVCSFields, m_vcsInfoProvider, FileTreeViewWidgetImpl::projectDom(), FileTreeViewWidgetImpl::setBranchItemFactory(), KToggleAction::setChecked(), KToggleAction::setCheckedState(), KAction::setWhatsThis(), showVCSFields(), slotSyncWithRepository(), slotToggleShowVCSFields(), vcsDirStatusReady(), and VCSFileInfoMap.

VCSFileTreeWidgetImpl::~VCSFileTreeWidgetImpl  )  [virtual]
 

Definition at line 227 of file vcsfiletreewidgetimpl.cpp.

References kdDebug(), FileTreeViewWidgetImpl::projectDom(), showVCSFields(), and DomUtil::writeBoolEntry().


Member Function Documentation

bool VCSFileTreeWidgetImpl::canReloadTree  )  const [virtual]
 

Costraints that must be satisfied to start a reload of the the tree.

Returns:

Implements FileTreeViewWidgetImpl.

Definition at line 237 of file vcsfiletreewidgetimpl.cpp.

void VCSFileTreeWidgetImpl::fillPopupMenu QPopupMenu popupMenu,
QListViewItem item
const [virtual]
 

Here the popup menu is filled: by standard only the "reload tree" (only if the above function returns true) and "show project files" options are added.

Parameters:
popupMenu the menu to fill
item the QListViewItem which this menu has been requested upon

Reimplemented from FileTreeViewWidgetImpl.

Definition at line 244 of file vcsfiletreewidgetimpl.cpp.

References FileTreeViewWidgetImpl::fillPopupMenu(), KFileTreeViewItem::isDir(), m_actionSyncWithRepository, m_actionToggleShowVCSFields, m_vcsStatusRequestedItem, KAction::plug(), and KToggleAction::plug().

bool VCSFileTreeWidgetImpl::showVCSFields  )  const [private]
 

Definition at line 289 of file vcsfiletreewidgetimpl.cpp.

References KToggleAction::isChecked(), and m_actionToggleShowVCSFields.

Referenced by VCSFileTreeWidgetImpl(), and ~VCSFileTreeWidgetImpl().

void VCSFileTreeWidgetImpl::slotSyncWithRepository  )  [private, slot]
 

start a sync operation with the remote repository: this may take a while so we use the async interface provided by the KDevVCSFileInfoProvider interface

Definition at line 325 of file vcsfiletreewidgetimpl.cpp.

References URLUtil::extractPathNameRelative(), KFileTreeViewItem::fileItem(), kdDebug(), m_isSyncingWithRepository, m_vcsInfoProvider, m_vcsStatusRequestedItem, KURL::path(), FileTreeViewWidgetImpl::projectDirectory(), KDevVCSFileInfoProvider::requestStatus(), and KFileItem::url().

Referenced by VCSFileTreeWidgetImpl().

void VCSFileTreeWidgetImpl::slotToggleShowVCSFields bool  checked  )  [private, slot]
 

show/hide the header and the additional fields (status and versions)

Definition at line 263 of file vcsfiletreewidgetimpl.cpp.

References FileTreeViewWidgetImpl::contentsWidth(), FileTreeViewWidgetImpl::header(), kdDebug(), FileTreeViewWidgetImpl::setColumnWidth(), and FileTreeViewWidgetImpl::triggerUpdate().

Referenced by VCSFileTreeWidgetImpl().

void VCSFileTreeWidgetImpl::vcsDirStatusReady const VCSFileInfoMap modifiedFiles,
void *  callerData
[private, slot]
 

when the requested info are ready the infoProvider object will be so kind the to give them to us in a ready-to-use format: we'll use that info to update all the items which are childs of the

See also:
filetreeview::FileTreeViewItem stored in callerData.

Definition at line 296 of file vcsfiletreewidgetimpl.cpp.

References VCSFileTreeViewItem::fileName(), kdDebug(), m_isSyncingWithRepository, VCSFileTreeViewItem::setVCSInfo(), VCSFileInfo::toString(), FileTreeViewWidgetImpl::triggerUpdate(), and VCSFileInfoMap.

Referenced by VCSFileTreeWidgetImpl().


Member Data Documentation

KAction* VCSFileTreeWidgetImpl::m_actionSyncWithRepository [private]
 

Definition at line 58 of file vcsfiletreewidgetimpl.h.

Referenced by fillPopupMenu(), and VCSFileTreeWidgetImpl().

KToggleAction* VCSFileTreeWidgetImpl::m_actionToggleShowVCSFields [private]
 

Definition at line 57 of file vcsfiletreewidgetimpl.h.

Referenced by fillPopupMenu(), showVCSFields(), and VCSFileTreeWidgetImpl().

bool VCSFileTreeWidgetImpl::m_isSyncingWithRepository [private]
 

We use this guard to avoid enabling the "reload tree" action when performing syncing with remote repositories.

Definition at line 62 of file vcsfiletreewidgetimpl.h.

Referenced by slotSyncWithRepository(), and vcsDirStatusReady().

KDevVCSFileInfoProvider* VCSFileTreeWidgetImpl::m_vcsInfoProvider [private]
 

Definition at line 59 of file vcsfiletreewidgetimpl.h.

Referenced by slotSyncWithRepository(), and VCSFileTreeWidgetImpl().

KFileTreeViewItem* VCSFileTreeWidgetImpl::m_vcsStatusRequestedItem [mutable, private]
 

Definition at line 63 of file vcsfiletreewidgetimpl.h.

Referenced by fillPopupMenu(), and slotSyncWithRepository().


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