Commit Graph

53111 Commits

Author SHA1 Message Date
John Scipione
4f4cab958e Deskbar: Move ExpandoMenuBar name to constructor
... instead of passing it in from BarView.
2015-02-23 14:42:16 -05:00
John Scipione
2bb1829853 Deskbar: Tiny indent style fix 2015-02-23 14:18:14 -05:00
autonielx
f3f0969580 Update userguide translations 2015-02-23 18:29:56 +01:00
Stephan Aßmus
4bf45bfb5d HaikuDepot: Added UndoableEditListener list to TextDocument
This is all work in progress. The plan is to move the code that does any
actual changes to the TextDocument into UndoableEdit implementations, then
emit these edits to interesed listeners. They can then store them to
implement the edit history. If there are not listeners, the edits will
simply be released after they've done their work.
Implemented so far is only the support for storing the edit listeners.
2015-02-22 21:25:49 +01:00
Stephan Aßmus
b5cbbf8041 HaikuDepot: UndoableEditListener base class added 2015-02-22 21:25:11 +01:00
Stephan Aßmus
651e8326ca HaikuDepot: Base-classes for generic undo/redo support.
I plan to use these in the text view and editor framework.
2015-02-22 20:35:34 +01:00
Humdinger
ee3b36afff New version of Caladea font. Fixes #11870.
* Fixed typo to make installable.
2015-02-22 17:26:30 +01:00
François Revol
a5cc577f1e Add DTS for Efika MX board (iMX53 Cortex A8)
Taken from an LKM thread :
http://www.serverphorums.com/read.php?12,542099,542099

