You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.6 KiB
70 lines
1.6 KiB
15 years ago
|
#ifndef KTABWIDGETTEST_H
|
||
|
#define KTABWIDGETTEST_H
|
||
|
|
||
|
#include <kiconloader.h>
|
||
15 years ago
|
#include <tqwidget.h>
|
||
15 years ago
|
#include <ktabwidget.h>
|
||
15 years ago
|
#include <tqlabel.h>
|
||
|
#include <tqpushbutton.h>
|
||
|
#include <tqpopupmenu.h>
|
||
15 years ago
|
#include <stdlib.h>
|
||
15 years ago
|
#include <tqvbox.h>
|
||
15 years ago
|
#include <time.h>
|
||
15 years ago
|
#include <tqcheckbox.h>
|
||
|
#include <tqtoolbutton.h>
|
||
15 years ago
|
|
||
14 years ago
|
class Test : public TQVBox
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
Test( TQWidget* parent=0, const char *name =0 );
|
||
15 years ago
|
|
||
|
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);
|
||
|
|
||
15 years ago
|
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*);
|
||
15 years ago
|
void movedTab( int, int );
|
||
|
|
||
|
void leftPopupActivated(int);
|
||
|
void rightPopupActivated(int);
|
||
|
void contextMenuActivated(int);
|
||
|
void tabbarContextMenuActivated(int);
|
||
|
|
||
|
private:
|
||
|
KTabWidget* mWidget;
|
||
|
int mChange;
|
||
|
|
||
15 years ago
|
TQCheckBox * mLeftButton;
|
||
|
TQCheckBox * mRightButton;
|
||
|
TQCheckBox * mTabsBottom;
|
||
15 years ago
|
|
||
15 years ago
|
TQToolButton* mLeftWidget;
|
||
|
TQToolButton* mRightWidget;
|
||
15 years ago
|
|
||
15 years ago
|
TQPopupMenu* mLeftPopup;
|
||
|
TQPopupMenu* mRightPopup;
|
||
|
TQPopupMenu* mTabbarContextPopup;
|
||
|
TQPopupMenu* mContextPopup;
|
||
|
TQWidget* mContextWidget;
|
||
15 years ago
|
};
|
||
|
|
||
|
|
||
|
#endif
|