mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
some improvements for Generating Profile Dialog, change Label and Button strings when switching to generate a new Profile or new Location.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3066 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
342768e626
commit
2d087cea4c
@ -50,6 +50,9 @@ GenCertDialog::GenCertDialog(QWidget *parent, Qt::WFlags flags)
|
|||||||
|
|
||||||
//ui.genName->setFocus(Qt::OtherFocusReason);
|
//ui.genName->setFocus(Qt::OtherFocusReason);
|
||||||
|
|
||||||
|
QString titleString("<span style=\"font-size:17pt; font-weight:500;"
|
||||||
|
"color:white;\">%1</span>");
|
||||||
|
|
||||||
/* get all available pgp private certificates....
|
/* get all available pgp private certificates....
|
||||||
* mark last one as default.
|
* mark last one as default.
|
||||||
*/
|
*/
|
||||||
@ -74,11 +77,17 @@ GenCertDialog::GenCertDialog(QWidget *parent, Qt::WFlags flags)
|
|||||||
if (foundGPGKeys) {
|
if (foundGPGKeys) {
|
||||||
ui.no_gpg_key_label->hide();
|
ui.no_gpg_key_label->hide();
|
||||||
ui.new_gpg_key_checkbox->setChecked(false);
|
ui.new_gpg_key_checkbox->setChecked(false);
|
||||||
|
setWindowTitle(tr("Create new Location"));
|
||||||
|
ui.genButton->setText(tr("Generate new Location"));
|
||||||
|
ui.label_3->setText( titleString.arg( tr("Create a new Location") ) ) ;
|
||||||
genNewGPGKey = false;
|
genNewGPGKey = false;
|
||||||
} else {
|
} else {
|
||||||
ui.no_gpg_key_label->show();
|
ui.no_gpg_key_label->show();
|
||||||
ui.new_gpg_key_checkbox->setChecked(true);
|
ui.new_gpg_key_checkbox->setChecked(true);
|
||||||
ui.new_gpg_key_checkbox->hide();
|
ui.new_gpg_key_checkbox->hide();
|
||||||
|
setWindowTitle(tr("Create new Profile"));
|
||||||
|
ui.genButton->setText(tr("Generate new Profile"));
|
||||||
|
ui.label_3->setText( titleString.arg( tr("Create a new Profile") ) ) ;
|
||||||
genNewGPGKey = true;
|
genNewGPGKey = true;
|
||||||
}
|
}
|
||||||
newGPGKeyGenUiSetup();
|
newGPGKeyGenUiSetup();
|
||||||
@ -115,6 +124,10 @@ void GenCertDialog::closeinfodlg()
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GenCertDialog::newGPGKeyGenUiSetup() {
|
void GenCertDialog::newGPGKeyGenUiSetup() {
|
||||||
|
|
||||||
|
QString titleStr("<span style=\"font-size:17pt; font-weight:500;"
|
||||||
|
"color:white;\">%1</span>");
|
||||||
|
|
||||||
if (ui.new_gpg_key_checkbox->isChecked()) {
|
if (ui.new_gpg_key_checkbox->isChecked()) {
|
||||||
genNewGPGKey = true;
|
genNewGPGKey = true;
|
||||||
ui.name_label->show();
|
ui.name_label->show();
|
||||||
@ -125,6 +138,9 @@ void GenCertDialog::newGPGKeyGenUiSetup() {
|
|||||||
ui.password_input->show();
|
ui.password_input->show();
|
||||||
ui.genPGPuserlabel->hide();
|
ui.genPGPuserlabel->hide();
|
||||||
ui.genPGPuser->hide();
|
ui.genPGPuser->hide();
|
||||||
|
setWindowTitle(tr("Create new Profile"));
|
||||||
|
ui.genButton->setText(tr("Generate new Profile"));
|
||||||
|
ui.label_3->setText( titleStr.arg( tr("Create a new Profile") ) ) ;
|
||||||
} else {
|
} else {
|
||||||
genNewGPGKey = false;
|
genNewGPGKey = false;
|
||||||
ui.name_label->hide();
|
ui.name_label->hide();
|
||||||
@ -135,6 +151,9 @@ void GenCertDialog::newGPGKeyGenUiSetup() {
|
|||||||
ui.password_input->hide();
|
ui.password_input->hide();
|
||||||
ui.genPGPuserlabel->show();
|
ui.genPGPuserlabel->show();
|
||||||
ui.genPGPuser->show();
|
ui.genPGPuser->show();
|
||||||
|
setWindowTitle(tr("Create new Location"));
|
||||||
|
ui.genButton->setText(tr("Generate new Location"));
|
||||||
|
ui.label_3->setText( titleStr.arg( tr("Create a new Location") ) ) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void GenCertDialog::genPerson()
|
void GenCertDialog::genPerson()
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>569</width>
|
<width>592</width>
|
||||||
<height>603</height>
|
<height>496</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -506,7 +506,7 @@
|
|||||||
<enum>Qt::NoContextMenu</enum>
|
<enum>Qt::NoContextMenu</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>RetroShare : Create new user Profile</string>
|
<string>Create new Profile</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="images.qrc">
|
<iconset resource="images.qrc">
|
||||||
@ -560,68 +560,6 @@ border-image: url(:/images/btn_26_pressed.png) 4;
|
|||||||
<property name="spacing">
|
<property name="spacing">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QFrame" name="frame_2">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>16777215</width>
|
|
||||||
<height>140</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">QFrame#frame_2{background-image: url(:/images/genbackground.png);}
|
|
||||||
</string>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::NoFrame</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Plain</enum>
|
|
||||||
</property>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="maximumSize">
|
|
||||||
<size>
|
|
||||||
<width>128</width>
|
|
||||||
<height>128</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="pixmap">
|
|
||||||
<pixmap resource="images.qrc">:/images/contact_new128.png</pixmap>
|
|
||||||
</property>
|
|
||||||
<property name="scaledContents">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_2">
|
|
||||||
<property name="text">
|
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
||||||
p, li { white-space: pre-wrap; }
|
|
||||||
</style></head><body style=" font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:16pt; color:#ffffff;">Create a new RetroShare profile</span><span style=" font-family:'Arial'; font-size:8pt;"><br /><br /></span><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">Retroshare uses gpg keys for identity management. </span></p>
|
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:8pt; font-weight:600;"></p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">You can use an existing gpg key, or create a new one with this form.</span></p>
|
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:8pt; font-weight:600;"></p>
|
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">You can install retroshare on different locations using the same gpg key.</span></p></body></html></string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<widget class="QFrame" name="frame">
|
<widget class="QFrame" name="frame">
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
@ -874,6 +812,72 @@ anonymous, you can use a fake email.</string>
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QFrame" name="frame_2">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>140</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">QFrame#frame_2{background-image: url(:/images/genbackground.png);}
|
||||||
|
</string>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Plain</enum>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
|
<item row="0" column="0" rowspan="2">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>128</width>
|
||||||
|
<height>128</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
|
<property name="pixmap">
|
||||||
|
<pixmap resource="images.qrc">:/images/contact_new128.png</pixmap>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:16pt; color:#ffffff;">Create a new Profile</span></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">RetroShare uses gpg keys for identity management. </span></p>
|
||||||
|
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial'; font-size:8pt; font-weight:600;"></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">You can use an existing gpg key, or create a new one with this form.</span></p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial'; font-size:8pt; font-weight:600;">You can install retroshare on different locations using the same gpg key.</span></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<tabstops>
|
<tabstops>
|
||||||
|
Loading…
Reference in New Issue
Block a user