Main_window_layout.html 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <!DOCTYPE html>
  2. <html dir="ltr">
  3. <head>
  4. <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  5. <title>Archive/App/UI/Main window layout - XOWA</title>
  6. <link rel="shortcut icon" href="https://gnosygnu.github.io/xowa/xowa_logo.png" />
  7. <link rel="stylesheet" href="https://gnosygnu.github.io/xowa/xowa_common.css" type="text/css">
  8. </head>
  9. <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject skin-vector action-submit vector-animateLayout" spellcheck="false">
  10. <div id="mw-page-base" class="noprint"></div>
  11. <div id="mw-head-base" class="noprint"></div>
  12. <div id="content" class="mw-body">
  13. <h1 id="firstHeading" class="firstHeading"><span>Archive/App/UI/Main window layout</span></h1>
  14. <div id="bodyContent" class="mw-body-content">
  15. <div id="siteSub">From XOWA: the free, open-source, offline wiki application</div>
  16. <div id="contentSub"></div>
  17. <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
  18. <p>
  19. <b>This section is obsolete. Future versions will change the layout mechanism considerably.</b>
  20. </p>
  21. <p>
  22. All sections are designed to be copied and pasted directly to xowa.gfs.
  23. </p>
  24. <h2>
  25. <span class="mw-headline" id="Increase_font_size_to_10">Increase font size to 10</span>
  26. </h2>
  27. <p>
  28. This section increases the font size to 10 and adjusts the sizes/positions accordingly
  29. </p>
  30. <p>
  31. The notes below provide rationale for the numbers if you want to increase to another size
  32. </p>
  33. <pre style='overflow: auto;'>
  34. app.gui.layout
  35. // each "btn" gets +1 width and +1 height
  36. .go_bwd_btn .size_rel_(' +1, +1').font_name_('Arial').font_size_(10).text_('&lt;').owner
  37. .go_fwd_btn .size_rel_(' +1, +1').font_name_('Arial').font_size_(10).text_('&gt;').owner
  38. // the url_box loses -2 width because both buttons gained +1 width; it still gets +1 height for the increased font size
  39. .url_box .size_rel_(' -2, +1').font_name_('Arial').font_size_(10).owner
  40. // start with -22 for Windows XP Classic; decrease height by 2 to handle the +1 height to the top row and the +1 height to the bottom row
  41. .html_box .size_rel_(' -8, -24').pos_rel_(' 0, 0').owner
  42. // the heights are increased by +1
  43. .find_box .size_rel_(' 0, +1').pos_rel_(' 0, 0').font_name_('Arial').font_size_(10).owner
  44. .prog_box .size_rel_(' 0, +1').pos_rel_(' 0, 0').font_name_('Arial').font_size_(10).owner
  45. .note_box .size_rel_(' 0, +1').pos_rel_(' 0, 0').font_name_('Arial').font_size_(10).owner
  46. ;
  47. </pre>
  48. <h2>
  49. <span class="mw-headline" id="Increase_font_size_to_30">Increase font size to 30</span>
  50. </h2>
  51. <p>
  52. A more extreme example: font gets changed to 30, so
  53. </p>
  54. <ul>
  55. <li>
  56. height must go to +26
  57. </li>
  58. <li>
  59. the buttons widths must go to +26
  60. </li>
  61. </ul>
  62. <pre>
  63. app.gui.layout
  64. .go_bwd_btn .size_rel_(' +26, +26').font_name_('Arial').font_size_(30).text_('&lt;').owner
  65. .go_fwd_btn .size_rel_(' +26, +26').font_name_('Arial').font_size_(30).text_('&gt;').owner
  66. .url_box .size_rel_(' -2, +26').font_name_('Arial').font_size_(30).owner
  67. .html_box .size_rel_(' -8, -76').owner
  68. .find_box .size_rel_(' 0, +26').font_name_('Arial').font_size_(30).owner
  69. .prog_box .size_rel_(' 0, +26').font_name_('Arial').font_size_(30).owner
  70. .note_box .size_rel_(' 0, +26').font_name_('Arial').font_size_(30).owner
  71. ;
  72. </pre>
  73. <h2>
  74. <span class="mw-headline" id="Use_absolute_positions">Use absolute positions</span>
  75. </h2>
  76. <p>
  77. Note that this will cause window resizing to have no effect (EX: shrink the window to 800, but the html_box will remain 1000)
  78. </p>
  79. <pre>
  80. app.gui.layout
  81. .html_box .mode_('abs').rect_abs_(' 1000, 1000, 0, 0').owner
  82. .go_bwd_btn .mode_('abs').rect_abs_(' 20, 20, 0, 1000').owner
  83. .go_fwd_btn .mode_('abs').rect_abs_(' 20, 20, 20, 1000').owner
  84. .url_box .mode_('abs').rect_abs_(' 20, 960, 40, 1000').owner
  85. .find_box .mode_('abs').rect_abs_(' 200, 20, 0, 1020').owner
  86. .prog_box .mode_('abs').rect_abs_(' 600, 20, 200, 1020').owner
  87. .note_box .mode_('abs').rect_abs_(' 200, 20, 800, 1020').owner
  88. ;
  89. </pre>
  90. </div>
  91. </div>
  92. </div>
  93. <div id="mw-head" class="noprint">
  94. <div id="left-navigation">
  95. <div id="p-namespaces" class="vectorTabs">
  96. <h3>Namespaces</h3>
  97. <ul>
  98. <li id="ca-nstab-main" class="selected"><span><a id="ca-nstab-main-href" href="index.html">Page</a></span></li>
  99. </ul>
  100. </div>
  101. </div>
  102. </div>
  103. <div id='mw-panel' class='noprint'>
  104. <div id='p-logo'>
  105. <a style="background-image: url(https://gnosygnu.github.io/xowa/xowa_logo.png);" href="http://xowa.org/" title="Visit the main page"></a>
  106. </div>
  107. <div class="portal" id='xowa-portal-home'>
  108. <h3>XOWA</h3>
  109. <div class="body">
  110. <ul>
  111. <li><a href="http://xowa.org/index.html" title='Visit the main page'>Main page</a></li>
  112. <li><a href="http://xowa.org/screenshots.html" title='See screenshots of XOWA'>Screenshots</a></li>
  113. <li><a href="https://www.youtube.com/watch?v=q0qbXYXEH6M" title="See a video of XOWA Desktop in action">Video</a></li>
  114. <li><a href="http://xowa.org/home/wiki/Help/Download_XOWA.html" title='Download the XOWA application'>Download XOWA</a></li>
  115. <li><a href="http://xowa.org/home/wiki/Dashboard/Image_databases.html" title='Download offline wikis and image databases'>Download wikis</a></li>
  116. </ul>
  117. </div>
  118. </div>
  119. <div class="portal" id='xowa-portal-started'>
  120. <h3>Getting started</h3>
  121. <div class="body">
  122. <ul>
  123. <li><a href="http://xowa.org/home/wiki/App/Setup/System_requirements.html" title='Get XOWA&apos;s system requirements'>Requirements</a></li>
  124. <li><a href="http://xowa.org/home/wiki/App/Setup/Installation.html" title='Get instructions for installing XOWA'>Installation</a></li>
  125. <li><a href="http://xowa.org/home/wiki/App/Import/Simple_Wikipedia.html" title='Learn how to set up Simple Wikipedia'>Simple Wikipedia</a></li>
  126. <li><a href="http://xowa.org/home/wiki/App/Import/English_Wikipedia.html" title='Learn how to set up English Wikipedia'>English Wikipedia</a></li>
  127. <li><a href="http://xowa.org/home/wiki/App/Import/Other_wikis.html" title='Learn how to set up other Wikipedias'>Other Wikipedias</a></li>
  128. </ul>
  129. </div>
  130. </div>
  131. <div class="portal" id='xowa-portal-android'>
  132. <h3>Android</h3>
  133. <div class="body">
  134. <ul>
  135. <li><a href="http://xowa.org/home/wiki/Android/Setup.html" title='Setup XOWA on your Android device'>Setup</a></li>
  136. <li><a href="https://www.youtube.com/watch?v=jsMTBxGweUw" title="See a video of XOWA Android in action">Video</a></li>
  137. </ul>
  138. </div>
  139. </div>
  140. <div class="portal" id='xowa-portal-help'>
  141. <h3>Help</h3>
  142. <div class="body">
  143. <ul>
  144. <li><a href="http://xowa.org/home/wiki/Help/About.html" title='Get more information about XOWA'>About</a></li>
  145. <li><a href="http://xowa.org/home/wiki/Help/Contents.html" title='View a list of help topics'>Contents</a></li>
  146. <li><a href="http://xowa.org/home/wiki/Help/Media.html" title='Read what others have written about XOWA'>Media</a></li>
  147. <li><a href="http://xowa.org/home/wiki/Help/Feedback.html" title='Questions? Comments? Leave feedback for XOWA'>Feedback</a></li>
  148. </ul>
  149. </div>
  150. </div>
  151. <div class="portal" id='xowa-portal-blog'>
  152. <h3>Blog</h3>
  153. <div class="body">
  154. <ul>
  155. <li><a href="http://xowa.org/home/wiki/Blog.html" title='Follow XOWA''s development process'>Current</a></li>
  156. </ul>
  157. </div>
  158. </div>
  159. <div class="portal" id='xowa-portal-links'>
  160. <h3>Links</h3>
  161. <div class="body">
  162. <ul>
  163. <li><a href="http://dumps.wikimedia.org/backup-index.html" title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
  164. <li><a href="https://archive.org/search.php?query=xowa" title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
  165. <li><a href="http://en.wikipedia.org" title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
  166. </ul>
  167. </div>
  168. </div>
  169. <div class="portal" id='xowa-portal-donate'>
  170. <h3>Donate</h3>
  171. <div class="body">
  172. <ul>
  173. <li><a href="https://archive.org/donate/index.php" title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->
  174. <li><a href="https://donate.wikimedia.org/wiki/Special:FundraiserRedirector" title="Support Wikipedia!">Wikipedia</a></li>
  175. <li><a href="http://xowa.org/home/wiki/Help/Donate.html" title="Support XOWA!">XOWA</a></li>
  176. </ul>
  177. </div>
  178. </div>
  179. </div>
  180. </body>
  181. </html>