Probably not complete but it's a start.
2015-02-22 00:51:01 +01:00
JackBurton
2a67595f1a If a monospace font is not available, look for a full-and-half-fixed
font.
The minimal haiku image does not yet include a monospace font. In that
case, be_fixed_font points to Bitstream Charter, which is a proportional
font.
Terminal isn't happy with that, so we try harder and we look if a
full-and-half-fixed font is installed (which should be safe, since
we always include VL-Gothic. Fixes #11764 .
2015-02-21 21:32:31 +01:00
JackBurton
f88412ccda Moved IsFontUsable() to Globals.h/cpp 2015-02-21 21:31:08 +01:00
Rene Gollent
72bc3bf2bd Deskbar: Fix gcc4 build.
Add missing TargetLibstdc++ to linker rule. Fixes #11867.
2015-02-21 11:08:29 -05:00
autonielx
90cad11eec Update translations from Pootle 2015-02-21 06:28:26 +01:00
John Scipione
4473bf2cea Deskbar: truncate full window titles
The truncation code was truncating window titles earlier than it should because
it was mistakenly leaving room for the expander arrows when it should only be
looking for those on team menu items, not window menu items.

Sorry for the regression.
2015-02-20 21:05:14 -05:00
John Scipione
64182ccb20 Menu and Deskbar: Remove _SetMenuLayout() method
and remove TExpandoMenuBar as a friend class to BMenu hack.

In Deskbar, call the newly added MenuPrivate::SetLayout() method instead.

This is a much cleaner way to implement this, thanks Stefano Ceccherini
for the tip!
2015-02-20 14:38:43 -05:00
John Scipione
35384ab425 MenuPrivate: Add a SetLayout() method to MenuPrivate
that allows you to set the menu_layout of the menu after construction.
2015-02-20 14:35:36 -05:00
John Scipione
09d0a76b7b MenuPrivate: Style fixes to MenuPrivate.h 2015-02-20 14:24:46 -05:00
Adrien Destugues
a31bd9c268 HaikuWebKit 1.4.10
Fixes the crash on redirect and some other problems with the network
code.
2015-02-20 08:08:44 +01:00
John Scipione
c38afcd62c Deskbar: Remove Name() and fName, replace with Label()
... from TeamMenuItem and WindowMenuItem.

It was confusing having Name(), Label(), and TruncatedLabel().

Name() == Label() because Label() never changes, the displayed
Label stored in TruncatedLabel() in both TeamWindowItem and
WindowMenuItem (remember they both inherit from
TruncatableMenuItem so they get that for free). So Name() was
redundant, by getting rid of it there is just Label() and TruncatedLabel()
which is all we need!
2015-02-19 20:45:46 -05:00
John Scipione
ae181f353b Deskbar: Save String object instead of pointer
And add a SetLabel() that sets the truncated label when the label gets set.

This will be useful so we can compare the truncated label to the normal label
to tell if the label is truncated or not.
2015-02-19 20:35:05 -05:00
John Scipione
e9982f6828 Deskbar: Rename _InitData() to just _Init()
in TeamMenuItem. For consistency.
2015-02-19 20:28:28 -05:00
John Scipione
5af340efdf Deskbar: fixup Deskbar: Truncate menu item labels refactor
c9363f78d6
2015-02-19 20:27:22 -05:00
John Scipione
5737994f8f Deskbar: Compare Tracker sig case-insensitively 2015-02-19 20:19:29 -05:00
John Scipione
2c332342b8 Deskbar: ExpandoMenuBar & TeamMenuItem no longer friends 2015-02-19 20:15:45 -05:00
John Scipione
f11e0f209c Deskbar: Rename header gaurds for WindowMenuItem 2015-02-19 20:14:36 -05:00
John Scipione
6b65d934df Deskbar: some more style fixes, reorg methods 2015-02-19 20:12:32 -05:00
John Scipione
072c2dcde2 Deskbar: Add some pragma statements 2015-02-19 19:02:52 -05:00
John Scipione
1501d1d619 Deskbar: Remove redundant include statements 2015-02-19 19:02:43 -05:00
John Scipione
c9363f78d6 Deskbar: Truncate menu item labels refactor
* Create a new TTruncatableMenuItem class to store the truncated string
  and share the label truncation code between TTeamMenuItem and
  TWindowMenuItem. In the future more shared code may be added to
  this class, if so, the class name may change.
* The TTeamMenuItem and TWindowMenuItem classes inherit from
  TTruncatableMenuItem, which inherits from BMenuItem.
* Make sure to truncate the label before drawing it in all cases.
* Some other related refactoring.

Fixes #9507
2015-02-19 19:02:42 -05:00
John Scipione
25295e6899 Deskbar: Set the tool tip for truncated label 2015-02-19 19:02:41 -05:00
John Scipione
5e625ead65 Deskbar: Label truncation code refactor & cleanup
* Increase kVPad to 2.0f in ExpandoMenuBar matching the
  constant in WindowMenuItem
* Also replace a hardcoded instance of 4.0f with kVPad * 2
* Remove TTeamMenuItem::DrawContentLabel(), move code to DrawContent()
* Cleanup label truncation code in TTeamMenuItem, still needs work.
* Rename WindowMenuItem::FullTitle() to Name() matching TeamMenuItem
* Move the code to set all label related variables in SetLabel() in
  TeamMenuItem
* Change WindowMenuItem::SetRequireUpdate() to take a bool parameter
* Make WindowMenuItem::Initialize() private and rename it to _Init()
* Rename WindowMenuItem::ExpandedItem() to SetExpanded()
* Truncate WindowMenuItem label like we are doing TeamMenuItem
* Rename all WindowMenuItem::Title* methods and variables to Label*
2015-02-19 19:02:40 -05:00
John Scipione
deaae5fc20 Deskbar: Persist ExpandoMenuBar
Add private BMenu::_SetMenuLayout() method. Set TExpandoMenuBar
as a friend class in BMenu to call this method. A little hacky,
but, this keeps SetMenuLayout() from being exposed as part of
the public API.

Don't destroy and rebuild the ExpandoMenuBar when switching from
horizontal to vertical mode. Instead build the TExpandoMenuBar
when the application starts and then switch it from B_ITEMS_IN_ROW
to B_ITEMS_IN_COLUMNS by using the newly added _SetMenuLayout()
method.

When we resize from vertical to horizontal, recalc the max
menu item widths, this resizes the application menu items so
that they take up the right amount of space.

Since we no longer destroy the menu bar we no longer have to
save whether menu items are expanded or not in a separate list.
Instead we can store that information in directly in
TExpandoMenuBar. This removes a lot of code.

Fixes #9350
2015-02-19 19:02:39 -05:00
John Scipione
c9d2a320a3 Deskbar: TTeamMenuItem changes
* Add Icon() and SetIcon() methods.
* Remove HasLabel() and SetHasLabel() methods, ExpandoMenuBar now gets
  this information from the settings file directly, rather than storing
  and syncing this information with the TTeamMenuItem class.
* Move SetOverrideWidth(), SetOverrideHeight(), and
  SetArrowDirection() implementations to header.
2015-02-19 19:02:38 -05:00
John Scipione
18bcf77ab0 Deskbar: Don’t save fHasLabel and fVertical
in the TTeamMenuItem, get it from the parent or settings instead.
2015-02-19 19:02:37 -05:00
John Scipione
a0310fc741 Deskbar: Style fixes to TBarView::SendDragMessage 2015-02-19 19:02:36 -05:00
John Scipione
f68c687536 Deskbar: Style fix, check for NULL explicitly 2015-02-19 19:02:31 -05:00
Axel Dörfler
dbf8c834a2 Terminal: added basic conditional title patterns.
* You can now insert arbitrary text only if the following or previous
  placeholder does not resolve to an empty value using the %<, %> and
  %- placeholders.
* Additionally, any non-alpha numeric character between % and the
  placeholder character will only be displayed if the placeholder does
  not resolve to an empty value, too.
* All of this allows you to get rid of the extra space between
  "Terminal" and ":" before the current path -- which is now the
  default.
2015-02-19 22:35:39 +00:00
Adrien Destugues
caf2bf0181 indentation fix.
Catched by Axel.
2015-02-19 12:20:07 +01:00
Adrien Destugues
6f1d5d480b HttpRequest: implement POST>GET conversion on redirects
302 and 303 redirects must convert POST requests to GET (and remove the
POST data).
Fixes the following problems (at least):
* Login to github going to the "unicorn!" page
* Gmail failing to load and staying at the loaderbar page
2015-02-19 10:19:04 +01:00
Automatic Committer
efca2820cc Update pci.ids from pciids.sourceforge.net 2015-02-19 05:20:25 +01:00
Adrien Destugues
ff70643f18 Add package for bonnie++ 2015-02-17 15:53:46 +01:00
Jérôme Duval
6d8505a01e patch: use the outsourced packages.
* remove patch Jamfile from the build and patch sources from the tree.
* added patch to DevelopmentBase.
* should a bootstrap package be added?
2015-02-16 20:11:59 +01:00
Jérôme Duval
2fbe5f89dc Added packages for patch. 2015-02-16 19:36:03 +01:00
Alexander von Gluck IV
d222bce874 ipv6: Fix tracing int sizes on non-32-bit systems 2015-02-15 22:17:51 +00:00
Augustin Cavalier
7bd2f594a3 Cortex: LoggingConsumer: use B_PRIdBIGTIME for message formatting.
Pointed out by Axel and Jessica. Thanks!
2015-02-15 12:31:58 -05:00
Michael Lotz
d0f53f151d StickIt: Don't close the app when closing a JoystickWindow.
Since it now actually works to open multiple windows for different
devices, don't close the app when closing the device window.
2015-02-15 10:07:08 +01:00
Michael Lotz
e2d7e6c4be StickIt: Construct a new BJoystick object to pass to the window.
Previously the same BJoystick object was reused when opening a new
window, which caused all windows to show the data of the same device.
2015-02-15 10:07:05 +01:00
Augustin Cavalier
ecbca3feec Cortex: LoggingConsumer: fix debug build. 2015-02-14 21:58:28 -05:00
Augustin Cavalier
4e38bdba17 Tracker: Remove old (bitmap) icons.
Before removing each of these, I verified that:
  * there was already a HVIF of the icon in this rdef file
  * the "MICN" constant was not used anywhere in the tree

There are a few icons left (e.g. BeBox icon) that don't have HIVF
equivalents (at least not in this file.)
2015-02-14 18:49:30 -05:00
Augustin Cavalier
9a36a4c8dc Tracker: delete non-BControlLook drawing code.
This will result in changes to generated assembly, but should not
result in a functional change of any kind.
2015-02-14 18:49:27 -05:00
Augustin Cavalier
2f5fe16a3e Tracker: delete #ifndef __HAIKU__ code.
Since tracker_layout has been merged, this is pretty useless now.
Should result in no change to generated assembly.
2015-02-14 18:49:25 -05:00