Commit Graph

37518 Commits

Author SHA1 Message Date
Ingo Weinhold
47589f1c26 Before launching a new terminal window change the current working directory
to that of the active tab. This makes the new terminal inherit it. Implements
the missing part of #6712.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 20:51:33 +00:00
Ingo Weinhold
37322c4b52 * Added new class ShellParameters that bundles all parameters passed to the
shell.
* Also added a parameter for the current working directory and. If supplied,
  it is applied in Shell::_Spawn().
* Pass the current working directory of the active tab when opening a new
  tab. Implements part of #6712.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39457 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 20:40:26 +00:00
Ingo Weinhold
6a009eb657 Removed impossible TODO: We can't set a environment variable of another
program (after it has been started). What is TTYPE anyway? Google didn't turn
anything up and there are the POSIX locale environment variables anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39456 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 20:08:17 +00:00
Ingo Weinhold
b27862d236 Reverted r39451. Instead introduced new class ActiveProcessInfo and added
method GetActiveProcessInfo() to Shell and TermView to get such an info for
the current foreground process group leader. Currently the info only contains
the ID, name, and current directory of the process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39455 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 19:47:46 +00:00
Ingo Weinhold
698fcd85da Should have been part of r39453. The libroot implementation of
get_extended_team_info().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39454 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 19:43:37 +00:00
Ingo Weinhold
56d734a1aa Added new private API to get more information on a team:
* Userland interface: get_extended_team_info().
* Syscall: _kern_get_extended_team_info.

Only partially implemented yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39453 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 19:42:08 +00:00
Ingo Weinhold
f31ab90a8d KMessage::Dump(): Fixed broken format.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39452 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 19:39:45 +00:00
Ingo Weinhold
5a76a2c142 Added ActiveProcessGroup() getter to Shell and TermView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39451 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 18:46:08 +00:00
Ingo Weinhold
ad8276321c Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39450 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 18:19:28 +00:00
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