FileContext Class Reference
A context for the popup menu in file views (as the FileTreeView or the AutoMake Managers' file view). More...
#include <kdevcore.h>
Inheritance diagram for FileContext:


Public Member Functions | |
FileContext (const QString &fileName, bool isDirectory) | |
Compatibility mode Build context using a single filename | |
FileContext (const KURL::List &someURLs) | |
Builds the file context using a. | |
virtual | ~FileContext () |
Destructor. | |
virtual int | type () const |
Implements this in the context so we can provide rtti. | |
QString | fileName () const |
Compatibility mode Returns the absolute name of the selected pathname (file or directory). | |
bool | isDirectory () const |
Compatibility mode Returns true if currently stored file is a directory If the context has been built using the standard costructor than this method will refer to the first path of the embedded KURL list. | |
const KURL::List & | urls () const |
Private Member Functions | |
FileContext (const FileContext &) | |
FileContext & | operator= (const FileContext &) |
Private Attributes | |
Private * | d |
Detailed Description
A context for the popup menu in file views (as the FileTreeView or the AutoMake Managers' file view).It can works in two modes:
- compatibility mode: for old modules still relaying on single file selection
- standard mode: which should be used by new modules and which consists in adding a bunch of KURLs to the context
Definition at line 207 of file kdevcore.h.
Constructor & Destructor Documentation
|
Compatibility mode Build context using a single filename
Definition at line 176 of file kdevcore.cpp. |
|
Builds the file context using a.
Definition at line 169 of file kdevcore.cpp. |
|
Destructor.
Definition at line 183 of file kdevcore.cpp. |
|
|
Member Function Documentation
|
Compatibility mode Returns the absolute name of the selected pathname (file or directory). If the context has been built using the standard costructor than this method will refer to the first path of the embedded KURL list. Definition at line 199 of file kdevcore.cpp. References d, and FileContext::Private::m_fileName. Referenced by PerforcePart::contextMenu(), ClearcasePart::contextMenu(), ToolsPart::contextMenu(), DiffPart::contextMenu(), CppSupportPart::contextMenu(), CustomProjectPart::contextMenu(), AntProjectPart::contextMenu(), and OpenWithPart::fillContextMenu(). |
|
Compatibility mode Returns true if currently stored file is a directory If the context has been built using the standard costructor than this method will refer to the first path of the embedded KURL list.
Definition at line 206 of file kdevcore.cpp. References d, and FileContext::Private::m_isDirectory. Referenced by ToolsPart::contextMenu(), CustomProjectPart::contextMenu(), AntProjectPart::contextMenu(), and OpenWithPart::fillContextMenu(). |
|
|
|
Implements this in the context so we can provide rtti.
Implements Context. Definition at line 192 of file kdevcore.cpp. |
|
Definition at line 213 of file kdevcore.cpp. References d, and FileContext::Private::m_urls. Referenced by subversionPart::contextMenu(), CvsServicePart::contextMenu(), CopyToPart::contextMenu(), and CustomProjectPart::contextMenu(). |
Member Data Documentation
|
Definition at line 251 of file kdevcore.h. Referenced by fileName(), isDirectory(), urls(), and ~FileContext(). |
The documentation for this class was generated from the following files:
- lib/interfaces/kdevcore.h
- lib/interfaces/kdevcore.cpp