[yast-commit] r47236 - in /branches/tmp/aschnell/part-redesign/storage/src/include: ep-log.ycp ep-main.ycp ep-settings.ycp icons.ycp
Author: aschnell Date: Wed Apr 30 16:03:36 2008 New Revision: 47236 URL: http://svn.opensuse.org/viewcvs/yast?rev=47236&view=rev Log: - start moving icon names to a central place Added: branches/tmp/aschnell/part-redesign/storage/src/include/icons.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-log.ycp branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp branches/tmp/aschnell/part-redesign/storage/src/include/ep-settings.ycp Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-log.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-log.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-log.ycp Wed Apr 30 16:03:36 2008 @@ -16,10 +16,12 @@ string file = "/var/log/messages"; UI::ReplaceWidget(`tree_panel, - `VBox( - `Left(`Heading(_("Log"))), - `LogView(`id(`log), sformat(_("Contents of %1:"), file), 10, 0), - `PushButton(`id(`update), _("Update")) + Greasemonkey::Transform( + `VBox( + `IconAndHeading(_("Log"), log_icon), + `LogView(`id(`log), sformat(_("Contents of %1:"), file), 10, 0), + `PushButton(`id(`update), _("Update")) + ) )); Wizard::RestoreHelp("Log help TODO"); Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-main.ycp Wed Apr 30 16:03:36 2008 @@ -22,6 +22,8 @@ void UpdateNavigationTree(any new_focus); + include "partitioning/icons.ycp"; + include "partitioning/ep-lib.ycp"; include "partitioning/ep-dialogs.ycp"; @@ -135,8 +137,8 @@ `item(`id(`nfs), `icon("yast-nfs.png"), _("NFS"), open(`nfs), subtree[`nfs]:[]), `item(`id(`unused), `icon("yast-general.png"), _("Unused Devices"), open(`unused)) ]), - `item(`id(`settings), `icon("yast.png"), _("Settings"), open(`settings)), - `item(`id(`log), `icon("yast-messages.png"), _("Log"), open(`log)) ]; + `item(`id(`settings), `icon(settings_icon), _("Settings"), open(`settings)), + `item(`id(`log), `icon(log_icon), _("Log"), open(`log)) ]; } Modified: branches/tmp/aschnell/part-redesign/storage/src/include/ep-settings.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/ep-settings.ycp (original) +++ branches/tmp/aschnell/part-redesign/storage/src/include/ep-settings.ycp Wed Apr 30 16:03:36 2008 @@ -36,7 +36,7 @@ UI::ReplaceWidget(`tree_panel, Greasemonkey::Transform( `VBox( - `Left(`Heading("Settings")), + `IconAndHeading(_("Settings"), settings_icon), `VBox( `Left(`ComboBoxSelected(`id(`preferred_displayname), `opt(`notify), //FIXME: find some better wording Added: branches/tmp/aschnell/part-redesign/storage/src/include/icons.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/aschnell/part-redesign/sto... ============================================================================== --- branches/tmp/aschnell/part-redesign/storage/src/include/icons.ycp (added) +++ branches/tmp/aschnell/part-redesign/storage/src/include/icons.ycp Wed Apr 30 16:03:36 2008 @@ -0,0 +1,10 @@ +/** + * File: icons.ycp + * Package: yast2-storage + * Summary: Expert Partitioner + * Authors: Arvin Schnell <aschnell@suse.de> + */ +{ + const string settings_icon = "yast.png"; + const string log_icon = "yast-messages.png"; +} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org