Commit Graph

43362 Commits

Author SHA1 Message Date
czeidler
ba1c9c6c6d The hotspot is already included in the shift.
This became visible when dragging an image together with a cursor that has a reasonable large hotspot. In this case the cursor and the bitmap were shifted to much.
2012-08-09 14:42:18 +12:00
x-ist
6e1a7a15cd Fix BTextView tab calculation.
In rare cases such as described in #7955 BTextView happens to calculate the
width of a tab close to zero (e.g. 0.000031). This patch adds a fallback to the
default tab width in that case.

Signed-off-by: Ryan Leavengood <leavengood@gmail.com>
2012-08-08 22:17:38 -04:00
Rene Gollent
6e3918fa63 Don't release reference if we don't have one.
Fixes a crash seen if Debugger was run on an unsupported architecture, e.g.
x86-64 (for now).
2012-08-08 19:58:40 -04:00
Rene Gollent
74e288401d 64-bit fixes. Gets Debugger fully compiling on x86-64. 2012-08-08 19:40:51 -04:00
Philippe Saint-Pierre
aafb6faf57 PoseView: crash related to PoseView containing many files
Due to a previous change in the incrementation of models in AddPosesTask,
PoseView containing large number of poses were prone to crash in ClearPoses().

Gaps in PoseList or other invalid memory area were introduced.

Thanks to x-ist for precious assistance in spotting those issues!
2012-08-08 16:36:02 -04:00
Philippe Saint-Pierre
0bc1be3252 PoseView: Fix crash in FilePanel
Again, a regression fix. Under some circumstance, fFiltering was wrongly
set. Also, the node wasn't open before checking the BRefFilter and some
filters expected that to be.
2012-08-08 14:59:29 -04:00
Philippe Saint-Pierre
5489384d45 Tracker: crash fix in FilePanel
Regression of hrev44493, file panel crashed when changing dir and
filtering being disabled (sorry!)

Also fix the widget editing when filtering is activated. Now renaming
a file/folder and causing it to 'fall off' the filter does work.
2012-08-08 13:07:53 -04:00
Philippe Saint-Pierre
7d460e3bb9 PoseList: fix an assertion failure 2012-08-08 13:07:53 -04:00
Philippe Saint-Pierre
ea8b1e14f9 OpenWithWindow: Fix crash at closing, and fix filtering
Following hrev44493, the way ShouldShowPose was used changed a bit,
to harmonize with type ahead filtering.

This updates OpenWithWindow to use a BRefFilter to do its
filtering rather than overloading ShouldShowPose.
2012-08-08 13:07:53 -04:00
Niels Sascha Reedijk
e21fe3ff33 Update translations from Pootle 2012-08-08 06:25:27 +02:00
Philippe Saint-Pierre
c2535dc48a Tracker: various issues regarding filtering
1. A BRefFilter-ed PoseView wouldn't keep monitoring files after its opening
thus not picking up files that happen to fit the filter thereafter (mime attr
updated, etc..)
2. A filtered PoseView wouldn't get updated when:
  a) a column was added or removed
  b) a file was renamed
  c) a file was moved
3. Harmonize the way BRefFiltering and Type-ahead filtering are working. Both
can be used together.
4. The handler for AttributeChanged() wasn't working properly if link(s) of a
changed model was/were its siblings.
5. Broken links weren't detected/updated (it nows monitor the lost target
parent directory, and wait for the target creation to show the link fixed)

This is a big change (even more considering the 'critical-ness' of the component)
Testing is MUCH welcome!

Should fix #4254, #5381, #1717 (and maybe others)
2012-08-07 18:31:54 -04:00
Philippe Saint-Pierre
d221a261ff Style fix 2012-08-07 18:17:38 -04:00
Hamish Morrison
59b4be8cc1 Move SoundConsumer to libmedia in the BPrivate namespace
Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
2012-08-07 23:38:37 +02:00
Alexander von Gluck IV
d96e687652 radeon_hd: re-rework some pll code
* Grab pseudo pll SS info for early
  Spread Spectrum access
* display_crtc_ss now takes a pll vs
  a display for easy pll access
2012-08-07 15:36:34 -05:00
x-ist
772f5f839c Since the search pattern is wrapped in double quotes for grep, the symbol ' (apostrophe) must not be escaped. Fixes #8776.
Signed-off-by: Matt Madia <mattmadia@gmail.com>
2012-08-07 15:59:13 +00:00
Alexander von Gluck IV
817c114de7 radeon_hd: rework some pll code
* Force fractional feedback divider on APU's
* Spread Spectrum is now probed more correctly
  across multiple encoders and cards
* SS still disabled however.
2012-08-07 13:20:52 -05:00
Alexander von Gluck IV
63624e404b radeon_hd: reorganize some pll code
* Move DisplayPort external pixel clock out of pll
  as this frequency is card-wide.
* Add new function to pull display clock frequency
  and other card-wide settings.
* Set displayDefault frequency card-wide
* My DisplayPort LVDS bridge laptop now kind of works
  (a clock somewhere seems a little off though)
2012-08-07 08:53:34 -05:00
Alexander von Gluck IV
5f44fcce9f radeon_hd: enable non-dp code to execute dpcd queries
* Check DPCD to properly choose TRAVIS DP panel mode
2012-08-07 07:25:31 -05:00
Alexander von Gluck IV
472744339b radeon_hd: pick a PLL based on connector
* was static PLL 1
2012-08-07 07:25:31 -05:00
Ryan Leavengood
9c250a42b8 Use BTranslatorUtils::AddTranslationItems in CodyCam. 2012-08-07 00:47:32 -04:00
Ryan Leavengood
e77304562d Actually sort the translator menu used in ShowImage.
There were two problems with the last commit:

* the list needed to be outside of the top-level loop.
* BList was just broken for sorting translation_format pointers.

I fixed this by moving the loop outside and converting the translation_formats
to translator_info, which has the translator_id, since that is needed to create
the menu item, and would otherwise be unavailable outside the loop.

I tried to get this working with BList, but the sorting was completely broken,
and converting to BObjectList made the code much, much better and worked great.
Screw BList and casting, hurray templated BObjectList.

Really fixes #6782.
2012-08-07 00:41:41 -04:00
Niels Sascha Reedijk
0671704e3a Update translations from Pootle 2012-08-07 06:28:20 +02:00
Jérôme Duval
14b654326d ffmpeg: switch to 0.11.1 2012-08-07 00:53:29 +02:00
Alexander von Gluck IV
bef63a4442 radeon_hd: fix cosmetic encoder order
* While Travis is listed before Nutmeg
  in ObjectID.h, their values are reversed.
2012-08-06 15:20:42 -05:00
Alexander von Gluck IV
d92959ab8b radeon_hd: add DisplayPort debugging
* Commented out by default
* Shows DisplayPort status info for each
  connector post-mode change (as DP properies
  are configured on mode change once we know
  the pixel clock)
2012-08-06 15:20:41 -05:00
Philippe Houdoin
b292f6936a Fix typo, spotted by ttcoder. Thanks. 2012-08-06 21:53:25 +02:00
ahenriksson
35dc734b48 Single values are allowed in regular duplicate nodes
Not in duplicate fragments, however. This oversight in hrev44359 made
checkfs incorrectly rebuild valid indices, causing #8762.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-08-06 20:05:46 +02:00
Humdinger
4d99b24ded Removed Mr.Peeps from a ResEdit alert. Thanks Eagleeye Ryan! 2012-08-06 18:21:14 +02:00
Humdinger
34e3453f24 Added accidentally removed "!=0" back... 2012-08-06 18:17:56 +02:00
Ryan Leavengood
adfe152ee2 Sort the translation formats in AddTranslationItems by name.
This is used by ShowImage and CodyCam to create a list of image formats which a
file can be saved as. Tracker sorts the image MIME types used in the Find
window by name, so this makes these Save As menus match that (minus the icons
which I think are superfluous.)

Fixes #6782.

If the use of BList is no longer recommended, I welcome better suggestions
for sorting which will work in both GCC2 and GCC4. But this works ;)
2012-08-06 02:08:37 -04:00
Ryan Leavengood
f022b1e7c0 Rename ICO translator format name to "Microsoft icon".
This matches the MIME type and is part of fixing #6782.
2012-08-06 00:43:10 -04:00
Niels Sascha Reedijk
7753c3829c Update translations from Pootle 2012-08-06 06:28:07 +02:00
Ryan Leavengood
57c5b09e1a Use be_control_look != NULL everywhere in the Interface Kit.
Should not be a functional change. It is not in the Haiku Coding Guidelines but
I feel like 'if (object != NULL)' is generally preferred to 'if (object)', plus
in this case of be_control_look that is the more common style.
2012-08-05 18:07:23 -04:00
Ingo Weinhold
7483c98dec Debugger (and some friends): 64 bit fixes 2012-08-05 23:58:25 +02:00
Humdinger
aed3510485 Close alerts with ESCAPE key.
Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.
2012-08-05 19:32:46 +02:00
Alexander von Gluck IV
4e7e3e331d radeon_hd: display port improvements
* Remove non-generic radeon dp_get_lane_count
* Set lane count and link rate at set_display_mode
* Pass entire mode to pll_set vs only pixel clock for DP code
* Add helpers for DP config data to common code
* Obtain more correct link rate
2012-08-05 12:15:35 -05:00
Alexander von Gluck IV
f0e29955bf radeon_hd: Fix pre-emphasis shift
* pre-emphasis shift was always for lane b
2012-08-05 00:50:56 -05:00
Alexander von Gluck IV
694eca3bb6 radeon_hd: Add DP link_train_ce
* First attempts at DisplayPort link training
  clock equalization.
* Add DP define to detect equalization state
* Working towards resolving #8626
2012-08-05 00:01:43 -05:00
Ingo Weinhold
9b008d31ff Debugger CLI: Add a bunch of new commands
* "thread": prints/sets the current thread.
* "continue", "stop": continue/stop the current thread.
* "sc"/"bt": Print a stack trace for the current thread. Very basic yet.
2012-08-05 01:07:17 +02:00
Ingo Weinhold
86b1039b42 Debugger CliContext: More event handling, current thread
* Introduce the notion of a current thread. That's the one certain
  commands will target (by default).
* Add more event handling in CliContext. There's now a queue of pending
  events which are printed in the input loop at convenient times to
  inform the user about what happened (new/deleted/stopped threads,
  etc.).
2012-08-05 01:07:17 +02:00
Ingo Weinhold
59dbbd147e Debugger: CliQuitCommand: Fix cancel shortcut 2012-08-05 01:07:16 +02:00
Ingo Weinhold
d4586180a6 Debugger CLI: Improve "help" command
Given a command name it prints the command's usage.
2012-08-05 01:07:16 +02:00
Ingo Weinhold
a7580a8299 Debugger: Add CliCommand::PrintUsage() 2012-08-05 01:07:16 +02:00
Niels Sascha Reedijk
147d65c26d Update translations from Pootle 2012-08-04 06:51:11 +02:00
Ryan Leavengood
bab4f5ad7d Use the parent menu's font when truncating labels.
Fixes the other bug uncovered by #8829, but my other fix was valid too.
2012-08-04 00:24:56 -04:00
Ryan Leavengood
4ffc27fcc1 Fix incorrectly truncated menu labels.
An off-by-one error (> instead of >= really) was causing truncation when it
wasn't needed. But for some reason this only showed up when the main font size
was increased. I may or may not look into that, but this fixes the issue.

Maybe one of the faster bug logged to bug fixed times in Haiku history? ;)
2012-08-03 23:56:00 -04:00
Alexander von Gluck IV
33d23e8fed DriveSetup: Show a quick warning when formatting raw disk
* Another translation candidate :)
2012-08-03 11:59:48 -05:00
Alexander von Gluck IV
8fe3bba727 DriveSetup: Don't show unimplemented tools 2012-08-03 11:59:47 -05:00
Alexander von Gluck IV
448216aff8 DriveSetup: Text / context cleanup
* Make sure we use consistant terminology
* No more Formatted partition "" messages when
  doing a partition map
* This commit will require translation work
2012-08-03 11:59:47 -05:00
Alexander von Gluck IV
badea728fa DriveSetup: Reorganize Disk menu.
* Group destructive and non-destructive operations
* Rename Disk->Format to Wipe (seems like a more modern term)
* Mostly bikeshed :)
2012-08-03 11:59:47 -05:00