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: Mon Jun 12 09:40:52 2006
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 <qpushbutton.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 #include "./kbetterthankdialogbase.ui.h"
00020 
00021 /*
00022  *  Constructs a KBetterThanKDialogBase as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
00024  *
00025  *  The dialog will by default be modeless, unless you set 'modal' to
00026  *  TRUE to construct a modal dialog.
00027  */
00028 KBetterThanKDialogBase::KBetterThanKDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00029     : QDialog( parent, name, modal, fl )
00030 {
00031     if ( !name )
00032     setName( "KBetterThanKDialogBase" );
00033     KBetterThanKDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "KBetterThanKDialogBaseLayout"); 
00034     KBetterThanKDialogBaseLayout->setResizeMode( QLayout::Fixed );
00035 
00036     _label = new KActiveLabel( this, "_label" );
00037 
00038     KBetterThanKDialogBaseLayout->addMultiCellWidget( _label, 0, 0, 0, 2 );
00039     spacer1 = new QSpacerItem( 41, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00040     KBetterThanKDialogBaseLayout->addItem( spacer1, 1, 2 );
00041 
00042     layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 
00043 
00044     _allowOnce = new QPushButton( this, "_allowOnce" );
00045     _allowOnce->setDefault( TRUE );
00046     layout1->addWidget( _allowOnce );
00047 
00048     _allowAlways = new QPushButton( this, "_allowAlways" );
00049     layout1->addWidget( _allowAlways );
00050 
00051     _deny = new QPushButton( this, "_deny" );
00052     layout1->addWidget( _deny );
00053 
00054     _denyForever = new QPushButton( this, "_denyForever" );
00055     layout1->addWidget( _denyForever );
00056 
00057     KBetterThanKDialogBaseLayout->addLayout( layout1, 1, 1 );
00058     spacer2 = new QSpacerItem( 61, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
00059     KBetterThanKDialogBaseLayout->addItem( spacer2, 1, 0 );
00060     languageChange();
00061     resize( QSize(479, 109).expandedTo(minimumSizeHint()) );
00062     clearWState( WState_Polished );
00063 
00064     // signals and slots connections
00065     connect( _allowOnce, SIGNAL( clicked() ), this, SLOT( clicked() ) );
00066     connect( _allowAlways, SIGNAL( clicked() ), this, SLOT( clicked() ) );
00067     connect( _deny, SIGNAL( clicked() ), this, SLOT( clicked() ) );
00068     connect( _denyForever, SIGNAL( clicked() ), this, SLOT( clicked() ) );
00069     init();
00070 }
00071 
00072 /*
00073  *  Destroys the object and frees any allocated resources
00074  */
00075 KBetterThanKDialogBase::~KBetterThanKDialogBase()
00076 {
00077     // no need to delete child widgets, Qt does it all for us
00078 }
00079 
00080 /*
00081  *  Sets the strings of the subwidgets using the current
00082  *  language.
00083  */
00084 void KBetterThanKDialogBase::languageChange()
00085 {
00086     setCaption( QString::null );
00087     _allowOnce->setText( tr2i18n( "Allow &Once" ) );
00088     _allowAlways->setText( tr2i18n( "Allow &Always" ) );
00089     _deny->setText( tr2i18n( "&Deny" ) );
00090     _denyForever->setText( tr2i18n( "Deny &Forever" ) );
00091 }
00092 
00093 #include "kbetterthankdialogbase.moc"
KDE Logo
This file is part of the documentation for kio Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Jun 12 11:34:59 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003