Commit Graph
100 Commits
Author SHA1 Message Date
Adrien Destugues 3eb02f08d9 Style fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-08-01 17:19:54 +00:00
Adrien Destugues ab7cbe31c2 Always set the palette registers even if the head is not connected. This will not do anything bad (if the display is disabled, it has no
effect), and since the test was a bit too constraining (I have an LVDS panel on head A), it would prevent setting colors for the CMAP modes.

This finally gets the \n demo working from the original binary from BeOS, without any change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-31 18:11:26 +00:00
Adrien Destugues e1ac525ddf * Don't eat alt+space if there is only one input method available (the shortcut is meant to switch input methods)
Makes it useable in applications and less confusing. Fixes #6468.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-31 14:45:55 +00:00
Adrien Destugues a4506dd3e7 Fix reverse condition. This would lead to the view getting Pulse messages both from it's own MessageRunner and from BWindow.
No functional change intended :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-30 19:51:28 +00:00
Adrien Destugues cd4db9ee5d Update usb-floppy icon with a fixed one by jstressman (tweaks the persective and overall look of the icon). Thanks !
Fixes #6677.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-17 11:41:00 +00:00
Adrien Destugues eadad13a4f * Fix one more off-by-one error in the interpolating resampler
* Since it now doesn't crash anymore; set it as default.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 11:18:54 +00:00
Adrien Destugues 61215fd53d fix bugs in interpolating resampler :
* I got the downsampling version completely wrong. It should now be much better.
 * A small bug in the delta calculation sometimes caused an off-by-one read to the source and a crash of the media add-on server

Effect of this resampler can be heard very clearly using the following setup in Cortex :
 * Demo Audio producer producing a sinewave at any frequency (sampling rate is hardcoded at 44100Hz)
 * Audio output set to 48000 Hz
 * system mixer in between
select either resampler in the mixer and you'll hear the difference immediately.

Should finally fix #1351.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-16 09:15:21 +00:00
Adrien Destugues aeba7dc609 Leftover debug output. Thanks Ryan for watchiung!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-15 18:50:14 +00:00
Adrien Destugues a642bc78a3 Fix #7189 : linkcatkeys erases file with plain catalog data instead of writing it as a resource.
Was only a missing break in switch/case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-15 17:30:17 +00:00
Adrien Destugues d316dc57de Remove over-optimization trying not to redraw the background under slider's thumbs.
This gets sliders with custom, non-rectangle thumbs, like the one in APlayer or the example in the BeBook, working properly.
I hope it doesn't break anything - it doesn't seem to but I may have overlooked some pixels.

Fixes #7817.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-07-14 15:52:45 +00:00
Adrien Destugues 87ff4c051b Early work on a package manager GUI.
There is nothing functional yet, I just wanted to try some ideas from the GCI results.

Code is mostly based on Web+ download window, which hapenned to match the mockups pretty well.
Icon is derived from Zumi's work (mix of two different icons)
Icon handling for apps themselves and categories is not done yet, because it depends on how they will be handled by the backend we chose
The install/remove/info buttons don't do anything yet.

