dan
/
ui
forked from cwtch.im/ui
1
0
Fork 0

profile manager quick pass to be less hideous

01-profiles
Dan Ballard 2 years ago
parent c55a6b196a
commit 31abd0020e
  1. BIN
      i18n/translation_de.qm
  2. 59
      i18n/translation_de.ts
  3. BIN
      i18n/translation_en.qm
  4. 59
      i18n/translation_en.ts
  5. BIN
      i18n/translation_fr.qm
  6. 59
      i18n/translation_fr.ts
  7. BIN
      i18n/translation_pt.qm
  8. 59
      i18n/translation_pt.ts
  9. 2
      qml/main.qml
  10. 383
      qml/panes/ProfileAddEditPane.qml
  11. 66
      qml/panes/ProfileManagerPane.qml
  12. 2
      qml/widgets/ProfileList.qml
  13. 18
      qml/widgets/ProfileRow.qml

Binary file not shown.

@ -184,7 +184,7 @@
<message>
<location filename="../qml/widgets/MessageEditor.qml" line="32"/>
<source>peer-blocked-message</source>
<extracomment>Peer is blockced</extracomment>
<extracomment>Peer is blocked</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
@ -313,103 +313,114 @@
<context>
<name>ProfileAddEditPane</name>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="24"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="95"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="25"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="99"/>
<source>default-profile-name</source>
<extracomment>default suggested profile name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="76"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="70"/>
<source>profile-onion-label</source>
<extracomment>Onion</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="87"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="75"/>
<source>copy-btn</source>
<translation type="unfinished">Kopieren</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="79"/>
<source>copied-to-clipboard-notification</source>
<extracomment>notification: copied to clipboard</extracomment>
<translation type="unfinished">in die Zwischenablage kopiert</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="92"/>
<source>profile-name</source>
<extracomment>Display name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="107"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="118"/>
<source>radio-use-password</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="117"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<source>radio-no-password</source>
<extracomment>Unencrypted (No password)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="138"/>
<source>no-password-warning</source>
<extracomment>Not using a password on this account means that all data stored locally will not be encrypted</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="135"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="150"/>
<source>current-password-label</source>
<extracomment>Current Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="149"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="166"/>
<source>password1-label</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="169"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="186"/>
<source>password2-label</source>
<extracomment>Reenter password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>create-profile-btn</source>
<extracomment>Create Profile || Save Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>save-profile-btn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="215"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="241"/>
<source>password-error-match</source>
<extracomment>Passwords do not match</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="223"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="249"/>
<source>password-change-error</source>
<extracomment>Error changing password: Supplied password rejected</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="232"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<source>delete-profile-btn</source>
<extracomment>Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="245"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="281"/>
<source>delete-confirm-label</source>
<extracomment>Type DELETE to confirm</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="261"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="297"/>
<source>delete-profile-confirm-btn</source>
<extracomment>Really Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="303"/>
<source>delete-confirm-text</source>
<extracomment>DELETE</extracomment>
<translation type="unfinished"></translation>
@ -418,7 +429,7 @@
<context>
<name>ProfileList</name>
<message>
<location filename="../qml/widgets/ProfileList.qml" line="101"/>
<location filename="../qml/widgets/ProfileList.qml" line="102"/>
<source>add-new-profile-btn</source>
<translation type="unfinished"></translation>
</message>
@ -426,24 +437,24 @@
<context>
<name>ProfileManagerPane</name>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="29"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="36"/>
<source>enter-profile-password</source>
<extracomment>Please enter password:</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="38"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="52"/>
<source>password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="48"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="83"/>
<source>error-0-profiles-loaded-for-password</source>
<extracomment>0 profiles loaded with that password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="58"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="65"/>
<source>unlock</source>
<extracomment>Unlock</extracomment>
<translation type="unfinished"></translation>

Binary file not shown.

