KDevelop API Documentation

OpenWithPart Class Reference

Put a brief description here, the brief description ends at the first dot. More...

#include <openwithpart.h>

Inheritance diagram for OpenWithPart:

Inheritance graph
[legend]
Collaboration diagram for OpenWithPart:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OpenWithPart (QObject *parent, const char *name, const QStringList &)
 ~OpenWithPart ()

Private Slots

void fillContextMenu (QPopupMenu *popup, const Context *context)
void openWithService ()
void openWithDialog ()
void openAsEncoding (int id)

Private Attributes

KURL m_url

Detailed Description

Put a brief description here, the brief description ends at the first dot.

Put a more detailed description of your part in these lines. It can span over several lines. You can even use some html commands in these lines like: This is code, html links link text, and images.

Author(s):
$AUTHOR$

2nd author full name ...

nth author full name

Maintainer(s):
$AUTHOR$

2nd maintainer full name ...

nth maintainer full name

Feature(s):
Describe the first feature

Describe the second feature ...

Describe the last feature

Bug:
Describe a the 1st bug that you know of, but probably hasn't been reported yet. ..

Describe a the nth bug that you know of, but probably hasn't been reported yet.

Requirement(s):
Describe a the 1st requirement of your part.

Describe a the 2nd requirement of your part. ...

Describe a the nth requirement of your part.

Todo:
Describe a the 1st TODO of your part.

Describe a the 2nd TODO of your part. ...

Describe a the nth TODO of your part.

F.A.Q.:
First frequenly asked question about your part ? Answer.

Second frequenly asked question about your part ? Answer. ...

Last frequenly asked question about your part ? Answer.

Note:
First note text.

Second note text. ...

Last note text.

Warning:
First warning text.

Second warning text. ...

Last warning text.

Definition at line 12 of file openwithpart.h.


Constructor & Destructor Documentation

OpenWithPart::OpenWithPart QObject parent,
const char *  name,
const QStringList
 

OpenWithPart::~OpenWithPart  ) 
 

Definition at line 28 of file openwithpart.cpp.


Member Function Documentation

void OpenWithPart::fillContextMenu QPopupMenu popup,
const Context context
[private, slot]
 

Definition at line 33 of file openwithpart.cpp.

References FileContext::fileName(), KMimeType::findByURL(), Context::hasType(), FileContext::isDirectory(), m_url, openAsEncoding(), openWithDialog(), and openWithService().

void OpenWithPart::openAsEncoding int  id  )  [private, slot]
 

Definition at line 98 of file openwithpart.cpp.

References KDevPartController::editDocument(), m_url, KDevPlugin::partController(), and KDevPartController::setEncoding().

Referenced by fillContextMenu().

void OpenWithPart::openWithDialog  )  [private, slot]
 

Definition at line 90 of file openwithpart.cpp.

References KRun::displayOpenWithDialog().

Referenced by fillContextMenu().

void OpenWithPart::openWithService  )  [private, slot]
 

Definition at line 77 of file openwithpart.cpp.

References KService::Ptr, KRun::run(), and KService::serviceByDesktopPath().

Referenced by fillContextMenu().


Member Data Documentation

KURL OpenWithPart::m_url [private]
 

Definition at line 32 of file openwithpart.h.

Referenced by fillContextMenu(), and openAsEncoding().


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