Commit Graph

37409 Commits

Author SHA1 Message Date
Ingo Weinhold
490f785868 Override BApplication::QuitRequested(), so that when the system is shutting
down, we can skip the checks for running processes. At least I found the
alerts seriously annoying in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 16:26:28 +00:00
Ingo Weinhold
91eec68cf1 Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 16:01:11 +00:00
Ingo Weinhold
53cd28e9d5 Still-running-processes warning:
* Made the phrasing consistent: "quit" -> "close", "OK" -> "Close".
* Use a more fitting text when only closing a terminal tab.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 15:39:36 +00:00
Axel Dörfler
7c90c6bb11 * Do not precache anymore if we're low on memory anyway.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 21:48:09 +00:00
Axel Dörfler
1d219b3a25 * Added AS_DUMP_ALLOCATOR command that dumps an applications memory allocator to
the syslog/serial output.
* Added app_server_debug command that currently just sends this command to the
  specified teams.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 21:25:03 +00:00
Axel Dörfler
128f46a034 * Automatic whitespace cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39440 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 21:23:38 +00:00
Axel Dörfler
da6b5d6d3f * Cleanup, no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 19:35:43 +00:00
Axel Dörfler
55a54abc90 * Fixed build.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39437 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 18:31:21 +00:00
Philippe Houdoin
495e073b20 Don't skip subprogram DIEs with prototyped attribute, which make loading functions from
plain C program actually works.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 17:44:18 +00:00
Alex Wilson
e7b9974180 In Media preflet:
* Refactor MediaListItem into four/five classes:
	* MediaListItem : abstract base class which provides an interface for
		MediaWindow and MediaListItem subclasses
	* NodeListItem : list item for media nodes
	* DeviceListItem : list item for audio/video settings (device selection)
	* MixerListItem : list item for the audio-mixer
	* MediaListItem::Renderer : does the drawing of MediaListItems, which supply
		render paramaters via a 'SetRenderParamaters()' method.
* Comparison of MediaListItems (for sorting) is done via double-dispatch
* MediaListItem provides a pure virtual AlterWindow() method, which removes the
	burden of distinguishing between different behaviours from MediaWindow.
* Add methods to MediaWindow for the MediaListItems to call in their
	AlterWindow() implementation, eg. SelectNode()
* Seperate code into these methods, as well as a few private utility methods.
* Add a RAII-style 'SmartNode' nested class for MediaWindow, which handles
	watching/unwatching allocating/deallocating of media_nodes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 08:45:11 +00:00
Clemens Zeidler
f1c707c4a2 - Fix a TODO: get the border width and tab height directly from the decorator and don't use hard coded values. For example, you can tile tab less windows probably together now.
- Only use min size constraints now. If there is a clash between a window with a max size and another window with a min size the max size is ignored and the size is enlarged if needed. When removing this window from a S&T group the old size limit is restored.
Same is done for none resizeable windows.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-15 02:54:15 +00:00
Axel Dörfler
e206972309 * Removed the "shrink to window" option. Instead, there is now a "Fit to window"
menu item that just does that. Additionally, the image is always fit to the
  window size when first shown, or if the full screen mode switches.
  That also fixes #6765, and #6810.
* The ImageCache now also passes a referenced BitmapOwner object, and bitmaps
  are now actually freed when it's allowed to.
* Pressing the zoom button will cause ShowImage to enter full screen again. For
  some reason this has been removed as part of r19540.
* The progress window is now visible again, although not that often, as you will
  only see it for images that were not in the queue already. The window is now
  known to the ShowImageWindow instead of the ShowImageView.
