/***************************************************************************
                          tabs.h  -  description
                             -------------------
    begin                : Die Mai 20 2003
    copyright            : (C) 2003 by Dominik Seichter
    email                : domseichter@web.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 TABS_H
#define TABS_H

#include <tqwidget.h>
#include <tqdialog.h>

class KMenuBar;
class KRenameImpl;
class KPushButton;
class TQCloseEvent;
class TQRect;
class TQString;
class TQTabWidget;
class tabs : public TQDialog  {
    TQ_OBJECT
  
    public: 
        tabs(KRenameImpl* impl, TQRect r, TQWidget *parent=0, const char *name=0);
        ~tabs();

        inline KRenameImpl* getKRename() { return krename; }

    private slots:
        void slotAddPage( TQWidget* page, const TQString & title );
        void slotShowPage( int page );
        void slotEnableFinish( bool b );        
        void slotTabChanged();

    protected:
        virtual void keyPressEvent( TQKeyEvent *e );
        
    protected:
        KRenameImpl* krename;
        KPushButton* finishButton;
        KPushButton* cancelButton;

        KMenuBar* menuBar;
        TQTabWidget* tab;
};

#endif
