kio Library API Documentation

kbetterthankdialogbase.cpp

00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './kbetterthankdialogbase.ui' 00005 ** 00006 ** Created: sze ápr 13 23:07:47 2005 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 00010 ****************************************************************************/ 00011 00012 #include "kbetterthankdialogbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kactivelabel.h> 00016 #include <qpushbutton.h> 00017 #include <qlayout.h> 00018 #include <qtooltip.h> 00019 #include <qwhatsthis.h> 00020 #include "./kbetterthankdialogbase.ui.h" 00021 00022 /* 00023 * Constructs a KBetterThanKDialogBase as a child of 'parent', with the 00024 * name 'name' and widget flags set to 'f'. 00025 * 00026 * The dialog will by default be modeless, unless you set 'modal' to 00027 * TRUE to construct a modal dialog. 00028 */ 00029 KBetterThanKDialogBase::KBetterThanKDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) 00030 : QDialog( parent, name, modal, fl ) 00031 { 00032 if ( !name ) 00033 setName( "KBetterThanKDialogBase" ); 00034 KBetterThanKDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "KBetterThanKDialogBaseLayout"); 00035 KBetterThanKDialogBaseLayout->setResizeMode( QLayout::Fixed ); 00036 00037 _label = new KActiveLabel( this, "_label" ); 00038 00039 KBetterThanKDialogBaseLayout->addMultiCellWidget( _label, 0, 0, 0, 2 ); 00040 spacer1 = new QSpacerItem( 41, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00041 KBetterThanKDialogBaseLayout->addItem( spacer1, 1, 2 ); 00042 00043 layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 00044 00045 _allowOnce = new QPushButton( this, "_allowOnce" ); 00046 _allowOnce->setDefault( TRUE ); 00047 layout1->addWidget( _allowOnce ); 00048 00049 _allowAlways = new QPushButton( this, "_allowAlways" ); 00050 layout1->addWidget( _allowAlways ); 00051 00052 _deny = new QPushButton( this, "_deny" ); 00053 layout1->addWidget( _deny ); 00054 00055 _denyForever = new QPushButton( this, "_denyForever" ); 00056 layout1->addWidget( _denyForever ); 00057 00058 KBetterThanKDialogBaseLayout->addLayout( layout1, 1, 1 ); 00059 spacer2 = new QSpacerItem( 61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00060 KBetterThanKDialogBaseLayout->addItem( spacer2, 1, 0 ); 00061 languageChange(); 00062 resize( QSize(479, 109).expandedTo(minimumSizeHint()) ); 00063 clearWState( WState_Polished ); 00064 00065 // signals and slots connections 00066 connect( _allowOnce, SIGNAL( clicked() ), this, SLOT( clicked() ) ); 00067 connect( _allowAlways, SIGNAL( clicked() ), this, SLOT( clicked() ) ); 00068 connect( _deny, SIGNAL( clicked() ), this, SLOT( clicked() ) ); 00069 connect( _denyForever, SIGNAL( clicked() ), this, SLOT( clicked() ) ); 00070 init(); 00071 } 00072 00073 /* 00074 * Destroys the object and frees any allocated resources 00075 */ 00076 KBetterThanKDialogBase::~KBetterThanKDialogBase() 00077 { 00078 // no need to delete child widgets, Qt does it all for us 00079 } 00080 00081 /* 00082 * Sets the strings of the subwidgets using the current 00083 * language. 00084 */ 00085 void KBetterThanKDialogBase::languageChange() 00086 { 00087 setCaption( QString::null ); 00088 _allowOnce->setText( tr2i18n( "Allow &Once" ) ); 00089 _allowAlways->setText( tr2i18n( "Allow &Always" ) ); 00090 _deny->setText( tr2i18n( "&Deny" ) ); 00091 _denyForever->setText( tr2i18n( "Deny &Forever" ) ); 00092 } 00093 00094 #include "kbetterthankdialogbase.moc"
KDE Logo
This file is part of the documentation for kio Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:20:20 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003