VCSFileTreeWidgetImpl Class Reference
#include <vcsfiletreewidgetimpl.h>
Inheritance diagram for VCSFileTreeWidgetImpl:

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 | |
KToggleAction * | m_actionToggleShowVCSFields |
KAction * | m_actionSyncWithRepository |
KDevVCSFileInfoProvider * | m_vcsInfoProvider |
bool | m_isSyncingWithRepository |
We use this guard to avoid enabling the "reload tree" action when performing syncing with remote repositories. | |
KFileTreeViewItem * | m_vcsStatusRequestedItem |
Detailed Description
- Author:
- Mario Scalas Provides VCS feedback to the standard features.
Definition at line 25 of file vcsfiletreewidgetimpl.h.
Constructor & Destructor Documentation
|
|
Definition at line 223 of file vcsfiletreewidgetimpl.cpp. References endl(), kdDebug(), FileTreeViewWidgetImpl::projectDom(), and showVCSFields(). |
Member Function Documentation
|
Costraints that must be satisfied to start a reload of the the tree.
Implements FileTreeViewWidgetImpl. Definition at line 233 of file vcsfiletreewidgetimpl.cpp. References m_isSyncingWithRepository. |
|
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.
Reimplemented from FileTreeViewWidgetImpl. Definition at line 240 of file vcsfiletreewidgetimpl.cpp. References fillPopupMenu(), KFileTreeViewItem::isDir(), m_actionSyncWithRepository, m_actionToggleShowVCSFields, m_vcsStatusRequestedItem, KAction::plug(), and KToggleAction::plug(). Referenced by fillPopupMenu(). |
|
Definition at line 285 of file vcsfiletreewidgetimpl.cpp. References KToggleAction::isChecked(), and m_actionToggleShowVCSFields. Referenced by VCSFileTreeWidgetImpl(), and ~VCSFileTreeWidgetImpl(). |
|
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 321 of file vcsfiletreewidgetimpl.cpp. References endl(), URLUtil::extractPathNameRelative(), KFileTreeViewItem::fileItem(), kdDebug(), m_isSyncingWithRepository, m_vcsInfoProvider, m_vcsStatusRequestedItem, KURL::path(), FileTreeViewWidgetImpl::projectDirectory(), KDevVCSFileInfoProvider::requestStatus(), and KFileItem::url(). Referenced by VCSFileTreeWidgetImpl(). |
|
show/hide the header and the additional fields (status and versions)
Definition at line 259 of file vcsfiletreewidgetimpl.cpp. References FileTreeViewWidgetImpl::contentsWidth(), endl(), FileTreeViewWidgetImpl::header(), kdDebug(), slotToggleShowVCSFields(), and FileTreeViewWidgetImpl::triggerUpdate(). Referenced by slotToggleShowVCSFields(), and VCSFileTreeWidgetImpl(). |
|
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
Definition at line 292 of file vcsfiletreewidgetimpl.cpp. References endl(), VCSFileTreeViewItem::fileName(), kdDebug(), m_isSyncingWithRepository, VCSFileTreeViewItem::setVCSInfo(), VCSFileInfo::toString(), FileTreeViewWidgetImpl::triggerUpdate(), and vcsDirStatusReady(). Referenced by vcsDirStatusReady(), and VCSFileTreeWidgetImpl(). |
Member Data Documentation
|
Definition at line 58 of file vcsfiletreewidgetimpl.h. Referenced by fillPopupMenu(), and VCSFileTreeWidgetImpl(). |
|
Definition at line 57 of file vcsfiletreewidgetimpl.h. Referenced by fillPopupMenu(), showVCSFields(), and VCSFileTreeWidgetImpl(). |
|
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 canReloadTree(), slotSyncWithRepository(), and vcsDirStatusReady(). |
|
Definition at line 59 of file vcsfiletreewidgetimpl.h. Referenced by slotSyncWithRepository(), and VCSFileTreeWidgetImpl(). |
|
Definition at line 63 of file vcsfiletreewidgetimpl.h. Referenced by fillPopupMenu(), and slotSyncWithRepository(). |
The documentation for this class was generated from the following files:
- parts/fileview/vcsfiletreewidgetimpl.h
- parts/fileview/vcsfiletreewidgetimpl.cpp