53140 Commits

Author SHA1 Message Date
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.
hrev48816
2015-02-19 22:35:39 +00:00
Adrien Destugues
caf2bf0181 indentation fix.
Catched by Axel.
hrev48815
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
hrev48814
2015-02-19 10:19:04 +01:00
Automatic Committer
efca2820cc Update pci.ids from pciids.sourceforge.net hrev48813 2015-02-19 05:20:25 +01:00
Adrien Destugues
ff70643f18 Add package for bonnie++ hrev48812 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?
hrev48811
2015-02-16 20:11:59 +01:00
Jérôme Duval
2fbe5f89dc Added packages for patch. hrev48810 2015-02-16 19:36:03 +01:00
Alexander von Gluck IV
d222bce874 ipv6: Fix tracing int sizes on non-32-bit systems hrev48809 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!
hrev48808
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.
hrev48807
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. hrev48806 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.)
hrev48805
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 hrev48804 2015-02-14 06:29:19 +01:00
John Scipione
a7c02e02e9 Deskbar: style fixes to TeamMenuItem hrev48803 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.
hrev48802
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
Augustin Cavalier
1a499ee138 Cortex: LoggingConsumer addon: fix crash on startup.
Fixes #11855.
hrev48801
2015-02-13 15:36:47 -05:00
Augustin Cavalier
7657d1c82c Cortex: delete ToneProducer add-on.
The version of this in src/add-ons/media/media-add-ons/tone_producer_demo/
is virtually identical, plus it is under a more permissive license
(Be Sample Code vs. BSD 3-Clause) and already fixed for 64bit.
hrev48800
2015-02-13 12:43:58 -05:00
Augustin Cavalier
136a82ffc5 Cortex: add LoggingConsumer to the build. 2015-02-13 12:36:03 -05:00
Augustin Cavalier
a57b52f0e4 FileType Add-On: Delete really old TODO that's no longer valid.
You can watch the RDEF get compiled during the build, and look at the
generated file and see the vector icon, so it must be working :)
2015-02-13 12:16:53 -05:00
Augustin Cavalier
a6e08fdc0f Cortex: convert remaining RSRCs to RDEFs. 2015-02-13 12:15:10 -05:00
Augustin Cavalier
26bf1330ad Cortex: delete now-unused makefiles. 2015-02-13 11:43:21 -05:00
Augustin Cavalier
cf76c29456 interface_guidelines: add a convert.sh script that uses XMLTO.
Works on Linux, doesn't work on Haiku. It appears xsltproc tries
to fetch the DTD and XSL stylesheets (which doesn't work, for some reason
it wasn't built with HTTP support, and I can't figure out why). Even
when telling it to use the preinstalled XSL & DTDs using --catalog,
it still tries to download the files...
hrev48799
2015-02-13 11:26:28 -05:00
Augustin Cavalier
cea5e640aa HaikuPorts/x86_gcc2: add package for xmlto, update xslt. 2015-02-13 11:24:02 -05:00
Augustin Cavalier
78e2703a6b Delete docbook-xsl, docbook-dtd, and xslt from the tree. hrev48798 2015-02-12 17:16:39 -05:00
Augustin Cavalier
7d6915b4d0 Interface Guidelines: migrate to docs/, use DocBookCSS.
DocBookCSS is a mostly-pure-CSS2 implementation of the DocBook standard.
Unlike DocBookXSL which relies on transforming the XML, it utilizes the
XML-styling features of modern web browsers to display the DocBook.

Its appearance still is a long way from the Haiku Book and Userguide, but
it looks (mostly) the same as the old DocBookXSL so we can stop using that.
Eventually we just need to make DocBookCSS use our styling.
hrev48797
2015-02-12 17:08:04 -05:00
Augustin Cavalier
644fa5a938 src/documentation: delete the old HaikuUserGuide.txt.
Written by DarkWyrm, this user guide has been long since superseded by
the new HTML-based User Guide, which has everything this did and then
some, with the exception of the "History" section. That section
does seem like it could be useful somewhere, so I've moved it to
its own file in the "docs/misc" directory.
2015-02-12 10:37:22 -05:00