Mailinglist Archive: yast-commit (518 mails)

< Previous Next >
[yast-commit] r56897 - in /trunk/storage/storage/src/include: ep-hd.ycp ep-loop.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Tue, 21 Apr 2009 15:05:41 -0000
  • Message-id: <E1LwHXZ-0004La-Mu@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Tue Apr 21 17:05:41 2009
New Revision: 56897

URL: http://svn.opensuse.org/viewcvs/yast?rev=56897&view=rev
Log:
Function buttons for HDs (pretty dumb so far)

Modified:
trunk/storage/storage/src/include/ep-hd.ycp
trunk/storage/storage/src/include/ep-loop.ycp

Modified: trunk/storage/storage/src/include/ep-hd.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-hd.ycp?rev=56897&r1=56896&r2=56897&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-hd.ycp (original)
+++ trunk/storage/storage/src/include/ep-hd.ycp Tue Apr 21 17:05:41 2009
@@ -56,6 +56,17 @@
}
}

+ term HdButtonBox()
+ {
+ return `HBox(
+ // push button text
+ `PushButton(`id(`edit),`opt(`key_F4), _("Edit...")),
+ // push button text
+ `PushButton(`id(`resize), `opt(`key_F6), _("Resize...")),
+ // push button text
+ `PushButton(`id(`delete), `opt(`key_F5), _("Delete..."))
+ );
+ }

void CreateHdMainPanel(any user_data)
{
@@ -75,10 +86,6 @@
term table_header = StorageFields::TableHeader(fields);
list<term> table_contents = StorageFields::TableContents(fields,
target_map, Predicate);

- term buttons = `HBox(
- `HStretch()
- );
-
UI::ReplaceWidget(`tree_panel,
Greasemonkey::Transform(
`VBox(
@@ -86,9 +93,14 @@
`IconAndHeading(_("Hard Disks"),
StorageIcons::hd_icon),
`Table(`id(`table), `opt(`keepSorting,
`notify, `notifyContextMenu),
table_header, table_contents),
- buttons
+ `HBox(
+ // push button text
+ `PushButton(`id(`add),`opt(`key_F3),
_("Add Partition...")),
+ HdButtonBox(),
+ `HStretch()
)
)
+ )
);

// helptext
@@ -128,8 +140,6 @@
`HStretch(),
StorageFields::Overview(fields, target_map,
device),
`HBox(
- // push button text
- `PushButton(`id(`delete), _("Delete...")),
`HStretch(),
// push button text
`PushButton(`id(`smart), _("Smart...")),
@@ -247,12 +257,7 @@
`HBox(
// push button text
`PushButton(`id(`add),`opt(`key_F3),
_("Add...")),
- // push button text
- `PushButton(`id(`edit),`opt(`key_F4),
_("Edit...")),
- // push button text
- `PushButton(`id(`resize), `opt(`key_F6),
_("Resize...")),
- // push button text
- `PushButton(`id(`delete), `opt(`key_F5),
_("Delete...")),
+ HdButtonBox(),
`HStretch(),
// menu button text
`MenuButton(`opt(`key_F7), _("Expert..."),
expert_cmds)
@@ -409,12 +414,7 @@
`IconAndHeading(sformat(_("Partition: %1"),
device), StorageIcons::hd_part_icon),
StorageFields::Overview(fields, target_map,
device),
`HBox(
- // push button text
- `PushButton(`id(`edit), `opt(`key_F4),
_("Edit...")),
- // push button text
- `PushButton(`id(`resize), `opt(`key_F6),
_("Resize...")),
- // push button text
- `PushButton(`id(`delete), `opt(`key_F5),
_("Delete...")),
+ HdButtonBox(),
`HStretch()
)
)

Modified: trunk/storage/storage/src/include/ep-loop.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/storage/storage/src/include/ep-loop.ycp?rev=56897&r1=56896&r2=56897&view=diff
==============================================================================
--- trunk/storage/storage/src/include/ep-loop.ycp (original)
+++ trunk/storage/storage/src/include/ep-loop.ycp Tue Apr 21 17:05:41 2009
@@ -15,7 +15,7 @@
term LoopButtonBox()
{
return `HBox(
- // push button text
+ // push button text
`PushButton(`id(`edit), `opt(`key_F4), _("Edit...")),
// push button text
`PushButton(`id(`delete), `opt(`key_F5), _("Delete..."))

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

< Previous Next >
This Thread
  • No further messages