~ubuntu-branches/ubuntu/karmic/rkward/karmic

« back to all changes in this revision

Viewing changes to rkward/rkdocmanager.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Friedrichsmeier
  • Date: 2006-11-06 16:30:00 UTC
  • mfrom: (1.2.1 upstream) (3.1.1 feisty)
  • Revision ID: james.westby@ubuntu.com-20061106163000-qi8ju75eqecrfay7
* new upstream release
* depend on either php4-cli or php5-cli

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
                          rkward.cpp  -  description
3
 
                             -------------------
4
 
    begin                : Tue Oct 29 20:06:08 CET 2002
5
 
    copyright            : (C) 2002 by Thomas Friedrichsmeier 
6
 
    email                : tfry@users.sourceforge.net
7
 
 ***************************************************************************/
8
 
 
9
 
/***************************************************************************
10
 
 *                                                                         *
11
 
 *   This program is free software; you can redistribute it and/or modify  *
12
 
 *   it under the terms of the GNU General Public License as published by  *
13
 
 *   the Free Software Foundation; either version 2 of the License, or     *
14
 
 *   (at your option) any later version.                                   *
15
 
 *                                                                         *
16
 
 ***************************************************************************/
17
 
 
18
 
 
19
 
#ifndef RKDOCMANAGER_H
20
 
#define RKDOCMANAGER_H
21
 
 
22
 
#include <qobject.h>
23
 
#include <kate/document.h>
24
 
#include <kparts/factory.h>
25
 
 
26
 
/**
27
 
* This class handles Kate documents.
28
 
*
29
 
* @author Pierre Ecochard
30
 
*/
31
 
class RKDocManager : public QObject
32
 
{
33
 
Q_OBJECT
34
 
public:
35
 
    RKDocManager(QObject *parent = 0, const char *name = 0);
36
 
 
37
 
    ~RKDocManager();
38
 
    
39
 
    KTextEditor::Document *createDoc ();
40
 
    void deleteDoc (Kate::Document *doc);
41
 
 
42
 
 
43
 
    KTextEditor::Document *activeDocument ();
44
 
 
45
 
    KTextEditor::Document *firstDocument ();
46
 
    KTextEditor::Document *nextDocument ();    
47
 
    
48
 
    int findDocument (Kate::Document *doc);
49
 
    uint documents ();    
50
 
    
51
 
    
52
 
private:
53
 
    QPtrList<KTextEditor::Document> m_docList;
54
 
    KParts::Factory *m_factory;
55
 
};
56
 
 
57
 
#endif