/****************************************************************************
** Form interface generated from reading ui file 'tabbedbrowser.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef TABBEDBROWSER_H
#define TABBEDBROWSER_H

#include <ntqvariant.h>
#include <ntqwidget.h>
#include <ntqsettings.h>

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class TQTabWidget;
class HelpWindow;
class MainWindow;
class TQStyleSheet;
class TQMimeSourceFactory;

class TabbedBrowser : public TQWidget
{
    TQ_OBJECT

public:
    TabbedBrowser( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~TabbedBrowser();

    TQTabWidget* tab;
    TQWidget* frontpage;

    virtual HelpWindow * currentBrowser();
    virtual MainWindow * mainWindow();
    TQStyleSheet * styleSheet();
    bool linkUnderline();
    TQStringList sources();
    void setMimePath( TQStringList lst );
    void setMimeExtension( const TQString & ext );
    void setBrowserFont( const TQFont & fnt );
    TQFont browserFont();
    TQPtrList<HelpWindow> browsers() const;
    virtual HelpWindow* newBackgroundTab( const TQString & url );
    virtual void setTitle(HelpWindow*, const TQString &);

public slots:
    virtual void forward();
    virtual void backward();
    virtual void setSource( const TQString & ref );
    virtual void reload();
    virtual void home();
    virtual void nextTab();
    virtual void previousTab();
    virtual void newTab( const TQString & lnk );
    virtual void zoomIn();
    virtual void zoomOut();
    virtual void updateTitle( const TQString & title );
    virtual void newTab();
    virtual void transferFocus();
    virtual void initHelpWindow( HelpWindow * win );
    virtual void setup();
    virtual void setLinkUnderline( bool uline );
    virtual void setPalette( const TQPalette & pal );
    virtual void copy();
    virtual void closeTab();
    virtual void sourceChanged();

protected:
    TQGridLayout* TabbedBrowserLayout;
    TQGridLayout* frontpageLayout;

protected slots:
    virtual void languageChange();

private:
    TQStyleSheet *tabStyleSheet;
    bool tabLinkUnderline;
    TQMimeSourceFactory *mimeSourceFactory;
    TQWidget *lastCurrentTab;
    TQFont tabFont;

    virtual void init();
    virtual HelpWindow* createHelpWindow(const TQString &);

};

#endif // TABBEDBROWSER_H
