blob: dcf0361521e1c5a57004ca78a6c63bdc39e7c901 (
plain)
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
54
55
56
57
58
59
60
61
|
/***************************************************************************
* Copyright (C) 2004 by Sashmit Bhaduri *
* [email protected] *
* *
* Licensed under GPL. *
***************************************************************************/
#ifndef TABWIDGET_H
#define TABWIDGET_H
#include "frame.h"
#include <ktabwidget.h>
#include <qptrdict.h>
namespace KlamAV
{
class TabWidget:public KTabWidget
{
Q_OBJECT
public:
TabWidget(QWidget * parent = 0, const char *name = 0);
~TabWidget();
void addFrame(Frame *f);
Frame *currentFrame();
void removeFrame(Frame *f);
unsigned int tabBarWidthForMaxChars( uint maxLength );
void setTitle( const QString &title , QWidget* sender);
public slots:
void slotSettingsChanged();
signals:
void currentFrameChanged(Frame *);
private: // methods
private slots:
void slotDetachTab();
void slotCopyLinkAddress();
void slotCloseTab();
void slotCloseRequest(QWidget* widget);
void contextMenu (int item, const QPoint &p);
void slotTabChanged(QWidget *w);
private: // attributes
QPtrDict<Frame> m_frames;
unsigned int m_CurrentMaxLength;
QWidget* currentItem;
};
}
#endif
|