Commit Graph

44621 Commits

Author SHA1 Message Date
Adrien Destugues c4e8d88f7c app_server: fix gradients with no stops at the ends
When a gradient has no stop at offset 0 or 255, the drawing code will
not automatically complete the gradiet with the first or last color,
instead agg interpolation generated invalid random colors.

To avoid this, insert extra stops at the start and end in the
DrawingEngine when we prepare the gradient for drawing. We just copy the
first and last stops to new stops at offsets 0 and 255, which makes sure
the gradients covers the whole range and gives the expected result.

Fixes #2945.
2014-12-05 14:52:31 +01:00
Adrien Destugues 96bac1b30b Add a test for #2945. 2014-12-05 14:51:47 +01:00
Adrien Destugues 336c69d9c4 Add credits for the Slovenian translation.
Will be included starting tomorrow.
Fixes #11157.
2014-12-05 12:50:39 +01:00
Adrien Destugues 654d47f356 Magnify: fix layout with big font sizes
* Move the menu to the left side so it doesn't overlap the status.
* Fixes #6934.
2014-12-05 10:20:44 +01:00
John Scipione 5ae0cde363 Style fixes to BStringView related to docs 2014-12-04 17:56:24 -05:00
Adrien Destugues 1554429045 Remove the vmware graphics and mouse drivers.
They are now available as a package in HaikuDepot.
2014-12-04 12:48:23 +01:00
Adrien Destugues 7291c0a8d9 Expander: escape backslashes in path.
Fixes #9969.
2014-12-04 10:20:32 +01:00
Adrien Destugues db7fc944bd FileTypes: disallow directories only where it makes sense.
Better fix for #8805.
2014-12-04 09:28:05 +01:00
Adrien Destugues 529cd177b5 BFilePanel: allow to change the node flavors
There doesn't seem to be anything ini the implementation that would
cause a problem, as long as you don't try to change this while the
window is already open.
2014-12-04 09:26:49 +01:00
Adrien Destugues 14c42c3783 Synaptics: remove useless delay.
As pointed by Axel and explained in Synaptic docs, the touchpad should
delay the first command itself until it's ready, so an arbitrary delay
should not be needed after reset.

Note: I don't have a touchpad on my machine. Please test this :)
2014-12-04 08:43:17 +01:00
Rene Gollent 049e8f6fbd Debugger: Tweaks to ConsoleOutputView.
- When receiving console output, we now put it into a pending output list.
  An asynchronous worker thread then tells the view to add another line to
  the output view, with a 10 msec delay between lines. This ensures that if
  the debugged program has a large amount of console output, it doesn't result
  in the debugger UI going unresponsive due to handling the constant influx
  of text insertions in rapid succession.
2014-12-03 19:23:48 -05:00
Theodore Kokkoris 1ee239ec7c Removed implicit conversion to int32 (CID: 1251478) 2014-12-03 21:22:54 +01:00
Theodore Kokkoris f78b08d846 Removed unsigned comparison to zero (CID: 611234) 2014-12-03 21:20:07 +01:00
Theodore Kokkoris 249a4944c3 Removed dead code (CID: 1255314) 2014-12-03 21:14:24 +01:00
Adrien Destugues a3a6fd837a makebootable: remove outdated "compatibility" options.
Fixes #3779.
2014-12-03 18:00:20 +01:00
Adrien Destugues c2872486ec Reset PS/2 devices before probing as synaptics touchpad.
Patch from dukscry, fixes #8616.
2014-12-03 13:18:47 +01:00
Adrien Destugues 721e32f7a0 Network prefs: missing DoCatalogs invocation.
Fixes #11191.
2014-12-03 11:28:06 +01:00
Adrien Destugues 5da82e3a10 DiskUsage: align tab focus mark with label.
Fixes #6905.
2014-12-03 08:41:09 +01:00
John Scipione 555c1cbfd8 ColumnListView: Remove pre-ControlLook drawing code 2014-12-02 19:23:53 -05:00
John Scipione a9f45419e6 ColumnListView: Add default case to switch 2014-12-02 19:23:53 -05:00
John Scipione 73b596224c ColumnListView: preserve view high color 2014-12-02 19:23:52 -05:00
John Scipione 86ebf4c755 ColumnListView: check for NULL column 2014-12-02 19:23:52 -05:00
John Scipione 539dc1bc53 A bunch of style fixes
No functional changes intended
2014-12-02 19:23:51 -05:00
Chirayu Desai dc4f88b8fb libbind: Fix Coverity bug 603368: Missing break in switch
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-12-02 22:02:57 +01:00
Chirayu Desai fec5692329 ColumnListView: Fix two bugs reported by Coverity
* Fix Coverity bug 991147: Copy-paste error
* Fix Coverity bug 991264: Dereference after null check

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2014-12-02 21:28:45 +01:00
Adrien Destugues 4f6ee86881 Sniffing rule for MP4 files.
Fixes #9621.
2014-12-02 17:04:30 +01:00
Adrien Destugues 4ca1c2476e Default decorator: localize about box. 2014-12-02 15:30:08 +01:00
Adrien Destugues a2cb1737d8 Screen prefs: force weight of the two boxes
Depending on the locale and string length the layout could leave only a
small part of the window for the rightmost part, which is the important
thing. Force the weight of each side so we have a more balanced window.
2014-12-02 11:40:14 +01:00
Adrien Destugues 8b46ee25ac Screen prefs: move driver info to main window
* Fixes relevant part of #5125
* The remaining information (serial number, frequency ranges) is
"advanced" and can be hidden in the tooltip. However, the video driver
used may be important important information, if you want to know if you
are using VESA, or if you have multiple video cards (Optimus for
example).
2014-12-02 11:17:58 +01:00
Adrien Destugues 0cd7643bd3 usb_disk, usb_floppy: missing const. 2014-12-02 09:15:26 +01:00
Adrien Destugues 38ec030ace FileDevice: implement icon ioctls
Fixes #9320.
2014-12-02 09:04:56 +01:00
Rene Gollent 310e80e0b6 Debugger: SourceView cleanups.
SourceView:
- Now that we need to track the current text drawing position for syntax
  purposes anyways, get rid of the previous inefficient hack to handle
  tabstops, and instead adjust for them on the fly. This both avoids
  quite a bit of string copying/reformatting, and eliminates the need to
  adjust the syntax highlight offsets to compensate for the aforementioned
  reformatting.
