added KeePassX_XML export,
PwManager import works again, text export works again. git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@125 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
@@ -60,12 +60,12 @@ CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* paren
|
||||
connect(Edit_Password_w, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordwTextChanged(const QString&)));
|
||||
connect(Edit_Password, SIGNAL(textChanged(const QString&)), this, SLOT( OnPasswordTextChanged(const QString&)));
|
||||
connect(ButtonEchoMode, SIGNAL(clicked()), this, SLOT( ChangeEchoMode()));
|
||||
connect(ButtonCancel, SIGNAL(clicked()), this, SLOT( OnButtonCancel()));
|
||||
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()), this, SLOT( OnButtonCancel()));
|
||||
connect(ButtonOpenAttachment, SIGNAL(clicked()), this, SLOT( OnNewAttachment()));
|
||||
connect(ButtonDeleteAttachment, SIGNAL(clicked()), this, SLOT( OnDeleteAttachment()));
|
||||
connect(ButtonSaveAttachment, SIGNAL(clicked()), this, SLOT( OnSaveAttachment()));
|
||||
connect(ButtonGenPw, SIGNAL(clicked()), this, SLOT( OnButtonGenPw()));
|
||||
connect(ButtonOK, SIGNAL(clicked()),this,SLOT(OnButtonOK()));
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()),this,SLOT(OnButtonOK()));
|
||||
connect(CheckBox_ExpiresNever,SIGNAL(stateChanged(int)),this,SLOT(OnCheckBoxExpiresNeverChanged(int)));
|
||||
connect(Button_CustomIcons,SIGNAL(clicked()),this,SLOT(OnCustomIcons()));
|
||||
|
||||
@@ -139,6 +139,7 @@ if(event->spontaneous()==false){
|
||||
//Added resize event
|
||||
void CEditEntryDlg::resizeEvent(QResizeEvent *event){
|
||||
createBanner(&BannerPixmap,Icon_Key32x32,tr("Test 2"),width());
|
||||
QDialog::resizeEvent(event);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/***************************************************************************
|
||||
* Copyright (C) 2005 by Tarek Saidi *
|
||||
* mail@tarek-saidi.de *
|
||||
* Copyright (C) 2005-2007 by Tarek Saidi *
|
||||
* tarek.saidi@arcor.de *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
@@ -18,46 +18,50 @@
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
|
||||
#include <qlineedit.h>
|
||||
#include <qpushbutton.h>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include "main.h"
|
||||
#include "PwmConfig.h"
|
||||
#include "SimplePasswordDlg.h"
|
||||
|
||||
CSimplePasswordDialog::CSimplePasswordDialog(QWidget* parent, bool modal, Qt::WFlags fl)
|
||||
SimplePasswordDialog::SimplePasswordDialog(QWidget* parent, bool modal, Qt::WFlags fl)
|
||||
: QDialog(parent,fl)
|
||||
{
|
||||
setupUi(this);
|
||||
if(!config.ShowPasswords)Button_HidePassword->toggle();
|
||||
connect(ButtonOK,SIGNAL(clicked()),this,SLOT(OnOK()));
|
||||
connect(ButtonCancel,SIGNAL(clicked()),this,SLOT(OnCancel()));
|
||||
connect(Button_HidePassword,SIGNAL(toggled(bool)),this,SLOT(OnHidePasswordToggled(bool)));
|
||||
setupUi(this);
|
||||
if(!config.ShowPasswords)Button_HidePassword->toggle();
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok),SIGNAL(clicked()),this,SLOT(OnOK()));
|
||||
connect(buttonBox->button(QDialogButtonBox::Cancel),SIGNAL(clicked()),this,SLOT(OnCancel()));
|
||||
connect(Button_HidePassword,SIGNAL(toggled(bool)),this,SLOT(OnHidePasswordToggled(bool)));
|
||||
connect(EditPassword,SIGNAL(textChanged(const QString&)),this,SLOT(OnTextChanged(const QString&)));
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
}
|
||||
|
||||
CSimplePasswordDialog::~CSimplePasswordDialog()
|
||||
SimplePasswordDialog::~SimplePasswordDialog()
|
||||
{
|
||||
}
|
||||
|
||||
void CSimplePasswordDialog::OnCancel()
|
||||
void SimplePasswordDialog::OnTextChanged(const QString& txt){
|
||||
if(txt==QString())
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
|
||||
else
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true);
|
||||
}
|
||||
|
||||
void SimplePasswordDialog::OnCancel()
|
||||
{
|
||||
done(0);
|
||||
done(0);
|
||||
}
|
||||
|
||||
|
||||
void CSimplePasswordDialog::OnOK()
|
||||
void SimplePasswordDialog::OnOK()
|
||||
{
|
||||
password=EditPassword->text();
|
||||
done(1);
|
||||
password=EditPassword->text();
|
||||
done(1);
|
||||
}
|
||||
|
||||
|
||||
void CSimplePasswordDialog::OnHidePasswordToggled(bool state)
|
||||
void SimplePasswordDialog::OnHidePasswordToggled(bool state)
|
||||
{
|
||||
if(state)EditPassword->setEchoMode(QLineEdit::Password);
|
||||
else EditPassword->setEchoMode(QLineEdit::Normal);
|
||||
if(state)EditPassword->setEchoMode(QLineEdit::Password);
|
||||
else EditPassword->setEchoMode(QLineEdit::Normal);
|
||||
}
|
||||
|
||||
|
||||
/*$SPECIALIZATION$*/
|
||||
|
||||
|
||||
|
||||
@@ -23,31 +23,21 @@
|
||||
|
||||
#include "ui_SimplePasswordDlg.h"
|
||||
|
||||
class CSimplePasswordDialog : public QDialog, public Ui_SimplePasswordDialog
|
||||
class SimplePasswordDialog : public QDialog, public Ui_SimplePasswordDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
CSimplePasswordDialog(QWidget* parent = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
~CSimplePasswordDialog();
|
||||
/*$PUBLIC_FUNCTIONS$*/
|
||||
SimplePasswordDialog(QWidget* parent = 0, bool modal = FALSE, Qt::WFlags fl = 0 );
|
||||
~SimplePasswordDialog();
|
||||
|
||||
public slots:
|
||||
/*$PUBLIC_SLOTS$*/
|
||||
|
||||
protected:
|
||||
/*$PROTECTED_FUNCTIONS$*/
|
||||
|
||||
protected slots:
|
||||
/*$PROTECTED_SLOTS$*/
|
||||
public: QString password;
|
||||
public: QString password;
|
||||
|
||||
public slots:
|
||||
virtual void OnCancel();
|
||||
public slots:
|
||||
virtual void OnOK();
|
||||
public slots:
|
||||
virtual void OnHidePasswordToggled(bool state);
|
||||
virtual void OnTextChanged(const QString&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user