Commit Graph

204 Commits

Author SHA1 Message Date
John Scipione
22758f1690 Revert "IK: align BTextView text rect/fix alignment"
This reverts commit a9b301871d.

hrev54496

Change-Id: Ife3c834ad98d330f04976d9adf3b1553e7aca034
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3153
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2020-08-19 03:38:41 +00:00
John Scipione
a9b301871d IK: align BTextView text rect/fix alignment
Preserve passed in text rect in fTextRext (unless in layout)
and create an internal version fAlignedTextRect which is used
in place of fTextRect. fAlignedTextRext is aligned to fit the
text rect bounds and grows to fit. fAlignedTextRect always grows
vertically but only grows horizontally if wrap is off.

Left-aligned text view's grow right, right-aligned ones grow left,
and center center aligned ones grow out.

Set fTextRect to bounds in _DoLayout().

Reduce left and right padding inside text views from full label
spacing to half label spacing. Unify padding between BTextControl
and BTextView.

Fixing padding also fixes right and center-aligned BTextViews.

Undo extra scrolling for non-left text views from hrev24130 fixing
a scrolling left and right with mouse bug when it shouldn't.

Replace max_c and min_c with std::max and std::min respectively.

Remove scrolling from one instance of BTextView::SetText as it
produced undesired results while editing a scrolled text view.

Set text rect in BTextControl::DoLayout() and ScreenSaver
PreviewView::AddPreview().

Don't add padding if BTextView::SetInsets() is called. Set insets
to 0 in Tracker "Edit name" setting which prevents default padding
from being added. This is so that when you rename a file in Tracker
the TextView appears on top of the file name text with no padding.

80 char limit fixes.

Fixes #1651 #12608 #13796 #15189 #15688

Change-Id: I8c6106effc612f49aff374f29742471628b5df86
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3054
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-08-06 11:51:15 +00:00
Alexander von Gluck IV
42f51416eb docker/bootstrap: ensure work volume exec, fix dependencies
Change-Id: I8b8d3a2f3b5a09063b183dc355407908cc2640f6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2763
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-05-21 14:03:24 +00:00
Alexander von Gluck IV
6f9861ccf7 docker/bootstrap: Add missing autopoint tools
Change-Id: I3dd3de1611f55d92b1f3c1edde28d4807a5aec8a
2019-12-09 13:45:14 -06:00
Alexander von Gluck IV
5c9ee5d028 docker/bootstrap: rename init to prep to be consistent
Change-Id: Ie6dc9061b13b23997f84a1ffe886d7e09c242cf0
2019-12-09 13:45:14 -06:00
Alexander von Gluck IV
b84574958d 3rdparty/docker/bootstrap: Fix a few potential mis-steps during the bootstrap init
Change-Id: I381fd7c00957e9d6797b0a79beacdef981593d3f
2019-12-09 10:28:45 -06:00
François Revol
96e0ae70d4 dump_windows: off-by-1
Change-Id: Iaa6bd350cbc8b07016f7a73a267107431e173e93
2019-09-17 19:56:34 +02:00
François Revol
f60531661b Add a dump_windows script to help with automating screenshoting
Oddly hey hangs when asking Pe, someone should investigate.

Change-Id: Ic94d0a2600ceae5f73ce11d5666b6a7abd54c0c0
2019-09-17 19:32:32 +02:00
Alexander von Gluck IV
0dbb417d43 3rdparty/docker/bootstrap: Fix defaults to be more generic and engine selection
Change-Id: I8a1e3c6bd641ea08a5a06985389269d708d94655
2019-07-01 14:07:03 -05:00
Alexander von Gluck IV
23c507bd15 docker/bootstrap: Add alternative fedora bootstrap container
Change-Id: I2e77f04a6b74858abf74a266a360dbf1dba4bed7
2019-06-19 11:25:05 -05:00
Alexander von Gluck IV
4b0251ba5b docker/bootstrap: Improve local code injection
Change-Id: Ib1961d829ef1418a9b64307c73a01bab3520279a
2019-06-19 11:24:18 -05:00
Augustin Cavalier
db408f1835 docker/bootstrap: Add libncurses-dev, needed by texinfo. 2019-06-15 16:21:25 -04:00
Alexander von Gluck IV
6018afcd9d docker/bootstrap: A few tweaks to your life easier
Change-Id: I591e108f9a5007423a5dee541e94b2be2342c5a8
2019-06-03 08:42:08 -05:00
Alexander von Gluck IV
d214cb5e13 3rdparty/docker/bootstrap: Fix repo urls that don't work anymore
Change-Id: I91b324984b1abc69bb015117a9505be0e6541294
2019-04-15 13:25:55 -05:00
Alexander von Gluck IV
c59cde3d69 riscv32: Drop any remaining mentions
* I added this early on, but to be honest, any interesting
  workstation class hardware would be riscv64.
* Since riscv32 is mostly embedded or low power, just drop.

Change-Id: Id36274c882c46e766268f2ab53eb1bd5f95227be
Reviewed-on: https://review.haiku-os.org/c/1352
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-04-04 13:23:32 +00:00
Alexander von Gluck IV
7a180033de docker/bootstrap: Fix sysroot stage variable
Change-Id: Icb7d83fd60d85a107601012f906ed7bf63f0eb61
2019-04-03 20:47:12 -05:00
Alexander von Gluck IV
e8b4366330 docker/bootstrap: Add sysroot stage flag to chroot tool
Change-Id: I7a6303cb11756b66d6d3379063f2402b3b38b7c6
2019-04-03 20:43:45 -05:00
Alexander von Gluck IV
7f94422796 docker/bootstrap: Add vim/nano to assist in bootstrap
Change-Id: I822e4af05754296a0c4415028230475ea7fb6be0
2019-03-19 13:33:12 -05:00
Alexander von Gluck IV
f4dca556ad bootstrap: Fix PS1 to solve entering chroot via haikuporter
Change-Id: Ida03530aea9ab5075af3a951cf5804d7c5694490
2019-02-15 11:51:11 -06:00
Alexander von Gluck IV
54624bda43 bootstrap: Add some tools to test bootstrap steps
Change-Id: Idac85d5b7c1fadd371efd13fa788a03656e82e66
2019-02-15 11:27:04 -06:00
Alexander von Gluck IV
c5287be1f3 3rdparty/bootstrap: kill any running bootstrap containers before rm
Change-Id: Id36226f121d4a75adc4799ae6cd8cddff2149b10
2018-11-20 14:53:13 -06:00
Alexander von Gluck IV
76392ecac7 3rdparty/configure.py: Add warning to generated BuildConfig
Change-Id: I00110260efebf07aef81bc618d7e07c73aa07fa4
2018-11-16 16:19:28 -06:00
Alexander von Gluck IV
4d182b9b57 3rdparty/configure.py: Allow infinite architecture additions
Change-Id: Icdc2cb6cd63a1cd425f71d05d2f6dec72c0a3a07
2018-11-15 16:32:22 -06:00
Alexander von Gluck IV
cf62f22ad0 3rdparty/configure.py: Fill out BuildConfig and Jamfile
Change-Id: I57eb5081710b0b8b596a997a460d4d607e97d543
2018-11-15 14:45:30 -06:00
Alexander von Gluck IV
535dbc1368 3rdparty/configure.py: Experimental python configure script
Change-Id: I91c3fc194ca8e8c870f6f1b27c747d9e4d468ecc
2018-11-15 13:36:29 -06:00
Alexander von Gluck IV
8850049390 docker/bootstrap: Add missing pkg-config for ICU
* ARM now gets up to the ICU build failures. (yay?)

Change-Id: Iaad978fe86f8cbb57e553bc3584bd8351559c7dc
2018-11-04 09:13:24 -06:00
Alexander von Gluck IV
3a92284113 docker/bootstrap: Make README.md a bit more detailed
Change-Id: If095b584cd99521770280533359da5024ff745bf
2018-11-04 09:05:15 -06:00
Alexander von Gluck IV
1b7e0197c1 docker/bootstrap: zlib needs cmake
Change-Id: I460f811bd2ea144ea8121772024e19686e2fa9bb
2018-11-04 09:04:48 -06:00
Alexander von Gluck IV
9f35df2324 docker/bootstrap: Add --debug to get better haikuporter debug output
Change-Id: I8e9a093a28c96b334f3747d1624b9ee6d5fe9844
2018-11-04 08:37:54 -06:00
Alexander von Gluck IV
bae2263db9 docker/bootstrap: Add extra gcc bootstrap requirements
Change-Id: Icacba4faaaab7e9af2b04225f99ef00ea4753606
2018-11-02 22:32:12 -05:00
Alexander von Gluck IV
131f09907e docker/bootstrap: Add a few tools to bootstrap in a container
* The bootstrap process will pick up on local toolchains such
  as clang and use them instead of the correct gcc cross-tools.
* This limits environmental factors which can break bootstrap.

