summaryrefslogtreecommitdiffstats
path: root/src/libgui/likeback.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libgui/likeback.cpp')
-rw-r--r--src/libgui/likeback.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/src/libgui/likeback.cpp b/src/libgui/likeback.cpp
index 9e0058c..9a36f6b 100644
--- a/src/libgui/likeback.cpp
+++ b/src/libgui/likeback.cpp
@@ -57,10 +57,10 @@ LikeBack::LikeBack(Button buttons)
{
TQHBoxLayout *layout = new TQHBoxLayout(this);
- TQIconSet likeIconSet = kapp->iconLoader()->loadIconSet("likeback_like", TDEIcon::Small);
- TQIconSet dislikeIconSet = kapp->iconLoader()->loadIconSet("likeback_dislike", TDEIcon::Small);
- TQIconSet bugIconSet = kapp->iconLoader()->loadIconSet("likeback_bug", TDEIcon::Small);
-// TQIconSet configureIconSet = kapp->iconLoader()->loadIconSet("configure", TDEIcon::Small);
+ TQIconSet likeIconSet = tdeApp->iconLoader()->loadIconSet("likeback_like", TDEIcon::Small);
+ TQIconSet dislikeIconSet = tdeApp->iconLoader()->loadIconSet("likeback_dislike", TDEIcon::Small);
+ TQIconSet bugIconSet = tdeApp->iconLoader()->loadIconSet("likeback_bug", TDEIcon::Small);
+// TQIconSet configureIconSet = tdeApp->iconLoader()->loadIconSet("configure", TDEIcon::Small);
TQToolButton *m_likeButton = new TQToolButton(this, "ilike");
m_likeButton->setIconSet(likeIconSet);
@@ -84,7 +84,7 @@ LikeBack::LikeBack(Button buttons)
layout->add(m_bugButton);
m_configureButton = new TQToolButton(this, "configure");
- TQIconSet helpIconSet = kapp->iconLoader()->loadIconSet("help", TDEIcon::Small);
+ TQIconSet helpIconSet = tdeApp->iconLoader()->loadIconSet("help", TDEIcon::Small);
m_configureButton->setIconSet(helpIconSet);
m_configureButton->setTextLabel(i18n("Configure..."));
m_configureButton->setAutoRaise(true);
@@ -93,9 +93,9 @@ LikeBack::LikeBack(Button buttons)
TQPopupMenu *configureMenu = new TQPopupMenu(this);
configureMenu->insertItem(helpIconSet, i18n("What's &This?"), this , TQ_SLOT(showWhatsThisMessage()) );
- TQIconSet changeEmailIconSet = kapp->iconLoader()->loadIconSet("mail_generic", TDEIcon::Small);
+ TQIconSet changeEmailIconSet = tdeApp->iconLoader()->loadIconSet("mail_generic", TDEIcon::Small);
configureMenu->insertItem(changeEmailIconSet, i18n("&Configure Email Address..."), this , TQ_SLOT(askEMail()) );
-// TQIconSet dontHelpIconSet = kapp->iconLoader()->loadIconSet("process-stop", TDEIcon::Small);
+// TQIconSet dontHelpIconSet = tdeApp->iconLoader()->loadIconSet("process-stop", TDEIcon::Small);
// configureMenu->insertItem( dontHelpIconSet, i18n("&Do not Help Anymore"), this , TQ_SLOT(doNotHelpAnymore()) );
m_configureButton->setPopup(configureMenu);
connect( m_configureButton, TQ_SIGNAL(pressed()), this, TQ_SLOT(openConfigurePopup()) );
@@ -131,7 +131,7 @@ void LikeBack::doNotHelpAnymore()
{
disable();
int result = KMessageBox::questionYesNo(
- kapp->activeWindow(),
+ tdeApp->activeWindow(),
i18n("Are you sure you do not want to participate anymore in the application enhancing program?"),
i18n("Do not Help Anymore"));
if (result == KMessageBox::No) {
@@ -153,7 +153,7 @@ void LikeBack::showWhatsThisMessage()
bool LikeBack::userWantToParticipate()
{
- if (!kapp)
+ if (!tdeApp)
return true;
s_config->setGroup("LikeBack");
@@ -164,9 +164,9 @@ bool LikeBack::userWantToParticipate()
void LikeBack::showInformationMessage()
{
- TQPixmap likeIcon = kapp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
- TQPixmap dislikeIcon = kapp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
- TQPixmap bugIcon = kapp->iconLoader()->loadIcon("likeback_bug", TDEIcon::Small);
+ TQPixmap likeIcon = tdeApp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
+ TQPixmap dislikeIcon = tdeApp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
+ TQPixmap bugIcon = tdeApp->iconLoader()->loadIcon("likeback_bug", TDEIcon::Small);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_like", likeIcon);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_dislike", dislikeIcon);
TQMimeSourceFactory::defaultFactory()->setPixmap("likeback_icon_bug", bugIcon);
@@ -276,7 +276,7 @@ void LikeBack::autoMove()
{
static TQWidget *lastWindow = 0;
- TQWidget *window = kapp->activeWindow();
+ TQWidget *window = tdeApp->activeWindow();
// When a Kicker applet has the focus, like the Commandline TQLineEdit,
// the systemtray icon indicates to be the current window and the LikeBack is shown next to the system tray icon.
// It's obviously bad ;-) :
@@ -311,7 +311,7 @@ void LikeBack::iDoNotLike()
void LikeBack::iFoundABug()
{
- (void)new KRun(Piklab::URLS[Piklab::BugReport], kapp->mainWidget());
+ (void)new KRun(Piklab::URLS[Piklab::BugReport], tdeApp->mainWidget());
// showDialog(IFoundABug);
}
@@ -322,7 +322,7 @@ void LikeBack::configure()
TQString LikeBack::activeWindowPath()
{
TQStringList windowNames;
- TQWidget *window = kapp->activeWindow();
+ TQWidget *window = tdeApp->activeWindow();
while (window) {
TQString name = window->name();
if (name == "unnamed")
@@ -347,7 +347,7 @@ void LikeBack::showDialog(Button button)
LikeBackDialog dialog(button, activeWindowPath(), "");
disable();
hide();
- kapp->processEvents();
+ tdeApp->processEvents();
dialog.exec();
enable();
}
@@ -396,7 +396,7 @@ void LikeBack::askEMail()
"<p>" + i18n("The email address is optional. If you do not provide any, your comments will be sent anonymously. Just click OK in that case.") + "</p>" +
"<p>" + i18n("You can change or remove your email address whenever you want. For that, use the little arrow icon at the top-right corner of a window.") + "</p>" +
"<p>" + i18n("Your email address (keep empty to post comments anonymously):"),
- currentEMailAddress, &ok, kapp->activeWindow(), /*name=*/(const char*)0, &emailValidator);
+ currentEMailAddress, &ok, tdeApp->activeWindow(), /*name=*/(const char*)0, &emailValidator);
enable();
if (ok)
@@ -430,9 +430,9 @@ void LikeBack::init(Button buttons)
void LikeBack::init(bool isDevelopmentVersion, Button buttons)
{
if (s_config == 0)
- s_config = kapp->config();
+ s_config = tdeApp->config();
if (s_about == 0)
- s_about = (TDEAboutData*) kapp->aboutData();
+ s_about = (TDEAboutData*) tdeApp->aboutData();
if (LikeBack::userWantToParticipate() && isDevelopmentVersion)
new LikeBack(buttons);
@@ -503,7 +503,7 @@ void LikeBack::endFetchingEmailFrom()
/** class LikeBackDialog: */
LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQString context)
- : KDialog(kapp->activeWindow(), "_likeback_feedback_window_")
+ : KDialog(tdeApp->activeWindow(), "_likeback_feedback_window_")
, m_reason(reason)
, m_windowName(windowName)
, m_context(context)
@@ -526,21 +526,21 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQS
case LikeBack::ILike:
color = TQColor("#DFFFDF");
lineColor = TQt::green;
- icon = kapp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
+ icon = tdeApp->iconLoader()->loadIcon("likeback_like", TDEIcon::Small);
title = i18n("I like...");
please = i18n("Please briefly describe what you like.");
break;
case LikeBack::IDoNotLike:
color = TQColor("#FFDFDF");
lineColor = TQt::red;
- icon = kapp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
+ icon = tdeApp->iconLoader()->loadIcon("likeback_dislike", TDEIcon::Small);
title = i18n("I do not like...");
please = i18n("Please briefly describe what you do not like.");
break;
case LikeBack::IFoundABug:
color = TQColor("#C0C0C0");
lineColor = TQt::black;
- icon = kapp->iconLoader()->loadIcon("bug", TDEIcon::Small);
+ icon = tdeApp->iconLoader()->loadIcon("bug", TDEIcon::Small);
title = i18n("I found a bug...");
please = i18n("Please briefly describe the bug you encountered.");
break;
@@ -578,7 +578,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQS
commentLayout->setMargin(0);
commentLayout->setSpacing(KDialogBase::spacingHint());
m_comment = new TQTextEdit(coloredWidget);
- TQIconSet sendIconSet = kapp->iconLoader()->loadIconSet("mail-send", TDEIcon::Toolbar);
+ TQIconSet sendIconSet = tdeApp->iconLoader()->loadIconSet("mail-send", TDEIcon::Toolbar);
m_sendButton = new TQPushButton(sendIconSet, i18n("Send"), coloredWidget);
m_sendButton->setSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Expanding);
m_sendButton->setEnabled(false);
@@ -604,9 +604,9 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, TQString windowName, TQS
) + "</p>"
);
- resize(kapp->desktop()->width() / 2, kapp->desktop()->height() / 3);
+ resize(tdeApp->desktop()->width() / 2, tdeApp->desktop()->height() / 3);
- setCaption(kapp->makeStdCaption(i18n("Send a Comment")));
+ setCaption(tdeApp->makeStdCaption(i18n("Send a Comment")));
// setMinimumSize(mainLayout->sizeHint()); // FIXME: Doesn't work!
}