|
|
@ -55,7 +55,7 @@ LikeBack::LikeBack(Button buttons)
|
|
|
|
: TQWidget( 0, "LikeBack", TQt::WX11BypassWM | TQt::WStyle_NoBorder | TQt::WNoAutoErase | TQt::WStyle_StaysOnTop | TQt::WStyle_NoBorder | TQt::TQt::WGroupLeader)
|
|
|
|
: TQWidget( 0, "LikeBack", TQt::WX11BypassWM | TQt::WStyle_NoBorder | TQt::WNoAutoErase | TQt::WStyle_StaysOnTop | TQt::WStyle_NoBorder | TQt::TQt::WGroupLeader)
|
|
|
|
, m_buttons(buttons)
|
|
|
|
, m_buttons(buttons)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
|
|
|
|
TQHBoxLayout *layout = new TQHBoxLayout(this);
|
|
|
|
|
|
|
|
|
|
|
|
TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like", KIcon::Small);
|
|
|
|
TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like", KIcon::Small);
|
|
|
|
TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike", KIcon::Small);
|
|
|
|
TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike", KIcon::Small);
|
|
|
@ -67,21 +67,21 @@ LikeBack::LikeBack(Button buttons)
|
|
|
|
m_likeButton->setTextLabel(i18n("I Like..."));
|
|
|
|
m_likeButton->setTextLabel(i18n("I Like..."));
|
|
|
|
m_likeButton->setAutoRaise(true);
|
|
|
|
m_likeButton->setAutoRaise(true);
|
|
|
|
connect( m_likeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iLike()) );
|
|
|
|
connect( m_likeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iLike()) );
|
|
|
|
tqlayout->add(m_likeButton);
|
|
|
|
layout->add(m_likeButton);
|
|
|
|
|
|
|
|
|
|
|
|
TQToolButton *m_dislikeButton = new TQToolButton(this, "idonotlike");
|
|
|
|
TQToolButton *m_dislikeButton = new TQToolButton(this, "idonotlike");
|
|
|
|
m_dislikeButton->setIconSet(dislikeIconSet);
|
|
|
|
m_dislikeButton->setIconSet(dislikeIconSet);
|
|
|
|
m_dislikeButton->setTextLabel(i18n("I Do not Like..."));
|
|
|
|
m_dislikeButton->setTextLabel(i18n("I Do not Like..."));
|
|
|
|
m_dislikeButton->setAutoRaise(true);
|
|
|
|
m_dislikeButton->setAutoRaise(true);
|
|
|
|
connect( m_dislikeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iDoNotLike()) );
|
|
|
|
connect( m_dislikeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iDoNotLike()) );
|
|
|
|
tqlayout->add(m_dislikeButton);
|
|
|
|
layout->add(m_dislikeButton);
|
|
|
|
|
|
|
|
|
|
|
|
TQToolButton *m_bugButton = new TQToolButton(this, "ifoundabug");
|
|
|
|
TQToolButton *m_bugButton = new TQToolButton(this, "ifoundabug");
|
|
|
|
m_bugButton->setIconSet(bugIconSet);
|
|
|
|
m_bugButton->setIconSet(bugIconSet);
|
|
|
|
m_bugButton->setTextLabel(i18n("I Found a Bug..."));
|
|
|
|
m_bugButton->setTextLabel(i18n("I Found a Bug..."));
|
|
|
|
m_bugButton->setAutoRaise(true);
|
|
|
|
m_bugButton->setAutoRaise(true);
|
|
|
|
connect( m_bugButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iFoundABug()) );
|
|
|
|
connect( m_bugButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(iFoundABug()) );
|
|
|
|
tqlayout->add(m_bugButton);
|
|
|
|
layout->add(m_bugButton);
|
|
|
|
|
|
|
|
|
|
|
|
m_configureButton = new TQToolButton(this, "configure");
|
|
|
|
m_configureButton = new TQToolButton(this, "configure");
|
|
|
|
TQIconSet helpIconSet = kapp->iconLoader()->loadIconSet("help", KIcon::Small);
|
|
|
|
TQIconSet helpIconSet = kapp->iconLoader()->loadIconSet("help", KIcon::Small);
|
|
|
@ -89,7 +89,7 @@ LikeBack::LikeBack(Button buttons)
|
|
|
|
m_configureButton->setTextLabel(i18n("Configure..."));
|
|
|
|
m_configureButton->setTextLabel(i18n("Configure..."));
|
|
|
|
m_configureButton->setAutoRaise(true);
|
|
|
|
m_configureButton->setAutoRaise(true);
|
|
|
|
connect( m_likeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(configure()) );
|
|
|
|
connect( m_likeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(configure()) );
|
|
|
|
tqlayout->add(m_configureButton);
|
|
|
|
layout->add(m_configureButton);
|
|
|
|
|
|
|
|
|
|
|
|
TQPopupMenu *configureMenu = new TQPopupMenu(this);
|
|
|
|
TQPopupMenu *configureMenu = new TQPopupMenu(this);
|
|
|
|
configureMenu->insertItem(helpIconSet, i18n("What's &This?"), this , TQT_SLOT(showWhatsThisMessage()) );
|
|
|
|
configureMenu->insertItem(helpIconSet, i18n("What's &This?"), this , TQT_SLOT(showWhatsThisMessage()) );
|
|
|
|