ui_Classic 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. #default user interface.
  2. #120203 rodin.s: internationalized.
  3. #120224 handle translated help.htm
  4. #120504 some files moved into /tmp/petget
  5. #120515 calls to /tmp/petget/filterpkgs.results.postfilter.sh replace by /usr/local/petget/postfilterpkgs.sh.
  6. #120527 first column of tree now an icon.
  7. #120529 app icons in tree. variable FLG_APPICONS created in pkg_chooser.sh
  8. #120811 category field now supports sub-category |category;subcategory|, use as icon in ppm main window.
  9. #121113 "Calculate" is old name, top-level menu category is now "Business".
  10. #130330 GUI filter. see also filterpkgs.sh, pkg_chooser.sh, ui_Ziggy.
  11. #130331 more GUI filter options.
  12. export TEXTDOMAIN=petget___ui_Classic
  13. export OUTPUT_CHARSET=UTF-8
  14. APPICONXMLINSERT=' icon-column="1"' #120811 each line is format: abiword0-1.2.3|subcategory|description of abiword|stuff
  15. touch /var/local/petget/bb_category
  16. if [ "`cat /var/local/petget/bb_category`" = "true" ]; then
  17. BBCATEGORY="<radiobutton><label>$(gettext 'BuildingBlock')</label><action>/usr/local/petget/filterpkgs.sh BuildingBlock</action><action>refresh:TREE1</action></radiobutton>"
  18. else
  19. BBCATEGORY=""
  20. fi
  21. #120224 handle translated help.htm
  22. LANG1="${LANG%_*}" #ex: de
  23. HELPFILE="/usr/local/petget/help.htm"
  24. [ -f /usr/local/petget/help-${LANG1}.htm ] && HELPFILE="/usr/local/petget/help-${LANG1}.htm"
  25. DEFGUIFILTER="$(cat /var/local/petget/gui_filter)" #130330 see pkg_chooser.sh, and below.
  26. #130330 $GUIONLYSTR $ANYTYPESTR are exported from pkg_chooser.sh. 130331 also $GUIEXCSTR $NONGUISTR
  27. export MAIN_DIALOG="<window title=\"$(gettext 'Puppy Package Manager')\" icon-name=\"gtk-about\">
  28. <vbox>
  29. <vbox space-fill=\"false\" space-expand=\"false\">
  30. <frame $(gettext 'Repo:')>
  31. <hbox scrollable=\"true\">
  32. ${DB_ORDERED}
  33. <text space-fill=\"true\" space-expand=\"true\"><label>\"\"</label></text>
  34. <height>64</height>
  35. </hbox>
  36. </frame>
  37. </vbox>
  38. ${xFIRSTCHARS}
  39. <hbox>
  40. <vbox spacing=\"1\" visible=\"false\">
  41. <radiobutton><label>$(gettext 'Desktop')</label><action>/usr/local/petget/filterpkgs.sh Desktop</action><action>refresh:TREE1</action></radiobutton>
  42. <radiobutton><label>$(gettext 'System')</label><action>/usr/local/petget/filterpkgs.sh System</action><action>refresh:TREE1</action></radiobutton>
  43. <radiobutton><label>$(gettext 'Setup')</label><action>/usr/local/petget/filterpkgs.sh Setup</action><action>refresh:TREE1</action></radiobutton>
  44. <radiobutton><label>$(gettext 'Utility')</label><action>/usr/local/petget/filterpkgs.sh Utility</action><action>refresh:TREE1</action></radiobutton>
  45. <radiobutton><label>$(gettext 'Filesystem')</label><action>/usr/local/petget/filterpkgs.sh Filesystem</action><action>refresh:TREE1</action></radiobutton>
  46. <radiobutton><label>$(gettext 'Graphic')</label><action>/usr/local/petget/filterpkgs.sh Graphic</action><action>refresh:TREE1</action></radiobutton>
  47. <radiobutton><label>$(gettext 'Document')</label><action>/usr/local/petget/filterpkgs.sh Document</action><action>refresh:TREE1</action></radiobutton>
  48. <radiobutton><label>$(gettext 'Business')</label><action>/usr/local/petget/filterpkgs.sh Business</action><action>refresh:TREE1</action></radiobutton>
  49. <radiobutton><label>$(gettext 'Personal')</label><action>/usr/local/petget/filterpkgs.sh Personal</action><action>refresh:TREE1</action></radiobutton>
  50. <radiobutton><label>$(gettext 'Network')</label><action>/usr/local/petget/filterpkgs.sh Network</action><action>refresh:TREE1</action></radiobutton>
  51. <radiobutton><label>$(gettext 'Internet')</label><action>/usr/local/petget/filterpkgs.sh Internet</action><action>refresh:TREE1</action></radiobutton>
  52. <radiobutton><label>$(gettext 'Multimedia')</label><action>/usr/local/petget/filterpkgs.sh Multimedia</action><action>refresh:TREE1</action></radiobutton>
  53. <radiobutton><label>$(gettext 'Fun')</label><action>/usr/local/petget/filterpkgs.sh Fun</action><action>refresh:TREE1</action></radiobutton>
  54. ${BBCATEGORY}
  55. ${ALLCATEGORY}
  56. <variable>CATEGORY_FIELD</variable>
  57. </vbox>
  58. <vbox>
  59. <tree column-resizeable=\"false|false\">
  60. <label>$(gettext 'Package|Description')</label>
  61. <height>280</height><width>668</width>
  62. <variable>TREE1</variable>
  63. <input${APPICONXMLINSERT}>cat /tmp/petget/filterpkgs.results.post</input>
  64. <action>/usr/local/petget/installpreview.sh</action>
  65. <action>/usr/local/petget/finduserinstalledpkgs.sh</action>
  66. <action>refresh:TREE2</action>
  67. <action signal=\"button-release-event\">/usr/local/petget/installpreview.sh</action>
  68. <action signal=\"button-release-event\">/usr/local/petget/finduserinstalledpkgs.sh</action>
  69. <action signal=\"button-release-event\">refresh:TREE2</action>
  70. </tree>
  71. </vbox>
  72. </hbox>
  73. <hbox>
  74. <vbox>
  75. <hbox>
  76. <text><label>$(gettext 'Show:')</label></text>
  77. <checkbox><default>${DEF_CHK_EXE}</default><label>EXE</label><variable>CHK_EXE</variable><action>/usr/local/petget/postfilterpkgs.sh EXE \$CHK_EXE</action><action>refresh:TREE1</action></checkbox>
  78. <checkbox><default>${DEF_CHK_DEV}</default><label>DEV</label><variable>CHK_DEV</variable><action>/usr/local/petget/postfilterpkgs.sh DEV \$CHK_DEV</action><action>refresh:TREE1</action></checkbox>
  79. <checkbox><default>${DEF_CHK_DOC}</default><label>DOC</label><variable>CHK_DOC</variable><action>/usr/local/petget/postfilterpkgs.sh DOC \$CHK_DOC</action><action>refresh:TREE1</action></checkbox>
  80. <checkbox><default>${DEF_CHK_NLS}</default><label>NLS</label><variable>CHK_NLS</variable><action>/usr/local/petget/postfilterpkgs.sh NLS \$CHK_NLS</action><action>refresh:TREE1</action></checkbox>
  81. </hbox>
  82. <hbox>
  83. <comboboxtext width-request=\"140\">
  84. <variable>FILTERCOMBOBOX</variable>
  85. <default>$DEFGUIFILTER</default>
  86. <item>$ANYTYPESTR</item>
  87. <item>$GUIONLYSTR</item>
  88. <item>GTK+2 $GUIONLYSTR</item>
  89. <item>GTK+3 $GUIONLYSTR</item>
  90. <item>Qt4 $GUIONLYSTR</item>
  91. <item>Qt4 $GUIEXCSTR KDE</item>
  92. <item>Qt5 $GUIONLYSTR</item>
  93. <item>Qt5 $GUIEXCSTR KDE</item>
  94. <item>$NONGUISTR</item>
  95. <action>echo -n \"\$FILTERCOMBOBOX\" > /var/local/petget/gui_filter</action>
  96. <action>/usr/local/petget/filterpkgs.sh</action>
  97. <action>refresh:TREE1</action>
  98. </comboboxtext>
  99. <text><label>\" \"</label></text>
  100. <text><label>$(gettext 'Help:')</label></text>
  101. <button><input file>/usr/local/lib/X11/mini-icons/mini-question.xpm</input><action>defaulthtmlviewer file://${HELPFILE} & </action></button>
  102. </hbox>
  103. <hbox>
  104. <text><label>$(gettext 'Find:')</label></text>
  105. <entry activates-default=\"true\">
  106. <variable>ENTRY1</variable>
  107. </entry>
  108. <button can-default=\"true\" has-default=\"true\" use-stock=\"true\">
  109. <label>$(gettext 'Go')</label>
  110. <action>/usr/local/petget/findnames.sh</action>
  111. <action>refresh:TREE1</action>
  112. <action>/usr/local/petget/show_installed_version_diffs.sh & </action>
  113. </button>
  114. </hbox>
  115. <button>
  116. <input file icon=\"gtk-preferences\"></input>
  117. <label>$(gettext 'Configure package manager')</label>
  118. <action>/usr/local/petget/configure.sh</action>
  119. <action>/usr/local/petget/filterpkgs.sh</action>
  120. <action>refresh:TREE1</action>
  121. </button>
  122. <button type=\"exit\">
  123. <input file icon=\"mini-exit\"></input>
  124. <label>$(gettext 'Exit package manager')</label>
  125. </button>
  126. </vbox>
  127. <text><label>\" \"</label></text>
  128. <frame $(gettext 'Installed packages')>
  129. <tree column-resizeable=\"false|false\">
  130. <label>$(gettext 'Package|Description')</label>
  131. <height>100</height><width>480</width>
  132. <variable>TREE2</variable>
  133. <input${APPICONXMLINSERT}>cat /tmp/petget/installedpkgs.results.post</input>
  134. <action>/usr/local/petget/removepreview.sh</action>
  135. <action>/usr/local/petget/finduserinstalledpkgs.sh</action>
  136. <action>refresh:TREE2</action>
  137. <action signal=\"button-release-event\">/usr/local/petget/removepreview.sh</action>
  138. <action signal=\"button-release-event\">/usr/local/petget/finduserinstalledpkgs.sh</action>
  139. <action signal=\"button-release-event\">refresh:TREE2</action>
  140. </tree>
  141. </frame>
  142. </hbox>
  143. </vbox>
  144. <action signal=\"configure-event\">show:CATEGORY_FIELD</action>
  145. </window>
  146. "
  147. export TEXTDOMAIN=petget___pkg_chooser.sh