@ -264,7 +264,7 @@ Right-click to reset.</translation>
<message>
<location filename="../qml/widgets/MessageEditor.qml" line="32"/>
<source>peer-blocked-message</source>
<extracomment>Peer is blockced</extracomment>
<extracomment>Peer is blocked</extracomment>
<translation>Peer is blocked</translation>
</message>
<message>
@ -405,103 +405,114 @@ Right-click to reset.</translation>
<translation type="vanished">Edit Profile</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="87"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="92"/>
<source>profile-name</source>
<extracomment>Display name</extracomment>
<translation>Display name</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="24"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="95"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="25"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="99"/>
<source>default-profile-name</source>
<extracomment>default suggested profile name</extracomment>
<translation>Alice</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="76"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="70"/>
<source>profile-onion-label</source>
<extracomment>Onion</extracomment>
<translation>Onion</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="107"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="75"/>
<source>copy-btn</source>
<translation>Copy</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="79"/>
<source>copied-to-clipboard-notification</source>
<extracomment>notification: copied to clipboard</extracomment>
<translation>Copied to Clipboard</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="118"/>
<source>radio-use-password</source>
<extracomment>Password</extracomment>
<translation>Password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="117"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<source>radio-no-password</source>
<extracomment>Unencrypted (No password)</extracomment>
<translation>Unencrypted (No password)</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="138"/>
<source>no-password-warning</source>
<extracomment>Not using a password on this account means that all data stored locally will not be encrypted</extracomment>
<translation>Not using a password on this account means that all data stored locally will not be encrypted</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="135"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="150"/>
<source>current-password-label</source>
<extracomment>Current Password</extracomment>
<translation>Current Password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="149"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="166"/>
<source>password1-label</source>
<extracomment>Password</extracomment>
<translation>Password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="169"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="186"/>
<source>password2-label</source>
<extracomment>Reenter password</extracomment>
<translation>Reenter password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>create-profile-btn</source>
<extracomment>Create Profile || Save Profile</extracomment>
<translation>Create Profile</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>save-profile-btn</source>
<translation>Save Profile</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="215"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="241"/>
<source>password-error-match</source>
<extracomment>Passwords do not match</extracomment>
<translation>Passwords do not match</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="223"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="249"/>
<source>password-change-error</source>
<extracomment>Error changing password: Supplied password rejected</extracomment>
<translation>Error changing password: Supplied password rejected</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="232"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<source>delete-profile-btn</source>
<extracomment>Delete Profile</extracomment>
<translation>Delete Profile</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="245"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="281"/>
<source>delete-confirm-label</source>
<extracomment>Type DELETE to confirm</extracomment>
<translation>Type DELETE to confirm</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="261"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="297"/>
<source>delete-profile-confirm-btn</source>
<extracomment>Really Delete Profile</extracomment>
<translation>Really Delete Profile</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="303"/>
<source>delete-confirm-text</source>
<extracomment>DELETE</extracomment>
<translation>DELETE</translation>
@ -510,7 +521,7 @@ Right-click to reset.</translation>
<context>
<name>ProfileList</name>
<message>
<location filename="../qml/widgets/ProfileList.qml" line="101"/>
<location filename="../qml/widgets/ProfileList.qml" line="102"/>
<source>add-new-profile-btn</source>
<translation>Add new profile</translation>
</message>
@ -518,24 +529,24 @@ Right-click to reset.</translation>
<context>
<name>ProfileManagerPane</name>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="29"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="36"/>
<source>enter-profile-password</source>
<extracomment>Please enter password:</extracomment>
<translation>Please enter password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="38"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="52"/>
<source>password</source>
<translation>Password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="48"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="83"/>
<source>error-0-profiles-loaded-for-password</source>
<extracomment>0 profiles loaded with that password</extracomment>
<translation>0 profiles loaded with that password</translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="58"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="65"/>
<source>unlock</source>
<extracomment>Unlock</extracomment>
<translation>Unlock</translation>

Binary file not shown.

