• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

kbetterthankdialog.cpp

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2004 George Staikos <staikos@kde.org>
00003 
00004    This program is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 2 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the Free Software
00016    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00017 */
00018 
00019 #include "kbetterthankdialog.h"
00020 
00021 KBetterThanKDialog::KBetterThanKDialog( QWidget *parent )
00022   : QDialog( parent )
00023 {
00024   setupUi( this );
00025   connect(_allowOnce, SIGNAL(clicked()), this, SLOT(allowOnceClicked()));
00026   connect(_allowAlways, SIGNAL(clicked()), this, SLOT(allowAlwaysClicked()));
00027   connect(_deny, SIGNAL(clicked()), this, SLOT(denyClicked()));
00028   connect(_denyForever, SIGNAL(clicked()), this, SLOT(denyForeverClicked()));
00029 }
00030 
00031 void KBetterThanKDialog::init()
00032 {
00033     _allowOnce->setFocus();
00034 }
00035 
00036 void KBetterThanKDialog::setLabel( const QString & label )
00037 {
00038     _label->setText(label);
00039 }
00040 
00041 void KBetterThanKDialog::accept()
00042 {
00043     setResult(0);
00044 }
00045 
00046 void KBetterThanKDialog::reject()
00047 {
00048     QDialog::reject();
00049     setResult(2);
00050 }
00051 
00052 void KBetterThanKDialog::allowOnceClicked()
00053 {
00054     done(0);
00055 }
00056 
00057 void KBetterThanKDialog::allowAlwaysClicked()
00058 {
00059     done(1);
00060 }
00061 
00062 void KBetterThanKDialog::denyClicked()
00063 {
00064     done(2);
00065 }
00066 
00067 void KBetterThanKDialog::denyForeverClicked()
00068 {
00069     done(3);
00070 }
00071 
00072 #include "kbetterthankdialog.moc"

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal