summaryrefslogtreecommitdiffstats
path: root/krename/tabs.h
blob: e7fed0f09a818f637d14886ce61ce74ff16e1cbf (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
/***************************************************************************
                          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  {
    Q_OBJECT
  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