Commit Graph

32549 Commits

Author SHA1 Message Date
Ingo Weinhold dd2cdb3a75 Set B_ESCAPE as shortcut for all BAlerts. Fixes #6850 and #6858.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 19:52:16 +00:00
Ingo Weinhold 105093fddb * Added new class TerminalRoster, which maintains a list of all running
terminals, including their window minimized status and workspaces. These
  information are shared via our special-purpose clipboard. TerminalRoster
  mainly acts as a cache.
* Removed the terminal ID management from TermApp. Most is now done by
  TerminalRoster, the rest has been moved to TermWindow.
* Moved the terminal position file reading/writing from TermApp to TermWindow.
* Moved the remaining terminal window title handling from TermApp to TermWindow.
* Replaced the solution for #6613 implemented in r39530 (enabling/disabling the
  "Switch Terminals" menu item depending on whether there are other Terminals).
  The new solution is more correct, since it does enable the menu item, if and
  only if switching to another Terminal will happen when triggering it. I.e.
  minimized Terminals and ones on other workspaces are ignored.

Should also fix #6612, since there's no synchronous communication between
different terminal apps anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 19:31:19 +00:00
Ingo Weinhold 441d3509c9 Removed debug leftover.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 18:35:32 +00:00
Jérôme Duval 3ae6771c5f merged ffmpeg 0.6.1 into trunk
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39560 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 17:51:21 +00:00
François Revol 3bb30583a3 Fix the licence, we use MIT now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 17:03:03 +00:00
Philippe Houdoin f52f6f2e4d Add space to disallowed chars for MIME type or subtype.
Fix #6853.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 14:02:53 +00:00
Philippe Houdoin 95d32039c6 Fix locale variables names violating style policy.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 13:26:55 +00:00
Rene Gollent 0741a7c295 Automatic whitespace cleanup.
When in single window mode, also add opt+cmd+down as a shortcut to navigate to the selected folder in a new window. Fixes ticket #3548.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-21 02:29:38 +00:00
Axel Dörfler f088cd3e6e * Fixed incorrect indentation (spaces vs. tabs), thanks korli!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 21:54:08 +00:00
Axel Dörfler 5188c282ad * Renamed private methhods to have an underscore prefix.
* Ordered methods as they are declared in the header.
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 21:03:50 +00:00
François Revol 34dc99625d Update copyrights.
Btw Axel, keyboard.cpp (forked from the bios_ia32 one) is still under "OpenBeOS licence" with 2 other copies, I suppose you are ok to change to MIT ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 18:41:52 +00:00
François Revol 180ffdeaa4 Cleanup. Try to exit ARAnyM from platform_exit().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 18:25:51 +00:00
Axel Dörfler 15d26d2cef * Applied patch by Tamás Krutki that adds some statistic info to StyledEdit.
Thanks for the patch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 18:17:03 +00:00
Jérôme Duval cae9b9d83a correctly initialize fStreamInfo[i].hasCookie
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 18:04:35 +00:00
François Revol 866bb10f42 Add some more Falcon video modes. Use VsetRGB() to set 8bit palette, though it's not really useful yet.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 17:33:44 +00:00
François Revol 20d6d508c1 Add the VsetRGB() XBIOS call.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 17:29:39 +00:00
François Revol 7a2ec456cf For now only output debug text on screen if framebuffer is not enabled.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39542 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 17:24:18 +00:00
Jérôme Duval b1ed9a63d7 * some style and whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39541 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 17:03:02 +00:00
Jérôme Duval ebe3c563da Fills frame variable even when not seeking to frame. This fixes bug #6828.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 16:49:34 +00:00
Jérôme Duval cf85a555b0 * added some missing bits and removed obsolete files in ffmpeg-0.6
* replaced .. with $(DOTDOT) in Jamfiles
* added __STDC_CONSTANT_MACROS define for C++ files (required for UINT64_C)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 15:59:05 +00:00
Jérôme Duval f3ed9d3a45 added usb_modeswitch driver: It handles USB devices which require some actions to activate the useful interfaces.
* Tested with HUAWEI 3G Modem (12d1:1446 => 12d1:1001).
* Devices reference is usb-modeswitch-data-20100826 (added eight vendors).
* The driver doesn't expose any device entries, hence it should be linked at dev root.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 12:40:59 +00:00
Clemens Zeidler 2aa6775158 Fix restoring of stacked windows.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 07:07:32 +00:00
Clemens Zeidler 9ff327dea3 - Make MessageForListener a bit more flexible, passing a fix ServerLink is sometimes not enough and a separate sender and receiver is needed.
- Add communication part to restore and save S&T groups.
- Fix call of GetDecoratorSettings listener hook.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39534 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 06:47:20 +00:00
François Revol 2d84444351 Native Falcon video modes support, including truecolor (16bpp chunky) which we can use for the boot splash. Some debugging code left to cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 04:30:49 +00:00
François Revol 67572c21e8 Print natfeat IDs as hex.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39532 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 04:29:12 +00:00
François Revol ffc80aab15 Add some needed XBIOS calls.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39531 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-20 04:28:44 +00:00
Ingo Weinhold b216f4070e Enable/disable the "Switch Terminals" menu item depending on whether there are
other Terminals. Fixes #6613.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 23:51:16 +00:00
Ingo Weinhold 45a4344050 MessageReceived(): More descriptive variable name.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 23:49:46 +00:00
Ingo Weinhold 2e394a4764 As suggested by Humdinger, replace "%p" by "--", if the shell is the active
process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 22:27:46 +00:00
Axel Dörfler d0405baf86 * Fixed #3042 as suggested by Stippi (looks like I'm quickly following Ingo's
great example at getting senile - at least he told me about this solution
  before; the same trick is already used in SetZoom()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39527 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 21:57:31 +00:00
