~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to playground/kte_acomment/acommentview.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
 **    - This file is part of the Artistic Comment KTextEditor-Plugin -    **
 
3
 **  - Copyright 2009-2010 Jonathan Schmidt-Dominé <devel@the-user.org> -  **
 
4
 **                                  ----                                  **
 
5
 **   - This program is free software; you can redistribute it and/or -    **
 
6
 **    - modify it under the terms of the GNU Library General Public -     **
 
7
 **    - License version 3, or (at your option) any later version, as -    **
 
8
 ** - published by the Free Software Foundation.                         - **
 
9
 **                                  ----                                  **
 
10
 **  - This library 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 GNU -  **
 
13
 **          - Library General Public License for more details. -          **
 
14
 **                                  ----                                  **
 
15
 ** - You should have received a copy of the GNU Library General Public -  **
 
16
 ** - License along with the kdelibs library; see the file COPYING.LIB. -  **
 
17
 **  - If not, write to the Free Software Foundation, Inc., 51 Franklin -  **
 
18
 **      - Street, Fifth Floor, Boston, MA 02110-1301, USA. or see -       **
 
19
 **                  - <http://www.gnu.org/licenses/>. -                   **
 
20
 ***************************************************************************/
 
21
 
 
22
#ifndef ACOMMENTVIEW_H
 
23
#define ACOMMENTVIEW_H
 
24
 
 
25
#include <QObject>
 
26
#include <KXMLGUIClient>
 
27
 
 
28
class QAction;
 
29
class KMenu;
 
30
class KDialog;
 
31
 
 
32
#include "ui_styledialog.h"
 
33
 
 
34
class ACommentView : public QObject, public KXMLGUIClient
 
35
{
 
36
    Q_OBJECT
 
37
public:
 
38
    explicit ACommentView(KTextEditor::View *view = 0);
 
39
    ~ACommentView();
 
40
private slots:
 
41
    void insertAComment(QAction *action);
 
42
    void disableOptions(int type);
 
43
    void loadStyle(QString name);
 
44
    void changeEntry();
 
45
private:
 
46
    KTextEditor::View *m_view;
 
47
    KMenu *m_menu;
 
48
    KDialog *m_dialog;
 
49
    Ui::StyleDialog m_ui;
 
50
};
 
51
 
 
52
#endif