@ -184,7 +184,7 @@
<message>
<location filename="../qml/widgets/MessageEditor.qml" line="32"/>
<source>peer-blocked-message</source>
<extracomment>Peer is blockced</extracomment>
<extracomment>Peer is blocked</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
@ -313,103 +313,114 @@
<context>
<name>ProfileAddEditPane</name>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="24"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="95"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="25"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="99"/>
<source>default-profile-name</source>
<extracomment>default suggested profile name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="76"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="70"/>
<source>profile-onion-label</source>
<extracomment>Onion</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="87"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="75"/>
<source>copy-btn</source>
<translation type="unfinished">Copier</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="79"/>
<source>copied-to-clipboard-notification</source>
<extracomment>notification: copied to clipboard</extracomment>
<translation type="unfinished">Copié dans le presse-papier</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="92"/>
<source>profile-name</source>
<extracomment>Display name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="107"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="118"/>
<source>radio-use-password</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="117"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<source>radio-no-password</source>
<extracomment>Unencrypted (No password)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="138"/>
<source>no-password-warning</source>
<extracomment>Not using a password on this account means that all data stored locally will not be encrypted</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="135"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="150"/>
<source>current-password-label</source>
<extracomment>Current Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="149"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="166"/>
<source>password1-label</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="169"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="186"/>
<source>password2-label</source>
<extracomment>Reenter password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>create-profile-btn</source>
<extracomment>Create Profile || Save Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>save-profile-btn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="215"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="241"/>
<source>password-error-match</source>
<extracomment>Passwords do not match</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="223"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="249"/>
<source>password-change-error</source>
<extracomment>Error changing password: Supplied password rejected</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="232"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<source>delete-profile-btn</source>
<extracomment>Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="245"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="281"/>
<source>delete-confirm-label</source>
<extracomment>Type DELETE to confirm</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="261"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="297"/>
<source>delete-profile-confirm-btn</source>
<extracomment>Really Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="303"/>
<source>delete-confirm-text</source>
<extracomment>DELETE</extracomment>
<translation type="unfinished"></translation>
@ -418,7 +429,7 @@
<context>
<name>ProfileList</name>
<message>
<location filename="../qml/widgets/ProfileList.qml" line="101"/>
<location filename="../qml/widgets/ProfileList.qml" line="102"/>
<source>add-new-profile-btn</source>
<translation type="unfinished"></translation>
</message>
@ -426,24 +437,24 @@
<context>
<name>ProfileManagerPane</name>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="29"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="36"/>
<source>enter-profile-password</source>
<extracomment>Please enter password:</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="38"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="52"/>
<source>password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="48"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="83"/>
<source>error-0-profiles-loaded-for-password</source>
<extracomment>0 profiles loaded with that password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="58"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="65"/>
<source>unlock</source>
<extracomment>Unlock</extracomment>
<translation type="unfinished"></translation>

Binary file not shown.

