blob: cc96a24c63feb6c21b795ea485eb4b470fbb65b9 (
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 <qwidget.h>
#include <ktabwidget.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qpopupmenu.h>
#include <stdlib.h>
#include <qvbox.h>
#include <time.h>
#include <qcheckbox.h>
#include <qtoolbutton.h>
class Test : public QVBox
{
Q_OBJECT
public:
Test( QWidget* 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(QWidget*);
void contextMenu(QWidget*, const QPoint&);
void tabbarContextMenu(const QPoint&);
void testCanDecode(const QDragMoveEvent *, bool & /* result */);
void receivedDropEvent( QDropEvent* );
void initiateDrag( QWidget * );
void receivedDropEvent( QWidget *, QDropEvent * );
void mouseDoubleClick(QWidget*);
void mouseMiddleClick(QWidget*);
void movedTab( int, int );
void leftPopupActivated(int);
void rightPopupActivated(int);
void contextMenuActivated(int);
void tabbarContextMenuActivated(int);
private:
KTabWidget* mWidget;
int mChange;
QCheckBox * mLeftButton;
QCheckBox * mRightButton;
QCheckBox * mTabsBottom;
QToolButton* mLeftWidget;
QToolButton* mRightWidget;
QPopupMenu* mLeftPopup;
QPopupMenu* mRightPopup;
QPopupMenu* mTabbarContextPopup;
QPopupMenu* mContextPopup;
QWidget* mContextWidget;
};
#endif
|