diff options
author | Mavridis Philippe <[email protected]> | 2021-01-13 19:26:24 +0200 |
---|---|---|
committer | Mavridis Philippe <[email protected]> | 2021-01-13 19:26:24 +0200 |
commit | 8c20dc919f7d54eb48fb60f39ba5e1d466a70763 (patch) | |
tree | 44d89f278d5dd066603e5ab9c0b270bc8eb4ad51 /src/tabwidget.h | |
download | klamav-8c20dc919f7d54eb48fb60f39ba5e1d466a70763.tar.gz klamav-8c20dc919f7d54eb48fb60f39ba5e1d466a70763.zip |
Initial commit
Signed-off-by: Mavridis Philippe <[email protected]>
Diffstat (limited to 'src/tabwidget.h')
-rw-r--r-- | src/tabwidget.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/tabwidget.h b/src/tabwidget.h new file mode 100644 index 0000000..dcf0361 --- /dev/null +++ b/src/tabwidget.h @@ -0,0 +1,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 |