* Moved most constants out of ShowImageConstants.h to where they belong.
* Dropping an image now opens it in another window.
* Removed EntryMenuItem as it's no longer used anywhere.
* Minor other cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 23:45:15 +00:00
Andreas Färber
cb49ed72a6 boot_loader_openfirmware: Fix trace output
Update the variable name.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 19:04:48 +00:00
Axel Dörfler
056d4c2e1e * The FolderNavigator now allows you to open a folder directly as well.
* The TrackerNavigator should do the same in the future, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39427 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 12:46:32 +00:00
Axel Dörfler
ee87203426 * Start numbering the CPUs with 1 instead of 0. This closes ticket #6816.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39426 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 11:29:50 +00:00
Axel Dörfler
954c60cb56 * _wasDocument may be NULL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39425 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 11:27:58 +00:00
Axel Dörfler
be3f9645a7 * Make sure that the per CPU data sources are inserted in the correct order
(ie. starting with the first CPU).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 11:27:24 +00:00
Michael Pfeiffer
f14cab2d36 * Added support for the remaining Gutenprint setting types:
Boolean, Int, Dimension and Double.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 10:58:10 +00:00
Matt Madia
fc07b8e222 Renamed "Click to activate" to "Click to focus and raise". Jugding by #6421 and
the related ML thread, there seems to be more consensus with that wording.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 00:10:21 +00:00
Matt Madia
67fb47c908 Automatic whitespace cleanup. No functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39420 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-14 00:07:08 +00:00
Axel Dörfler
4697f6ac33 * _LaunchApp() will now retry launching the app if the initial try ended with
an invalid META:PPATH attribute.
* _ResolveApp() now also sets the _wasDocument variable correctly for the
  _TranslateType() case. This lets _LaunchApp() properly detected invalid
  META:PPATH attributes.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 19:50:21 +00:00
Axel Dörfler
b15f7f0ed5 * Removed the output if unarchiving the message failed - since this is used in
a translator as well, this might just be expected.
* Minor style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 19:44:03 +00:00
Rene Gollent
1a5bb78d9e Cleanup: store and retrieve the relocation delta from
the evaluation context instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39416 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 01:31:40 +00:00
Oliver Tappe
de2e54ace0 Adjust tzset() implementation to better follow the POSIX specs and
make some more perl tests happy.
* no longer expect a ICU timezone ID in the TZ environment variable,
  but only expect this format if the TZ-value is starting with ':'
* accept "standard" TZ-values like "EST5" (of which only "EST" is
  relevant to us) - if such a value is specified, we hardcode the
  timezone name to the given value, no matter how ICU calls it
* adjust tests accordingly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39415 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 01:13:38 +00:00
François Revol
2dfeefba17 Copy the buffer_info on buffer exchange so as to avoid getting segfault with interrupts disabled, which at least happened several times here in QEMU.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39414 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 00:44:50 +00:00
Oliver Tappe
bc3791e867 * add symbolic constants for the langinfo constants, as that's what
is required by the POSIX specs (and some perl tests rely on it)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39413 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 00:22:40 +00:00
Oliver Tappe
5ae9cf0060 * fix warning about deprecated conversion
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-13 00:21:23 +00:00
François Revol
040eb824e4 Add missing copyright to mmlr. Please check.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-12 15:12:37 +00:00
Rene Gollent
3a1ce93bc7 When computing absolute addresses, take the image relocation
delta into account. Fixes retrieving the addresses and
consequently values of static variables.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39407 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-11 23:58:17 +00:00
Matt Madia
2f0376a62f Moved the unreserve_device() from ali_terminate() to uninit_driver(), to keep
consistency between drivers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:50:52 +00:00
Matt Madia
f05409cfb1 Moved the unreserve_device() from ice_1712_shutdown() to uninit_driver(), to
keep consistency between drivers.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39401 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:40:55 +00:00
Matt Madia
f84079e242 Replaced $(baseLibURL) with $(baseURL)/lib.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39400 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:31:07 +00:00
Matt Madia
c1af51fdc1 Moved some catkey files around for Screenshot (the GUI app) and screenshot (the
CLI app).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 23:18:03 +00:00
Axel Dörfler
5fe97f21b6 * Added WirelessNetworkMenuItem class that uses the RadioView static Draw()
method to indicate the signal quality.
* If a wireless driver is found, we now use the new BNetworkDevice class to
  retrieve a list of known networks, and show them in the popup menu. You can't
  do anything with this list yet, though (ie. you cannot connect this way yet).