Change-Id: Iacdd2a44cf26e18f838c9251fb9eddfbcb12565e
2018-11-02 15:12:04 -05:00
Augustin Cavalier
faf38d0fc0 3rdparty/qtcreator: bash, not sh. 2018-08-01 18:23:15 -04:00
Augustin Cavalier
eee9114c2d 3rdparty/qtcreator: Add missing copyright notice. 2018-06-30 20:09:38 -04:00
Augustin Cavalier
b31cb92f29 3rdparty/qtcreator: Support for multiple directories in one project. 2018-06-24 23:52:09 -04:00
Alexander von Gluck IV
8b4c84e838 3rdparty/unbootstrap: Correct source packages as well 2018-03-08 10:45:59 -06:00
Alexander von Gluck IV
cbad07e314 validateRepoFile: A quick validation of Jam repository definitions
Change-Id: I4e0b23dbb92a8c2377ad6e66cf63c499b66ba3ac
2018-03-06 17:39:46 -06:00
Augustin Cavalier
439d2cb806 3rdparty: Delete useless cppcheck script. 2017-12-17 17:52:01 -05:00
Alexander von Gluck IV
46f7052c65 3rdparty/licenseReport: Add seperate LGPL checks 2017-12-17 09:08:41 -06:00
Alexander von Gluck IV
ccfffc0f6d docker/cross-compiler: Updates + improvements 2017-12-13 14:40:11 -06:00
Alexander von Gluck IV
453dc171ae 3rdparty/kallisti5: Tool to compress running sysroot into a tar.gz 2017-12-13 08:36:33 -06:00
Alexander von Gluck IV
0674e71ca5 3rdparty/kallisti5/licenseReport: Add FSF check for GPL 2017-11-28 17:13:38 -06:00
Alexander von Gluck IV
ef854aff3a 3rdparty/kallisti5: License Guess Tool
* Pair it with a find, and pretty handy to
  highlight sources which have a non-standard,
  missing, or incompatible license.
2017-11-28 10:25:54 -06:00
Alexander von Gluck IV
acf75a66d6 3rdparty/kallisti5: Update iommu guide for vfio 2017-09-25 18:37:20 -05:00
Jessica Hamilton
9533c3e921 docker: tools for creating a container with Haiku cross-compilers.
* This also includes the package tool for easy use of installing
  dependencies in a container.
* Pre-built docker images are also available at
  https://hub.docker.com/r/haiku/cross-compiler/
2017-09-11 07:06:52 +12:00
Augustin Cavalier
7abafe9f3f Revert "Revert "Switch from DejaVu to Noto font""
This reverts commit 2423ba8470.
2017-02-19 12:09:33 -05:00
Augustin Cavalier
2423ba8470 Revert "Switch from DejaVu to Noto font"
This reverts commit 945566ff43.

As discussed on the mailing lists and with Humdinger off-list:
 * The general design concensus tends slightly towards DejaVu, as metrics
   of DejaVu look much better (DejaVu 12 and Noto 13 are roughly the same size,
   but Noto has much wider margins with that)
 * While Noto does have a wider set of fonts with support for lots of
   different languages, DejaVu actually has built-in support for more
   Unicode languages (the default Noto has, as far as I can tell, only
   Latin/Greek/Cyrillic [2416 glyphs], while DejaVu also has Armenian, Georgian,
   and a few other scripts too [5119 glyphs].)
 * The worse rendering of DejaVu appears to have been somewhat rectified by
   disabling the average-based subpixel filter in app_server.
2017-02-18 14:36:36 -05:00
Humdinger
945566ff43 Switch from DejaVu to Noto font
As discussed, Noto renders much better with freetype 2.7 [1].
The DejaVu package is still in the HaikuPorts repo and can be installed
manually just like all the other available fonts.

[1] http://www.freelists.org/post/haiku-development/freetype-update-from-265-to-27
2016-11-27 19:04:26 +01:00
Augustin Cavalier
71452e9833 3rdparty/qtcreator: Totally new version of the create_project_file script.
Qt Creator now has a "generic project" mode, in which it just acts
as an auto-completing code editor. I tried using it on the entire
Haiku project at once, but it's just too much for Qt Creator to handle.
So instead, I created a script which generates project files for
any given directory in the tree, as well as sets up the proper include
directories. The project files themselves are .gitignore'd; use the script
to create them.

Works on Haiku. Did not test on Linux with a crosstools setup; but
it should work there too.
2016-10-22 02:09:56 -04:00
François Revol
faf79e7f78 Add a little script to configure a dev VM
I wrote that long ago for my packaging tutorial at RMLL, would probably
needs some fixing.
2016-10-20 01:04:37 +02:00
François Revol
836a148321 dev-perso: also check for lowercase todo[.org] 2016-05-22 21:06:19 +02:00