/**************************************************************************** ** Form implementation generated from reading ui file 'newpassworddialog.ui' ** ** Created: Sa Jul 30 19:27:47 2005 ** by: The User Interface Compiler ($Id: hk_kdenewpassworddialogbase.cpp,v 1.3 2005/07/31 12:39:05 knorr Exp $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "hk_kdenewpassworddialogbase.h" #include #include #include #include #include #include #include /* * Constructs a hk_kdenewpassworddialogbase as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ hk_kdenewpassworddialogbase::hk_kdenewpassworddialogbase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "hk_kdenewpassworddialogbase" ); setSizeGripEnabled( TRUE ); hk_kdenewpassworddialogbaseLayout = new QGridLayout( this, 1, 1, 11, 6, "hk_kdenewpassworddialogbaseLayout"); Layout3 = new QVBoxLayout( 0, 0, 6, "Layout3"); Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2"); repeatlabel = new QLabel( this, "repeatlabel" ); Layout2->addWidget( repeatlabel, 1, 0 ); passwordfield = new QLineEdit( this, "passwordfield" ); passwordfield->setEchoMode( QLineEdit::Password ); Layout2->addWidget( passwordfield, 0, 1 ); repeatfield = new QLineEdit( this, "repeatfield" ); repeatfield->setEchoMode( QLineEdit::Password ); Layout2->addWidget( repeatfield, 1, 1 ); passwordlabel = new QLabel( this, "passwordlabel" ); Layout2->addWidget( passwordlabel, 0, 0 ); Layout3->addLayout( Layout2 ); Spacer1_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout3->addItem( Spacer1_2 ); hk_kdenewpassworddialogbaseLayout->addLayout( Layout3, 1, 0 ); Layout5 = new QVBoxLayout( 0, 0, 6, "Layout5"); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); buttonOk->setDefault( TRUE ); buttonOk->setEnabled( FALSE ); Layout5->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setAutoDefault( TRUE ); Layout5->addWidget( buttonCancel ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); Layout5->addItem( Spacer1 ); hk_kdenewpassworddialogbaseLayout->addLayout( Layout5, 1, 1 ); headlinelabel = new QLabel( this, "headlinelabel" ); hk_kdenewpassworddialogbaseLayout->addWidget( headlinelabel, 0, 0 ); languageChange(); resize( QSize(316, 133).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( passwordfield, SIGNAL( textChanged(const QString&) ), this, SLOT( data_changed() ) ); connect( buttonOk, SIGNAL( clicked() ), this, SLOT( ok_clicked() ) ); } /* * Destroys the object and frees any allocated resources */ hk_kdenewpassworddialogbase::~hk_kdenewpassworddialogbase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void hk_kdenewpassworddialogbase::languageChange() { setCaption( tr( "Password dialog" ) ); repeatlabel->setText( tr( "Repeat: " ) ); passwordlabel->setText( tr( "New Password: " ) ); buttonOk->setText( tr( "&OK" ) ); buttonCancel->setText( tr( "&Cancel" ) ); headlinelabel->setText( tr( "Enter new password" ) ); } void hk_kdenewpassworddialogbase::data_changed() { qWarning( "hk_kdenewpassworddialogbase::data_changed(): Not implemented yet" ); } void hk_kdenewpassworddialogbase::ok_clicked() { qWarning( "hk_kdenewpassworddialogbase::ok_clicked(): Not implemented yet" ); }