/*************************************************************************** * Copyright (C) 2004 by Sashmit Bhaduri * * smt@vfemail.net * * * * Licensed under GPL. * ***************************************************************************/ #ifndef TABWIDGET_H #define TABWIDGET_H #include "frame.h" #include #include namespace KlamAV { class TabWidget:public KTabWidget { Q_OBJECT public: TabWidget(TQWidget * 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 TQString &title , TQWidget* sender); public slots: void slotSettingsChanged(); signals: void currentFrameChanged(Frame *); private: // methods private slots: void slotDetachTab(); void slotCopyLinkAddress(); void slotCloseTab(); void slotCloseRequest(TQWidget* widget); void contextMenu (int item, const TQPoint &p); void slotTabChanged(TQWidget *w); private: // attributes TQPtrDict m_frames; unsigned int m_CurrentMaxLength; TQWidget* currentItem; }; } #endif