Commit Graph

56245 Commits

Author SHA1 Message Date
John Scipione
7d009616aa Tracker: Add zoom padding in list mode take 2
Add 16px to right and bottom of content when zoom

fixup of last commit
2016-08-26 23:07:18 -07:00
John Scipione
f76147aa9a Tracker: Add some zoom padding in list mode
Add some padding to the right and bottom of the content when
you zoom.

16px the size of a mini-icon
2016-08-26 23:00:14 -07:00
Axel Dörfler
d5f016704d app_server: Also log the incorrect version. 2016-08-26 21:29:00 +02:00
Adrien Destugues
187ad82a62 intel_extreme: fix wait_for_vblank on SandyBridge
There was some mixup with the interrupt registers, still:
- The driver uses 16-bit read/write, but on SandyBridge the register is
  32 bits
- There is a global interrupt enable bit, which must be set to unmask
  everything else
- The bits for vblank interrupt are not the same on SNB and later PCH
  based devices, and the code mixed the two.

Move the computation of the interrupt bits to an helper function, and
use it everywhere to make sure we always use the right bits.
2016-08-26 21:45:38 +02:00
Adrien Destugues
580cd77d0c PS/2: remove all the dead code
Sorry, missed that this would also become useless after removing the
resyncs. Thanks to Kacper for reviewing.
2016-08-26 19:04:35 +02:00
Adrien Destugues
8ae5ad2ccd PS/2: fix dead code.
hrev50506 extended the range of acceptable X and Y movement for PS/2
mouse. However, the value is sent on 1 byte (+ sign) so the check would
now always be valid.

Remove the check completely, we now rely only on bit 3 of the first byte
to be set (and not missing packets) to remain in sync with the mouse.

Thanks to Marcus Overhagen for reviewing the changes.
2016-08-26 07:10:01 +02:00
Adrien Destugues
adc0f76e64 More SandyBridge fixes and cleanups
Modesetting
===========

My previous hack was setting the transcoder registers, instead of the
display ones. Do that the way it is designed in the driver instead:

- If there is a transcoder, set its registers, but do not set the
display timings. The display will remain set at its native (and only)
resolution, and panel fitting will adjust the output of the transcoder
to match.
- If there is no transcoder, set the display registers directly to the
native resolution, as it was done on previous generation devices.
- fPipeOffset hacks no longer needed

DPMS
====

It seems the panel control register is not readable on PCH? Anyway, the
code would loop forever waiting for the bit to become unset when turning
the display off. Waiting seems to not be needed, so just remove it as
well as the "unlock" bit, which does not work for me and results in a
black screen.

Remaining hacks
===============

I still need to force HEAD_MODE_A_ANALOG to get output on pipe B (LVDS
display) working. I suspect something is common to the two pipes or not
allocated to the right one.

This version will have less side effects on other generations and help
with getting things to work on SandyBridge and possibly later devices.
Please test and report.
2016-08-25 23:17:12 +02:00
Automatic Committer
81a9bf1a88 Update pci.ids from pciids.sourceforge.net 2016-08-25 05:20:22 +02:00
Adrien Destugues
5298c29729 Fix regressions introduced in hrev 50503
- Missing "dontAsk" when renaming some files,
- Missing exceptions in the warning alert construction to automatically
  allow modifying some files (anything inside the settings folder)
- Missing translations

Fixes #12925.
2016-08-24 07:26:53 +02:00
John Scipione
c2507fb82b Deskbar: get default collator from BLocale
...using BLocale::Default()->GetCollator(&collator)

Thanks waddlesplash
2016-08-22 17:15:56 -07:00
John Scipione
dd6fccb062 Deskbar: Add new apps using locale collator
... sorry I overlooked this case in my last commit. Need to add apps using
the locale collator Compare() method instead of strcasecmp() as well.

Fixes #7712 better.
2016-08-22 16:52:25 -07:00
0xffea
bd6dcb363f Deskbar: item sorting is not locale-sensitive
Fix using a global BCollator defined in BarApp.

Called static CompareByName() method in TTeamMenu instead of
duplicating code, made method public.

This comes from a patch by 0xffea for GSoC 2014.

A locale aware version of NaturalCompare in WindowMenuItem.cpp
is still needed.

Fixes #7712

Signed-off-by: John Scipione <jscipione@gmail.com>
2016-08-22 15:14:09 -07:00
John Scipione
ca45c75350 PS/2 bus manager check all valid values
According to korli "Valid values seem to be between 255 and -256" which
is verified by syslog running on virtual box with a PS/2 mouse on Haiku
hrev47470.

Fixes #7802

