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

« back to all changes in this revision

Viewing changes to languages/cpp/cppsplitheadersourceconfig.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
 
/*
2
 
 * KDevelop config for split header/source
3
 
 *
4
 
 * Copyright (c) 2005 Adam Treat <treat@kde.org>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU Library General Public License as
8
 
 * published by the Free Software Foundation; either version 2 of the
9
 
 * License, or (at your option) any later version.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public
17
 
 * License along with this program; if not, write to the
18
 
 * Free Software Foundation, Inc.,
19
 
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
 
 */
21
 
#ifndef CPPSPLITHEADERSOURCECONFIG_H
22
 
#define CPPSPLITHEADERSOURCECONFIG_H
23
 
 
24
 
#include <qobject.h>
25
 
 
26
 
class CppSupportPart;
27
 
class QDomDocument;
28
 
 
29
 
class CppSplitHeaderSourceConfig : public QObject
30
 
{
31
 
    Q_OBJECT
32
 
public:
33
 
    CppSplitHeaderSourceConfig( CppSupportPart* part, QDomDocument* dom );
34
 
    virtual ~CppSplitHeaderSourceConfig();
35
 
 
36
 
    bool splitEnabled() const
37
 
    {
38
 
        return m_splitEnable;
39
 
    }
40
 
    void setSplitEnable( bool b );
41
 
 
42
 
    bool autoSync() const
43
 
    {
44
 
        return m_splitSync;
45
 
    }
46
 
    void setAutoSync( bool b );
47
 
 
48
 
    QString orientation() const
49
 
    {
50
 
        return m_splitOrientation;
51
 
    }
52
 
    void setOrientation( const QString &o );
53
 
 
54
 
public slots:
55
 
    void store();
56
 
 
57
 
private:
58
 
    void init();
59
 
 
60
 
signals:
61
 
    void stored();
62
 
 
63
 
private:
64
 
    CppSupportPart* m_part;
65
 
    QDomDocument* m_dom;
66
 
    bool m_splitEnable;
67
 
    bool m_splitSync;
68
 
    QString m_splitOrientation;
69
 
 
70
 
    static QString defaultPath;
71
 
};
72
 
 
73
 
#endif 
74
 
// kate: indent-mode csands; tab-width 4;