Things I'm not sure about :
 * What to put in the menu ? Should it replicate the icons at the bottom ?
 * How to browse categories ? Is a "go up" button enough ? Should we have a BPopupMenu with all categories in a tree (I don't like menutrees in BPopupMenus...) ? A BOutlineListView would be wasting space... any other idea ?
 * Should we keep textual buttons like this, or graphical ones like in the mockup ? Or maybe both ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40040 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 22:01:16 +00:00
Adrien Destugues 267479782d Various build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40033 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 17:02:32 +00:00
Adrien Destugues 58a25e2114 Missing part of MediaConverter patch. Was a problem with svn getting lost.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 15:57:26 +00:00
Adrien Destugues a27a534c3b Fix build. Waiting for a proper solution to translate these strings from GCI student.
Sorry for the problems.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 14:54:34 +00:00
Adrien Destugues 10e2c9e012 Patch by Mike Roll:localize DataTranslations. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:45:14 +00:00
Adrien Destugues f2758b750b Patch by Mike Roll: localize Mail preferences.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:44:39 +00:00
Adrien Destugues 4915d3ef43 Patch by Mike Roll: localize Notifications
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:43:54 +00:00
Adrien Destugues c9e8f97a95 Patch by Mike Roll as part of GCI: localize Screen.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40027 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:43:12 +00:00
Adrien Destugues 2813f49667 Pathc by Dziadek: localize Poorman. thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40026 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:42:21 +00:00
Adrien Destugues 518852fca7 Patch by Dziadek: localize IconOMatic
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:41:46 +00:00
Adrien Destugues 54526b1534 Patch by Dziadek: localize People.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40024 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:41:14 +00:00
Adrien Destugues ae0f70fc69 Patch by Dziadek : localize MediaConverter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:40:46 +00:00
Adrien Destugues d462be1157 Patch by dziadek: localize Magnify
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40022 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:39:59 +00:00
Adrien Destugues 238df8fb85 Patch by Dziadek as part of GCI : localize MediaPlayer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40021 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-29 10:38:58 +00:00
Adrien Destugues 3bd54e05be Patch by Mike Roll: i18n PowerStatus. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-24 10:04:00 +00:00
Adrien Destugues 95fcf73946 Patch by Mike Roll: i18n ProcessController
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-24 09:59:07 +00:00
Adrien Destugues 0e07d4c078 Patch by Mike Roll as part of GCI: i18n LaunchBox
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-24 09:52:32 +00:00
Adrien Destugues c9ea828200 Patch by Mike Roll as part of GCI: i18n screensaver preferences.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-24 09:42:38 +00:00
Adrien Destugues 825d265efd Patch by Mike Roll as part of GCI: Localize Time preflet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-24 09:33:21 +00:00
Adrien Destugues eaa5d3bcea 80 column fix for devices
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:44:51 +00:00
Adrien Destugues 5c87dff557 80-column limit for deskcalc
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39838 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:40:07 +00:00
Adrien Destugues 26c424b68f 80-column limit for cdplayer
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39837 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:37:20 +00:00
Adrien Destugues 7c2ffab858 Patch from Jason Fagnière (Protonux) as part of GCI :
* i18nize devices, charactermap, cdplayer, activitymonitor.

Thanks!

(note : there are some known 80-column problems in this patch)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39835 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-13 21:00:43 +00:00
Adrien Destugues c21853165d Sync catalogs from hta.
The following ones are not synced because the export from hta has a wrong fingerprint. Mail was sent to Travis in the hope we'll get a fix.

rm ../data/catalogs/apps/aboutsystem/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/be.catkeys 
rm ../data/catalogs/apps/diskprobe/fi.catkeys 
rm ../data/catalogs/apps/diskprobe/fr.catkeys 
rm ../data/catalogs/apps/diskprobe/ja.catkeys 
rm ../data/catalogs/apps/diskprobe/pl.catkeys 
rm ../data/catalogs/apps/diskprobe/pt_br.catkeys 
rm ../data/catalogs/apps/diskprobe/ru.catkeys 
rm ../data/catalogs/apps/diskprobe/uk.catkeys 
rm ../data/catalogs/apps/diskprobe/zh-hans.catkeys 
rm ../data/catalogs/apps/drivesetup/zh-hans.catkeys 
rm ../data/catalogs/apps/installedpackages/pl.catkeys 
rm ../data/catalogs/apps/mail/pl.catkeys 
rm ../data/catalogs/apps/terminal/fi.catkeys 
rm ../data/catalogs/apps/tv/zh-hans.catkeys 
rm ../data/catalogs/kits/tracker/fr.catkeys 
rm ../data/catalogs/preferences/shortcuts/zh-hans.catkeys 
rm ../data/catalogs/preferences/virtualmemory/zh-hans.catkeys 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39819 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-12 10:58:47 +00:00
Adrien Destugues 15352f8de6 Fix missing \fn.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39706 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-02 18:40:15 +00:00
Adrien Destugues 01c2a7f38f Some inprovements suggested by Stippi and tqh. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39697 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-01 20:12:28 +00:00
Adrien Destugues 2d14fc1b97 Major improvement to the support kit introduction, done as part of gci by InsDel (Thanks!).
Again, review welcome on this in order to decide if we carry on asking students to write api reference pages.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39696 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-01 19:40:02 +00:00
Adrien Destugues 6ec25bba48 Add documentation for BBox class, done by Clark Gaebel as part of GCI 2010.
I did rework the text a little.

I would like to get some careful review for this. Nielx put out the (valid) concern that he's not confident in random students with no previous Haiku experience to write the API reference.
I'd like to know if I should put online more of these tasks, or if I should stop now because the quality is too low.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39686 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-30 21:06:09 +00:00
Adrien Destugues 150b717e5b Fix crash in terminal : GetLinecolor was accessing lines with negative offsets.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39684 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-30 20:09:43 +00:00
Adrien Destugues 4d41072817 Remove useless comment. Thanks Ingo for watching out.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39671 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 17:38:19 +00:00
Adrien Destugues 627ced128b Use a better way to store the attributes for end of line. This should also fix some other bugs, as there were occasionalaccess to out-of-range chars.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39669 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-28 16:51:25 +00:00
Adrien Destugues 3096fb8154 Style fix as pointed out by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39664 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-27 21:15:43 +00:00
Adrien Destugues a8e3ab4f46 Enable the VBlank interrupt on pipe B for LVDS panels. This gets it working for me. Most stuff using BDirectWindowand synced drawing should now work better (\n and TVBack demos for example)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39655 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-26 20:36:40 +00:00
Adrien Destugues a753859956 * Insert an extra space when doing a CR. This ensures the latest attribute setup gets inserted somehow in the line before we go elsewhere.
This gets 256colors.pl to give the right output, as well as useable vim in TERM=xterm-color mode (as far as I can tell).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39578 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-22 20:12:16 +00:00
Adrien Destugues 384fe02234 * Use the attributes from the parser instead of trying to guess blindly when inserting a tab. This avoids strange things hapenning when a tab is inserted at the start of a line.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-22 19:21:56 +00:00
Adrien Destugues 95d7f28143 Sync catalogs from hta. There are still some bugs with some of them, sorry for the missing ones.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-08 21:24:04 +00:00
Adrien Destugues 101bdf05d0 * Use BUnicodeChar to decide if a character is space. This is slightly better than considering only ascii space.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-07 10:08:46 +00:00
Adrien Destugues a528bdee7f * Make ReadOlyBootPrompt look a bit nicer : don't use a regular BTextView but a custom view with an "haiku background leaf outline" below the text. The color and size of the leaf may still be altered, feel free to play around with it.
* Also do some changes to ReadOnlyBootPrompt layouting to include some insets and similar stuff.
  * Add country flags in the language selection menu
 * Modify locale roster method for getting a flag so it is a bit more tolerant. It is case insensitive on the country code, and also works if given a full locale code such as pt_BR.

Known problems :
 * The new BitmapTextView doesn't work well with the chinese text as it does line breaks only on space chars (0x20), and there is no such char in chinese text. However, the usual BTextView is also unable to do proper linebreaking. This should 
be solved  by using tools provided by ICU.
 * The way I altered LocaleRoster is not as good as it could be. Locales with variants such as zh-hans are not going to work (the computed country code is now 'NS'). Not sure there is a better way
 * The way the list is sorted in ReadOnlyBootPrompt is annoying as it prevents keyboard navigation. As the sorting changes each time you select a language, it's impossible to travel through the whole list. One possible solution is to do the 
language change on invoking an item. Another one is to sort the languages in a locale-neutral way.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39263 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-01 21:39:47 +00:00
Adrien Destugues ffad85060a * Remove the setting for a fixed cursor color. Instead, the cursor now inverts the colors of the char below it.
* This allows getting a cursor well visible both on black and white backgrouds.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-29 12:07:51 +00:00
Adrien Destugues 6389df937b * Bring back the fallback video mode selection in case both tries to read EDID info failed.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-10-23 20:05:24 +00:00
Adrien Destugues 8276f81e0c Some more catalogs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-30 11:34:29 +00:00
Adrien Destugues 0a9e47c7f9 Sync catalogs from hta. Not sure all of them are here...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38444 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-30 11:31:20 +00:00
Adrien Destugues 9b46a2b25d Fix more drawing problems in terminal, and remove an useless variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-29 10:43:54 +00:00
Adrien Destugues 355a38a098 Fix gcc4 build as well as logic error : the driver needlessly scanned some devices.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-28 09:35:15 +00:00
Adrien Destugues 18900042ce * Use defines for the SCSI commands instead of the numeric opcode directly
* Colorize the trace output for easier syslog reading
 * Add usb_floppy to the default image
 * disable error tracing


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-28 08:57:29 +00:00
Adrien Destugues 68f54d50f2 Better error handling : do not enter an endless loop in cases of errors, but report them to the caller.
Note this leads to KDL if there is a write error, so it may not be the best way for a floppy...

This allows the driver to uninitialize properly when all devices are unplugged, which in turns permits updating the driver without rebooting to unload it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 22:02:24 +00:00
Adrien Destugues 0a240bcefe Replace icon for the usb_floppy devices.
The floppy icon is based on zumi's one. changes done :
 * I made the floppy a bit thinner, it looked more like a zip100 cartridge
 * I added an USB logo (or something that more or less looks like one) on the floppy label
 * The logo only shows at big icon sizes since I couldn't get it looking good at small ones.

Feel free to improve.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 21:00:17 +00:00
Adrien Destugues a046d61f81 * Write operation data direction is obviously host-to-device
* Write operation will always return an error, one needs to send request sense until the write is actually done.
This gets floppy writing working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38406 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 20:17:12 +00:00
Adrien Destugues 027fabed60 Use block read and block write instead of regular read and write commands. Mounting the device read-only now works. Writing
is still not working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38405 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 17:54:04 +00:00
Adrien Destugues 87bfae8987 A floppy drive is a slow device, so we have to try many times before getting a result.
This gets read capaity working, the device shows up in drivesetup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 17:33:54 +00:00
Adrien Destugues 779ccf5c6d * Properly initialize the drive before attempting to access it
* Ask the drive for its status after each command we send, or else it locks up
THis get us as far as trying to read the drive capacity, but this still fails for some reason.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 17:00:57 +00:00
Adrien Destugues 156a187d0d * Fix test unit ready command (the device still stall, no idea why).
* Move the interrupt stuff inside the device structure
 * Some cleanup, added some more tracing fordebug purposes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38399 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 12:40:05 +00:00
Adrien Destugues 64286654bc This fixes redrawing bugs related to the selection in terminal (#6426). It should also avoid some other bugs related to
drawing whitespace at the start of a line but the behaviour is not perfect yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-27 08:43:40 +00:00
Adrien Destugues bbdb55154d Work In Progress (do not try yet!) driver for usb floppy drive.
This is loosely based on usb_disk, but uses a different protocol for sending the commands.
Refactoring is unfinished, so don't look at the style too muh, it will e fixed and cleaned up later.

Basic communication with the drive works (sending commands). Command themselves still mostly untested.
Command Blocks sent to the drive are most likely wrong and may erase your floppies or do any other weird things!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-26 20:28:54 +00:00
Adrien Destugues c1b432af8e Fix build with tracing enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38371 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-26 12:43:44 +00:00
Adrien Destugues a8a33a98ff Intel_extreme now centers the screen when one select a resolution smaller than the ne of the LVDS panel.
Also clean up the style and add some more TODOs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-26 09:13:41 +00:00
Adrien Destugues 124a502a7a Always set the LVDS panel to its native mode, except for the 'display' part.
This allows to use lower resolution screen modes with black border.

Added a set of TODOs :
 * The smaller scren is not centered, but aligned top-left
 * The base resolution used is the one reported from edid 1.1, because I'm still not sure how to parse EDID 1.2. This resolution is too small on my laptop, but it works.

Also added two ways of setting 8-to-6 dithering for 18-bit LVDS panel. No visible result for me, unfortunately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-25 15:06:49 +00:00
Adrien Destugues 0405fd3b15 Set the color depth for head B. This allows using 8,15, and 16-bit modes on lvds panels.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38349 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-25 09:46:48 +00:00
Adrien Destugues b1b8672a53 * Add usb class name to listusb output, as it can be useful to identify devices.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 19:16:21 +00:00
Adrien Destugues 6c9a11f9c4 Rename all zh-hans catalogs to zh_hans, as that's what's actually needed for the catalog chaining to work properly.
This makes the chinese localization more useable (not perfectly, we still lack a chinese font).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38341 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 18:38:27 +00:00
Adrien Destugues 4f5f77e6e4 Missing from previous commit. Sorry !
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 17:49:12 +00:00
Adrien Destugues 9e7738992b Set the radiobuttons depending on the currency symbol position.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 16:39:29 +00:00
Adrien Destugues bca1690bfa Preliminary support for adjusting the money format in the locale preflet :
* API for formatting a number and recovering the field positions
 * Some changes in the preflet to display the formatted number and start filling in the fields.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38335 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 16:07:39 +00:00
Adrien Destugues 0767bd3a8b Use the EDID info from LVDS panels :
* Read the EDID info on both port A (analog VGA monitor) and C (LVDS panel)
 * If an LVDS panel is detected, report the EDID resolutions instead of the BIOs settings

This fixes #6326, likely #5096, and possibly some others intel_extreme problems. Please test.
On the other hand, this make the screen preflet show the full list of more reported by the LVDS panel. As we don't support 
scaling, some of these modes are unuseable and lead to a garbled screen.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38329 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-24 11:06:50 +00:00
Adrien Destugues 00c81cb959 Remove an useless box and move the radio buttons near the setting they alter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38319 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-23 14:24:58 +00:00
Adrien Destugues 9ad52ae4cc When inserting tabs or other whitespace, propagate the attributes of the previous characters.
This allows mc to render properly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38318 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-23 13:31:39 +00:00
Adrien Destugues a84802e488 Re-add a part of the code I shouldn't have removed : this ensures the partial line that may be at the bottom of the screen
if the size of the window is not a multiple of the text font size is cleared.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38317 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-23 12:48:03 +00:00
Adrien Destugues c198735b15 Change the way fore and back-color are handled by terminal. They are now color 0 and 7 in the color table, instead of entirely separate colors. This makes more sense and allows the colors to stay even in apps using other colors.
Also make the color attribute propagate to the end of a line. This fixes part of #6143 and allows to use vim with a multicolor syntax highlighting without too much trouble.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-23 11:11:52 +00:00
Adrien Destugues c7dfa2ce78 Sync catalogs from hta.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38310 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-22 11:37:53 +00:00
Adrien Destugues 289159df8c Fix terminal -t option to actually take the next argulent and not -t itself as a parameter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38309 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-22 11:30:42 +00:00
Adrien Destugues e2fc6dba84 Remove useless debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38264 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-19 14:56:03 +00:00
Adrien Destugues a8e3f94438 Rewrite and simplify argument parsing of terminal. This makes runnning Terminal -f someApp work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38262 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-19 08:53:19 +00:00
Adrien Destugues 24fcc1eecb Fix parsing of numbers in svg files : the code used obsolete atod instead of strtod and led to numbers in the form 2.5e-4 to make the parsing fail as 'e' was interpreted as the end of the number.
Fixes #5728.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-18 11:50:49 +00:00
Adrien Destugues e20a602919 * Use Shift instead of Option as modifier to load workspace settings, as it conflicts with option+N used to open a new
terminal
 * Also ensure that the terminal end up on the current workspace if there is a problem with the settings or the key isn't 
pressed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38223 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-18 09:57:17 +00:00
Adrien Destugues b234b3fc4e The color attributes were lost in scrollback buffer since the 256-color change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38222 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-18 08:48:45 +00:00
Adrien Destugues d18fc3994c Patch by rossi, but I ended u rewriting half of it :
* Save terminal windows positions
 * Also save their size and workspace, but these aren't used (size is overriden by the menu setting and workspace is annoying)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38192 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 15:29:08 +00:00
Adrien Destugues 26411b5359 * Remove legacy BeOS code
* Ensure the argument list passed to execve is NULL-terminated
 * Also declare it earlier to make sure gcc4 doesn't erase it from memory when getting out of the if block.
This *should* fix gcc4 Terminal, and *does not* break it under gcc2.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38189 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 15:02:10 +00:00
Adrien Destugues f7502de1bb Look for catkeys files with .catkeys extension instead of .txt, since that's what everyone uses.
It makes it easier and less confusing to test catalogs without linking them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38183 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 13:49:52 +00:00
Adrien Destugues f230f68b3b CID 1332 : NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:27:20 +00:00
Adrien Destugues 28a4c1b470 CID 1513: NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38175 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:16:09 +00:00
Adrien Destugues bd792754f1 CID 1396: NULL pointer dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 08:05:12 +00:00
Adrien Destugues 6709e6bcb8 Refactor default shell handling so it is done in a single place for a new windows and a new tab.
Use "/bin/sh -l" as the default command, and always pass -l ('login shell') to the user selected shell.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38173 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-17 07:53:58 +00:00
Adrien Destugues 2c1c7b49f4 CID 1499 : Access to NULL pointer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:19:46 +00:00
Adrien Destugues eb7595ebbd CID 1457 : dead code (we know pressed is true at this point).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:17:00 +00:00
Adrien Destugues 6e24fc677f CID 1498 (and others) : when deleting a NULL pointer, operator delete is actually called. So, it must not dereference the
given pointer without checking first.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 15:07:29 +00:00
Adrien Destugues 306fdb5b98 Missing call to B_TRANSLATE.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38142 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:36:04 +00:00
Adrien Destugues 59c2d19e1e * Rewrite the parsing of xterm extension so that it doesn't touch ANSI standard things
* Some adjustements to the color table to have less duplicate colors


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38141 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 14:28:12 +00:00
Adrien Destugues a20769b39c CID 1500 : Potential NULL poiner dereference.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38140 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:37:10 +00:00
Adrien Destugues 3eedbbbf0e Handle more pseudoÃ-graphic characters and ways of using them. This gets aptitude (from debianÃ) displaying properly and should also fix midnight commander.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38139 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 13:11:51 +00:00
Adrien Destugues 8627cb38c1 CID 1515 : Wrong pointer type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38137 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-08-16 10:19:02 +00:00