Commit Graph

37619 Commits

Author SHA1 Message Date
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
Ingo Weinhold
6bb10e965d Added a layout builder for menus.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-19 14:29:37 +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
Jonas Sundström
8446b330bc Alternative icon, simplified.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-18 16:28:05 +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
e4acf496c6 BLayoutBuilder::Grid::{AddMenuField,AddTextControl}(): Use separate column
count parameters for label and control view. Most likely when one doesn't want
to use the default value (1), the label and the view will cover a different
amount of columns.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39465 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-11-17 16:29:06 +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