[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/lib/interfaces
From: Adam Treat <treat () kde ! org>
Date: 2006-07-06 17:55:29
Message-ID: 1152208529.870507.19722.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 559166 by treat:
* Add mimetype function to kdevdocument
M +5 -0 kdevdocument.cpp
M +6 -0 kdevdocument.h
M +1 -1 kdevdocumentcontroller.h
--- trunk/KDE/kdevelop/lib/interfaces/kdevdocument.cpp #559165:559166
@@ -42,6 +42,11 @@
return m_part;
}
+KMimeType::Ptr KDevDocument::mimeType( ) const
+{
+ return KMimeType::findByURL(url());
+}
+
KDevDocumentController * KDevDocument::parent( ) const
{
return static_cast<KDevDocumentController*>(const_cast<QObject*>(QObject::parent()));
--- trunk/KDE/kdevelop/lib/interfaces/kdevdocument.h #559165:559166
@@ -24,6 +24,7 @@
#include <QPointer>
#include <kurl.h>
+#include <kmimetype.h>
#include "kdevexport.h"
namespace KParts
@@ -82,6 +83,11 @@
KParts::Part* part() const;
/**
+ * Returns the mimetype of the document.
+ */
+ KMimeType::Ptr mimeType() const;
+
+ /**
* Returns the text editor document, if this is a text document.
*/
KTextEditor::Document* textDocument() const;
--- trunk/KDE/kdevelop/lib/interfaces/kdevdocumentcontroller.h #559165:559166
@@ -50,7 +50,7 @@
class KDevDocument;
/**
- * \short Interface to control loaded parts and other documents.
+ * \short Interface to control open documents.
* The document controller manages open documents in the IDE.
* Open documents are usually editors, GUI designers, html documentation etc.
*/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic