Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57978 - /trunk/storage/storage/src/inst_disk_proposal.ycp
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Thu, 09 Jul 2009 13:23:39 -0000
  • Message-id: <E1MOtb9-0008Ts-D3@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Thu Jul 9 15:23:39 2009
New Revision: 57978

URL: http://svn.opensuse.org/viewcvs/yast?rev=57978&view=rev
Log:
- work on proposal encryption

Modified:
trunk/storage/storage/src/inst_disk_proposal.ycp

Modified: trunk/storage/storage/src/inst_disk_proposal.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/inst_disk_proposal.ycp?rev=57978&r1=57977&r2=57978&view=diff
==============================================================================
--- trunk/storage/storage/src/inst_disk_proposal.ycp (original)
+++ trunk/storage/storage/src/inst_disk_proposal.ycp Thu Jul 9 15:23:39 2009
@@ -133,6 +133,8 @@
part_str = _("&Partition Based");
// Radiobutton for partition dialog
lvm_str = _("&LVM Based");
+// Checkbox for partition dialog
+encrypt_str = _("Encrypt TODO");

string target_is = "";

@@ -177,8 +179,10 @@
`MinWidth(20, `Left(`RadioButton(`id(`part), `opt(`notify), part_str,
!StorageProposal::GetProposalLvm()))),
`HSpacing(3),
- `MinWidth(20, `Left(`RadioButton(`id(`lvm), `opt(`notify), lvm_str,
- StorageProposal::GetProposalLvm()))),
+ `MinWidth(20, `VBox(`Left(`RadioButton(`id(`lvm), `opt(`notify),
lvm_str,
+
StorageProposal::GetProposalLvm())),
+ `HBox(`HSpacing(4), `CheckBox(`id(`encrypt),
`opt(`notify), encrypt_str,
+
StorageProposal::GetProposalEncrypt())))),
`HSpacing(3)
);

@@ -265,7 +269,7 @@
if( ret == `abort && Popup::ReallyAbort(true) )
return `abort;

- if( contains( [ `lvm, `part ], ret ) )
+ if( contains( [ `lvm, `part, `encrypt ], ret ) )
{
if( AskOverwriteChanges() )
{
@@ -279,7 +283,12 @@

case `lvm:
StorageProposal::SetProposalLvm(true);
- break;
+ break;
+
+ case `encrypt:
+ StorageProposal::SetProposalEncypt((boolean)
UI::QueryWidget(`id(`encrypt), `Value));
+ StorageProposal::SetProposalPassword("12345678"); //
TODO
+ break;
}

Storage::ResetOndiskTarget();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages