Commit Graph

37460 Commits

Author SHA1 Message Date
Ingo Weinhold
533a73766d Debugger: Create UiUtils helper class
Currently only a method to get a description for a thread state lives
there (code pulled from ThreadListView).
2012-07-23 23:52:46 +02:00
Ingo Weinhold
a6de32b06c Debugger CLI: Pull QuitCommand out of CommandLineUserInterface 2012-07-23 23:52:46 +02:00
Ingo Weinhold
d0ef75400b Debugger CLI: Start to imbue CliContext with life 2012-07-23 23:52:45 +02:00
Ingo Weinhold
abbcb2caf5 Debugger: Use readline in the CLI
This is a bit hacky, since gdb's readline is used. It would probably be
best to prepare an optional build package.
2012-07-23 23:52:45 +02:00
Philippe Saint-Pierre
c082e8f2e2 Tracker: Variation between Saved and Restored widths
When restored, an overlap was wrongly detected in offsets for
failure to take into account the width of the border line.

This was causing the horizontal scrollbar to show unnecessarily.
2012-07-23 17:05:57 -04:00
Philippe Saint-Pierre
50d739dee5 Tracker: Regression fix
A crash of Tracker was triggered when accessing AddOn menu (by
shortcut or context-menu) for Pose on Desktop, because of it's
incapacity to read the mime type list (that wasn't built in
those cases).
2012-07-23 16:15:19 -04:00
Adrien Destugues - PulkoMandy
dae0a4e0ab WIP version of SerialConnect. Not working, but added to the tree anyway so :
* You can code review it
 * You can help developping
Uses libvterm as the backend for parsing ANSI escape sequences. The lib was
changed slightly to build with GCC2. It could be used by Terminal as well as
it seems cleaner and more reliable than our current parser.
2012-07-23 21:36:40 +02:00
Philippe Saint-Pierre
5cdd07a814 Tracker: Optimisation of AddonMenu menu construction
1. Build the list of mimetypes of files in selection only once and
reuse it for all further tests.

2. Fix a regression introduced in hrev44384 where the MimeType()
wouldn't get recognized when just changed by tracker (by that same
right click).  It would be on subsequent clicks.

3. Rename the static map variable to better fit our coding style
and be more understandable.
2012-07-23 14:47:24 -04:00
Alex Smith
370ab57d49 Initial userland support for x86_64.
Userland switch is implemented, as is basic system call support (using
SYSCALL/SYSRET). The system call handler is not yet complete: it doesn't
handle more than 6 arguments, and does not perform all the necessary kernel
entry/exit work (neither does the interrupt handler). However, this is
sufficient for runtime_loader to start and print some debug output.
2012-07-23 17:12:12 +01:00
Philippe Saint-Pierre
b6a70ecba9 ProcessController: fix display of CPU bars for systems having 3 cores
Generalize the drawing of separator lines for every number of cores
requesting them.

Fix the layout for 3 cores systems.

Should fix #8763.
2012-07-23 10:16:37 -04:00
Alex Smith
07c6bd65b8 Format string fixes for TRACE_{THREAD,TEAM}. 2012-07-23 14:20:29 +01:00
Alex Smith
fe2e732721 Avoid an unnecessary mov on syscalls with < 4 arguments. 2012-07-23 14:18:54 +01:00
Philippe Saint-Pierre
516cac7817 Tracker: Coding style violations fixes and typos
No functional changes, thanks Axel!
2012-07-23 08:21:43 -04:00
Philippe Saint-Pierre
674ff0df2f Tracker: Various sorting issues in Tracker
When sorting files by Modified dates, right clicking on a file was leading
to a sorting issue where files were changing positions (without reason).

1. Any changes to stats (size, modification, creation, mode) was triggering
the sorting. Now only stats fields currently used as a Sort criteria will
trigger such event.

2. The Mimeset of file was set (in case of unknown file format) once per checked
add-on when building AddOn Menu. Now it's checked once per file in selection.
(so, once per file, rather then once per file, per add-on).

3. Now rely on registrar to force the mimeset (to trigger the sniffer in case
the attribute already exist) rather than trying to duplicate the feature in Tracker.

4. When Sorting, if there is a old position known, check if it's working by looking
if you should come after the previous item, and before the following item.  Previously,
the item would be pushed at the top if the group of item all fitting the criteria
(same file size, same file kind, etc.. depending on the sorting criteria).

Fixes #8478.
2012-07-22 22:16:19 -04:00
John Scipione
8cf6d28f99 It is okay to delete dragMessage even if it is NULL. Not worth the branch. 2012-07-22 16:00:21 -04:00
John Scipione
8f29b6e639 indent break statements. Only delete dragMessage if not NULL. 2012-07-22 16:00:21 -04:00
John Scipione
47a394ec13 Replace calls to DragRegion() with fDragRegion avoiding a function call. Move variables in MouseMoved down to just before they are used. 2012-07-22 16:00:20 -04:00
Rene Gollent
d7ed9414a3 Fix #8523.
- When the message filter would receive and process a mouse moved message,
  if the message resulted in causing the deskbar to relocate or reorient
  itself, it was possible for the expando view to become detached from
  the looper. Consequently, if the intercepted mouse moved happened to have
  come from the latter, when returning out of the filter the view would no
  longer have a target looper, triggering a debugger condition in BLooper.
  In order to prevent this situation, we now dispatch a message asking for
  the layout change to occur asynchronously.
2012-07-22 15:53:19 -04:00
Alexander von Gluck IV
7e67ec90a4 usb_serial: Set option driver to use the last found port.
* Add a warning when >1 port is found (as we only use the
  last found serial port)
* Verified working, remove if 0.
2012-07-22 13:48:57 -05:00
Alexander von Gluck IV
8899214980 usb_serial: Fix typo, set up endpoints properly
* Can successfully send data to Option USB serial device now
  (I need to do some testing before turning it on though)
2012-07-22 12:06:27 -05:00
Alexander von Gluck IV
52b7ccf49e usb_serial: Probe for USB endpoints on Option device
* More then one serial port is common, for now we only
  work off of the first one detected.
* Still disabled as some setup is needed.
2012-07-22 11:57:25 -05:00
Alexander von Gluck IV
b3b04af940 usb_serial: Add new Option driver
* Option devices are generally WWAN serial
  devices for 3G or lower.
* Picks up my CMOTECH Sprint 3G adaptor, need
  to wire up endpoints so disabled for now.
