Commit Graph

28686 Commits

Author SHA1 Message Date
Oliver Tappe 940901b615 applied two textview-patches from Blub that fixes #3458:
* Select() did not re-show the caret when it should
* GoToLine() must hide/show the caret to avoid drawing artefacts


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 22:27:01 +00:00
Rene Gollent 2a30a9e9f1 Implemented BTextControl's string "Value" property. This fixes ticket #3494.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 22:10:41 +00:00
Axel Dörfler b32dfac5f4 * Now uses DoublyLinkedList instead of the struct list C stuff.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 21:18:29 +00:00
Axel Dörfler 8263f82d90 * Missed that when cleaning up the style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 21:13:06 +00:00
Axel Dörfler fd0803f300 * Added RemoveTail() method.
* Renamed DoublyLinkedList::Size() to Count(), since it actually counts the
  items (ie. O(n)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 21:06:19 +00:00
Oliver Tappe f9ae64e9a5 zooey + bonefish:
* optimized unmapping of a single page that was rather inefficient
  for large areas

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 20:46:18 +00:00
Oliver Tappe 31ffd6533a zooey + bonefish:
* made usable from C

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 20:42:05 +00:00
Alexandre Deckner eee6f40b8b * Archive/Unarchive refresh interval
* Minor style fix


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 20:30:21 +00:00
Stephan Aßmus 49950a1598 Patch by siarzhuk: Added an optional package for a Keymap switcher application.
Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 20:23:18 +00:00
Stephan Aßmus 7cdbeb0e13 * Changing the icon size will now work more like simply scaling/zooming the
view. BPose converts the scale in SetLocation() and Location(), which does
  _not_ affect performance for list mode, BTW. So that should be fine.
* The center of the pose view is now locked when changing the icon size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 19:46:01 +00:00
Jérôme Duval b29b9ac3d4 updated libpng to 1.2.35
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 19:33:30 +00:00
Alexandre Deckner c51d0337a1 * Rewrote BDragger's mouse tracking to be asynchronous using a message filter. Placed the filter in
kits/shared since i plan to use it in other places like Tracker. Animated replicants like 
ActivityMonitor wont stall anymore when initiating the drag. (On the desktop, Tracker's mouse 
tracking still busy loops sometimes, that's next on my list). 

I had asynchronous long click detection (one button mouse support) in it but decided to get rid of 
it, it adds unneeded complexity in the code and is even getting in your way sometimes (ex: now you can 
take your time to drag the dragger, you wont be interrupted). If we want to reimplement that 
someday it should be done system wide anyway (only Tracker and replicants have that 'feature' 
AFAIK).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 19:15:00 +00:00
Stephan Aßmus e70b6d957a * Cleanup in the icon mode stuff. kScaleIconMode is gone. There is simply
kIconMode and it can have different sizes.
* The "Icon Mode" super menu item is marked, when in icon mode, as well as
  the size item in it's sub menu.
* When switching from mini icon mode or list mode back into icon mode, the
  previous icon size is now restored. This also works when the folder has
  been closed meanwhile. (The on-disk format for view state has changed, so
  your folders will open with default values.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 18:18:12 +00:00
Clemens Zeidler 8ce14887cb Description of the provider database / attribute format.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 18:14:36 +00:00
Clemens Zeidler ed6b5cc571 Simplify the mail configuration.
- Introduce a database of known providers.
- Guess the mx server if the provider is not known.
- Guess default setting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 18:07:31 +00:00
Rene Gollent cce423c203 gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 15:21:57 +00:00
Stephan Aßmus f5bdd55475 Patch by Maxime Simon with small changes by myself: Change the icon size
menu as discussed in ticket #2431. There are only three main shortcuts for
icon, mini icon and list mode. Additional short cuts have been added to
increase and decrease the icon size. I've moved the shortcut from the 32
icon size to the menu item for the icon size menu itself. Unfortunately,
icon placement does not scale with the size (as before) and switching to
icon mode from one of the other modes does not restore the previous icon
size. Looking into it.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 13:50:24 +00:00
Stephan Aßmus ad5cf1c575 Patch by BGA/Matt Madia: Fix the location of lpe symlink home -> common. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 13:15:16 +00:00
Stephan Aßmus 86990636d4 Avoid using the heap allocator for most string drawing when reading the command
from the link. My benchmark measuring is inconclusive, the numbers are sometimes
very different. At first sight, it looks like string drawing can be up to
double as fast with this change, but sometimes, the numbers are about the same.
Hm.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 12:38:15 +00:00
Ingo Weinhold 64f22f3d0d * fs_walk():
- Get the actual node type. This seemed to be the main problem with using
    ntfs -- paths beyond the root directory could not be resolved.
  - Fixed memory leak in case of error.
* Pass node types instead of mode_t's to publish_vnode().
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:37:19 +00:00
Ingo Weinhold f1fdb02675 Added jamfile for building ntfs for userland.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:33:04 +00:00
Oliver Tappe 4e50f1ae68 * Instead of invoking _DrawLines out of the app-server drawing context,
we request the drawing via Invalidate() - this make use of the app-server's
  potential double buffering, whenever that is active. This change reduces 
  flickering in VESA mode considerably.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 11:31:10 +00:00
Axel Dörfler 865dbe341e * This should fix the tcp build when tracing is turned on.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 09:37:40 +00:00
Oliver Tappe 2da74964c0 fixed two scalability problems that made BTextView perform rather slow
with large contents:
* when searching for tab characters in DrawLine(), we now limit the search 
  to the current line, too (not only the end of the style) - this avoids
  scanning to the end of large contents repeatedly
* there's no need to refresh from the edit location to the end of the
  content in _DoInsertText(), we only need to refresh the part that has
  changed

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 09:00:52 +00:00
Stephan Aßmus 457f9cf840 If you had added Benchmark as a target, your build would have been broken,
because I forgot to add these files in my last commit... sorry.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 08:06:05 +00:00
Jonas Sundström 019f90e634 Setting the escape key as shortcut for the Cancel options of Tracker's dialogs.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 23:47:58 +00:00
Rene Gollent 0f617d4476 Fix several cases of forgetting to include libstdc++ in the libs. This allows a successful build of Haiku on gcc4 Haiku, though it's presently unclear to me why this didn't prevent linking on any other platform (gcc2 haiku, and gcc2/4 cross compilers from FBSD had no issues here).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:33:53 +00:00
Oliver Tappe f57313518e * added a test for BTextView which exposes a couple of problems
with large contents


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:28:54 +00:00
François Revol eb0703fac0 Show an explanation alert, and a score total.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:28:29 +00:00
François Revol 0fc05339c8 Score 1 point/file, 2 points/dir and -10/symlink...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:19:20 +00:00
Stephan Aßmus 0596ce4f66 One can now chose clipping or no clipping (--clipping or -c) and the drawing
mode. The ClippedLineTest is removed, since that was a dup of RandomLines
anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:10:21 +00:00
François Revol 224ceba88f Prototype of an absolutely insane game.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:56:46 +00:00
Axel Dörfler 7d33b63d40 * Fixed removing a per CPU source.
* Fixed drawing problem when adding a new source, and the draw happened before
  a new value came in.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:22:14 +00:00
Axel Dörfler 8e26f38727 * Added a ViewHistory class that stores the current values, so they don't have
to be interpolated everytime. This class also makes sure that the values are
  always from the same offsets, so the flickering is gone.
* Need to use SetMouseEventMask() or else the mouse up will be ignored when
  changing the resolution via dragging the mouse.
* Fixed a bug that prevented the DataHistory data interpolation from working
  correctly.
* The refresh threads are now working at B_URGENT_DISPLAY_PRIORITY, making the
  view updates much more stable with less jitter.
* Removed the draw refresh, and have it always be the same as the value
  refresh.
* Added lower refresh intervals (25, and 75 ms).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:05:50 +00:00
Alexandre Deckner 9cfb11a5cf * Make BDragger respect the doc and only archive/unarchive the popup menu when it's a
custom provided one. Incidentally makes #1775 (that i'll reopen in a moment, see r29947) a 
lot less likely to happen for most users since it can now only happen with those 
customized popups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 19:59:53 +00:00
Stephan Aßmus e18d4a2d06 Patch by Olivier Coursiere: When rebooting, shutdown all the system teams,
most importantly input_server, which then closes the drivers for input devices.
This in turn will do some cleanup. The touch pad driver will then be reset to
act as normal PS/2 mouse, so that OS like BeOS can use it again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 19:04:25 +00:00
Alexandre Deckner 642cc1315d * Fixes a small regression introduced in r29728, don't return B_ERROR if we couldn't lock
the popup's window, in this case the window just closed, so we go on with archiving then.
There's still a (rarely occuring) problem with the unlocking though, probably due to some 
BMenu funkyness, will investigate, left a TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 18:54:15 +00:00
François Revol 1a7cbee5c2 - cleanup
- fix non UTF-8 in comments
- fixed unix priority scaling


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 18:18:27 +00:00
Rene Gollent dd6ab6242c gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:53:33 +00:00
Stephan Aßmus a8ed06f0c1 Patch by Clemens Zeidler:
* Enable the Synaptics driver again.
* After performing the checks for the Synaptics device, issue a reset to avoid
  the device being left in a weird state. This fixes at least the weird mouse
  in VMWare with enabled Synaptics driver. Please report if there are any other
  problems! :-)

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:25:29 +00:00
Jonas Sundström 3b5c46634d Suppress ResizeView (the grey rows & columns view) when entering/leaving fullscreen mode, and when zooming. Its useful only when manually resizing the window. In the other cases it simply flickers by.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 16:56:42 +00:00
Axel Dörfler 64805bb7f0 * Copy keyboard layouts to the image as well.
* I noticed a bit too late that we usually have lower caps folder in our
  repository. Well, if someone complains enough... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:59:08 +00:00
Stephan Aßmus 418ce29089 Make Benchmark pick up the test you want to run from the command line args.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:41:41 +00:00
Alexandre Deckner 561b5d977b * Implements enhancement #2829, ie: change the modifier key (now shift) to force identify on
already identified files and change the menu item label accordingly so that the 'feature' is 
not hidden anymore.
 The identification mechanism will probably be automated in the future, forcing 
identification would then become the only use of this menu item.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:29:56 +00:00
Oliver Tappe 349a150359 build fix:
* added 'app' private header path such that ServerProtocolStructs.h
  can be found

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:13:53 +00:00
Stephan Aßmus c559a267f7 Argh! Sorry, should have been part of previous commit.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:04:31 +00:00
Stephan Aßmus 12349c7d3d Begun to use structs for the BView<->app_server communication. This makes
the protocoll less prone to errors, reduces possible points of failure and
most importantly, reduces the number of function calls to the link API.
I only know the numbers for StrokeLine(), which I tested via the Benchmark
test app. With this change, drawing random colored and positioned lines
actually doubled in speed. On the BView side, the calls to
ServerLink::Attach() only halfed, while on the app_server side, the number
of calls to ServerLink::Read() is now 1/4th. It will also be worth
investigating why the link stuff is so slow at all. I also optimized
BView::DrawString() a lot in this change, but I don't have any numbers
yet. Some other commands which used multiple Attach()/Read() calls were
also optimized, at least the most important ones. Begin/EndLineArray() was
also pretty bad on the app_server side. 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 14:59:43 +00:00
Axel Dörfler a6354157ca * Moved some stuff in data/etc/ to data/system/data because that's where
they now end up in the image.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29936 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 14:55:59 +00:00
Ingo Weinhold 3a28e9bb96 * On construction initialize fLastEventTime with the current system time.
Otherwise when restarting the input server the screen blanker would start
  immediately.
* Automatic white space cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29935 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:49:05 +00:00
Axel Dörfler 433deca87e * Made the 105 key international keyboard the default, since this is probably
more helpful to most people than the 104 key one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29934 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:30:27 +00:00