summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kdockwidgettest.h
blob: f5905262f4562f10bac42bbda6cf47f2cf5e6c6a (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/***************************************************************************
    copyright            : (C) 1999 by Judin Max
    email                : novaprint@mtu-net.ru
 ***************************************************************************/

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

#include <kdockwidget.h>
#include <kdockwidget_p.h>
#include <tqtabwidget.h>
#include <tqlabel.h>
class QPushButton;

class DockApplication : public KDockMainWindow
{Q_OBJECT
public:
  DockApplication( const char* name );
  ~DockApplication();

public slots:
  void rConfig();
  void wConfig();
  void cap();
  void greenMain();
  void blueMain();
  void nullMain();
  void gSetPix1();
  void gSetPix2();

protected:
  void initMenuBar();
  void initToolBars();
  void initStatusBar();

private:
  void updateButton();
  KDockWidget* dock;
  KDockWidget* dock1;
	KDockWidget* dock4;
	KDockWidget* dock5;
	KDockWidget* dock6;

  TQWidget* mainW;
  TQWidget* l;
  TQPushButton* m_bname;
};

class CTW:public TQTabWidget,public KDockContainer
{
        Q_OBJECT
public:
        CTW(TQWidget *parent):TQTabWidget(parent,"MyDockContainer"),KDockContainer(){insertTab(new TQLabel("BLAH",this),"BLUP");}
        virtual ~CTW(){;}
        KDockWidget *parentDockWidget(){return ((KDockWidget*)parent());}
        void insertWidget (KDockWidget *w, TQPixmap, const TQString &, int &){qDebug("widget inserted"); insertTab(w,"NO");}
        void setToolTip (KDockWidget *, TQString &){qDebug("Tooltip set");}
};


#endif