summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/sakdlg.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-15 07:33:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-09-15 07:33:07 +0000
commit1039f2df32eb011fd4013167ac20ecdc607e1c7b (patch)
treedfded40b0c1cc3f8bba06c4c2086960121f73608 /kdesktop/lock/sakdlg.cc
parentf6af340515ca0f5405ee4b893e24630450e07d4a (diff)
downloadtdebase-1039f2df32eb011fd4013167ac20ecdc607e1c7b.tar.gz
tdebase-1039f2df32eb011fd4013167ac20ecdc607e1c7b.zip
Enhance SAK appearance
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1253791 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/lock/sakdlg.cc')
-rw-r--r--kdesktop/lock/sakdlg.cc43
1 files changed, 11 insertions, 32 deletions
diff --git a/kdesktop/lock/sakdlg.cc b/kdesktop/lock/sakdlg.cc
index 719f2122f..1647fb527 100644
--- a/kdesktop/lock/sakdlg.cc
+++ b/kdesktop/lock/sakdlg.cc
@@ -24,6 +24,7 @@
#include <kuser.h>
#include <dcopref.h>
#include <kmessagebox.h>
+#include <kdialog.h>
#include <tqlayout.h>
#include <tqpushbutton.h>
@@ -81,13 +82,12 @@ SAKDlg::SAKDlg(LockProcess *parent)
frame->setFrameStyle( TQFrame::Panel | TQFrame::Raised );
frame->setLineWidth( 2 );
- mpixLabel = new TQLabel( frame, "pixlabel" );
- mpixLabel->setPixmap(DesktopIcon("unlock"));
+ KSMModalDialogHeader* theader = new KSMModalDialogHeader( frame );
KUser user;
mStatusLabel = new TQLabel( "<b> </b>", frame );
- mStatusLabel->tqsetAlignment( TQLabel::AlignCenter );
+ mStatusLabel->tqsetAlignment( TQLabel::AlignVCenter );
TQVBoxLayout *unlockDialogLayout = new TQVBoxLayout( this );
unlockDialogLayout->addWidget( frame );
@@ -96,11 +96,10 @@ SAKDlg::SAKDlg(LockProcess *parent)
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 );
+ frameLayout->addMultiCellWidget( theader, 0, 0, 0, 1, Qt::AlignTop | AlignHCenter );
+ frameLayout->addMultiCellLayout( layStatus, 1, 1, 0, 1, AlignHCenter | AlignVCenter);
- setKDEIcon();
- mStatusLabel->setText("<b>" + i18n("Press Ctrl+Alt+Del to begin.") + "</b>");
+ mStatusLabel->setText("<b>" + i18n("Press Ctrl+Alt+Del to begin.") + "</b><p>" + i18n("This process helps keep your password secure.") + "<br>" + i18n("It prevents unauthorized users from emulating the login screen."));
installEventFilter(this);
@@ -126,6 +125,11 @@ SAKDlg::~SAKDlg()
hide();
}
+void SAKDlg::closeDialogForced()
+{
+ TQDialog::reject();
+}
+
void SAKDlg::reject()
{
@@ -137,31 +141,6 @@ void SAKDlg::updateLabel(TQString &txt)
mStatusLabel->setText("<b>" + txt + "</b>");
}
-void SAKDlg::setUnlockIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("unlock"));
-}
-
-void SAKDlg::setKDEIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("about_kde"));
-}
-
-void SAKDlg::setInfoIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_info"));
-}
-
-void SAKDlg::setWarningIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_warning"));
-}
-
-void SAKDlg::setErrorIcon()
-{
- mpixLabel->setPixmap(DesktopIcon("messagebox_critical"));
-}
-
void SAKDlg::show()
{
TQDialog::show();