* Use the new BNetworkRoster/BNetworkInterface class to retrieve the list of
  interfaces, and the flags for an interface instead of using ioctls.
* Removed the about menu item for now.
* Minor coding style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39395 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 22:21:39 +00:00
Axel Dörfler
223cae9fe6 * Implemented IsEthernet(), and IsWireless() temporarily, but this will do
for some drivers at least.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 22:16:48 +00:00
Axel Dörfler
4f1ec5b242 * Made bosii header self contained.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:54:47 +00:00
Axel Dörfler
d72ede75fb * We now use a FreeBSD compatible ifmediareq structure for SIOCIFMEDIA, and
SIOCSIFMEDIA.
* Made sure that the two media ioctls are actually forwarded to the driver.
* Added NetworkDevice.cpp to the build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:44:26 +00:00
Axel Dörfler
e78fea43f5 * Added a bit more debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:30:10 +00:00
Axel Dörfler
9dd26e81ab * Added xauth authentication module needed for WPA.
* Forwarded a few more ioctls to the driver.
* Enabled debugging mode for now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 21:28:07 +00:00
Stephan Aßmus
506a7b97c1 Prevent the shutdown dialog from minimizing without an entry
in Deskbar (registrar is a background application). Fixes ticket
#6809.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39385 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 10:51:47 +00:00
Stephan Aßmus
c8fa948b2a close() is defined in unistd.h as per the OpenGroup. Hope this
works on all host platforms, fixes the build on Linux at least.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39384 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-10 09:02:15 +00:00
Stephan Aßmus
8e61947230 Don't leak file descriptors.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39383 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 23:28:07 +00:00
Oliver Tappe
612333a601 Fix crash reported in #6805:
* check if we actually have a selected item

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 22:08:35 +00:00
Axel Dörfler
71dc3c41c3 * Added a way to set the target for a BDirMenu; this didn't work well with
BNavMenus, anyway.
* This fixes ShowImage trying to open anything that is not on top level.
* Automatic white space cleanup in DirMenu.* - I hope Alex doesn't have any
  changes in this file...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39381 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 21:58:54 +00:00
Oliver Tappe
bd13a264f7 Fix #6740:
* remove declaration of ctype-..._l() functions, as we do not provide
  them and they are not really needed by our hacked glibc
* replace remaining invocations of isspace_l() and isupper_l() in glibc
  with isspace() and isupper() respectively
This allows libroot to be built in DEBUG mode, again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39380 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 21:36:35 +00:00
Axel Dörfler
ea75a051ad * Applied patch by Rohit Yadav that fixes #6750 for ext2. Thanks a lot!
* Fixed warning in Inode::WriteAt(), but left warnings in kernel_interface.cpp
  in there; I guess that's work in progress (although having the io hook would
  be nice).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39379 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 20:34:59 +00:00
Axel Dörfler
48ec4fbb40 * Applied patch by Rohit Yadav that fixes #6750, thanks a lot!
* This changes Inode::CheckPermissions(), and bfs_write_stat() based on Ingo's
  solution in his file corruption test file system.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39378 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 20:25:43 +00:00
Axel Dörfler
a569816bb0 * Implemented preloading of the images around he current one; always two in the
direction of the current navigation, and one in the opposite direction.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39377 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 19:09:18 +00:00
Scott McCreary
729f344683 Fixed libmng URL.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39376 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 16:21:18 +00:00
Philippe Houdoin
801843aed6 Patch by Barrett:
Initialize the stream's IO buffer, otherwise it could crash in ~StreamBase().
It's only initialized when the media format was actually successfully probed.
Fix #6595. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-09 15:46:23 +00:00