2012-07-22 11:06:48 -05:00
Alex Smith
fd9f32c0db Added some libroot bits for x86_64.
Still some parts missing (the glibc bits + fenv.c), plus the TLS
functions are only stubs.
2012-07-22 14:59:42 +01:00
Alex Smith
aef19e3c95 Implemented creation and destruction of user translation maps. 2012-07-22 13:07:44 +01:00
Alex Smith
5afce632f3 Demangle symbols in stack traces.
Since the demangle debugger extension now gets loaded when booting
from an image, use it in stack traces. Can't print argument values
like on x86, however, since x86_64 uses registers to pass the first
6 arguments rather than the stack we can't easily get to them.
2012-07-22 12:13:04 +01:00
Alex Smith
700c8d3078 Support building images for x86_64.
Added a temporary Haiku64Image file that gets included instead of
HaikuImage when building for x86_64, which I will add to as I port
stuff. Images currently only include the boot loader, kernel and
a bunch of add-ons.
2012-07-22 11:36:50 +01:00
Alex Smith
1c24ebaa5f 64-bit compilation fixes for BFS, add to x86_64 boot image. 2012-07-22 10:42:35 +01:00
Philippe Saint-Pierre
1236c746af Tracker: a file leaving Trash won't appear in QueryPoseView
Fixing #1592.

A feedback FSNotification()->EntryMoved->PendingNodeMonitorCache->FSNotification
was seemingly introducing some race condition, as it was working 1 time
on several tries.
2012-07-21 22:09:45 -04:00
Rene Gollent
55d6e32c7d Fix name generation for void pointer parameters. 2012-07-21 17:34:31 -04:00
Michael Lotz
7050e3cd84 Fix wrong assignment. CID 702303. 2012-07-21 19:27:06 +02:00
Philippe Saint-Pierre
5cf20610e1 FontDemo: Further cleanup
the strlen was used also in _AddShapes.  Widen use of BString.

Sorry for the noise!
2012-07-21 12:58:05 -04:00
Philippe Saint-Pierre
c5e8e32acd FontDemo: Cleanup of previous UTF-8 compliancy fix
Avoid using the private API, rather use the public BString. Thanks mmlr.
2012-07-21 12:23:18 -04:00
Alex Smith
59ae45c1ab Fixed commpage for x86_64.
Since the commpage is at a kernel address, changed 64-bit paging code
to match x86's behaviour of allowing user-accessible mappings to be
created in the kernel portion of the address space. This is also
required by some drivers.
2012-07-21 16:18:10 +01:00
Philippe Saint-Pierre
6b0362305f FontDemo: make it multibyte chars compliant (UTF-8)
fixes #8146.
2012-07-21 11:17:41 -04:00
Alex Smith
195a0f350e Changed argument type of fcntl syscall from uint32 to size_t.
Since this argument may be used to pass pointers, uint32 is not
correct for 64-bit. Effectively no change on 32-bit targets, both
size_t and uint32 are unsigned long there.
2012-07-21 14:33:27 +01:00
Alex Smith
5f6b522746 Merge branch 'master' into x86_64 2012-07-21 14:17:22 +01:00
Alex Smith
e6e6f56ccf Include compat/sys/kernel.h rather than "kernel.h".
Using "kernel.h" was pulling in the private kernel.h header instead,
which was causing a build failure on my branch since arch_cpu.h is
C++-only there.
2012-07-21 14:09:08 +01:00
Alex Smith
5234e66d32 Optimized memcpy/memset for x86_64. 2012-07-21 11:55:13 +01:00
Alex Smith
6497f6b1ec Moved the exception handling functions to arch_int.cpp, shared between x86 and x86_64. 2012-07-21 09:11:09 +01:00
Alex Smith
4451c47c64 Compile generic_x86 CPU module for x86_64. 2012-07-21 08:32:07 +01:00
Ingo Weinhold
0a592099a9 Debugger: Rework CLI setup to no longer create a BApplication
The main thread does now serve the CLI input loop.
2012-07-21 09:19:18 +02:00
Alexander von Gluck IV
5ba5e31f8a usb_serial: clean up usb device identification
* Update FTDI, KLSI, Prolific, and Silicon drivers to share a
  common structural layout for device identification.
* More flexible and cleaner than massive switch case statements.
* Avoids the problem of different chipsets from identical vendors.
2012-07-20 22:22:38 -05:00
Philippe Saint-Pierre
2d5785ba12 CID 611239: Fix resource leak 2012-07-20 21:50:13 -04:00
Rene Gollent
902a98ad83 Fix #8753.
- Store whether or not the use of the horizontal scrollbar is desired
  on the class itself. If the CLV was set to use the horizontal scrollbar,
  and then asked to lay itself out while hidden, it would incorrectly assume
  the horizontal scrollbar wasn't in use, and consequently repositioned its
  views such that the horizontal scrollbar and outline view overlapped.
2012-07-20 19:35:21 -04:00
Philippe Saint-Pierre
cb1f2e6525 Precedence of operators issues
Bitwise OR is taking precedence on Conditional operator.

CID 701957, CID 602560
2012-07-20 18:31:44 -04:00
Philippe Saint-Pierre
599150a3fc CID 701957: opendir() NULL returns weren't accounted for. 2012-07-20 18:31:44 -04:00
Philippe Saint-Pierre
8f226f2e87 CID 602195: use sizeof() of structure rather than pointer 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
a65ef31585 CID 609036: Avoid to exceed length of string 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
cd383c3378 CID 610802: Unchecked return of FindMessage() 2012-07-20 18:31:43 -04:00
Philippe Saint-Pierre
c6df3cf4dc CID 702244: Uninit members were never used 2012-07-20 18:31:42 -04:00
Philippe Saint-Pierre
739ed61c38 CID 709703: Order of ops was unclear, but insignificant 2012-07-20 18:31:42 -04:00
Ingo Weinhold
6d60b554e6 Debugger: Some basic work to get the CLI going
There's an input loop thread which reads and parses command lines and
the infrastructure for registering and executing commands. Currently
only "help" and "quit" commands are implemented.
2012-07-20 23:32:58 +02:00
Ingo Weinhold
0f1f968ffb Debugger: Actually create the CLI, if requested 2012-07-20 23:32:58 +02:00
Ingo Weinhold
af350aa218 Add private shared class ArgumentVector
The parser is based on the FS shell's ArgVector.
2012-07-20 23:32:58 +02:00
Philippe Saint-Pierre
fc4d98a2c0 Coding style fixes, no functionnal changes.
Following comments from Axel about a previous commit of mine.  Sorry Axel for the delay.
2012-07-20 14:28:44 -04:00
Alex Smith
82694bd124 Merge branch 'master' into x86_64
Conflicts:
	headers/posix/arch/x86_64/arch_setjmp.h
	src/system/kernel/cache/block_cache.cpp
2012-07-20 18:33:46 +01:00
Alex Smith
7f7e76e461 64-bit compilation fixes for write_overlay and intel partitioning system modules. 2012-07-20 17:53:59 +01:00
Alex Smith
0063d2ba51 Various 64-bit fixes to SCSI and ATA bus managers/drivers.
Mostly compilation fixes, as well as a few 64-bit safety fixes. I've
briefly looked through everything for any obvious issues and fixed
the ones I've found, and it seems like they're working properly, though
there could be some more well hidden ones that I've missed.
2012-07-20 17:47:12 +01:00
Alex Smith
d7ec2fa3bf A couple of format string fixes for tracing printfs. 2012-07-20 17:37:37 +01:00
Rene Gollent
fe0407cd46 Fix indentation. 2012-07-20 07:34:11 -04:00
Alex Smith
12bd7812dd Ported PCI module to x86_64.
Uses the x86 architecture code, made fixes to printf formats and a
couple of 64-bit fixes. Only potentially intrusive change is that I've
changed PCI.h to use uint32 rather than ulong. I don't see any way
this would cause any issues, though.
2012-07-20 12:00:20 +01:00
Alex Smith
9d4e925cf0 Support x86_64 in config_manager. 2012-07-20 11:56:15 +01:00
Alex Smith
2865db34c8 Compile msi.cpp for x86_64.
Needed to link the PCI module, not enabling it yet though, I'm not
sure whether everything needed for it is in place yet.
2012-07-20 11:53:46 +01:00
Rene Gollent
1f80f2eec3 Fix #8749.
- When a job needs to go dependent on another job, we no longer use recursion
  to manage the execution stack. Instead the job is simply marked as waiting
  and we execute other jobs with no dependencies in the meantime. When a job
  completes, all dependents are moved back onto the unscheduled list and
  executed as needed.

- Adjustments to ResolveValueNodeJob to handle the now asynchronous nature
  of waiting.
2012-07-19 20:24:52 -04:00
ahenriksson
0237895604 CheckBlocks() calculated the group block incorrectly
Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-07-20 01:02:05 +02:00
ahenriksson
d9879eddbf A duplicate array with a single value is not allowed
Such arrays could be created by the BFS code between hrev43837 and
hrev43924, and cause the array to not be free'd when the entry is
removed.

The check in _InsertDuplicate() is not changed, as doing an insertion
will actually repair this problem.

Potentially, the code could be modified to handle this state instead,
but since checkfs can fix it, it doesn't seem necessary.

Signed-off-by: Axel Dörfler <axeld@pinc-software.de>
2012-07-20 01:02:03 +02:00
Axel Dörfler
752f5c972f cache_abort_[sub_]transaction() did not work correctly.
* cache_abort_transaction() left the block dirty which was causing bug
  #8123 as well.
* cache_abort_sub_transaction() did, in addition to not clearing the dirty
  flag, not reset the block's transaction member either if the block was
  not part of the parent transaction.
2012-07-20 00:03:38 +02:00
Axel Dörfler
0579a69564 Added a bit of documentation, minor cleanup.
* Documented the cached_block::transaction, and previous_transaction
  members.
2012-07-20 00:03:37 +02:00
Philippe Houdoin
ca741c4835 Merge branch 'master' of ssh://git.haiku-os.org/haiku 2012-07-19 23:48:23 +02:00
Philippe Houdoin
9be0c9b03c Improve SVG image identification (close #8653)
* add a sniff rule
* until we have an image translator for SVG, and since Web+ is not
  included by default in Haiku images, made Web+ preferred app for SVG images.

Note that for compressed SVGZ (*.svgz), the sniff rule will still fail miserably.
Our sniffer will need decompression support before being able to do that...
2012-07-19 23:46:26 +02:00
Andreas Henriksson
8959a4e0c3 An unused dirty block would put again into the unused list.
* This could cause bug #8123. While this fixes the crash, one underlying
  problem is still there, as dirty blocks should never leave a transaction.
2012-07-19 23:44:25 +02:00
Alex Smith
385d69fc01 Made it possible to build kernel modules for x86_64.
Added the necessary build flags for modules, and added a module (dpc)
to the floppy image for x86_64 builds for testing purposes. The module
gets loaded correctly and its code runs without issue. Only non-trivial
addition is the different method for generating kernel.so, this is
explained in the kernel Jamfile.
2012-07-19 17:53:46 +01:00
Alex Smith
0cbce9aa47 A few 64-bit fixes for ELF/module code. 2012-07-19 12:45:17 +01:00
Rene Gollent
03aa456e2e Fix mouse down handling error.
- When handling a mouse click, the button was hardcoded instead of
  passing the actual button clicked by the user. Spotted by Chris
  Roberts.
2012-07-18 23:21:06 -04:00
Rene Gollent
ed15f1b8fb Fix scrollbar handling when removing rows in BCLV.
- If removing a row results in there no longer being any rows whatsoever
  visible, force a scroll back into the visible range. Fixes #8287.
2012-07-18 23:02:30 -04:00
Rene Gollent
3a5779744e Handle compound node values in variables view.
- If the node we're looking at is a compound node, retrieve its location
  and show that as the value with an indicator to clarify that it's an object.

- Minor tweaks to tooltip format.
- Style cleanups.
2012-07-18 18:44:56 -04:00
Rene Gollent
666222d3fd Resolve register names, print memory piece size information. 2012-07-18 18:44:55 -04:00
Rene Gollent
2216ccb7e2 Implement support for tooltips in VariableView. Implements #8286.
- These show the memory or register location(s) of the variable over which
  the mouse is hovering.
2012-07-18 18:44:54 -04:00
Rene Gollent
489cc35661 Add Tooltip support to TreeTable. 2012-07-18 18:44:53 -04:00
Fredrik Holmqvist
a2e7d8df7b callout_schedule uses ticks as timeunit, not usecs.
As suggested by Rene Gollent, we used ticks as usecs.
2012-07-18 17:09:36 +02:00
Fredrik Holmqvist
4feeeb4a8f Don't write wast amounts of debug info about scanning. 2012-07-18 15:32:58 +02:00
Fredrik Holmqvist
19d67b5513 This is set in opt_wlan.h, and should only be done in one place. 2012-07-18 15:32:58 +02:00
czeidler
ee3a1ebebf Fix possible crash. 2012-07-17 11:31:45 +12:00
Fredrik Holmqvist
73fc635b3d Tick at 1000Hz not 1MHz.
Our FreeBSD networking code defined hz to 1MHz and 1 tick = 1 / hz,
but the clock code ticked 1 tick at 1000Hz.

This caused all calculations that are done on ticks, autonegotiation
and wlan scanning to be done very often as FreeBSD uses 1000 Hz
(100Hz for ARM). Defaults for autonegotiation is 5 and 17 ticks.

(Another interesting thing is that callouts are using 8% cpu...)
2012-07-16 13:52:08 +02:00
Alex Wilson
3bbf781c1a Fix #8706 in Poorman - Selecting a web dir
There is no 'name' entry in the message from a B_OPEN_PANEL BFilePanel.
Also fix a little memory leak along the way.
2012-07-16 14:59:38 +12:00
Alex Wilson
0a96da93d1 Fix style on inline methods in PoorMan. 2012-07-16 14:59:36 +12:00
Alex Wilson
c5a09a88e9 In PoorMan: use templatized layout builders.
Also clean up layout a bit.
2012-07-16 14:59:35 +12:00
Alex Wilson
a1ae802279 Convert Poorman to use the Layout API.
Also includes many style fixes.

This patch was done by tokyo6pm, and then updated by mks after changes
to Poorman broke the patch.

ticket: #3787
2012-07-16 14:59:33 +12:00
Alex Wilson
2d4288086f Make SpaceLayoutItem compose spacing using BControlLook.
This allows for passing spacing/inset flags to BSpaceLayoutItem.
Eg. in a builder, you could AddStrut(B_USE_ITEM_SPACING)
2012-07-16 14:59:32 +12:00
John Scipione
c3c5b8e8ae Update the Color Box border color in Appearance and put a TODO in. 2012-07-15 17:36:03 -04:00
Rene Gollent
8c4773f75b Adjust address semantics of CStringValueNode.
- When resolving its value, CStringValueNode now sets its node child's
  address to the address of the string buffer rather than the location of
  the originating pointer, which allows things like Inspect to pick that up.
2012-07-15 15:48:07 -04:00
John Scipione
4bb5af765f Add control mark color setting. #8054
An enhancement adding a setting to Colors under Appearance to
set the mark color of radio button and check box controls.
2012-07-15 15:09:04 -04:00
Rene Gollent
17ef26a9f8 Add inspection context menu action.
- TableCellContextMenuTracker now supports menus that don't have a settings
  submenu, since some variables won't have renderer settings but will still
  have context actions.

- Add _GetContextActionsForNode() to retrieve the list of contextual actions
  available for a given model node. Currently this is only adds an action
  to inspect the memory address of the highlighted value, but will be extended
  for other actions later.
2012-07-15 14:34:56 -04:00
Rene Gollent
ae8018310a Set default target in PrepareToShow(). 2012-07-15 14:34:34 -04:00
Rene Gollent
544a66de68 Extend MSG_SHOW_INSPECTOR_WINDOW to allow specifying an initial address. 2012-07-15 14:34:33 -04:00
Rene Gollent
0712121cdb Add support for actions to TableCellContextMenuTracker.
- VariablesView's context menu tracker now optionally accepts contextual
  actions to add to the menu in addition to the current renderer settings.
2012-07-15 14:34:32 -04:00
Rene Gollent
8293199831 Add definition for a general-purpose action menu item. 2012-07-15 14:34:31 -04:00
Alexander von Gluck IV
e233998005 radeon_hd: Skip 9DIN connector.
* Since we really don't support multiple
  heads well, skip 9DIN for the moment as
  it is a luxury.
2012-07-15 11:58:19 -05:00
Fredrik Holmqvist
6d51de482c Disabling interrupts before entering sleepstates.
This didn't work properly before but seems to work fine now.
Also added a panic for now, to find out if it is an issue atm.
2012-07-15 14:34:43 +02:00
Fredrik Holmqvist
cad6c2c536 Fix compilation after rename and switch to cpp. 2012-07-14 22:19:31 +02:00
Fredrik Holmqvist
775afec4cc Simplify source file names and go from .c to .cpp 2012-07-14 22:19:31 +02:00
Rene Gollent
6faa3c9766 Fix #8729.
- If we're asked to generate an entry for a tag we don't recognize,
  return an error so don't then attempt to add a null/invalid entry into the
  compilation unit's entry list and later crash dereferencing it.
2012-07-14 12:09:11 -04:00
Rene Gollent
c163f973e6 Fix resource leak in error cases. CID 611238. 2012-07-14 11:24:22 -04:00
Rene Gollent
2a8e9bb83d Fix missing break statement. CID 611232. 2012-07-14 10:40:44 -04:00
Rene Gollent
c22cb42c69 Clean up dead code. CID 611306. 2012-07-14 10:37:25 -04:00
Alex Smith
b2cd72d8f3 Implemented arch_debug_call_with_fault_handler for x86_64. 2012-07-14 09:23:48 +01:00
Alex Smith
368f253347 Merge branch 'master' into x86_64 2012-07-14 08:49:14 +01:00
Rene Gollent
89149ce667 Extend IntegerFormatter to handle non-hexadecimal properly.
- When asking for signed/unsigned, IntegerFormatter was previously
  treating all value types as int64, which would result in much larger
  than expected values in the variable list in some cases. Inspect the actual
  integer type of the variable and adjust the format string accordingly in
  order to deal with that.
2012-07-13 21:04:50 -04:00
Rene Gollent
f55410e169 Fix uninitialized member variable.
- This would randomly prevent the inspector window from being usable
  since we wouldn't create it, thinking it already existed.
2012-07-13 19:49:07 -04:00
Rene Gollent
975867a4ff Fix drawing bug in BStringField.
- If a string column was exactly the correct pixel width for the strings
  contained within it, they would skip attempting to truncate the string.
  However, the truncated string was always used for final drawing, with
  the end result that the fields would be drawn blank. This would sometimes
  manifest itself in Debugger where things like ID columns wound wind up
  showing no data until one resized the column.
2012-07-13 19:38:41 -04:00
Rene Gollent
d826a252c1 Cleanup, no functional change. 2012-07-13 18:24:57 -04:00
Alex Smith
bcb07a319b Implemented the rest of the kernel debugger functions for x86_64.
Merged with the x86 implementations, mostly the same except for a
few differences. GDB stub is currently broken, will investigate
later.
2012-07-13 14:09:09 +01:00
Ingo Weinhold
e6418c88b5 Declare syscall_numbers.h include for x86_signals_asm.S
Fixes #8718 (again).
2012-07-13 07:08:52 +02:00
Hamish Morrison
639ac47052 BTextView should not accept disallowed chars being pasted.
* Patch from #6885: This filters out any disallowed characters from text
  being pasted or dropped in. If the resulting filtered text is zero
  characters long, it beeps. Works with styled text too.
* Coding style: variables renaming by korli.
2012-07-12 23:56:36 +02:00
Jérôme Duval
5e4a2efb47 ntfs: takes read only volumes into account #8449
* initial patch from kag_anil fixed by myself
* fix log message in fs_write_attrib()
2012-07-12 21:07:19 +02:00
Fredrik Holmqvist
826e58d886 Remove old leftovers. 2012-07-12 20:38:55 +02:00
Fredrik Holmqvist
a51a5f3e1e Fixes to Haiku specific code to work with ACPICA 20120711. 2012-07-12 18:32:56 +02:00
Fredrik Holmqvist
6822cda011 Update to ACPICA 20120711.
This is an update from 20110922 and A LOT has happened since then. See
https://acpica.org/download/changes.txt for all the changes.
One of the more interesting is some problems with shutdown in ACPICAhas been fixed.
There may still be problems on our side though.
2012-07-12 18:32:55 +02:00
Alex Smith
e690e5ab3b Proper fix for GCC 2 compilation error that was fixed earlier, cause pointed out by Ingo. 2012-07-12 17:16:17 +01:00
Fredrik Holmqvist
778438b20b Remove unneeded platform headers. 2012-07-12 17:48:22 +02:00
Alex Smith
8a65fedaaa Merge branch 'master' into x86_64
Conflicts:
	src/system/kernel/arch/x86/arch_debug.cpp
2012-07-12 16:32:12 +01:00
Alex Smith
7dc738b0fb Fixed ordering of registers in arch_debug_gdb_get_registers.
Current code was sending EAX, EBX, ECX, EDX..., GDB (all versions as far
as I can tell) expects EAX, ECX, EDX, EBX... Also added missing FS and GS.
2012-07-12 15:59:50 +01:00
Alex Smith
4ebc6dfa68 Moved some 32-bit specific stuff to the 32 subdirectory. 2012-07-12 14:23:55 +01:00
Alex Smith
6e06fa6f7e Added missing validity check on relocation address. 2012-07-12 14:06:29 +01:00
Alex Smith
5774b5afa4 C++ified remaining C users of arch_cpu.h. 2012-07-12 13:54:18 +01:00
Alex Smith
6ba74ba51c Fixed compilation of the boot loader on GCC 2.
Not sure why but GCC 2 seems to be ignoring the extern "C" in smp.h when
compiling smp_boot_other_cpus() resulting in undefined references. Fixed
by putting extern "C" on the definition too.
2012-07-12 12:21:09 +01:00
Alex Smith
98614a9658 Merge branch 'master' into x86_64 2012-07-12 11:33:39 +01:00
Alex Smith
c3f0fd28cd Fixed formatting of output in some debugger commands.
Currently all debugger commands assume 32-bit pointers when formatting their
output. This means that on x86_64 the output is incorrectly formatted. Fixed
this by adding a B_PRINTF_POINTER_WIDTH definition (16 on 64-bit, 8 on
32-bit), and using this to correctly format the output. Not all commands have
been fixed yet, but all VM, slab, VFS, team, thread and image commands should
be correct.
2012-07-12 11:29:33 +01:00
Ingo Weinhold
8c51cca27e Fix accidental partial revert of 0174267 2012-07-12 11:06:10 +02:00
Ingo Weinhold
b1700b2cd1 Declare syscall_numbers.h include for x86_signals.cpp
Fixes #8718.
2012-07-12 10:54:30 +02:00
Ingo Weinhold
e2d2662bc4 Automatic whitespace cleanup 2012-07-12 10:53:42 +02:00
Rene Gollent
95453175cd Fix other part of #8710.
- When binary searching functions in the source entry list,
  comparing by name and location alone isn't sufficient, since
  templates will match those for different instances, Fixes a crash on
  exit where the wrong function would get removed from the list, while
  the one we actually wanted to remove was still in the list, but then
  had its source code cleared. This would later crash the comparison
  function due to not being able to get its source location.
2012-07-11 23:39:17 -04:00
Rene Gollent
aeadcf457d Partially fix #8710.
- When an image was unloaded, its corresponding image info was never
  removed from TeamDebugInfo's list, leading to the latter containing
  a deleted object, resulting in various random crashes.
2012-07-11 23:37:36 -04:00
Rene Gollent
c4120026a5 Refactor previous commit.
- Keep knowledge of the existence and need to search the different
  frame sections contained within DwarfFile.
2012-07-11 21:56:15 -04:00
Rene Gollent
dfa21dfeab Fix #8508.
- When attempting to unwind the call frame, we now search for the appropriate
  FDE in both .debug_frame and .eh_frame. This mirrors gdb's behavior and
  works around the ever-changing whims of the gcc developers as to which
  section the requisite FDE/CIE resides in.
2012-07-11 19:12:59 -04:00
Alexandre Deckner
2218c029a5 Add localization support to WebPositive, patch by Humdinger
* Includes style fixes
* Functional fixes by myself, patch wouldn't build
2012-07-12 00:47:46 +02:00
Jérôme Duval
f190d7d580 app_server: cleanup of the previous commit 2012-07-11 23:56:38 +02:00
luroh
d0a19242a8 Add FreeType headers dependencies, #8716. 2012-07-11 23:51:49 +02:00
Alexandre Deckner
41a212d241 Update haiku-webkit build package. Use new version info 2012-07-11 22:43:22 +02:00
Jérôme Duval
9fb13e2c1e app_server: fixed FreeType headers dependency #8716
* added DrawingEngine.cpp
2012-07-11 22:12:38 +02:00
Jérôme Duval
36daae570c app_server: fixed FreeType headers dependency #8716
* added ServerFont.cpp
2012-07-11 21:44:46 +02:00
Alexander von Gluck IV
e278dc80e9 Flurry: Fix Mesa dependency for out-of-order builds
* Resolves #8717
2012-07-11 14:15:06 -05:00
Jérôme Duval
74880af10c app_server: fixed FreeType headers dependency #8716
* added source files which use ServerFont.h and ServerApp.h
2012-07-11 20:38:10 +02:00
Alex Smith
76a1175dbe Support for SMP on x86_64.
No major changes to the kernel: just compiled in arch_smp.cpp and fixed the
IDT load in arch_cpu_init_percpu to use the correct limit for x86_64 (uses
sizeof(interrupt_descriptor)). In the boot loader, changed smp_boot_other_cpus
to construct a temporary GDT and get the page directory address from CR3, as
what's in kernel_args will be 64-bit stuff and will not work to switch the
CPUs into 32-bit mode in the trampoline code. Refactored 64-bit kernel entry
code to not use the stack after disabling paging, as the secondary CPUs are
given a 32-bit virtual stack address by the SMP trampoline code which will
no longer work.
2012-07-11 18:29:15 +01:00
Fredrik Holmqvist
0174267ad4 Move ACPICA files into acpica subdir and use acpica subdir layout.
This matches layout in ACPICA and keeps a cleaner boundry between
Haiku and ACPICA code. The only haiku specific file in ACPICA is
achaiku.h and it will hopefully be included upstream soon.

Merging will be simpler as we can just replace acpica contents and
fix Jamfile and build errors in our code.
2012-07-11 18:50:06 +02:00
Fredrik Holmqvist
e9bad6ecf5 Remove duplicate include. 2012-07-11 16:56:41 +02:00
Alex Smith
659bacac26 Compile arch_real_time_clock.cpp and arch_system_info.cpp for x86_64. 2012-07-11 14:43:44 +01:00
Alex Smith
d776fd53f7 Implemented arch_cpu_user_*() for x86_64, based on the x86 versions. 2012-07-11 14:19:19 +01:00
Alex Smith
fc644104ac Merge branch 'master' into x86_64 2012-07-11 12:24:47 +01:00
Alex Smith
609b308e64 Return B_NOT_SUPPORTED for shutdown if ACPI is unavailable (no APM on x86_64). 2012-07-11 12:23:18 +01:00
Rene Gollent
3691496222 Fix #8709.
- The buffer that the debugger used to retrieve messages from
  the debug port was slightly too small for the largest of the message
  data structs (currently 1100 bytes), causing some types of debug events
  to get truncated. This resulted in image creation/deletion events being
  received with a truncated image_info struct, which would result in several
  fields being returned with random values, most notably the text/data base
  and size fields. Consequently, searching those images for an address within
  them would fail, leading to #8709. It's possible but not yet confirmed
  that this bug is also responsible for #8710, need to test further.
2012-07-10 22:06:01 -04:00
Rene Gollent
36c85ca8df Fix add-on image unloading for shelf replicants (ticket #8708).
- The version of instantiate_object() that returns the image id from which
  the object was reinstantiated was not correctly returning it in all
  circumstances, only if it had to find/load the add-on itself. This caused
  problems for BShelf since the latter relies on that image id in order to
  determine what image to unload when replicants are removed. To remedy this,
  introduce an additional version of find_instantiation_func() that returns
  the image id in which the instantiation function was found, and make use
  of it in instantiate_object() in order to also be able to return the image
  id in that case.
2012-07-10 18:41:49 -04:00
Alex Smith
5670b0a8e4 Moved the 32-bit page fault handler to arch_int.cpp, use it for x86_64.
A proper page fault handler was required for areas that were not locked
into the kernel address space. This enables the boot process to get
up to the point of trying to find the boot volume.
2012-07-09 19:18:09 +01:00
Alex Smith
c8049a88a3 Enabled hardware interrupt handler, timers now work and threads are preempted. 2012-07-09 17:42:34 +01:00
Alex Smith
b5c9d24abc Implemented threading for x86_64.
* Thread creation and switching is working fine, however threads do not yet
  get interrupted because I've not implemented hardware interrupt handling
  yet (I'll do that next).
* I've made some changes to struct iframe: I've removed the e/r prefixes
  from the member names for both 32/64, so now they're just named ip, ax,
  bp, etc. This makes it easier to write code that works with both 32/64
  without having to deal with different iframe member names.
2012-07-09 16:43:01 +01:00
Alex Smith
8c5e747190 Don't need to shift the factor in system_time(), just store the already shifted value. 2012-07-09 12:25:49 +01:00
Alex Smith
5e9bb17da7 Renamed remaining i386_* functions to x86_* for consistency. 2012-07-09 12:14:18 +01:00
Alex Smith
ee7aba5117 Print symbol information in a stack trace. 2012-07-09 11:54:03 +01:00
Alex Smith
3b802628b8 Support ELF64 in the kernel.
This has been done by adding typedefs in elf_common.h to the correct ELF
structures for the architecture, and changing all Elf32_* uses to those
types. I don't know whether image loading works as I cannot test it yet,
there may be some 64-bit safety issues around. However, symbol lookup for
the kernel is working correctly.
2012-07-09 11:11:38 +01:00
Alex Smith
bc3093488f Changes suggested by Ingo: style fix, and a system_time optimization. 2012-07-09 09:03:11 +01:00
Alex Wilson
72cee743c2 Adapt LookTest to BMenuField API changes. Fixes #6648 2012-07-09 11:25:59 +12:00
Adam Hartford
8522ef247b Fixed minor UI issues in Screenshot (Ticket #8378)
Signed-off-by: Alex Wilson <yourpalal2@gmail.com>
2012-07-09 11:03:35 +12:00
Rene Gollent
fd04f5cc26 Fix image deletion events.
- Due to (most likely) a copy/paste error, image deletion events were
  mistakenly being sent to the userland debugger as creation events.
2012-07-08 10:50:46 -04:00
Alex Smith
93cba1da96 Fixed a bug resulting from a mistake in the boot 64-bit paging setup.
This was an interesting bug to find. Was getting spurious triple faults
in the slab allocator. The problem was that the boot paging setup code
was mapping all page tables it created into the virtual address space,
but in the kernel no areas were being created to cover them, so during
arch_vm_init_end() the pages for them ended up being freed and then
overwritten later on. Fixed by unmapping page tables after populating
them in long_mmu_init().
2012-07-08 15:03:23 +01:00
Alex Smith
cc248cf2b3 A couple of bug fixes.
* mmu_get_virtual_mapping() should check that the page directory entry is
  present rather than assuming there's a page table there. This was resulting
  in some invalid mappings being created in the 64-bit virtual address space.
* arch_vm_init_end() should clear from KERNEL_LOAD_BASE to virtual_end, not
  from KERNEL_BASE. On x86_64 this was causing it to loop through ~512GB of
  address space, which obviously was taking quite a while.
2012-07-08 11:56:06 +01:00
Alex Smith
5c7d52183c Implemented system_time() for x86_64.
* Uses 64-bit multiplication, special handling for CPUs clocked < 1 GHz
  in system_time_nsecs() not required like on x86.
* Tested against a straight conversion of the x86 version, noticably
  faster with a large number of system_time() calls.
2012-07-08 10:16:44 +01:00
Alex Smith
7444a55ce5 Merge branch 'master' into x86_64 2012-07-06 15:55:59 +01:00
Alex Smith
c15176264b Compile APIC and timer code for x86_64, and create an area for the IDT. 2012-07-06 15:24:02 +01:00
Alex Smith
15feb60325 A few improvements suggested by Ingo. 2012-07-06 14:34:50 +01:00
Alex Smith
84bf29f97b Compile in arch_platform.cpp for x86_64. The apm_init call is disabled for x86_64, APM is 32-bit only. 2012-07-06 14:17:48 +01:00
Alex Smith
ab7726a2c4 Temporary fix for create_preloaded_image_areas. Will be replaced with a typedef later on. 2012-07-06 14:04:07 +01:00
Alex Smith
e276cc0457 Finished implementation of x86_64 paging.
* vm_init now runs up until create_preloaded_image_areas(), which needs
  fixing to handle ELF64.
* Not completely tested. I know Map(), Unmap() and Query() work fine, the
  other methods have not been tested as the kernel doesn't boot far enough
  for any of them to be called yet. As far as I know they're correct, though.
* Not yet implemented the destructor for X86VMTranslationMap64Bit or Init()
  for a user address space.
2012-07-06 12:52:35 +01:00
Alex Smith
11d35d1b9b Fixed tracing printf formats in VM code. 2012-07-05 20:17:31 +01:00
Alex Smith
1671cfdf2c Improved stack tracer, traces over iframes. 2012-07-05 16:11:11 +01:00
Alex Smith
898b29e362 Added temporary stack trace function to x86_64.
Will be merged with the x86 one later on. Requires -fno-omit-frame-pointer on
the kernel build flags, GCC defaults to not generating stack frames on x86_64.
2012-07-05 15:35:43 +01:00
Alex Smith
0da10c8b51 Some fixes to the long mode switch code.
* Wasn't storing the fixed virtual address of the PML4 in kernel_args.
* After switching to long mode, reload GDTR with the virtual address of
  the GDT. This was working fine until now because the physical address
  was identity mapped, but broke as soon as I removed the identity
  mapping.
2012-07-05 13:55:59 +01:00
Alex Smith
2f36ef5afe Fixed the x86_64 setjmp implementation.
* typedef for jmp_buf was using int where it should be long.
* setjmp was clearing the buffer pointer rather than the signal mask before
  calling sigsetjmp.
* KDL now works without crashing on x86_64.
2012-07-05 13:52:36 +01:00
Alex Smith
78d482e3b8 Style fixes. 2012-07-05 09:10:50 +01:00
Alex Smith
d687d8ac70 Implementation of VMPhysicalPageMapper for x86_64 using the permanent physical memory mapping. 2012-07-04 19:57:48 +01:00
Alex Smith
40aeaeb907 Should enable CR4.PGE while switching to the kernel. 2012-07-04 18:39:23 +01:00
Alex Smith
a8f85e6e48 Removed accidently left in debug message. 2012-07-04 18:33:21 +01:00
Alex Smith
e70dd7e0af Map all physical memory in the long mode paging setup.
Since x86_64 has such a large virtual address space all available physical
memory can be mapped in to it. The physical page mapper implementation for
x86_64 will use this mapping. Also changed the mapping code to map kernel
pages with the global flag.
2012-07-04 18:28:50 +01:00
Alex Smith
950b24e32d Begun work on VMTranslationMap implementation for x86_64.
* Added empty source files for all the 64-bit paging method code, and a
  stub implementation of X86PagingMethod64Bit.
* arch_vm_translation_map.cpp has been modified to use X86PagingMethod64Bit
  on x86_64.
2012-07-04 17:08:44 +01:00
Alex Smith
4988ca58a0 Build arch_vm.cpp for x86_64. No changes required except for temporarily disabling bios_init call. 2012-07-04 14:55:11 +01:00
Alex Smith
428b9e758c Check whether gX86PagingMethod is NULL in arch_vm_translation_map_is_kernel_page_accessible.
This means that the kernel debugger won't cause a recursive panic if a
panic occurs before vm_init().
2012-07-04 14:23:35 +01:00
Alex Smith
4304bb9894 Added arch_cpu.cpp to the x86_64 build.
* Some things are currently ifndef'd out completely for x86_64 because
  they aren't implemented, there's a few other ifdef's to handle x86_64
  differences but most of the code works unchanged.
* Renamed some i386_* functions to x86_*.
* Added a temporary method for setting the current thread on x86_64
  (a global variable, not SMP safe). This will be changed to be done
  via the GS segment but I've not implemented that yet.
2012-07-04 14:06:46 +01:00
Humdinger
851c719d02 Small text changes in alert when renaming/moving special folders.
Since the button was renamed from "Do it!" to the specific action,
an additional explanation in case of special user folders isn't
needed any more.
Split text into paragraphs for better readability.
2012-07-04 08:42:38 +02:00
Alexandre Deckner
d061a70095 Fix WebPositive jamfile, cross building works 2012-07-04 02:57:38 +02:00
Alexandre Deckner
40c493ce34 Hardcode kSVNRevision = 0 until i adapt version tracking 2012-07-04 01:18:37 +02:00
Alexandre Deckner
c4ba387bf8 Adapt WebPositive build to make use of a webkit optional build package 2012-07-04 00:58:25 +02:00
Alex Smith
4e8fbfb2d1 x86_{read,write}_cr{0,4} can just be implemented as macros, put an x86_ prefix on the other read/write macros for consistency. 2012-07-03 20:55:36 +01:00
Alexandre Deckner
79adea9689 Fix src/apps/Jamfile alphabetical order
Thanks augiedoggie
2012-07-03 21:46:13 +02:00
Alexandre Deckner
08cada49a6 Apply old patch by AnevilYak, fix BMenuField border drawing
Should have been part of the previous commit, sorry
2012-07-03 21:43:53 +02:00
Alexandre Deckner
7f21f81f4f Apply old patch by AnevilYak, fix BMenuField border drawing 2012-07-03 21:31:18 +02:00
Alexandre Deckner
2ee4319d11 Remove unneeded includes 2012-07-03 21:29:38 +02:00
Alexandre Deckner
1ef59aee8e Add Jamfile for WebPositive 2012-07-03 21:12:20 +02:00
Alexandre Deckner
de3c221462 Merge WebPositive into the Haiku tree. History is preserved 2012-07-03 19:20:10 +02:00
Alex Smith
cbfe5fcd17 Removed redundant x86 sources/headers. 2012-07-03 17:38:18 +01:00
aldeck
a79446f471 * B_TRANSLATE_CONTEXT is now B_TRANSLATION_CONTEXT as per the recent change in Haiku, cf. hrev44041
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@587 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:33 +02:00
anevilyak
b4bab54a16 Be more specific about how we check the modifiers mask.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@586 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:33 +02:00
anevilyak
6c086bdf6a Don't try to filter any of these keys if modifiers are pressed. Fixes
Web+ eating things like the workspace switching shortcuts if the URL input
group happened to have focus.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@585 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:33 +02:00
leavengood
ae5b937ac2 Make the check for URLs more generic before doing a search.
Thanks for the suggestion mmlr.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@580 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:33 +02:00
leavengood
c17922668b Don't do the "smart URL handling" (also known as dumb URL handling) for file:// URLs.
Fixes #7596.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@579 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:33 +02:00
phoudoin
56b050f337 * Don't trust anymore provided MIME type (if any): use instead
the registrar's type guessing feature, which we can (and should) trust
way more.
* Notify back the download objet when it's file location has changed.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@577 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
phoudoin
1ef6069fe4 Fix why escape wasn't closing the find panel as expected (#75).
Fix fullscreen icon layout spacing issue (#76).

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@576 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
leavengood
552778e90c Align the tabs menu by using AttachedToWindow. Somewhat of a hack and I swear
InvalidateLayout worked before, but it does not seem to now.

Also use a const for an empty BString instead of returning a local for the tab
label.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@573 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
leavengood
255cade7a0 Use the loader page in the settings directory which handles the case when no
welcome page is installed (such as nightlies.)

To do: not hard-coding the settings directory.

Fixes Haiku bug #6869.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@572 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
leavengood
1af1ea8546 Implement #35: Add a tab menu. Still needs icons but this works for now.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@569 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
leavengood
1220bcc0af Add a setting to show or hide the Home button. I find it pretty useless myself.
While I was able to add this fairly easily by cutting and pasting, it was still
quite a bit of work. Seems like there should be a less-verbose way of doing
this. But it did work the first time I tested, so I can't complain too much.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@566 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:32 +02:00
leavengood
0afc39c5b1 Ticket #69. Update the icon from tweaks made by Meanwhile. Thanks!
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@565 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
a65490807d Mostly revert r563 and fix it properly. The ESC key should be dispatched to the
text view from the filter as well as from the browser window.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@564 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
a9112961b9 Restore the original URL text when the escape key is pressed.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@563 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
927bc248a3 Only use the scrollview if it is needed (to avoid the problem of a useless
disabled scrollbar.)

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@562 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
36badc2d94 Add a scrollview (with associated resizing trickery to cut-off the sides of the
scrollbar) to the auto-complete list. This now also makes the scrollwheel work
but selection by mouse still needs implementing.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@561 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
675a92e060 Implement http://webpositive.haiku-os.org/ticket/61 so that holding the command
key and using the scroll wheel will zoom in and out. Also made it so that the
scroll wheel only works when the mouse is over the view.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@560 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
ac09a47296 Make the max tab width always 300px instead of being proportional to the label
text. I think a consistent tab size is more important. Also made the minimum a
little smaller (60px.)

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@559 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
c5efa2c0b9 Use the more conventional Google search URL, not the "Instant" one.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@558 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
1526be737a Add a stupidly simple "search Google from the URL bar" feature, a la Chrome.
It still needs a lot but this doesn't seem to break anything and it already is
making my browsing more productive. The hard-coding of Google will be fixed
when some proper search engine provider handling is added.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@557 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
530dea0f16 Let the controller handle setting the default tool tip for the tab bar so it
knows the state changed. A good example of where using a controller-based
design can't be done halfway. It took me way too long to debug this (that
mostly being my fault.)

Fixes #6382.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@556 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
8d1fc88170 As indicated by Axel the border width for positioning the download window was
hard-coded. This fixes that and refactors the code a bit.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@555 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
290dc11464 Make the default location for the download window the lower right corner of
screen, like NetPositive.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@554 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:31 +02:00
leavengood
8ee88f9b6d Show the status bar and therefore the progress bar even in fullscreen mode when
a page is loading.

Fixes #6086.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@551 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
leavengood
f0db6a3bb1 Don't try to load a blank URL for a new page.
Fixes #6430.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@550 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
leavengood
8c15e23385 Set the tab label to the URL if no title is provided in the HTML.
Fixes #6330.

And so I'm back on Web+ development. Yay.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@549 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
anevilyak
26bc163200 Layout fixes that hadn't yet been committed.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@548 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
anevilyak
0e12634991 Fix BrowserWindow to work with new layout changes.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@544 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
stippi
a071b4d041 Adapt to recent layout API changes. (Untested)
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@543 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
anevilyak
a4841f3a5d Apply patch by Matt Madia: Add the escape key as a shortcut to stop page loads. Closes ticket #6409.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@541 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:30 +02:00
stippi
e71c5717b1 Account for the fact that the visible frame of a tab is one pixel larger at
the bottom. Will fix Haiku ticket #6383 when a new package is made available.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@539 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:29 +02:00
anevilyak
01abe0e23c Fix Web+ build for this morning's locale changes/cleanups.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@537 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:45:29 +02:00
anevilyak
0c93869115 Fix style violation.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@532 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:46 +02:00
anevilyak
7f88e2461b When asked to programmatically open a new URL (i.e. by being launched from another app), give the resulting web view input focus.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@531 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:46 +02:00
anevilyak
aef38397d3 Fix crash that occurred when hitting pgup/pgdn in the URL input without having the choice list visible.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@530 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:46 +02:00
anevilyak
ef6778d11e Fix building Web+ against updated locale kit (currently requires manually placing liblocalestub.a from Haiku's build tree)
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@527 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:21 +02:00
stippi
fdd4f3bbb8 Add the static items at Bookmark menu construction, so the shortcuts work even
when the menu has never been opened yet.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@526 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:12 +02:00
stippi
054e7e4344 Make sure the interface is showing when the menus are used (i.e. by invoking
Cmd-Esc shortcut).

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@524 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:12 +02:00
stippi
d848a89394 Changed download short cut from J to D, as all the rest of the shortcuts make
more sense and don't necessarily follow Firefox conventions.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@523 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:12 +02:00
stippi
ed0c70c14d * Small cleanups.
* Make sure that the BWebView for which a notification is received still exists.
  This affected only the title changed notification, for which this was already
  checked, and the icon received notification, which could actually lead to
  a crash if the tab was closed before receiving the notification.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@522 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:12 +02:00
anevilyak
591220f9b2 When disabling auto-hide, if the interface was currently still hidden, it wouldn't be restored, Closes ticket #6098.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@521 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:12 +02:00
stippi
4a09831444 When the expected size of a download is unknown, at least set the progress
bar to 100% when it finished.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@519 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
a933ccf28d When a download starts, do not start node monitoring the path while it is still
pointing to the containing folder. Fixes ticket #62.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@518 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
82117cd7eb Added "View->Page source" feature. For local files, it will open the file in the
preferred app for text/x-source-code. For remote pages, it will save a temporary
file and open the editor with that.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@517 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
807ee4b477 Revert the default of the Auto-hide mouse pointer setting, by popular request.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@515 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
3a3173e8cb Set a tool-tip for the area outside of any tabs.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@514 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
8a48f074d8 Handle B_RETURN and B_ESCAPE when the Find text control has focus. Refactored
the code to visibly invoke a BButton and use it to show the respective buttons
go down in the Find group.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@513 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
fb03e2c573 * When downloads are still in progress, warn the user when the app quits and
allow to continue downloading.
* If the Downloads window is the only window, minimize on close instead of
  hiding without any way to get the window back.
* Added menu item "New browser window" to Downloads window.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@512 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
02a2ef1969 * Small refactoring for retrieving the URL for a new tab.
* Load new files into the current tab, if the URL of that tab is either empty
  or the URL for new tabs, instead of always opening a new tab.

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@511 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
11365e77e8 Added Home button... by popular request. Will perhaps make it a setting.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@510 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
795b44ebe6 F11 -> Toggle fullscreen
F5  ->  Reload page. (Ticket #56)

git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@509 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00
stippi
0953daf31f "Manage Bookmarks" shortcut is now Cmd-M. Closed ticket #38.
git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@508 94f232f2-1747-11df-bad5-a5bfde151594
2012-07-03 15:44:11 +02:00