Ingo Weinhold a9e89a7325 Also made LayoutContext() const.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 21:53:25 +00:00
Ingo Weinhold df7309870f Made AncestorsVisible() const.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39525 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 21:26:54 +00:00
Jérôme Duval ee72866293 merged freetype 2.4.3
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 21:01:29 +00:00
Jérôme Duval d8c9110cb6 updated libpng to 1.4.4
avoids warnings for gcc2 (deprecated attribute)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 20:20:05 +00:00
Philippe Houdoin 5a2f51f20e Added WebPTranslator to Haiku image, with due credits in AboutSystem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39516 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:45:37 +00:00
Ingo Weinhold 47dbffcd1e Added a "Close other tabs" item to the tab menu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:30:09 +00:00
Ingo Weinhold ad617d3320 * Moved some locally used message constants from TermConst.h to TermWindow.cpp.
* Added an "Edit tab title..." item to the tab menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:24:33 +00:00
Ingo Weinhold 486cd82188 Added a menu item that opens a dialog for editing the window title.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:08:05 +00:00
Philippe Houdoin 6ad0d9f232 Fix previous style cleanup ;-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39512 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 15:04:54 +00:00
Philippe Houdoin c663bd36d3 Style cleanup (thanks Korli!)
No functional changes, except for the two traces removed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39511 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:46:29 +00:00
Ingo Weinhold 19838430ab Superfluous parentheses.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39510 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:42:50 +00:00
Ingo Weinhold df2b4726b2 BLayoutUtils::MoveIntoFrame(): Fixed check. Spotted by korli.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39509 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:37:54 +00:00
Ingo Weinhold 1ded93a4b9 Use the new menu layout builder.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:30:42 +00:00
François Revol 42df5ff102 Some support for video initialization using natfeat fVDI, but sadly it seems to return NULL for the framebuffer so it's not usable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 13:52:17 +00:00
Philippe Houdoin e4f8681e79 * Switch to B_RGB24 output format
* Renamed everything after WebP, as it turns out the official name is
  case-sensitive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 13:10:16 +00:00
Philippe Houdoin 399227b7b5 Add MIME type for WEBP images.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39504 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:46:00 +00:00
Philippe Houdoin 67a224932a Add a (read-only ATM) WEBP image translator, based on Google's
libwebp decoding code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39503 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:43:27 +00:00
Ingo Weinhold 8a6bf08d49 Renamed menu related member variables.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:30:21 +00:00
Ingo Weinhold 0f7255f763 Renamed fHelpmenu to fSettingsMenu.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39501 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:26:00 +00:00
Ingo Weinhold 5feeb23410 A failing FindInt32() still modifies the result variable.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:20:41 +00:00
Ingo Weinhold 54197c6163 Don't send TermView pointers around in messages. When the message is processed
the pointer might already be invalid. Use SessionID instead.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39499 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 12:11:58 +00:00
Ingo Weinhold 713b2a7886 Added _SessionAt() helper method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 11:54:01 +00:00
Ingo Weinhold 135f173dce * Added SetTitleDialog, a dialog to edit a tab/window title.
* Use the dialog to open the tab title. Opened on double-click on the tab.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 11:49:23 +00:00
Ingo Weinhold b647673227 Moved the reusable part of the tab/window title prefs tool tips to
TermConst.h/cpp.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 11:42:47 +00:00
Ingo Weinhold 58bee54422 Renamed _CheckSizeLimits() to UpdateSizeLimits() and made it public.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 11:38:45 +00:00
Ingo Weinhold 39c1cc127a Added MoveIntoFrame() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 11:29:52 +00:00
François Revol a3f64d4460 Add a comment about why we currently force floppy boot when started from haiku.prg.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39493 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 09:02:59 +00:00
François Revol 6874c88139 When the boot drive API & id is not known, try to determine the id via natfeat. XXX not sure which API it refers too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39492 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 08:55:15 +00:00
François Revol 9c30d75b8c - use only native error codes,
- fix nat_feat_call() macro for more than 1 arg,
- add BOOTSTRAP natfeat calls get_bootdrive() and get_bootargs().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 08:51:59 +00:00
Ingo Weinhold 38d5ce6271 * Removed "move" parameter from the
TermView::Listener::{Previous,Next}TermView() methods. All B_COMMAND_KEY
  combos are intercepted by the window, so we never get them in the view.
* Added window shortcut Command-Shift-Left/Right to move the tabs.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39490 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 01:08:21 +00:00
Ingo Weinhold 52474b49a3 Added MoveTab() method.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39489 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 01:06:02 +00:00
Ingo Weinhold 92b0038ec0 Added a listener interface to TermView. This allowed to get rid of
CustomTermView and of the messaging from view to window. It also simplified
things in TermWindow.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39487 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 17:16:56 +00:00
Axel Dörfler df942b3eb1 * Always make sure the reference to the bitmap is actually released. This
should fix bug #6824.
* Don't queue more pictures if we can only use a single CPU, and the queue is
  already busy.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 16:48:14 +00:00
Ingo Weinhold b1b6854036 * Renamed the session ID to index.
* Introduced class SessionID to uniquely identify a session. Unlike the indexes
  the IDs aren't reused.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 16:26:36 +00:00
Ingo Weinhold 3c90554279 TitlePlaceholderMapper::MapPlaceholder(): Don't cut of the root '/', if the
path had less components than requested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39483 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 16:02:37 +00:00
Ingo Weinhold d4443633cc Don't require the user to hold the mouse perfectly still when click-opening the
tab menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 15:55:15 +00:00
Ingo Weinhold b28dba722e * SmartTabView::MouseDown(): Also notify the listener when the click didn't hit
a tab.
* TermWindow: Add a new tab on double-click in the tab view's tab-free area.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 15:41:06 +00:00
Ingo Weinhold d365030ea5 * Added a listener interface to SmartTabView and moved functionality that
doesn't belong in SmartTabView to TermWindow. This also allowed to get rid of
  TermWindow::TabView.
* Also check for double clicks on tabs. No action attached yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 15:08:58 +00:00
Alexandre Deckner d769c15ad5 * Remove cmd+opt+ctrl+up shortcuts since that's an undocumented old combo and it clashes with workspace navigation. Only cmd+up and opt+cmd+up remains. I've checked that it indeed conforms to the user guide, but having a second eye wouldn't hurt. Also reordered the constants for more consitency between the calls.
Fixes #6833



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39479 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 15:05:32 +00:00
Ingo Weinhold 5afe0aef82 * Use B_WIDTH_FROM_WIDEST for tabs, so the titles aren't truncated
unnecessarily.
* Invalidate the complete tab view after setting a label. Otherwise we'd get
  artifacts when the label gets shorter.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39478 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 13:58:49 +00:00
Ingo Weinhold a949fa2a67 PrefWindow::_Revert(): Also send notifications for the tab and window title
settings.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 12:54:23 +00:00
Philippe Houdoin 7015777f33 Switch the list to a BColumnListView-based one.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 12:17:51 +00:00
Philippe Houdoin 8faf0ba7cb Harmonized default even and odd lines colors with the ones used in
MediaPlayer's playlist.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39475 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 09:58:41 +00:00
Joachim Seemer a3e6f7e1df Split the massive EULA text into paragraphs to ease translations. Does the HTA site update automatically?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 08:06:31 +00:00
Ingo Weinhold 02ee32bb0d Implemented support for dynamic tab and window titles:
* Added settings for tab and window titles. Both are strings with optional
  placeholders for tab/terminal index, currently active process name and
  current directory.
* Added a generic utility class PatternEvaluator that allows to expand this
  kind of pattern strings and callback classes
  [Tab,Window]TitlePlaceholderMapper that provide the specific expansion for
  the tab and window title placeholders.
* TermWindow:
  - Separated the notions of session (== tab) and window titles. The tty
    clients no longer set the window, but the session title.
  - Use the patterns instead of the hard-coded window/tab titles.
  - Recompute all titles once a second, so changes of running programs are
    reflected.
* The default patterns for tab and window titles are "%1d: %p" (last CWD
  component and name of the running process) and "Terminal %i: %t" (Terminal
  ID and active tab title). Unfortunately the space on the tabs is seriously
  limited, so that the tab title is virtually always truncated. Ideas welcome.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39473 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 23:46:13 +00:00
Ingo Weinhold e492be3195 Added versions of the constructors that take a const BMessage& instead of a
pointer. Allows for passing a temporary object.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 23:23:09 +00:00
Ingo Weinhold 8aabb37b49 Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 23:18:08 +00:00
Ingo Weinhold 8510499a79 Fixed the FindLast() char versions. They wouldn't find a character at the
beginning of the string.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39470 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 23:17:40 +00:00
Clemens Zeidler da1c93175d Revert r39462 because it was not really binary compatible.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39469 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 22:19:09 +00:00
Clemens Zeidler f05ed377cb Add alternative code to retrieve audio meta data using the media kit. Libtag seems to work for more formats...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39468 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 22:10:51 +00:00
Ingo Weinhold 116fb65719 Removed unused support for saving/loading binary settings files.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39467 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 17:22:37 +00:00
Ingo Weinhold 8875dc741a Marked all constants static.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39466 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 16:56:29 +00:00
Ingo Weinhold b3b19de56b Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39464 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 15:37:48 +00:00
Ingo Weinhold 50913c0873 Switched shortcuts for closing the window and closing the active tab, thus
aligning them with WebPositive.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39463 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 15:27:27 +00:00
Clemens Zeidler a5cf354a27 Add protected RestoreState, SaveState functions to BApplication. HasBeenRestored can be used to check in ReadyToRun if the RestoreState function has been called. The default implementation just store the window geometry and the decorator settings. Subclass implementations can use the global restore_window_geometry, save_window_geometry function for convenience. Please review. Will commit a simple session manager tomorrow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 04:38:48 +00:00
Clemens Zeidler f72d191b12 - If there is no SATWindow because of lack of memory try to create a SATWindow when asking for it.
- Add untested code to save a SATGroup and to restore a SATGroup.
- Splitting of a SATGroup is now triggered from the WindowArea destructor. This make it easier to restore S&T groups when windows in a group are missing. A group decays automatically in multiple groups when the missing window connected multiple windows.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39461 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 03:06:09 +00:00
Ingo Weinhold 631cc3ea7b Keep things in order.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39459 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-16 20:54:49 +00:00
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