~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to projectmanagers/cmake/cmakedoc.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2010-05-05 07:21:55 UTC
  • mfrom: (1.2.3 upstream) (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100505072155-h78lx19pu04sbhtn
Tags: 4:4.0.0-2
* Upload to unstable (Closes: #579947, #481832).
* Acknowledge obsolete NMU fixes (Closes: #562410, #546961).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* KDevelop CMake Support
 
2
 *
 
3
 * Copyright 2009 Aleix Pol <aleixpol@kde.org>
 
4
 *
 
5
 * This program is free software; you can redistribute it and/or
 
6
 * modify it under the terms of the GNU General Public License
 
7
 * as published by the Free Software Foundation; either version 2
 
8
 * of the License, or (at your option) any later version.
 
9
 *
 
10
 * This program is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program; if not, write to the Free Software
 
17
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 
18
 * 02110-1301, USA.
 
19
 */
 
20
 
 
21
#ifndef CMAKEHELPDOC_H
 
22
#define CMAKEHELPDOC_H
 
23
 
 
24
#include <interfaces/idocumentation.h>
 
25
class CMakeDocumentation;
 
26
 
 
27
class CMakeDoc : public KDevelop::IDocumentation
 
28
{
 
29
    public:
 
30
        CMakeDoc(const QString& name, const QString& desc) : mName(name), mDesc(desc) {}
 
31
        
 
32
        virtual QString description() const { return mDesc; }
 
33
        virtual QString name() const { return mName; }
 
34
        virtual bool providesWidget() const { return false; }
 
35
        virtual KDevelop::IDocumentationProvider* provider() const;
 
36
        
 
37
        static CMakeDocumentation* s_provider;
 
38
        
 
39
    private:
 
40
        QString mName, mDesc;
 
41
};
 
42
 
 
43
#endif