summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/ktabwidgettest.h
blob: 7c178bd326cec044e8d542caa18c28b2432a776a (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
#ifndef KTABWIDGETTEST_H
#define KTABWIDGETTEST_H

#include <kiconloader.h>
#include <tqwidget.h>
#include <ktabwidget.h>
#include <tqlabel.h>
#include <tqpushbutton.h>
#include <tqpopupmenu.h>
#include <stdlib.h>
#include <tqvbox.h>
#include <time.h>
#include <tqcheckbox.h>
#include <tqtoolbutton.h>

class Test : public TQVBox
{
  Q_OBJECT
public:
  Test( TQWidget* parent=0, const char *name =0 );

private slots:
  void addTab();
  void removeCurrentTab();
  void toggleLeftButton(bool);
  void toggleRightButton(bool);
  void toggleLeftPopup(bool);
  void toggleRightPopup(bool);
  void toggleTabPosition(bool);
  void toggleTabShape(bool);
  void toggleCloseButtons(bool);
  void toggleLabels(bool);

  void currentChanged(TQWidget*);
  void contextMenu(TQWidget*, const TQPoint&);
  void tabbarContextMenu(const TQPoint&);
  void testCanDecode(const TQDragMoveEvent *, bool & /* result */);
  void receivedDropEvent( TQDropEvent* );
  void initiateDrag( TQWidget * );
  void receivedDropEvent( TQWidget *, TQDropEvent * );
  void mouseDoubleClick(TQWidget*);
  void mouseMiddleClick(TQWidget*);
  void movedTab( int, int );

  void leftPopupActivated(int);
  void rightPopupActivated(int);
  void contextMenuActivated(int);
  void tabbarContextMenuActivated(int);

private:
  KTabWidget*     mWidget;
  int             mChange;

  TQCheckBox *     mLeftButton;
  TQCheckBox *     mRightButton;
  TQCheckBox *     mTabsBottom;

  TQToolButton*    mLeftWidget;
  TQToolButton*    mRightWidget;

  TQPopupMenu*     mLeftPopup;
  TQPopupMenu*     mRightPopup;
  TQPopupMenu*     mTabbarContextPopup;
  TQPopupMenu*     mContextPopup;
  TQWidget*        mContextWidget;
};


#endif