-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkatetabbar.h
53 lines (42 loc) · 1.21 KB
/
katetabbar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* This file is part of the KDE project
Copyright (C) 2008 Javier Goday <jgoday @ gmail.com>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
*/
#ifndef KATETABBAR_H
#define KATETABBAR_H
#include <QMap>
#include <KTabBar>
namespace KTextEditor
{
class Document;
}
class KateTabBar : public KTabBar
{
Q_OBJECT
public:
enum Position {
Top = 1,
Bottom = 2
};
KateTabBar(QWidget *parent = 0);
~KateTabBar();
KTextEditor::Document *documentFromIndex(int index);
int shapeAsInt();
int position();
public slots:
void addDocument(KTextEditor::Document *document);
void removeDocument(KTextEditor::Document *document);
void activateDocument(KTextEditor::Document *document);
void setShapeAsInt(int shape);
void setPosition(int position);
private slots:
void slotDocumentChange(KTextEditor::Document *document);
private:
QMap <int, KTextEditor::Document *> m_documents;
QMap <KTextEditor::Document *, int> m_keys;
int m_position;
};
#endif