KDevelop API Documentation

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:

Inheritance graph
[legend]
Collaboration diagram for FileContext:

Collaboration graph
[legend]
List of all members.

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::Listurls () const

Private Member Functions

 FileContext (const FileContext &)
FileContextoperator= (const FileContext &)

Private Attributes

Privated

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:

Definition at line 207 of file kdevcore.h.


Constructor & Destructor Documentation

FileContext::FileContext const QString fileName,
bool  isDirectory
 

Compatibility mode Build context using a single filename

Parameters:
fileName absolute pathname of the file to be used for this file context
isDirectory 

Definition at line 176 of file kdevcore.cpp.

FileContext::FileContext const KURL::List someURLs  ) 
 

Builds the file context using a.

See also:
KURL::List
Parameters:
someURLs 

Definition at line 169 of file kdevcore.cpp.

FileContext::~FileContext  )  [virtual]
 

Destructor.

Definition at line 183 of file kdevcore.cpp.

References d, and kdDebug().

FileContext::FileContext const FileContext  )  [private]
 


Member Function Documentation

QString FileContext::fileName  )  const
 

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().

bool FileContext::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.

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().

FileContext& FileContext::operator= const FileContext  )  [private]
 

int FileContext::type  )  const [virtual]
 

Implements this in the context so we can provide rtti.

Implements Context.

Definition at line 192 of file kdevcore.cpp.

const KURL::List & FileContext::urls  )  const
 

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

Private* FileContext::d [private]
 

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:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:24:34 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003