@ -184,7 +184,7 @@
<message>
<location filename="../qml/widgets/MessageEditor.qml" line="32"/>
<source>peer-blocked-message</source>
<extracomment>Peer is blockced</extracomment>
<extracomment>Peer is blocked</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
@ -313,103 +313,114 @@
<context>
<name>ProfileAddEditPane</name>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="24"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="95"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="25"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="99"/>
<source>default-profile-name</source>
<extracomment>default suggested profile name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="76"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="70"/>
<source>profile-onion-label</source>
<extracomment>Onion</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="87"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="75"/>
<source>copy-btn</source>
<translation type="unfinished">Copiar</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="79"/>
<source>copied-to-clipboard-notification</source>
<extracomment>notification: copied to clipboard</extracomment>
<translation type="unfinished">Copiado</translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="92"/>
<source>profile-name</source>
<extracomment>Display name</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="107"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="118"/>
<source>radio-use-password</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="117"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<source>radio-no-password</source>
<extracomment>Unencrypted (No password)</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="128"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="138"/>
<source>no-password-warning</source>
<extracomment>Not using a password on this account means that all data stored locally will not be encrypted</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="135"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="150"/>
<source>current-password-label</source>
<extracomment>Current Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="149"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="166"/>
<source>password1-label</source>
<extracomment>Password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="169"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="186"/>
<source>password2-label</source>
<extracomment>Reenter password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>create-profile-btn</source>
<extracomment>Create Profile || Save Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="183"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="209"/>
<source>save-profile-btn</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="215"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="241"/>
<source>password-error-match</source>
<extracomment>Passwords do not match</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="223"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="249"/>
<source>password-change-error</source>
<extracomment>Error changing password: Supplied password rejected</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="232"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<source>delete-profile-btn</source>
<extracomment>Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="245"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="281"/>
<source>delete-confirm-label</source>
<extracomment>Type DELETE to confirm</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="261"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="297"/>
<source>delete-profile-confirm-btn</source>
<extracomment>Really Delete Profile</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="267"/>
<location filename="../qml/panes/ProfileAddEditPane.qml" line="303"/>
<source>delete-confirm-text</source>
<extracomment>DELETE</extracomment>
<translation type="unfinished"></translation>
@ -418,7 +429,7 @@
<context>
<name>ProfileList</name>
<message>
<location filename="../qml/widgets/ProfileList.qml" line="101"/>
<location filename="../qml/widgets/ProfileList.qml" line="102"/>
<source>add-new-profile-btn</source>
<translation type="unfinished"></translation>
</message>
@ -426,24 +437,24 @@
<context>
<name>ProfileManagerPane</name>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="29"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="36"/>
<source>enter-profile-password</source>
<extracomment>Please enter password:</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="38"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="52"/>
<source>password</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="48"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="83"/>
<source>error-0-profiles-loaded-for-password</source>
<extracomment>0 profiles loaded with that password</extracomment>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/panes/ProfileManagerPane.qml" line="58"/>
<location filename="../qml/panes/ProfileManagerPane.qml" line="65"/>
<source>unlock</source>
<extracomment>Unlock</extracomment>
<translation type="unfinished"></translation>

@ -155,7 +155,7 @@ ApplicationWindow {
Rectangle { // Profile Add / Edit pane
Layout.fillHeight: true
Layout.fillWidth: true
color: Theme.backgroundMainColor
color: Theme.backgroundPaneColor
ProfileAddEditPane{

@ -7,9 +7,10 @@ import QtQuick.Window 2.11
import "../opaque" as Opaque
import "../opaque/theme"
// import "../styles"
ColumnLayout { // Add Profile Pane
Opaque.SettingsList { // Add Profile Pane
id: profileAddEditPane
anchors.fill: parent
@ -55,241 +56,277 @@ ColumnLayout { // Add Profile Pane
}
Flickable {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
boundsBehavior: Flickable.StopAtBounds
clip:true
contentWidth: tehcol.width
contentHeight: tehcol.height
Column {
id: tehcol
leftPadding: 10
spacing: 5
width: profileAddEditPane.width
Opaque.ScalingLabel {
//: Onion
text: qsTr("profile-onion-label") + ":"
visible: mode == "edit"
}
settings: Column {
anchors.horizontalCenter: parent.horizontalCenter
width: 700
Opaque.Setting {
inline: false
visible: mode == "edit"
//: Onion
label: qsTr("profile-onion-label") + ":"
Opaque.ScalingLabel {
field: Opaque.ButtonTextField {
id: onionLabel
visible: mode == "edit"
readOnly: true
button_text: qsTr("copy-btn")
dropShadowColor: Theme.dropShadowPaneColor
onClicked: {
//: notification: copied to clipboard
gcd.popup(qsTr("copied-to-clipboard-notification"))
onionLabel.selectAll()
onionLabel.copy()
}}
}
Opaque.ScalingLabel {
Opaque.Setting {
inline: false
visible: mode == "edit"
//: Display name
text: qsTr("profile-name") + ":"
label: qsTr("profile-name") + ":"
field: Opaque.UnderlineTextField {
id: txtProfileName
//Layout.fillWidth: true
//: default suggested profile name
text: qsTr("default-profile-name")
width: parent.width
}
}
Opaque.TextField {
id: txtProfileName
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
//: default suggested profile name
text: qsTr("default-profile-name")
Opaque.Setting {
inline: false
visible: mode == "add" || tag == "v1-defaultPassword"
}
field:
ColumnLayout{
RowLayout {
//id: radioButtons
RowLayout {
//id: radioButtons
Opaque.RadioButton {
id: radioUsePassword
checked: true
//: Password
text: qsTr("radio-use-password")
Opaque.RadioButton {
id: radioUsePassword
checked: true
//: Password
text: qsTr("radio-use-password")
visible: mode == "add" || tag == "v1-defaultPassword"
onClicked: {
changingPassword = true
onClicked: {
changingPassword = true
}
}
Opaque.RadioButton {
id: radioNoPassword
//: Unencrypted (No password)
text: qsTr("radio-no-password")
onClicked: {
changingPassword = true
}
}
}
}
Opaque.RadioButton {
id: radioNoPassword
//: Unencrypted (No password)
text: qsTr("radio-no-password")
visible: mode == "add" || tag == "v1-defaultPassword"
onClicked: {
changingPassword = true
Opaque.ScalingLabel {
id: noPasswordLabel
//: Not using a password on this account means that all data stored locally will not be encrypted
text: qsTr("no-password-warning")
visible: radioNoPassword.checked
}
}
}
Opaque.ScalingLabel {
id: noPasswordLabel
//: Not using a password on this account means that all data stored locally will not be encrypted
text: qsTr("no-password-warning")
visible: radioNoPassword.checked
}
Opaque.Setting{
inline: false
visible: radioUsePassword.checked && mode == "edit" && tag != "v1-defaultPassword"
Opaque.ScalingLabel {
id: currentPasswordLabel
//: Current Password
text: qsTr("current-password-label") + ":"
visible: radioUsePassword.checked && mode == "edit" && tag != "v1-defaultPassword"
}
label: qsTr("current-password-label") + ":"
Opaque.TextField {
id: txtCurrentPassword
Layout.fillWidth: true
echoMode: TextInput.Password
visible: radioUsePassword.checked && mode == "edit" && tag != "v1-defaultPassword"
}
field: Opaque.TextField {
id: txtCurrentPassword
Layout.fillWidth: true
echoMode: TextInput.Password
}
Opaque.ScalingLabel {
id: passwordLabel
//: Password
text: qsTr("password1-label") + ":"
visible: radioUsePassword.checked
}
Opaque.TextField {
id: txtPassword1
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
echoMode: TextInput.Password
Opaque.Setting {
visible: radioUsePassword.checked
onTextEdited: {
changingPassword = true
//: Password
label: qsTr("password1-label") + ":"
field: Opaque.TextField {
id: txtPassword1
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
echoMode: TextInput.Password
visible: radioUsePassword.checked
onTextEdited: {
changingPassword = true
}
}
}
Opaque.Setting {
visible: radioUsePassword.checked
Opaque.ScalingLabel {
id: passwordReLabel
//: Reenter password
text: qsTr("password2-label") + ":"
visible: radioUsePassword.checked
}
label: qsTr("password2-label") + ":"
field: Opaque.TextField {
id: txtPassword2
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
echoMode: TextInput.Password
visible: radioUsePassword.checked
}
Opaque.TextField {
id: txtPassword2
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
echoMode: TextInput.Password
visible: radioUsePassword.checked
}
Opaque.Button { // ADD or SAVE button
//: Create Profile || Save Profile
text: mode == "add" ? qsTr("create-profile-btn") : qsTr("save-profile-btn")
onClicked: {
if (mode == "add") {
if (txtPassword1.text != txtPassword2.text) {
passwordErrorLabel.visible = true
} else {
gcd.createProfile(txtProfileName.text, radioNoPassword.checked, txtPassword1.text)
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
}
} else {
gcd.updateNick(onion, txtProfileName.text)
Column {
width:parent.width * 0.95
anchors.horizontalCenter: parent.horizontalCenter
spacing: 10 * gcd.themeScale
Opaque.Button { // ADD or SAVE button
anchors.right: parent.right
height: Theme.primaryTextSize * 1.5
//: Create Profile || Save Profile
text: mode == "add" ? qsTr("create-profile-btn") : qsTr("save-profile-btn")
if (changingPassword) {
onClicked: {
if (mode == "add") {
if (txtPassword1.text != txtPassword2.text) {
passwordErrorLabel.visible = true
} else {
gcd.changePassword(onion, txtCurrentPassword.text, txtPassword1.text, radioNoPassword.checked)
gcd.createProfile(txtProfileName.text, radioNoPassword.checked, txtPassword1.text)
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
}
} else {
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
gcd.updateNick(onion, txtProfileName.text)
if (changingPassword) {
if (txtPassword1.text != txtPassword2.text) {
passwordErrorLabel.visible = true
} else {
gcd.changePassword(onion, txtCurrentPassword.text, txtPassword1.text, radioNoPassword.checked)
}
} else {
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
}
}
}
}
Opaque.ScalingLabel {
id: passwordErrorLabel
//: Passwords do not match
text: qsTr("password-error-match")
visible: false
color: "red"
}
}
Opaque.ScalingLabel {
id: passwordErrorLabel
//: Passwords do not match
text: qsTr("password-error-match")
visible: false
color: "red"
}
Opaque.ScalingLabel {
id: passwordChangeErrorLabel
//: Error changing password: Supplied password rejected
text: qsTr("password-change-error")
visible: false
color: "red"
}
Opaque.ScalingLabel {
id: passwordChangeErrorLabel
//: Error changing password: Supplied password rejected
text: qsTr("password-change-error")
visible: false
color: "red"
}
// ***** Delete button and confirm flow *****
Opaque.Button {
//: Delete Profile
text: qsTr("delete-profile-btn")
icon: "regular/trash-alt"
visible: mode == "edit"
// ***** Delete button and confirm flow *****
onClicked: {
deleting = true
}
}
Opaque.ScalingLabel {
id: deleteConfirmLabel
//: Type DELETE to confirm
text: qsTr("delete-confirm-label")+ ":"
visible: deleting
}
Opaque.TextField {
id: confirmDeleteTxt
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
visible: deleting
}
Opaque.Button {
id: confirmDeleteBtn
icon: "regular/trash-alt"
//: Really Delete Profile
text: qsTr("delete-profile-confirm-btn")
color: "red"
visible: deleting
Opaque.Button {
anchors.right: parent.right
onClicked: {
//: DELETE
if (confirmDeleteTxt.text == qsTr("delete-confirm-text")) {
deleteConfirmLabel.color = "black"
gcd.deleteProfile(onion)
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
} else {
deleteConfirmLabel.color = "red"
//: Delete Profile
text: qsTr("delete-profile-btn")
icon: "regular/trash-alt"
visible: mode == "edit"
height: Theme.primaryTextSize * 1.5
onClicked: {
deleting = true
}
}
Opaque.ScalingLabel {
id: deleteConfirmLabel
//: Type DELETE to confirm
text: qsTr("delete-confirm-label")+ ":"
visible: deleting
}
Opaque.TextField {
id: confirmDeleteTxt
Layout.fillWidth: true
//style: CwtchTextFieldStyle{ width: tehcol.width * 0.8 }
visible: deleting
}
Opaque.Button {
id: confirmDeleteBtn
icon: "regular/trash-alt"
//: Really Delete Profile
text: qsTr("delete-profile-confirm-btn")
color: "red"
visible: deleting
onClicked: {
//: DELETE
if (confirmDeleteTxt.text == qsTr("delete-confirm-text")) {
deleteConfirmLabel.color = "black"
gcd.deleteProfile(onion)
gcd.reloadProfileList()
parentStack.pane = parentStack.managementPane
} else {
deleteConfirmLabel.color = "red"
}
}
}
}
}//end of column with padding
}//end of flickable
}//end of column
Connections { // UPDATE UNREAD MESSAGES COUNTER
target: gcd
onChangePasswordResponse: function(error) {
if (!error) {
gcd.reloadProfileList()
parentStack.