Signed-off-by: John Scipione <jscipione@gmail.com>
2016-08-22 11:24:44 -07:00
Humdinger
a394a16a61 Updated packages for Chat and HaikuPorter 2016-08-21 17:59:23 +02:00
Adrien Destugues
9b1935445c CID 608995: buffer overflow.
This should not happen, so in case a file has an unexpectedly large
name, drop to debugger.
2016-08-21 17:49:52 +02:00
Adrien Destugues
bb4190f050 Fix SandyBridge support.
This reverts commit 4f2b258c32.
This reverts commit c86f3dba23.
This reverts commit 61fbdb0667.
This reverts commit b3f14fb7c7.
2016-08-21 16:54:03 +02:00
Adrien Destugues
c2775a3bbe Revert "intel_extreme: Disable 'experimental' GPUs SNB or higher"
This reverts commit debb71f548.
2016-08-21 16:53:59 +02:00
Adrien Destugues
e43cfe781f netresolv: Remove or disable unused variables
Fixes #12746.
2016-08-21 16:53:56 +02:00
Adrien Destugues
4072c4f1b3 Tracker: fix localization of warning when editing system dirs
Programatically generating a string usually doesn't work well with
localization. Better unfold all the possiblities.

Moreover, the callers of the functions had a long if condition with
3 B_TRANSLATE calls embedded in, and there was an erroneous ; at the end
of those, so the supposedly protected statement was executed anyway.

Fixes #12747.
2016-08-21 16:53:52 +02:00
Adrien Destugues
a8aeb8a9e2 Fix mixed indentation
Fixes #12758.
2016-08-21 16:53:49 +02:00
Adrien Destugues
385ee03ba8 Fix mixed indentation.
This file uses a mix of tab styles, which gcc6 will warn about because
it sees "misleading indentation". Fix the function where this happens.

Fixes #12759.
2016-08-21 16:53:45 +02:00
Murai Takashi
777ff37166 Tracker: Fix -Wlogical-not-parentheses
Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

With style fix: comparison must still be a boolean value.

Fixes #12892
2016-08-21 16:53:42 +02:00
Murai Takashi
d3c5c6dfeb Terminal: Fix -Wlogical-not-parentheses 2016-08-21 16:53:38 +02:00
Murai Takashi
d41bd688b3 HaikuDepot: Fix -Wlogical-not-parentheses 2016-08-21 16:53:35 +02:00
Adrien Destugues
a6e2839785 Terminal: remove limitation to 6 tabs
- This has been bothering me for quite a while. My screen is wide enough
  to accomodate more, and even if they don't fit the BTabView, it's still
  possible to navigate many more tabs with the keyboard shortcuts.
- We should still remember to fix BTabView to accomodate more tabs than
  it can fit with some scrolling support or similar, however.
2016-08-21 16:53:31 +02:00
Adrien Destugues
36a9daf663 Package kit: more style fixes.
Pointed out by Axel this time. Thanks!
2016-08-21 16:53:27 +02:00
Adrien Destugues
a22f114f7d chroot support in package kit: style fixes
- Catching an exception in the normal flow is not a good thing, instead,
  test before calling the function (I've been doing too much python
  lately)
- Avoid using uninitialized nodeRef if there is no system root and also
  no specified root in the message.

Thanks to Ingo or the code review.
2016-08-21 10:38:23 +02:00
Adrien Destugues
e0c25f9892 VESA: compare modes by index, instead of contents
We only compared the height, width, and depth of modes to decide if the
mode was already set. However, at boot, we may have these settings right
and other things not properly configured, preventing VESA to set a
working mode unless forced from the boot menu.

Fixes #12918
2016-08-20 16:37:13 +02:00
Adrien Destugues
928f78f5a3 FontDemo: localization security fixes
- Avoid use of fixed size buffer without checks, use BString.SetToFormat
  instead.
- Use the same format for the initial setting of the values, so there
  are less strings to translate, and locales using a different
  representation for numbers get the right thing done as well.
- Fix initial label for the outline slider, which did not show the value
  unlike others (problem spotted by Diver, thanks!)
2016-08-20 14:16:17 +02:00
Kacper Kasper
13300cf63a Expander: fix status view.
* Truncate() would cut Unicode characters in the middle.
* This commit removes arbitrary message length limit as well as workaround
  it was needed for and fixes #5289.
* Status view now expands to maximum possible width and cuts the status
  message if necessary using TruncateString().

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

* Minor whitespace fix.
2016-08-20 07:57:55 +02:00
Adrien Destugues
6262ccbbe8 Fix use of findpaths from inside chroot
The package kit needs to provide the package daemon with the node_ref of
the root directory, so the package daemon gives the correct results when
the request comes from inside a chroot.

Moreover, the package kit must be able to handle a root with a system
but no home package dir, as is the case inside the chroot environment
created by haikuporter.

Fixes #12602.
2016-08-20 07:57:52 +02:00
John Scipione
23a6a63e83 Keymap: Follow symlink
get_ref_for_path() doesn't resolve symlinks.

Construct a BEntry from the path passing 'true' for the traverse
argument. That BEntry is then be passed to BDirectory's constructor.

The error was hidden by the fact that the code didn't bother to error
check the result of get_ref_for_path(), which would have indicated that
the passed in path was a link.

Thanks Rene for your help.

