home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / boot / i386 / root / usr / share / YaST2 / data / pkg_layout.ycp < prev    next >
Text File  |  2006-11-29  |  6KB  |  157 lines

  1. /**
  2.  * File:        pkg_layout.ycp
  3.  * Package:     
  4.  * Authors:     Gabriele Strattner <gs@suse.de>
  5.  *
  6.  * Purpose:
  7.  *
  8.  * ncurses layout for package selection
  9.  *
  10.  * $Id: pkg_layout.ycp 34651 2006-11-29 16:02:29Z kmachalkova $
  11.  */
  12. {
  13.     textdomain "packages";
  14.  
  15.     return `VBox( `VSpacing(0.3),
  16.           `HBox( `HSpacing(0.3),
  17.              // label of the Filter menu ( keep it short ) - filters out a set of packages
  18.              `Left(`ReplacePoint(`id(`replacefilter),`MenuButton( `opt(`key_F4), _( "&Filter" ),
  19.                                         // begin: menu items of the filter menu
  20.                                         // please note: use unique hotkeys until end:
  21.                                         [`item( `id("groups"),     _( "&RPM Groups" ) ),
  22.                                          `item( `id("patterns"),     _( "Pa&tterns" ) ),
  23.                                          `item( `id("search"),     _( "&Search" ) ),
  24.                                          `item( `id("installed"),    _( "Installed &Packages" ) ),
  25.                                          `item( `id("whatif"),     _( "&Installation Summary" ) ),
  26.                                          // end: menu items of the filter menu
  27.                                          `item( `id("updatelist"),    _( "&Update List" ) ) ]
  28.                                         )
  29.                          )
  30.                    ),
  31.              // label Actions menu ( keep it short ) - actions to change status of a package
  32.              `Left(`MenuButton( `opt(`key_F5), _( "A&ctions" ),
  33.                         // Please note: add an appropriate number of whitespaces to get a well
  34.                         // formated menu (the [ ]s should be in one column) and use unique hotkeys until end:
  35.                         // begin: Actions menu, toggle the status, e.g. change from installed to delete
  36.                         [`item( `id("toggle"),     _( "&Toggle    [SPACE]" ) ),
  37.                          // select the package for installation
  38.                          `item( `id("select"),     _( "&Select      [+]" ) ),
  39.                          // delete the package
  40.                          `item( `id("delete"),     _( "&Delete      [-]" ) ),
  41.                          // update the package
  42.                          `item( `id("update"),     _( "&Update      [>]" ) ),
  43.                          // set package status to 'Taboo', i.e. never install this package
  44.                          `item( `id("tabooOn"),     _( "Taboo &Yes   [!]" ) ),
  45.                          // reset the status 'Taboo' 
  46.                          `item( `id("tabooOff"),     _( "Taboo &No    [%]" ) ),
  47. /*#ifdef FIXME
  48. // source package handling does not work yet with zypp
  49.                          // install the source package (SRPM)
  50.                          `item( `id("sourceYes"),     _( "&Install Sources (SRPM)" ) ),
  51.                          // don't install sources
  52.                          `item( `id("sourceNo"),     _( "D&o Not Install Sources" ) ),
  53. #endif*/
  54.                          // end: Actions menu, set status of all packages (title of a submenu)
  55.                          `menu( _( "All Listed &Packages" ),
  56.                             [
  57.                              // begin: submenu items actions concerning all packages
  58.                              // please note: use unique hotkeys until end:
  59.                              `item(`id("selall"),   _( "&Install All" )  ),
  60.                              `item(`id("deselall"), _( "Do &Not Install Any" ) ),
  61.                              `item(`id("delall"),   _( "&Delete All" ) ),
  62.                              `item(`id("dontdel"),  _( "Do Not D&elete Any" ) ),
  63.                              `item(`id("updall"),   _( "&Update All" )   ),
  64.                               // end: submenu items: actions concerning all packages
  65.                              `item(`id("dontupd"),  _( "Do Not Update and &Keep Installed" ) )
  66.                              ]
  67.                             )
  68.                          ]
  69.                          )),
  70.              // label Information menu ( keep it short! )
  71.              `Left(`MenuButton( `opt(`key_F6), _( "&Information" ),
  72.                         // begin: menu items of the info menu
  73.                         // please note: use unique hotkeys until end:
  74.                         [`item( `id("pkginfo"),     _( "&Package Info" ) ),
  75.                          `item( `id("longdescr"),     _( "&Long Description" ) ),
  76.                          `item( `id("versions"),     _( "&Versions" ) ),
  77.                          `item( `id("files"),     _( "&File List" ) ),
  78.                          // end: menu items of the info menu
  79.                          `item( `id("relations"),     _( "Package &Relations" ) ) ]
  80.                         )),
  81.              // label Etc. menu ( keep it short! )
  82.              `Left(`ReplacePoint(`id(`replacemenu), `MenuButton( `opt(`key_F7), _( "&Etc." ),
  83.                                         // menu item of the Etc. menu
  84.                                         [`menu( _( "&Dependencies" ),
  85.                                             // menu items of the Etc./Dependencies submenu
  86.                                             [`item( `id("showdeps"), _( "    &Check Dependencies Now" ) ),
  87.                                              `item( `id("autodeps"), _( "[X] &Automatic Dependency Check" ) ) ]
  88.                                             ),
  89.                                          `item( `id("testcase"),     _( "Generate Dependency Resolver &Test Case" ) )
  90. /*#ifdef FIXME
  91.                                          ,
  92.                                           // menu item of the Etc. menu
  93.                                          `menu( _( "&Selections" ),
  94.                                             // menu item of the Etc./Selections submenu
  95.                                             [`item( `id("save"), _( "S&ave Selection" ) ),
  96.                                              `item( `id("load"), _( "&Load Selection" ) ) ]
  97.                                             )
  98. #endif*/
  99.                                          ]
  100.                                         )
  101.                          )
  102.                    ),
  103.              `HSpacing(0.3)
  104.                        
  105.              ),
  106.           `VSpacing(0.3),
  107.           `VWeight( 50, `HBox(`HSpacing(0.3),
  108.                       `PkgSpecial( `id("packages"), `opt(`notify), "pkgTable" ), 
  109.                       `HSpacing(0.3)
  110.                       )
  111.                 ),
  112.           // label text - keep it short
  113.           `HBox( `HWeight(1, `HBox(`Label( _( "Filter: " ) ),
  114.                        `Label( `id("filter"), "..............................." ),
  115.                        `HSpacing( 0.1 )
  116.                        )
  117.                   ),
  118.              // label text - keep it short (use abbreviation if necessary)
  119.              `HWeight(1, `HBox(`Label( _( "Required Disk Space: " ) ),
  120.                        `Label( `id("diskspace"), "        " ),
  121.                        `HSpacing( 0.1 )
  122.                        )
  123.                   )
  124.              ),
  125.           `VBox(`VWeight( 40, `ReplacePoint( `id(`replaceinfo),
  126.                              `RichText( `id("description")," ")
  127.                              )
  128.                   ),
  129.             `VWeight( 5, `HBox(
  130.                        // label help menu 
  131.                        `HBox(`MenuButton(`opt(`key_F1), _( "&Help" ),
  132.                                  // menu items of the help menu
  133.                                  [`item( `id("help_general"), _( "&General Help" ) ),
  134.                                   `item( `id("help_status"),  _( "Help on &Package Status" ) ),
  135.                                   `item( `id("help_search"),  _( "Help on &Search" ) ),
  136.                                   `item( `id("help_update"),  _( "Help on &Upate" ) ) ]
  137.                                  ),
  138.                          `HWeight(1,`HStretch()),
  139.                          // button label - keep it short
  140.                          `PushButton(`id("search"), `opt(`key_F2), _( "&Search" ) ),
  141.                          `HWeight(1, `HStretch()),
  142.                          // button label - keep it short! (max. 15 chars -- use abbreviation)
  143.                          `PushButton(`id("diskinfo"), `opt(`key_F3), _( "&Disk Usage" ) ),
  144.                           `HWeight(1,`HStretch())
  145.                          ),
  146.                        `HSpacing(5.0),
  147.                        // button label - keep it short
  148.                        `HBox( `Right( `PushButton(`id("cancel"), `opt(`key_F9) ,_( "&Cancel" ) ) ),
  149.                           // button label - keep it short
  150.                           `Right( `PushButton(`id("ok"), `opt(`key_F10), _( "&Accept" ) ) )
  151.                           )
  152.                        )
  153.                   )
  154.             )
  155.           );
  156. }
  157.