- Fix syntax color for string literals.
2014-12-01 23:36:10 -05:00
Adrien Destugues 7c6b2fa6f1 Fix credits for Lithuanian translation. 2014-12-01 18:41:13 +01:00
Adrien Destugues acf1d9714e Locale: fix selection of format when Default'ing
Using item->SetExpanded does not work in a BOutlineListView as the
status of the list is then out of sync. The child items are not actually
added to the visible list, and trying to select them won't work.

Using list->Expand() instead works fine, so do that.

Fixes the remaining part of #6805.
2014-12-01 15:12:30 +01:00
Adrien Destugues 3d2cd4484d NetFS package: fix require on usrland_fs
* This was missing an underscore.
* Fixes #11541.
2014-12-01 11:18:18 +01:00
Adrien Destugues 97bb6cddcb Mouse Prefs: use a thinner and lighter outline
suggested by Axel and Stephan, this makes the mouse look better, and the
button numbers (the important part here) stand out more.
2014-12-01 10:49:53 +01:00
Rene Gollent 172a0247dd Debugger: Cleanup.
- Rearrange source_language subdir to have only the interface classes
  at the top level, and devote a subdir to each language-specific
  implementation of them.
2014-11-29 21:30:50 -05:00
Rene Gollent 177202d882 Debugger: Use syntax highlight info for source code view.
SourceView:
- Request syntax highlight information when new source file is set.
- Adjust _FormatLine() to also patch raw syntax highlights to match
  up with calculated tabstops.
- Draw strings in pieces corresponding to how they're broken up in
  terms of syntax highlights with colors.
2014-11-29 21:30:48 -05:00
Rene Gollent 921517ecd3 Debugger: Implement C++ syntax highlighter.
- Implement a basic highlighting engine for C/C++. Not yet used/tested,
  as SourceView will first need some adjustments in order to acquire
  and make use of the highlighter modules in the first place.
2014-11-29 21:30:47 -05:00
Rene Gollent 15758369f2 Debugger: Improvements to C-style expression tokenizer.
- Add recognition of several additional types of tokens that, while
  not necessary for single line expressions, will be needed  for
  parsing/highlighting source files. Also rename tokens for open/close
  paren to reflect their content more accurately, and adjust callers
  accordingly.
2014-11-29 21:30:46 -05:00
Rene Gollent 4671959310 Debugger: Minor refactoring.
- Break the expression evaluator's tokenizer out into its own separate
  header so that the syntax highlighter can also make use of it.
2014-11-29 21:28:08 -05:00
Rene Gollent c04274bdd3 Debugger: Add skeleton C/C++ syntax highlighter classes. 2014-11-29 21:28:06 -05:00
Rene Gollent d431ff418f Debugger: Cleanups/adjustments to syntax interfaces.
- Add missing public keyword for SyntaxHighlightSource/SyntaxHighlightInfo.
- Add initial set of basic syntax highlight types.
- Remove SyntaxHighlightSource. Instead, add a general purpose LineDataSource
  interface to the model classes. Correspondingly adjust SourceCode to inherit
  from it and fixup its derivatives accordingly; also adjust SyntaxHighlighter
  to take a LineDataSource rather than a SyntaxHighlightSource.
2014-11-29 21:27:55 -05:00
Stephan Aßmus d5ef985e18 HaikuDepot: Added rudimentary screenshot window.
Clicking the thumbnail in the package info area will now open a
window where the full-size screenshot is downloaded and shown. There can
only be one such screenshot window open. Navigating between multiple
screenshots of a package is not yet implemented. Also, no caching, but
this may be OK as it is, since one usually looks at these only once and
doesn't want the harddrive filling up with screenshots.
2014-11-29 23:07:32 +01:00
Stephan Aßmus f5a8bae677 HaikuDepot: Paragraph: Fixed typo in PrintToStream() 2014-11-29 23:07:30 +01:00
Stephan Aßmus 368ec7fa0e HaikuDepot: Use a LinkedBitmapView for the screenshot. 2014-11-29 23:07:29 +01:00
Stephan Aßmus 77badf8eca HaikuDepot: Added TODO to LinkView and bugfix.
SetViewCursor(NULL) does not unset the view cursor.
2014-11-29 23:07:28 +01:00
Stephan Aßmus a45f75e0c5 HaikuDepot: LinkedBitmapView derived from BitmapView
Sends a BMessage when clicked and enabled, shows the link cursor
when hovered with the mouse.
2014-11-29 23:07:27 +01:00
Humdinger 2e2c68cc35 Sentence casing of context menu item of network prefs. 2014-11-29 18:25:33 +01:00
Humdinger 5fe12d4049 Correct typo
My condolences...
2014-11-29 15:37:42 +01:00