FileTreeWidget Class Reference
This is FileTree widget for listing files belonging to the project. More...
#include <filetreewidget.h>
Inheritance diagram for FileTreeWidget:

Detailed Description
This is FileTree widget for listing files belonging to the project.It does feature:
- dynamic updates reflecting the state of the project dir and subdirs
- VCS support for showing VCS fields like state, working and repository revisions
- bolding the filenames belonging to project to distinguish them from the others
- dynamic filtering so the user has not to care about temporary files eating screen space ;-)
Design notes The class uses two different implementations (referred by m_impl data member):
- See also:
- VCSFileTreeWidgetImpl for VCS support VCS support is detencted by the constructor looking for the
KDevPlugin::versionControl() member: if the current VCS plug-in does offer a
KDevVCSFileInfoProvider object than this will be used for querying about files' data. If neither VCS plugin nor valid info provider is found then the filetreeview will fallback to the standard implementation
- See also:
- StdFileTreeWidgetImpl for standard visualization, just like the KFileTreeView
Definition at line 47 of file filetreewidget.h.
Constructor & Destructor Documentation
|
Definition at line 58 of file filetreewidget.cpp. References addProjectFiles(), endl(), FileTreeWidget(), KDevVersionControl::isValidDirectory(), kdDebug(), m_hidePatterns, m_impl, m_part, KDevPlugin::project(), projectDirectory(), KDevPlugin::projectDom(), removeProjectFiles(), slotContextMenu(), slotImplementationInvalidated(), slotItemExecuted(), and versionControl(). Referenced by FileTreeWidget(). |
|
Definition at line 98 of file filetreewidget.cpp. References endl(), hidePatterns(), kdDebug(), m_part, and KDevPlugin::projectDom(). |
Member Function Documentation
|
Definition at line 228 of file filetreewidget.cpp. References addProjectFiles(), endl(), file, kdDebug(), m_projectFiles, projectDirectory(), and filetreeview::FileTreeViewItem::setProjectFile(). Referenced by addProjectFiles(), FileTreeWidget(), and openDirectory(). |
|
Definition at line 276 of file filetreewidget.cpp. References applyHidePatterns(), hideOrShow(), and m_hidePatterns. Referenced by applyHidePatterns(), PartWidget::showProjectFiles(), and PartWidget::slotFilterChange(). |
|
Definition at line 159 of file filetreewidget.cpp. References filetreeview::FileTreeViewItem::hideOrShow(). Referenced by applyHidePatterns(), and FileTreeViewWidgetImpl::slotToggleShowNonProjectFiles(). |
|
Definition at line 284 of file filetreewidget.cpp. References m_hidePatterns. Referenced by PartWidget::PartWidget(), PartWidget::showProjectFiles(), and ~FileTreeWidget(). |
|
Definition at line 145 of file filetreewidget.cpp. References m_hidePatterns, and matchesHidePattern(). Referenced by matchesHidePattern(), and shouldBeShown(). |
|
Definition at line 110 of file filetreewidget.cpp. References addProjectFiles(), KDevProject::allFiles(), endl(), kdDebug(), m_impl, m_part, m_projectFiles, m_rootBranch, openDirectory(), KURL::prettyURL(), KDevPlugin::project(), KFileTreeBranch::setChildRecurse(), and KFileTreeBranch::setOpen(). Referenced by openDirectory(), PartWidget::showProjectFiles(), slotImplementationInvalidated(), and FileTreeViewWidgetImpl::slotReloadTree(). |
|
Definition at line 60 of file filetreewidget.h. References m_part. Referenced by versionControl(). |
|
Definition at line 214 of file filetreewidget.cpp. References m_part, KDevPlugin::project(), and KDevProject::projectDirectory(). Referenced by addProjectFiles(), VCSFileTreeBranchItem::createTreeViewItem(), FileTreeWidget(), and slotImplementationInvalidated(). |
|
Definition at line 221 of file filetreewidget.cpp. References m_projectFiles. Referenced by VCSFileTreeBranchItem::createTreeViewItem(), and StdFileTreeBranchItem::createTreeViewItem(). |
|
Definition at line 255 of file filetreewidget.cpp. References endl(), file, kdDebug(), m_part, m_projectFiles, KDevPlugin::project(), KDevProject::projectDirectory(), removeProjectFiles(), and filetreeview::FileTreeViewItem::setProjectFile(). Referenced by FileTreeWidget(), and removeProjectFiles(). |
|
Definition at line 136 of file filetreewidget.cpp. References KURL::fileName(), KFileTreeViewItem::isDir(), filetreeview::FileTreeViewItem::isProjectFile(), m_impl, matchesHidePattern(), shouldBeShown(), and KFileTreeViewItem::url(). Referenced by shouldBeShown(). |
|
Definition at line 301 of file filetreewidget.cpp. References m_impl. Referenced by filetreeview::FileTreeViewItem::paintCell(). |
|
Definition at line 195 of file filetreewidget.cpp. References KDevPlugin::core(), endl(), KDevCore::fillContextMenu(), kdDebug(), m_impl, m_part, and slotContextMenu(). Referenced by FileTreeWidget(), and slotContextMenu(). |
|
We must guard against unloading the used VCS plug-in when using it: we fall back to the implementation (a file view without VCS fields, only filenames).
Definition at line 308 of file filetreewidget.cpp. References endl(), kdDebug(), m_impl, m_rootBranch, openDirectory(), and projectDirectory(). Referenced by FileTreeWidget(). |
|
Definition at line 179 of file filetreewidget.cpp. References KDevPartController::editDocument(), KFileTreeViewItem::isDir(), KDevMainWindow::lowerView(), m_part, KDevPlugin::mainWindow(), KDevPlugin::partController(), slotItemExecuted(), and KFileTreeViewItem::url(). Referenced by FileTreeWidget(), and slotItemExecuted(). |
|
Definition at line 291 of file filetreewidget.cpp. References part(), and KDevPlugin::versionControl(). Referenced by FileTreeWidget(). |
Member Data Documentation
|
Definition at line 86 of file filetreewidget.h. Referenced by applyHidePatterns(), FileTreeWidget(), hidePatterns(), and matchesHidePattern(). |
|
Definition at line 91 of file filetreewidget.h. Referenced by FileTreeWidget(), openDirectory(), shouldBeShown(), showNonProjectFiles(), slotContextMenu(), and slotImplementationInvalidated(). |
|
Definition at line 89 of file filetreewidget.h. Referenced by FileTreeWidget(), openDirectory(), part(), projectDirectory(), removeProjectFiles(), slotContextMenu(), slotItemExecuted(), and ~FileTreeWidget(). |
|
Definition at line 87 of file filetreewidget.h. Referenced by addProjectFiles(), openDirectory(), projectFiles(), and removeProjectFiles(). |
|
Definition at line 90 of file filetreewidget.h. Referenced by openDirectory(), and slotImplementationInvalidated(). |
The documentation for this class was generated from the following files:
- parts/fileview/filetreewidget.h
- parts/fileview/filetreewidget.cpp