home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 September (Special) / Chip-Special_2004-09_Digitalni-Hudba.bin / servis / reader / Data1.cab / Multimedia.api / EXVW / 10010 < prev    next >
Text File  |  2003-07-17  |  4KB  |  92 lines

  1. gPaneWidth    = 600;
  2.  
  3. gMaxStaticWidth    = max( zstring_width( zstring: '$$$/Dialogs/Multimedia/RenditionSettings/Name' ), 
  4.                        zstring_width( zstring: '$$$/Dialogs/Multimedia/RenditionSettings/Volume' ), 
  5.                        zstring_width( zstring: '$$$/Dialogs/Multimedia/RenditionSettings/Duration' ), 
  6.                        zstring_width( zstring: '$$$/Dialogs/Multimedia/RenditionSettings/FitMode' )    );
  7.  
  8. gMaxPopupWidth    = max( zstring_width( zstring: '$$$IDS_DURATION_INFINITE' ), 
  9.                        zstring_width( zstring: '$$$IDS_DURATION_INTRINSIC' ), 
  10.                        zstring_width( zstring: '$$$IDS_DURATION_TIME' ) );
  11.  
  12. gSecondsWidth    = zstring_width( zstring: '$$$/Dialogs/Multimedia/RenditionSettings/Seconds' );
  13. gListHeight        = 110;
  14. gRowWidth        = gMaxStaticWidth + 266 + max_digit_width() * 4 + gSecondsWidth;
  15. gMySpinWidth    = max_digit_width() * 5;
  16.  
  17. dialog( target_id: 'name', first_tab: 'st01' )
  18. {
  19.     view( align_children: align_left )
  20.     {
  21.         cluster( name: '$$$/Dialogs/Multimedia/RenditionSettings/PlaybackSettings', align_children: align_left, alignment: align_fill, dwidth: gPaneWidth )
  22.         {
  23.             view( align_children: align_row )
  24.             {
  25.                 view( align_children: align_right, width: gMaxStaticWidth )
  26.                 {
  27.                     static_text( item_id: 'st01', name: '$$$/Dialogs/Multimedia/RenditionSettings/Duration', next_tab: 'dur ' );
  28.                 }
  29.  
  30.                 view( align_children: align_left )
  31.                 {
  32.                     popup( item_id: 'dur ', width: gMaxPopupWidth, next_tab: 'secs' );
  33.                 }
  34.  
  35.                 static_text( item_id: 'secs', name: '$$$/Dialogs/Multimedia/RenditionSettings/Seconds', alignment: align_right, next_tab: 'time' );
  36.                 edit_text( item_id: 'time', SpinEdit: true, numeric: true, width: gMySpinWidth, alignment: align_left, next_tab: 'st02' );
  37.             }
  38.  
  39.             view( align_children: align_row )
  40.             {
  41.                 view( align_children: align_right, width: gMaxStaticWidth )
  42.                 {
  43.                     static_text( item_id: 'st02', name: '$$$/Dialogs/Multimedia/RenditionSettings/Volume', next_tab: 'volm' );
  44.                 }
  45.  
  46.                 edit_text( item_id: 'volm', SpinEdit: true, numeric: true, width: gMySpinWidth, alignment: align_left, next_tab: 'st03' );
  47.                 static_text( item_id: 'st03', name: '$$$/Dialogs/Multimedia/RenditionSettings/Percent', alignment: align_left, next_tab: 'ctrl' );
  48.             }
  49.             view( align_children: align_row )
  50.             {
  51.                 gap(width: gMaxStaticWidth);
  52.                 check_box( item_id: 'ctrl', name: '$$$/Dialogs/Multimedia/RenditionSettings/ShowControls', next_tab: 'rpt ' );
  53.             }
  54.             view( align_children: align_row )
  55.             {
  56.                 gap(width: gMaxStaticWidth);
  57.                 check_box( item_id: 'rpt ', name: '$$$/Dialogs/Multimedia/RenditionSettings/Loop', next_tab: 'inf ' );
  58.             }
  59.  
  60.             view( align_children: align_row )
  61.             {
  62.                 gap( width: gMaxStaticWidth + gGap + gGap );
  63.                 view( align_children: align_left )
  64.                 {
  65.                     group()
  66.                     {
  67.                         radio( item_id: 'inf ', group_id: 'rgrp', name: '$$$/Dialogs/Multimedia/RenditionSettings/Infinite', next_tab: 'loop' );
  68.  
  69.                         view( align_children: align_row )
  70.                         {
  71.                             radio( item_id: 'loop', group_id: 'rgrp', name: '$$$/Dialogs/Multimedia/RenditionSettings/LoopCount', next_tab: 'lnum' );
  72.                             edit_text( item_id: 'lnum', SpinEdit: true, numeric: true, width: gMySpinWidth, alignment: align_left, next_tab: 'plst' );
  73.                         }
  74.                     }
  75.                 }
  76.             }
  77.         }
  78.  
  79.         cluster( name: '$$$/Dialogs/Multimedia/RenditionSettings/PlayerList', align_children: align_left, alignment: align_fill, dwidth: gPaneWidth )
  80.         {
  81.             mclv( item_id: 'plst', alignment: align_fill, height: gListHeight, width: gRowWidth, next_tab: 'add ' );
  82.             
  83.             view( alignment: align_right, align_children: align_row )
  84.             {
  85.                 button( item_id: 'add ', name: '$$$/Dialogs/Multimedia/RenditionSettings/Add', next_tab: 'edit' );
  86.                 button( item_id: 'edit', name: '$$$/Dialogs/Multimedia/RenditionSettings/Edit', next_tab: 'remv' );
  87.                 button( item_id: 'remv', name: '$$$/Dialogs/Multimedia/RenditionSettings/Remove' );
  88.             }
  89.         }
  90.     }
  91. }
  92.