Commit Graph

53001 Commits

Author SHA1 Message Date
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
Augustin Cavalier
9c353c978c Pulse: automatic whitespace cleanup. 2015-02-14 18:49:22 -05:00
Augustin Cavalier
99515c66b8 Pulse: use #elif instead of #if.
If this causes any changes in generated assembly... well, we'd have
bigger problems if __POWERPC__ and __INTEL__ were both defined.
2015-02-14 18:49:20 -05:00
Augustin Cavalier
7729bad4bd tone_producer_demo: automatic whitespace cleanup. 2015-02-14 18:49:18 -05:00
Augustin Cavalier
a478bc0582 tone_producer_demo: Delete workarounds for MetroWerks compiler bugs.
There are a few left here that I didn't delete because the function does
more than just call up to the parent class, so someone with more knowledge
of the media kit than I do will have to go over those.
2015-02-14 18:49:15 -05:00
autonielx
8ffd23996e Update translations from Pootle 2015-02-14 06:29:19 +01:00
John Scipione
a7c02e02e9 Deskbar: style fixes to TeamMenuItem 2015-02-13 17:08:29 -05:00
John Scipione
8afcac1bb3 Deskbar: Compare signature case-insensitive 2015-02-13 17:08:28 -05:00
John Scipione
9f339a005b Deskbar: Style fixes only 2015-02-13 17:08:28 -05:00
Axel Dörfler
794c227e83 BView: fixed RemoveSelf() layout item handling.
* When RemoveSelf() is called, we do not own our own layout items, so
  we must not delete them.
* However, we do own them when we still have layout items left when
  we get deleted ourselves.
* This fixes removing/adding a child view to a view without deleting
  it inbetween (like the new Network preferences will do).
* Optimized item removal -- not a good idea to always remove item 0.
2015-02-13 22:34:34 +01:00
Axel Dörfler
b617d006f9 ViewPrivate.h: minor cleanup, no functional change. 2015-02-13 22:33:57 +01:00