mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-01 04:46:47 -05:00
Merge remote-tracking branch 'upstream/master' into v0.6-TorControl
This commit is contained in:
commit
4d06ab2b4a
895 changed files with 19933 additions and 16253 deletions
|
|
@ -53,7 +53,7 @@
|
|||
class EntropyCollectorWidget: public QTextBrowser
|
||||
{
|
||||
public:
|
||||
EntropyCollectorWidget(QProgressBar *pr,QWidget *p = NULL)
|
||||
explicit EntropyCollectorWidget(QProgressBar *pr,QWidget *p = NULL)
|
||||
: QTextBrowser(p)
|
||||
{
|
||||
progress = pr ;
|
||||
|
|
@ -150,7 +150,7 @@ GenCertDialog::GenCertDialog(bool onlyGenerateIdentity, QWidget *parent)
|
|||
connect(ui.node_input, SIGNAL(textChanged(QString)), this, SLOT(updateCheckLabels()));
|
||||
connect(ui.reuse_existing_node_CB, SIGNAL(toggled(bool)), this, SLOT(updateCheckLabels()));
|
||||
|
||||
connect(ui.cbUseBob, SIGNAL(clicked(bool)), this, SLOT(useBobChecked(bool)));;
|
||||
connect(ui.cbUseBob, SIGNAL(clicked(bool)), this, SLOT(useI2pChecked(bool)));;
|
||||
|
||||
entropy_timer = new QTimer ;
|
||||
entropy_timer->start(20) ;
|
||||
|
|
@ -288,8 +288,6 @@ void GenCertDialog::setupState()
|
|||
break;
|
||||
}
|
||||
|
||||
//ui.no_node_label->setVisible(false);
|
||||
|
||||
setWindowTitle(generate_new?tr("Create new profile and new Retroshare node"):tr("Create new Retroshare node"));
|
||||
//ui.headerFrame->setHeaderText(generate_new?tr("Create a new profile and node"):tr("Create a new node"));
|
||||
|
||||
|
|
@ -300,15 +298,9 @@ void GenCertDialog::setupState()
|
|||
|
||||
ui.genPGPuser->setVisible(adv_state && haveGPGKeys && !generate_new) ;
|
||||
|
||||
//ui.genprofileinfo_label->setVisible(false);
|
||||
//ui.no_gpg_key_label->setText(tr("Welcome to Retroshare. Before you can proceed you need to create a profile and associate a node with it. To do so please fill out this form.\nAlternatively you can import a (previously exported) profile. Just uncheck \"Create a new profile\""));
|
||||
//no_gpg_key_label->setVisible(false);
|
||||
|
||||
ui.name_label->setVisible(true);
|
||||
ui.name_input->setVisible(generate_new);
|
||||
|
||||
//ui.header_label->setVisible(false) ;
|
||||
|
||||
ui.nickname_label->setVisible(adv_state && !mOnlyGenerateIdentity);
|
||||
ui.nickname_input->setVisible(adv_state && !mOnlyGenerateIdentity);
|
||||
|
||||
|
|
@ -341,9 +333,9 @@ void GenCertDialog::setupState()
|
|||
ui.hiddenport_spinBox->setVisible(hidden_state && !tor_auto);
|
||||
|
||||
ui.cbUseBob->setVisible(hidden_state && !tor_auto);
|
||||
#ifndef RS_USE_I2P_BOB
|
||||
#ifndef RS_USE_I2P_SAM3
|
||||
ui.cbUseBob->setDisabled(true);
|
||||
ui.cbUseBob->setToolTip(tr("BOB support is not available"));
|
||||
ui.cbUseBob->setToolTip(tr("SAMv3 support is not available"));
|
||||
#endif
|
||||
|
||||
if(!mAllFieldsOk)
|
||||
|
|
@ -352,8 +344,8 @@ void GenCertDialog::setupState()
|
|||
|
||||
ui.genButton->setVisible(false) ;
|
||||
ui.generate_label->setVisible(false) ;
|
||||
ui.info_label->setText("Please choose a profile name and password...") ;
|
||||
ui.info_label->setVisible(true) ;
|
||||
ui.info_Label->setText("Please choose a profile name and password...") ;
|
||||
ui.info_Label->setVisible(true) ;
|
||||
}
|
||||
else if(!mEntropyOk)
|
||||
{
|
||||
|
|
@ -361,8 +353,8 @@ void GenCertDialog::setupState()
|
|||
|
||||
ui.genButton->setVisible(false) ;
|
||||
ui.generate_label->setVisible(false) ;
|
||||
ui.info_label->setText("Please move your mouse randomly to generate enough random data to create your profile.") ;
|
||||
ui.info_label->setVisible(true) ;
|
||||
ui.info_Label->setText("Please move your mouse randomly to generate enough random data to create your profile.") ;
|
||||
ui.info_Label->setVisible(true) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -371,7 +363,7 @@ void GenCertDialog::setupState()
|
|||
ui.genButton->setToolTip(tr("Click to create your node and/or profile")) ;
|
||||
ui.genButton->setVisible(true) ;
|
||||
ui.generate_label->setVisible(false) ;
|
||||
ui.info_label->setVisible(false) ;
|
||||
ui.info_Label->setVisible(false) ;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -407,7 +399,7 @@ void GenCertDialog::updateCheckLabels()
|
|||
ui.node_name_check_LB ->setPixmap(bad) ;
|
||||
}
|
||||
|
||||
if(!generate_new || ui.name_input->text().length() >= 3)
|
||||
if(!generate_new || ui.name_input->text().trimmed().length() >= 3)
|
||||
ui.profile_name_check_LB ->setPixmap(good) ;
|
||||
else
|
||||
{
|
||||
|
|
@ -440,10 +432,10 @@ void GenCertDialog::updateCheckLabels()
|
|||
setupState();
|
||||
}
|
||||
|
||||
void GenCertDialog::useBobChecked(bool checked)
|
||||
void GenCertDialog::useI2pChecked(bool checked)
|
||||
{
|
||||
if (checked) {
|
||||
ui.hiddenaddr_input->setPlaceholderText(tr("I2P instance address with BOB enabled"));
|
||||
ui.hiddenaddr_input->setPlaceholderText(tr("I2P instance address with SAMv3 enabled"));
|
||||
ui.hiddenaddr_label->setText(tr("I2P instance address"));
|
||||
|
||||
ui.hiddenport_spinBox->setEnabled(false);
|
||||
|
|
@ -539,12 +531,12 @@ void GenCertDialog::genPerson()
|
|||
std::string hl = ui.hiddenaddr_input->text().toStdString();
|
||||
uint16_t port = ui.hiddenport_spinBox->value();
|
||||
|
||||
bool useBob = ui.cbUseBob->isChecked();
|
||||
bool useI2p = ui.cbUseBob->isChecked();
|
||||
|
||||
if (useBob && hl.empty())
|
||||
if (useI2p && hl.empty())
|
||||
hl = "127.0.0.1";
|
||||
|
||||
RsInit::SetHiddenLocation(hl, port, useBob); /* parses it */
|
||||
RsInit::SetHiddenLocation(hl, port, useI2p); /* parses it */
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -591,7 +583,6 @@ void GenCertDialog::genPerson()
|
|||
//generate a new gpg key
|
||||
std::string err_string;
|
||||
//_key_label->setText(tr("Generating new node key, please be patient: this process needs generating large prime numbers, and can take some minutes on slow computers. \n\nFill in your password when asked, to sign your new key."));
|
||||
//ui.no_gpg_key_label->show();
|
||||
//ui.reuse_existing_node_CB->hide();
|
||||
ui.name_label->hide();
|
||||
ui.name_input->hide();
|
||||
|
|
@ -609,7 +600,6 @@ void GenCertDialog::genPerson()
|
|||
ui.node_input->hide();
|
||||
ui.genButton->hide();
|
||||
ui.importIdentity_PB->hide();
|
||||
//ui.genprofileinfo_label->hide();
|
||||
ui.nodeType_CB->hide();
|
||||
//ui.adv_checkbox->hide();
|
||||
ui.keylength_label->hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue