46431 Commits

Author SHA1 Message Date
Pawel Dziepak
d57105534b vm: several improvements to VMUserAddressSpace::_InsertAreaSlot implementation
* B_BASE_ADDRESS honors requested alignment
 * end of range is honored
 * B_BASE_ADDRESS reuses B_ANY_ADDRESS code
2013-04-08 23:56:10 +02:00
Ingo Weinhold
1047e84f39 package daemon: Volume::InitPackages(): Fix error case
Don't assign fListener, when starting node monitoring fails.
2013-04-08 23:36:56 +02:00
Ingo Weinhold
a6c7f5e33c package daemon: De/-activate all changed packages together
* We first process the node monitoring events, collecting the required
  package activation changes, then apply all changes together.
* Change the PackageFSActivationChangeItem/-Request structs. The former
  is no longer variable in size, which makes it easier to work with.
2013-04-08 19:06:18 +02:00
Ingo Weinhold
ebbefc0151 package daemon: Root: Use a common job for volume work
Add VolumeJob which, besides the Volume, takes a Root method to be
invoked. That allows to replace the specific job classes by simple
methods.
2013-04-08 17:49:14 +02:00
Ingo Weinhold
2508cd615f packagefs: Volume::_ChangeActivation(): Check 0 request size 2013-04-08 17:45:24 +02:00
Ingo Weinhold
bb88feaa3a PackageFSActivationChangeRequest: Make items array 0 sized
That's more convenient to use and the actual size of an item is variable
anyway.
2013-04-08 17:45:00 +02:00
Ingo Weinhold
def92c01ee packagefs/daemon: Ignore packages/ entries without .hpkg suffix 2013-04-08 15:54:39 +02:00
Ingo Weinhold
379131d97d BString: Add StartsWith() and EndsWith() methods 2013-04-08 15:44:31 +02:00
Ingo Weinhold
91a9b5f276 package daemon: Volume: Make sure move entry events don't get split 2013-04-08 15:21:26 +02:00
Ingo Weinhold
9e4096146f package daemon: Add a Listener interface for Volume
* This way, Volume doesn't have to know Root.
* Suppress listener notifications for node monitoring events when there
  are were already events pending.
2013-04-08 15:19:11 +02:00
Ingo Weinhold
8fb3930a42 package daemon: Make all work with the packages asynchronous
There's now a worker thread per Root that does all the work that can
take time. Node monitoring notifications received in the main thread are
just pushed into the worker's job queue, so the application looper
remains responsive.
2013-04-08 00:05:51 +02:00
Ingo Weinhold
7136419383 Add shared PthreadMutexLocker, an AutoLocker for pthread_mutex_t 2013-04-07 23:59:43 +02:00
John Scipione
2b8d413116 Remove dead code hrev45464 2013-04-07 14:54:06 -04:00
John Scipione
86c4eae3ce Also nullify other saved items on delete hrev45463 2013-04-07 14:46:24 -04:00
John Scipione
1dccb7aaaf Don't call DrawExpanderArrow() directly, set a variable and Invalidate() 2013-04-07 14:46:23 -04:00
Siarzhuk Zharski
3d1492487d Fix support of East Asian Full Width characters
* Re-enable full-width characters detection and display;
* Fix cursor drawing on full-width characters;
* Fix debug dump for multi-byte characters;
* Fix file permissions for debug capture log.

Fixes #6717. Also may improve behaviour related to #6227.
hrev45462
2013-04-07 20:18:21 +02:00
Siarzhuk Zharski
b6fd91b409 Switch BUnicodeChar to wrap the ICU's UChar32 one
Improve the unicode character processing and classifying routines by
wrapping up the UChar32 procedures from ICU. That fixes functional
regression introduced in hrev38017 and allows to fix East Asian Width
problems int the Temrinal.
2013-04-07 20:14:37 +02:00
Siarzhuk Zharski
4e17bdd83f Fix CID991252: Possible NULL dereference on scheme name
The color scheme name pointer is dereferenced but was not checked for
NULL value.
hrev45461
2013-04-07 19:47:51 +02:00
Siarzhuk Zharski
b249a7ce43 Fix CID991683: Uninitalized scalar field
fOldTitleUSerDefined was (surprice-surprice!) not defined.
2013-04-07 19:47:39 +02:00
Siarzhuk Zharski
34a1a44dad Fix CID609944: Uninitialized scalar field
Default constructor for UTF8Char has not initialize it's data.
2013-04-07 19:46:57 +02:00
Siarzhuk Zharski
0d75239fb7 Fix CID991133: Same if expression was duplicated 2013-04-07 19:46:12 +02:00
Siarzhuk Zharski
4755a0794e Fix CID992335,CID992334: Check FindRef/String returns
Satisfy Coverity by checking return values of FindRef and FindString
calls for fSavedMessage.

Resolves CID992335 and CID992334.
2013-04-07 19:46:00 +02:00
John Scipione
9f2cce2faa Eliminate repeating CountItems() loop premature micro-optimization
Loop backwards if possible, if not, set a variable and use that instead.
There were a couple of instances where the loop style got changed from
    for (int32 i = CountItems(); --i >= 0;)
to
    for (int32 i = CountItems() - 1; i >= 0; i--) {
but should be functionally equivalent.
hrev45460
2013-04-07 13:01:29 -04:00
Alexander von Gluck IV
7cb974614f NetworkSetup: Use std max vs max_c hrev45459 2013-04-07 11:16:24 -05:00
John Scipione
17c9912b90 Another tweak, make the left diagonal arrows flush left.
This moves the left up and left down arrows 1px to the left so that they are
flush with the left side of the container they're drawn in.
hrev45458
2013-04-07 11:40:22 -04:00
Ingo Weinhold
6978941aac packagefs: Remove support for multiple package domains per volume
That also get rid of the job stuff and the package loader thread.
2013-04-07 13:52:41 +02:00
Ingo Weinhold
af5c10ab19 packagefs: Remove the packages directory node monitoring 2013-04-07 12:21:54 +02:00
Ingo Weinhold
3d53bd473b package daemon: Add package monitoring and de-/activation
* packagefs: Disable (comment out) node monitoring of the packages
  directory.
* package daemon:
  - When a packagefs volume is added load the respective packages
    directory and get from the volume which of the packages are
    activated.
  - Add node monitoring for the packages directory and
    activate/deactivate packages as packages are added/removed.
2013-04-07 12:02:18 +02:00
Ingo Weinhold
17bb54dc38 packagefs: ioctls for getting and changing package activation
* Add PACKAGE_FS_OPERATION_GET_PACKAGE_INFOS which returns the node refs
  of all packages activated.
* Add PACKAGE_FS_OPERATION_CHANGE_ACTIVATION to activate/deactivate
  multiple packages.
2013-04-07 11:53:50 +02:00
Ingo Weinhold
e85e9dadda packagefs: Move the package loading code to Package
* Volume::_LoadPackage() -> Package::Load()
* Volume::_DomainEntryCreated(): Pull a bit of code into a new
  _LoadPackage() method for reuse.
2013-04-07 11:45:47 +02:00
Ingo Weinhold
27197fd74b packagefs Package: Add getters for device and node ID 2013-04-07 11:38:03 +02:00
John Scipione
348cd0c5de Tweak the diagonal arrows so they are square hrev45457 2013-04-07 04:03:00 -04:00
John Scipione
e6b6af80bd Fix a crash bug I introduced to Deskbar last commit
Need to set fLastClickedItem to NULL so it doesn't point to a deleted item.
Sorry about that.
hrev45456
2013-04-07 03:29:11 -04:00
John Scipione
5b0fd10d23 Animate the expander arrow
On MouseDown draw a diagonal arrow, on MouseUp complete the animation and
expand. If you hold down the button it will stay diagonal until you MouseUp
and either return to normal or animate and expand if over the arrow.

Reformatted ExpandoMenuBar.h and TeamMenuItem.h
Renamed fLastClickItem to fLastClickedItem
Added a DrawExpanderArrow() method
Renamed private InitData() method to _InitData() and moved it to the bottom
hrev45455
2013-04-07 03:02:05 -04:00
John Scipione
1b41173c8a Add diagonal arrows to ControlLook DrawArrowShape() method 2013-04-07 03:02:01 -04:00
John Scipione
c6b72ad6e4 Tiny style fix, thanks Axel 2013-04-07 03:02:00 -04:00
Alexander von Gluck IV
2895c48c12 NetworkSetup: Add stats and wifi network name
* Add ability for fSettings to pass on network
  stats
* Show KB Sent / Received for interface
* Drop the wireless / wired tab name.
  (we are going to need another tab for wifi)
* Add wifi network name to connection field
  if interface is wifi.
hrev45454
2013-04-07 06:44:37 +00:00
Alexander von Gluck IV
960bf9918b NetworkSetup: Cleanup headers; No functional change 2013-04-07 05:41:04 +00:00
Alexander von Gluck IV
93708c3da3 NetworkSetup: Spelling: Wirless -> Wireless 2013-04-07 05:16:50 +00:00
Alexander von Gluck IV
04b7652fea NetworkSetup: Build fix. max vs max_c
* max can only be used in C apps.
  C++ apps use max_c
2013-04-07 05:15:22 +00:00
John Scipione
542de916c4 Add and use an _Init() method for BarTeamInfo hrev45453 2013-04-06 22:45:33 -04:00
John Scipione
de49a051ea Update expander arrows to point right or down (if expanded)
... like BeOS R5. I looked in the commmit logs for this one and there wasn't really any
explination for why this got changed, so, I'm changing it back to the way it was in R5 which
is right arrow for unexpanded, down arrow for expanded. Please yell at me if this change
was intentional.
hrev45452
2013-04-06 22:12:47 -04:00
John Scipione
9bc3b671fb Fix a bug involving the Vulcan Death Grip closing the wrong app
If you have expander turned on with expanded apps and you quickly remove teams with the VDG
you can remove a team not under your mouse pointer, instead you remote the team above. This
is because the window watcher thread hasn't updated yet so the TeamItemAtPoint() method
reads a window menu item instead of the team item. The solution is to lock the window
watcher thread and explicitly remove the window menu items in RemoveTeam().

This bug can be really bad if you accidentially VDG Tracker as your system gets hosed until
you restart Tracker or reboot.
2013-04-06 22:12:46 -04:00
Rene Gollent
e257ac49cb Add human-readable formatting for area protection/locking flags. hrev45451 2013-04-06 20:38:04 -04:00
Ingo Weinhold
2d8ec1d502 Add the obvious node_ref constructor 2013-04-06 23:30:18 +02:00
John Scipione
ab3c19541d Move B_COLOR_WHICH_COUNT to private ServerReadOnlyMemory header.
This means the B_COLOR_WHICH_COUNT goes from being a public constant to a
private one. It sill looks like a public constant starting with a B_ though.
I hope that's not a big deal. Too bad we can't get the count of an enum.
hrev45450
2013-04-06 17:13:36 -04:00
Stefano Ceccherini
cb5f68f44c Don't open a socket, since we don't use it.
Also removed fSocket from the class.
hrev45449
2013-04-06 19:36:52 +02:00
Jerome Duval
0837d6c650 GCC4 cross tools: builds with ppl and cloog when --use-gcc-graphite is given hrev45448 2013-04-06 14:32:12 +02:00
Jerome Duval
ed38d2efcc Forgot to add the usage for --use-gcc-graphite hrev45447 2013-04-06 14:07:24 +02:00
Jerome Duval
748c10f222 Added a configure option to activate Graphite compilations flags
* check if GCC actually supports Graphite flags when the option
  --use-gcc-graphite is used
hrev45446
2013-04-06 13:58:46 +02:00