~ubuntu-branches/ubuntu/oneiric/kdesdk/oneiric-updates

« back to all changes in this revision

Viewing changes to kate/plugins/kate-ctags/kate_ctags_plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers, Modestas Vainius, George Kiagiadakis, José Manuel Santamaría Lema, Pino Toscano
  • Date: 2011-04-27 12:23:44 UTC
  • mfrom: (1.1.58 upstream) (0.5.7 squeeze)
  • mto: (0.5.8 sid)
  • mto: This revision was merged to the branch mainline in revision 120.
  • Revision ID: james.westby@ubuntu.com-20110427122344-t9d1jf4lfnrl6hyv
Tags: 4:4.6.2-1
* New upstream release:
  - fixes plugin loading in kate sessions (Closes: #525853)
  - updates kate man page with respect to instance creation defaults
    (Closes: #598443)
  - fixes cursor position with static word-wrap in Kate (Closes: #570409)
  - xml2pot creates .pot files with the correct mimetype (Closes: #326060)
* Update installed files.
* Update lintian overrides.

[ Modestas Vainius ]
* Point debian/control Vcs fields to the new Git repository.
* Strip sequence numbers from debian/patches.
* Strip trailing whitespace in debian/copyright.
* Add kdeutils-dbg (<< 4:4.6) to kdesdk-dbg Breaks/Replaces (due to moved
  okteta).
* Add ${perl:Depends} to Depends of cervisia and kdesdk-kio-plugins.

[ George Kiagiadakis ]
* Add myself to uploaders.
* Refresh patch 02_append_kde.diff.
* Drop patch 03_kmtrace_compile.diff; fixed upstream in a better way.
* Add libkonq5-dev, libantlr-dev and antlr to build depends.
  (Closes: #505425)
* Bump kdepimlibs5-dev build dependency to version 4:4.6.
* Add new package: kdesdk-dolphin-plugins.

[ José Manuel Santamaría Lema ]
* Remove package kbugbuster.
* Enable DebianABIManager:
  - include DebianABIManager.cmake at the bottom of the main CMakeLists.txt
    (patch enable_debianabimanager.diff).
  - debian/control: managing all non-local unstable-BC libraries.
* Add packages for okteta:
  - okteta
  - okteta-dev
  - libkastencontrollers4
  - libkastencore4
  - libkastengui4
  - liboktetacore4
  - liboktetagui4
  - liboktetakastencontrollers4
  - liboktetakastencore4
  - liboktetakastengui4
* Add symbols files for new library packages.
* Bump kde-sc-dev-latest build dependency to 4:4.6.2.
* Bump pkg-kde-tools build dependency to 0.12.
* Switch debian/rules engine to dhmk based qt-kde-team/2/*
  - and remove cdbs from Build-Depends.
* Bump S-V to 3.9.1; update Replaces/Breaks/Conflicts.
* Add myself to Uploaders.

[ Pino Toscano ]
* Add build dependency on libqca2-dev.
* Do not ship kdesrc-build with kdesdk-scripts, it is packaged separately.
* Small updates to descriptions.
* Clean up Replaces/Breaks from the pre-squeeze era whenever possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef KATE_CTAGS_PLUGIN_H
 
2
#define KATE_CTAGS_PLUGIN_H
 
3
/* Description : Kate CTags plugin
 
4
 *
 
5
 * Copyright (C) 2008 by Kare Sars <kare dot sars at iki dot fi>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or
 
8
 * modify it under the terms of the GNU General Public
 
9
 * License as published by the Free Software Foundation; either
 
10
 * version 2.1 of the License, or (at your option) version 3, or any
 
11
 * later version accepted by the membership of KDE e.V. (or its
 
12
 * successor approved by the membership of KDE e.V.), which shall
 
13
 * act as a proxy defined in Section 6 of version 3 of the license.
 
14
 *
 
15
 * This program is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU General Public
 
21
 * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
22
 */
 
23
 
 
24
 
 
25
#include <ktexteditor/view.h>
 
26
#include <ktexteditor/document.h>
 
27
 
 
28
#include <kate/plugin.h>
 
29
#include <kate/application.h>
 
30
#include <kate/documentmanager.h>
 
31
#include <kate/mainwindow.h>
 
32
#include <kate/pluginconfigpageinterface.h>
 
33
 
 
34
#include "kate_ctags_view.h"
 
35
#include "ui_CTagsGlobalConfig.h"
 
36
 
 
37
//******************************************************************/
 
38
class KateCTagsPlugin : public Kate::Plugin, public Kate::PluginConfigPageInterface
 
39
{
 
40
    Q_OBJECT
 
41
    Q_INTERFACES(Kate::PluginConfigPageInterface)
 
42
 
 
43
    public:
 
44
        explicit KateCTagsPlugin(QObject* parent = 0, const QStringList& = QStringList());
 
45
        virtual ~KateCTagsPlugin() {}
 
46
 
 
47
        Kate::PluginView *createView(Kate::MainWindow *mainWindow);
 
48
   
 
49
        // PluginConfigPageInterface
 
50
        uint configPages() const { return 1; };
 
51
        Kate::PluginConfigPage *configPage (uint number = 0, QWidget *parent = 0, const char *name = 0);
 
52
        QString configPageName (uint number = 0) const;
 
53
        QString configPageFullName (uint number = 0) const;
 
54
        KIcon configPageIcon (uint number = 0) const;
 
55
        void readConfig();
 
56
        
 
57
        KateCTagsView *m_view;
 
58
};
 
59
 
 
60
//******************************************************************/
 
61
class KateCTagsConfigPage : public Kate::PluginConfigPage {
 
62
    Q_OBJECT
 
63
public:
 
64
    explicit KateCTagsConfigPage( QWidget* parent = 0, KateCTagsPlugin *plugin = 0 );
 
65
    ~KateCTagsConfigPage() {}
 
66
    
 
67
    void apply();
 
68
    void reset();
 
69
    void defaults() {}
 
70
 
 
71
private Q_SLOTS:
 
72
    void addGlobalTagTarget();
 
73
    void delGlobalTagTarget();
 
74
    void updateGlobalDB();
 
75
    void updateDone(int exitCode, QProcess::ExitStatus status);
 
76
 
 
77
private:
 
78
 
 
79
    bool listContains(const QString &target);
 
80
 
 
81
    KProcess              m_proc;
 
82
    KateCTagsPlugin      *m_plugin;
 
83
    Ui_CTagsGlobalConfig  m_confUi;
 
84
};
 
85
 
 
86
#endif
 
87