19#include "mousetoolaction.h"
21#include <tdetoolbar.h>
22#include <tdetoolbarbutton.h>
27MouseToolAction::MouseToolAction( const TQString& text, const TDEShortcut& cut,
28 TQObject* parent, const char* name)
29 : TDERadioAction(text, cut, parent, name)
33MouseToolAction::MouseToolAction( const TQString& text, const TDEShortcut& cut,
34 const TQObject* receiver, const char* slot,
35 TQObject* parent, const char* name)
36 : TDERadioAction(text, cut, receiver, slot, parent, name)
40MouseToolAction::MouseToolAction( const TQString& text, const TQIconSet& pix,
41 const TDEShortcut& cut,
42 TQObject* parent, const char* name)
43 : TDERadioAction(text, pix, cut, parent, name)
47MouseToolAction::MouseToolAction( const TQString& text, const TQString& pix,
48 const TDEShortcut& cut,
49 TQObject* parent, const char* name)
50 : TDERadioAction(text, pix, cut, parent, name)
54MouseToolAction::MouseToolAction( const TQString& text, const TQIconSet& pix,
55 const TDEShortcut& cut,
56 const TQObject* receiver, const char* slot,
57 TQObject* parent, const char* name)
58 : TDERadioAction(text, pix, cut, receiver, slot, parent, name)
62MouseToolAction::MouseToolAction( const TQString& text, const TQString& pix,
63 const TDEShortcut& cut,
64 const TQObject* receiver, const char* slot,
65 TQObject* parent, const char* name)
66 : TDERadioAction(text, pix, cut, receiver, slot, parent, name)
70MouseToolAction::MouseToolAction(TQObject* parent, const char* name)
71 : TDERadioAction(parent, name)
75MouseToolAction::~MouseToolAction()
79int MouseToolAction::plug(TQWidget* widget, int index)
81 int usedIndex = TDERadioAction::plug(widget, index);
87 if(::tqt_cast<TDEToolBar*>(widget)) {
88 TDEToolBar* toolBar = static_cast<TDEToolBar* >(widget);
89 TDEToolBarButton* button = toolBar->getButton(itemId(usedIndex));
90 connect(button, TQ_SIGNAL(doubleClicked( int)), this, TQ_SIGNAL(doubleClicked()));
98#include "mousetoolaction.moc"
|