Commit Graph

53224 Commits

Author SHA1 Message Date
Jérôme Duval
1e3c19ec2f added mime types for x-portable-bitmap and x-portable-graymap. 2015-02-27 17:46:36 +01:00
John Scipione
dd25136936 Deskbar: Fix an edge case sizing bug
If you have no apps open because Tracker crashed and you opened a new team it
would size the expando menu bar incorrectly in vertical mode.

This fixes the problem.
2015-02-26 20:12:12 -05:00
Adrien Destugues
e3468ef600 ifaddrs: add extern "C"
We need this to be callable from C programs. Thanks to Diver for
reporting!
2015-02-26 22:02:37 +01:00
Jérôme Duval
85e5aa30b1 Add packages for unzip and use them.
* remove unzip Jamfile from the build, <build>unzip stays with us.
* clean up image and package definitions.
* added unzip in regular builds.
2015-02-26 19:21:04 +01:00
Automatic Committer
609834be06 Update usb.ids from www.linux-usb.org 2015-02-26 05:20:29 +01:00
Automatic Committer
a0a1524fe7 Update pci.ids from pciids.sourceforge.net 2015-02-26 05:20:27 +01:00
John Scipione
95e8362c52 Tracker: Save Desktop state again
Let me tell you a story about a bug.

In a615ec8f86 Axel imported the OpenTracker code
into Haiku with fSaveStateIsEnabled set to true (for Desktop and all windows).

In 9f2a3f6f47 I (John) changed it to:
fSaveStateIsEnabled(dynamic_cast<BDeskWindow*>(this) == NULL) which is suppose
to detect whether or not the ContainerWindow is the Desktop and only save the
state if it is NOT. However, this didn't actually work because since this is
called in the constructor the dynamic_cast to BDeskWindow* fails. Therefore we
were still saving the state of Desktop even though the code make it look like
we weren't.

In e7803cf1f6 Augustin updated the code so that
BDeskWindow passes in a isDeskbar flag as part of the constructor parameters
thus detecting that the window was Deskbar correctly. So basically Augustin
fixed the bug detecting whether or not the window was the Deskbar in the
constructor which then disabled saving the Desktop's state to attributes.
Augustin unknowingly turned saving the Desktop's state off.

We don't want to disable saving the Desktop's state because that's where we
store things like the icon size. What I was probably thinking when I tried
unsuccessfully to turn off saving the state of the Desktop was that I don't
want to save the WINDOW state of the Desktop since that would save the
window dimensions of the Desktop (whatever your screen resolution is) and if
you changed Tracker to non-spatial mode and opened the Desktop in a Tracker
window it would pick up those attributes and then make the window take up the
entire dimensions of your screen (a whole different bug).

This bug, however, is also handled in 9f2a3f6f47
because code was added to BContainerWindow::SaveWindowState() which detects
whether or not the window is the Desktop and if so, doesn't save (or restore)
the window state (which is only part of the state).

So with this change (reversal really) the other parts of the Desktop's state
like icon size are once again saved while the window state is not.

Fixes #11864
2015-02-25 15:31:43 -05:00
John Scipione
94dcb68b55 Tracker: Code simplication
Replace calls to  dynamic_cast<BDeskWindow*>(this) != NULL with fIsDesktop
which is the flag added to the constructor in
e7803cf1f6.

We no longer need to do the expensive dynamic_cast's because we have a handy
flag to check instead.
2015-02-25 15:31:27 -05:00
John Scipione
5f26850cba Tracker: Small style fixes 2015-02-25 15:01:13 -05:00
John Scipione
ec9d05b0f2 ControlLook: Remove erroneous PopState() call.
This may have contributed to some drawing issues on the keymap app.
2015-02-24 19:35:43 -05:00
Jessica Hamilton
1d9c14949e Add package: ocaml-4.02.1 [x86_gcc2] 2015-02-24 09:48:14 +13:00
John Scipione
548661da7a Deskbar: Fix window updating bug #11865
We must toggle the expanded state of new windows if we are in
VERTICAL expando mode with Expand New Teams on.

The vertical part of the check got dropped accidentally in hrev48817

Thanks jstressman for reporting.

Fixes #11865
2015-02-23 14:58:53 -05:00
John Scipione
ae30ad6e23 Deskbar: Remove settings member vars
... from expando menu bar. Get them from the BarApp settings instead.

This is so that we don't have to keep the settings and the member vars in sync.
2015-02-23 14:51:07 -05:00
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