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

  1. gValidNoteWidth = max_char_width() * 22;
  2. gValidNoteHeight = gStaticTextHeight * 9;
  3.  
  4. gMaxButtonWidth = 25 + max(
  5.     zstring_width(zstring: '$$$/Dialogs/SigProperties/ShowCertificateButton'),
  6.     zstring_width(zstring: '$$$/Dialogs/SigProperties/ImportCertificateButton'));
  7.  
  8. gPropertyLabelWidth = max(
  9.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Name'),
  10.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Date'),
  11.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/ContactInfo'),
  12.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Reason'),
  13.     zstring_width(zstring: '$$$/Dialogs/SigProperties/SigInfo/Location'));
  14.  
  15. dialog(name: '$$$/Dialogs/SigProperties', target_id: 'name' )
  16. {
  17.     group()
  18.     {
  19.         cluster(name: '$$$/Dialogs/SigProperties/ValidInfo/ClusterName', align_children: align_distribute, alignment: align_fill )
  20.         {
  21.             picture(item_id: 'icon', width: 32, height: 32);
  22.             static_text(item_id: 'ValT', width: gValidNoteWidth, height: gValidNoteHeight );
  23.             button(item_id: 'ValB', name: '$$$/Dialogs/SigProperties/SigInfo/ValidateButton');
  24.         }
  25.         cluster(name: '$$$/Dialogs/SigProperties/SigInfo/ClusterName', alignment: align_fill, align_children: align_left)
  26.         {
  27.             view(align_children: align_row, alignment: align_fill)
  28.             {
  29.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Name', width: gPropertyLabelWidth, alignment: align_right);
  30.                 edit_text(item_id: 'name', readonly: true, alignment: align_fill);
  31.                 button(item_id: 'cert', name: '$$$/Dialogs/SigProperties/ShowCertificateButton', width: gMaxButtonWidth);
  32.             }
  33.             view(align_children: align_row, alignment: align_fill)
  34.             {
  35.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Date', width: gPropertyLabelWidth, alignment: align_right);
  36.                 edit_text(item_id: 'date', readonly: true, alignment: align_fill);
  37.                 button(item_id: 'impo', name: '$$$/Dialogs/SigProperties/ImportCertificateButton', width: gMaxButtonWidth);
  38.             }
  39.             view(align_children: align_row, alignment: align_fill)
  40.             {
  41.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Reason', width: gPropertyLabelWidth, alignment: align_right);
  42.                 edit_text(item_id: 'reas', readonly: true, alignment: align_fill);
  43.             }
  44.             view(align_children: align_row, alignment: align_fill)
  45.             {
  46.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Location', width: gPropertyLabelWidth, alignment: align_right);
  47.                 edit_text(item_id: 'loca', readonly: true, alignment: align_fill);
  48.             }
  49.             view(align_children: align_row, alignment: align_fill)
  50.             {
  51.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/ContactInfo', width: gPropertyLabelWidth, alignment: align_right);
  52.                 edit_text(item_id: 'cont', readonly: true, alignment: align_fill);
  53.             }
  54.             view(align_children: align_row, alignment: align_fill)
  55.             {
  56.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/MDP', width: gPropertyLabelWidth, alignment: align_right);
  57.                 edit_text(item_id: 'dete', readonly: true, alignment: align_fill);
  58.             }
  59.             view(align_children: align_row, alignment: align_fill)
  60.             {
  61.                 static_text(name: '$$$/Dialogs/SigProperties/SigInfo/Method', width: gPropertyLabelWidth, alignment: align_right);
  62.                 edit_text(item_id: 'filt', readonly: true, alignment: align_fill);
  63.             }
  64.             view(align_children: align_row, alignment: align_fill)
  65.             {
  66.                 picture(item_id: 'ico2', width: 16, height: 15);
  67.                 static_text(item_id: 'not2', name: '$$$/Dialogs/SigProperties/InfoNote' );
  68.             }
  69.  
  70.         }
  71.         cluster(item_id: 'RevC', name: '$$$/Dialogs/SigProperties/Revision/ClusterName', align_children: align_row, alignment: align_fill )
  72.         {
  73.             static_text(item_id: 'RevT', name: '$$$/Dialogs/SigProperties/Revision/RevisionText', alignment: align_fill, height: gStaticTextHeight * 2 );
  74.             button(item_id: 'RevB', name: '$$$/Dialogs/SigProperties/Revision/RevisionButton');
  75.         }
  76.  
  77.          view(align_children: align_right, alignment: align_fill)
  78.         {
  79.             view(align_children: align_top)
  80.             {
  81.                 button(item_id: 'LegB', name: '$$$/Dialogs/LegalNoticeButton');
  82.                 button(item_id: 'Okay', name: '$$$/Dialogs/CloseButton');
  83.             }
  84.         }
  85.     }
  86. }