Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
3.5 KiB

  1. //
  2. // cpview.uix
  3. //
  4. // This file contains the 'structure' of the Control Panel UI
  5. //
  6. #define ALIGN_LEFT 0
  7. #define ALIGN_TOP 0
  8. #define ALIGN_RIGHT 1
  9. #define ALIGN_BOTTOM 1
  10. #define ALIGN_CENTER 2
  11. #define ALIGN_JUSTIFY 3
  12. #define FALSE 0
  13. #define TRUE 1
  14. /*****************************************************
  15. * Element resources
  16. *****************************************************/
  17. //
  18. // Link items
  19. //
  20. <linkelement resid=AppletLink layout=borderlayout()>
  21. <element id=atom(icon) layoutpos=left/>
  22. <element layoutpos=client layout=flowlayout(0,ALIGN_CENTER,0,0)>
  23. <element id=atom(title) layoutpos=client/>
  24. </element>
  25. </linkelement>
  26. <linkelement resid=TaskLink layout=borderlayout()>
  27. <element id=atom(icon) layoutpos=left/>
  28. <element id=atom(title) layoutpos=client/>
  29. </linkelement>
  30. <linkelement resid=CategoryLink layout=borderlayout()>
  31. <element id=atom(icon) layoutpos=left/>
  32. //
  33. // Enclose the title in an element with flowlayout to vertically
  34. // center the text with respect to the icon. What we really need
  35. // is a contentalign value called "wrapleftvcenter"
  36. //
  37. <element layoutpos=client layout=flowlayout(0,ALIGN_CENTER,0,0)>
  38. <element id=atom(title) layoutpos=top/>
  39. </element>
  40. </linkelement>
  41. //
  42. // Primary pane for Simple View with category list.
  43. //
  44. <element resid=CategoryList id=atom(view) sheet=styleref(CategoryListSS) layout=borderlayout()>
  45. <element id=atom(separator) layoutpos=left width=1/>
  46. <scrollviewer sheet=styleref(ScrollerSS) layoutpos=client xscrollable=false>
  47. <element id=atom(watermark) layout=filllayout()>
  48. <element id=atom(container) sheet=styleref(CategoryListSS) layout=verticalflowlayout(0,0,0)>
  49. <element id=atom(directive) sheet=styleref(DirectiveSS)/>
  50. <element id=atom(categorylist) layout=gridlayout(5,2)/>
  51. </element>
  52. </element>
  53. </scrollviewer>
  54. </element>
  55. //
  56. // Primary pane for Simple View of a category.
  57. //
  58. <element resid=CategoryView id=atom(view) sheet=styleref(CategoryViewSS) layout=borderlayout()>
  59. <element id=atom(separator) layoutpos=left width=1/>
  60. <element id=atom(banner) layoutpos=top layout=filllayout() sheet=styleref(BannerSS)>
  61. <element layout=borderlayout()>
  62. <element id=atom(header) layoutpos=top layout=borderlayout() height=35rp>
  63. <element id=atom(title) layoutpos=client/>
  64. </element>
  65. </element>
  66. <element id=atom(iconsite) layout=borderlayout()>
  67. <element id=atom(icon) layoutpos=left/>
  68. </element>
  69. </element>
  70. <scrollviewer sheet=styleref(ScrollerSS) layoutpos=client xscrollable=false>
  71. <element id=atom(watermark) layout=filllayout()>
  72. <element id=atom(container) sheet=styleref(CategoryViewSS) layout=verticalflowlayout(0,0,0)>
  73. <element id=atom(barricadetitle) sheet=styleref(BarricadeSS)/>
  74. <element id=atom(barricademsg) sheet=styleref(BarricadeSS)/>
  75. <element id=atom(directive) sheet=styleref(DirectiveSS)/>
  76. <element id=atom(categorytasklist) layoutpos=top layout=verticalflowlayout(0,0,0)/>
  77. <element id=atom(directive2) layoutpos=top sheet=styleref(DirectiveSS)/>
  78. <element id=atom(appletlist) layoutpos=top layout=gridlayout(-1,2)/>
  79. </element>
  80. </element>
  81. </scrollviewer>
  82. </element>