if the entry fails to init, we are probably screwed, but, try to get
the path using get_ref_for_path in that case. Worst case scenario it
fails as well and the FilePanel points to your home directory.
2016-08-19 11:09:02 -07:00
John Scipione
3d2f4db565 Keymap: Reinitialize ref after creating Keymap dir
In the case that the Keymap directory does not exist and has to
be created, reinitialize ref to the newly created directory.

Thanks Stippi for your help

There is still a bug present where if the Keymap directory is a
symlink to another directory, the File Panel does not follow that
link and instead opens to your home directory. More on this later.
2016-08-19 10:28:49 -07:00
John Scipione
29f04e867a Revert "Keymap: Handle uninitialized ref"
This reverts commit 1e5f78f522.
2016-08-19 10:13:44 -07:00
John Scipione
1e5f78f522 Keymap: Handle uninitialized ref
...trying to get/make Keymaps settings dir if not able to create
the Keymaps directory under settings.

Resolve symlink, if it is a directory, use that directory instead,
otherwise use home directory as a fallback.
2016-08-18 18:26:43 -07:00
John Scipione
46b84951f7 Appearance: Make color which items draggable
Create a ColorWhichListView class which impliments InitiateDrag()
to drag a color square out of the list view. You can then drop the
color anywhere that accepts a color drop. This allows you to drag
and drop colors between list items for example.
2016-08-18 16:36:46 -07:00
John Scipione
2446f53bc8 BListView: Impliment autoscroll
BeOS had a feature where you could click on a list and while holding
down the mouse button scroll through the list items selecting them
as you went. I implemented the same feature on Haiku.

Did the work in separate thread which makes sure that the mouse
is held down the whole time even if you leave the view.

Thanks Diver for bringing this feature to my attention.
2016-08-18 16:36:46 -07:00
John Scipione
a98f98b744 BListView: check message not NULL, grab buttons and modifiers 2016-08-18 16:36:45 -07:00
John Scipione
ccd7f24f11 BListView: Initialize all fTrack params to default 2016-08-18 16:36:45 -07:00
John Scipione
dc6233fcf4 BListView: Check index non-negative, not only not -1 2016-08-18 16:36:44 -07:00
John Scipione
e10ca8cd1b BListView: Use std::max() and std::min()
... in place of max_c() and min_c() respectively.
2016-08-18 16:36:44 -07:00
John Scipione
9dfd244e92 BListView: Style fixes
* Rename kDoubleClickTresh to kDoubleClickThreshold
  and use floating point in rval
* Pointer (*) goes with type for property var
* Use {}'s for multi-line if conditional
* rename point to where (consistent with header and rest of IK)
* Explicitly compare with 0 for bitwise operator statements
* Rename InitiateDrag() params
2016-08-18 16:36:28 -07:00
Automatic Committer
9c48b844fd Update usb.ids from www.linux-usb.org 2016-08-18 05:20:21 +02:00
John Scipione
661e7652d7 Revert "Keymap: Check return value of get_ref_for_path"
This reverts commit 14698e0432.
2016-08-17 08:54:21 -07:00
John Scipione
e8fc10dee7 Keymap: Refactor _LoadSettings()
Instead of filling out the path into a BString and using it in the calling method,
call _SetKeyboardLayout() directly using the path found.

Also use a plain const char* array instead of BString because we don't need
the added functionality.

The return value now reflects whether or not the window frame was loaded.

Check the return value on the caller side and only use the resulting window
frame if it is B_OK, otherwise CenterOnScreen().
2016-08-16 15:39:50 -07:00
John Scipione
ec55352ea6 Keymap: Fix saving keyboard layout
The function would stop prematurely after the first submenu whether it
found a layout or not.

Now stop when you have has an initialized path or end of menu

Fixing saving keyboard layout also fixes loading layout which fixes #3918

How did this silly bug live so long?
2016-08-16 15:01:47 -07:00
John Scipione
14698e0432 Keymap: Check return value of get_ref_for_path
if not B_OK, create BFilePanels with default directory

This should never happen but better than crashing on a NULL ref
2016-08-16 14:55:36 -07:00
Humdinger
e85c33517c Add package for webfont FontAwesome
Install this font to see all those icons WebPositive currently
fails to display e.g. at the discussion forum at
https://discuss.haiku-os.org

Thanks PulkoMandy for pointing this out!
2016-08-15 18:06:25 +02:00
Humdinger
a4f6437c30 Added package for TimeTracker
TimeTracker lets you create tasks for your various projects and
shows them in a list. Via double-click on an entry you start/stop the timer
on that task, thus helping you keep track of how much time you spend doing
what.
2016-08-15 08:19:09 +02:00
Adrien Destugues
c92f19c6e8 Fix definition of _setjmp
The #pragma weak does not work, the symbol is not defined and when
already defined, it is not made weak. Moreover, it does not make the
symbol global so we need to declare it with a FUNCTION.

If we want the symbol to be weak, then we should use .weak to do so. The
_longjmp symbol should also be changed to match, in that case.

Fixes #12912.
2016-08-14 09:18:07 +02:00