Commit Graph

117 Commits

Author SHA1 Message Date
François Revol
6f80a9801f Some script for a crude convertion from Hugo to Pandoc
I wrote this to make a print copy of my lenovo blog post.

Change-Id: Id39bfda3d95532a4049b58d9008b695f340513ed
2022-05-29 23:29:46 +02:00
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
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
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
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
François Revol
d780e243ad dev-perso: check for a TODO list and print first 5 items 2016-01-07 23:23:11 +01:00
François Revol
804718bbfb dev-perso: check for git first 2016-01-07 23:19:16 +01:00
François Revol
39d6c466d8 dev-perso: remove unused password stuff 2016-01-07 22:46:58 +01:00
François Revol
0fe022fd0d Add a little script to generate a montage of all icons
This needs the 'montage' command from ImageMagick.
(it will install it with pkgman if missing)

It first uses 'translate' to convert Icon-O-Matic files to PNG,
then makes a montage with the icon titles.

Run it from the top source folder under Haiku, it might take a while.
2016-01-01 05:53:38 +01:00
François Revol
a02541b9b3 HardwareChecker: of course now netcat is called 'nc' again... 2015-11-01 03:08:41 +01:00
François Revol
894526b51a HardwareChecker: try to install the netcat package
and do it before trying to use it.
2015-11-01 03:05:13 +01:00
François Revol
05f06a9065 Update this script to match pkgman behaviour
We don't need to move away older packages anymore.

Probably not useful either to stop Deskbar,
but let's just keep that for now.
2014-08-04 00:21:58 +02:00
François Revol
0754c31959 Add a simple script to identify where packages come from
There is probably a simpler way, but it helps finding
which packages were installed manually.
2014-07-20 22:15:25 +02:00
François Revol
8e8f7748d3 Update the HardwareChecker script
to work post-PM, however nothing makes any use of it yet.
2014-03-05 02:06:55 +01:00
François Revol
5143323fb6 myupdate: Close and restart Deskbar on update
Close Deskbar before trying to update and restart it afterward.
This way the addons are restored as they were before.
2014-01-09 17:08:22 +01:00
François Revol
e6eaad8615 A little script which takes care of updating system packages
It checks for updates, asks the user to reboot,
then moves old packages out and re-adds ProcessController
and NetworkStatus to the Deskbar.
2013-12-29 11:49:58 +01:00
François Revol
4373e37dd8 Hide error when cd-ing out of the git tree 2012-11-03 00:18:54 +01:00
François Revol
a71c00d314 Work in progress supybot plugin for developer-related commands
* most useful one for now is !error which acts much like /bin/error
* other useful commands like !haiku, !trout or !jlg
TODO: make the fortunes file path a config option.
2012-09-27 23:17:05 +02:00
François Revol
70449c90d9 dev-perso: Add current branch name in window title for git
* when the project uses git, include the current branch name
in the terminal window title
2012-08-22 01:16:15 +02:00
François Revol
3af608ada5 Fix fossil SCM update command
* fossil update should do a pull on its own anyway.
2012-05-15 20:25:34 +02:00
François Revol
b8c19d314d Fix fossil checkout filename. 2012-04-21 15:28:48 +02:00
François Revol
fce97ba360 Add support for the fossil scm
Rework scm tests.
Add a test for fossil checkouts.
2012-04-21 10:31:33 +02:00
François Revol
aa29a30426 Fix cutting names of views containing spaces. 2012-03-23 00:37:29 +01:00
François Revol
d4ad358195 Added 'devup' function to autoupdate projects
* scans projects for the AUTOUP tag in the .profile script.
* runs the $DEVUPCMD sequentially with the needed environment.
2012-02-23 02:39:09 +01:00
François Revol
9130cabf87 Cleanup
* separate unrelated code.
* remove "function" bashism.
* add a possible update command override variable $DEVUPCMD that is pushed to the history.
2012-02-23 02:38:22 +01:00
François Revol
378601a77e Make sure /dev/mem is published before using dmidecode as the current version doesn't use /dev/misc/mem (pending patch to fix it). This allows to fill in machine vendor and name automatically and more precisely.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-11-02 13:13:08 +00:00
François Revol
71f92c6439 Check for and use dmidecode if present, to get the exact vendor and machine identification, which should be much more reliable than the user.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-11-01 15:02:06 +00:00
François Revol
6db5b8c639 Use a fake site for testing...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-29 01:34:08 +00:00
Joseph Prostko
5dfed04886 * Fix a couple of spelling mistakes, one which affects functionality
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-26 02:32:59 +00:00
François Revol
6f6d1e36fd Missed the most important: machine infos.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 17:43:33 +00:00
François Revol
18b34d36b7 Put radio buttons in columns. Tried to use the user guide css but it doesn't like having DIV elements everywhere.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42916 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 17:16:44 +00:00
François Revol
9191eeb755 Add missing name attribute so the field does get sent as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42915 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 16:53:58 +00:00
François Revol
2362652a4b Make it look a little better.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42914 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 16:43:26 +00:00
François Revol
19618f8bba Better message.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 16:25:57 +00:00
François Revol
6c278c3b97 Make sure we close previous instances of netcat and ignore empty files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 16:14:49 +00:00
François Revol
93b9886a44 Add some notify calls to give visual indication of the script working. Doesn't take too much time but...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42911 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 16:06:51 +00:00
François Revol
9829800d2c A prototype of hardware reporting form generating script for the compatibility list.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-10-25 15:49:39 +00:00
François Revol
ac078a5b11 Add a global setting for audio support. Add some support for logging though not used. Some other fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-04 08:28:04 +00:00
François Revol
e8cd700741 Check for Bazaar SCM and push "bzr update" to history.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-02 15:34:15 +00:00
François Revol
f1177f3673 Fix Copyright years.
The official MIME type for mp3 is audio/mpeg.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39352 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 22:59:58 +00:00
François Revol
c3159d4a01 - fix favicon url,
- more support for sound, it's enabled now but not activated by default, and needs an experimental patch of mine on QEMU,
- add a .pls playlist.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39351 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 22:57:26 +00:00
François Revol
dfc8a217db Check for the unspecialized language code too when probing for a keymap. This way browsers reporting 'fr-fr' only will get fr keymap before other languages are tried.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-06 02:50:38 +00:00
François Revol
cf8d18c0a5 Only include themes conditionnally, in case one symlinks from the osdrawer svn working copy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-12 23:26:48 +00:00
François Revol
5c4b63b505 Theme Manager has been migrated to http://dev.osdrawer.net/projects/thememanager ...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-12 08:01:05 +00:00
François Revol
e7d5c75dce Small script to bootstrap Haiku from Haiku.
It downloads the latest image, mounts it, copy files over the target partition, copy extra files, schedules installing optional packages on next reboot and runs makebootable.
Use with caution.

Grenoble rulz!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38000 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-10 10:03:11 +00:00