summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/infodlg.cc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-12-07 22:58:44 +0900
committerMichele Calgaro <[email protected]>2020-12-07 22:58:44 +0900
commit145abc15d57fb29701a12e8a14dcb9c1fd72e9be (patch)
treefbb4f2f737ec6f4e8a85bea5f2ca2257d20d7e22 /kdesktop/lock/infodlg.cc
parentd95494d97233919fa0b2eebf60759537b793e05b (diff)
downloadtdebase-145abc15d57fb29701a12e8a14dcb9c1fd72e9be.tar.gz
tdebase-145abc15d57fb29701a12e8a14dcb9c1fd72e9be.zip
Renaming of files in preparation for code style tools.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdesktop/lock/infodlg.cc')
-rw-r--r--kdesktop/lock/infodlg.cc149
1 files changed, 0 insertions, 149 deletions
diff --git a/kdesktop/lock/infodlg.cc b/kdesktop/lock/infodlg.cc
deleted file mode 100644
index 3efaf060d..000000000
--- a/kdesktop/lock/infodlg.cc
+++ /dev/null
@@ -1,149 +0,0 @@
-//===========================================================================
-//
-// This file is part of the TDE project
-//
-// Copyright (c) 2010 - 2015 Timothy Pearson <[email protected]>
-
-#include <config.h>
-
-#include "infodlg.h"
-
-#include <dmctl.h>
-
-#include <tdeapplication.h>
-#include <tdelocale.h>
-#include <kpushbutton.h>
-#include <kseparator.h>
-#include <kstandarddirs.h>
-#include <tdeglobalsettings.h>
-#include <tdeconfig.h>
-#include <kiconloader.h>
-#include <tdesu/defaults.h>
-#include <kpassdlg.h>
-#include <kdebug.h>
-#include <kuser.h>
-#include <dcopref.h>
-#include <tdemessagebox.h>
-
-#include <tqlayout.h>
-#include <tqpushbutton.h>
-#include <tqmessagebox.h>
-#include <tqsimplerichtext.h>
-#include <tqlabel.h>
-#include <tqstringlist.h>
-#include <tqfontmetrics.h>
-#include <tqstyle.h>
-#include <tqapplication.h>
-#include <tqlistview.h>
-#include <tqheader.h>
-#include <tqcheckbox.h>
-
-#include <ctype.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <errno.h>
-#include <pwd.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-
-#include <X11/Xutil.h>
-#include <X11/keysym.h>
-#include <X11/Xatom.h>
-#include <fixx11h.h>
-
-#ifndef AF_LOCAL
-# define AF_LOCAL AF_UNIX
-#endif
-
-extern bool trinity_desktop_lock_use_system_modal_dialogs;
-
-//===========================================================================
-//
-// Simple dialog for displaying an unlock status or recurring error message
-//
-InfoDlg::InfoDlg(LockProcess *parent)
- : TQDialog(parent, "information dialog", true, (trinity_desktop_lock_use_system_modal_dialogs?((WFlags)WStyle_StaysOnTop):((WFlags)WX11BypassWM))),
- mUnlockingFailed(false)
-{
- if (trinity_desktop_lock_use_system_modal_dialogs) {
- // Signal that we do not want any window controls to be shown at all
- Atom kde_wm_system_modal_notification;
- kde_wm_system_modal_notification = XInternAtom(tqt_xdisplay(), "_TDE_WM_MODAL_SYS_NOTIFICATION", False);
- XChangeProperty(tqt_xdisplay(), winId(), kde_wm_system_modal_notification, XA_INTEGER, 32, PropModeReplace, (unsigned char *) "TRUE", 1L);
- }
- setCaption(i18n("Information"));
-
- frame = new TQFrame( this );
- if (trinity_desktop_lock_use_system_modal_dialogs) {
- frame->setFrameStyle( TQFrame::NoFrame );
- }
- else {
- frame->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
- }
- frame->setLineWidth( 2 );
-
- mpixLabel = new TQLabel( frame, "pixlabel" );
- mpixLabel->setPixmap(DesktopIcon("unlock"));
-
- KUser user;
-
- mStatusLabel = new TQLabel( "<b> </b>", frame );
- mStatusLabel->setAlignment( TQLabel::AlignCenter );
-
- TQVBoxLayout *unlockDialogLayout = new TQVBoxLayout( this );
- unlockDialogLayout->addWidget( frame );
-
- TQHBoxLayout *layStatus = new TQHBoxLayout( 0, 0, KDialog::spacingHint());
- layStatus->addWidget( mStatusLabel );
-
- frameLayout = new TQGridLayout( frame, 1, 1, KDialog::marginHint(), KDialog::spacingHint() );
- frameLayout->addMultiCellWidget( mpixLabel, 0, 2, 0, 0, Qt::AlignTop );
- frameLayout->addLayout( layStatus, 1, 1 );
-
- installEventFilter(this);
- setFixedSize( sizeHint() );
- }
-
-InfoDlg::~InfoDlg()
-{
- hide();
-}
-
-void InfoDlg::updateLabel(TQString &txt)
-{
- mStatusLabel->setPaletteForegroundColor(Qt::black);
- mStatusLabel->setText("<b>" + txt + "</b>");
-}
-
-void InfoDlg::setUnlockIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("unlock"));
-}
-
-void InfoDlg::setKDEIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("about_kde"));
-}
-
-void InfoDlg::setInfoIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_info"));
-}
-
-void InfoDlg::setWarningIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_warning"));
-}
-
-void InfoDlg::setErrorIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_critical"));
-}
-
-void InfoDlg::show()
-{
- TQDialog::show();
- TQApplication::flushX();
-}
-
-#include "infodlg.moc"