46508 Commits

Author SHA1 Message Date
John Scipione
f6d93b80f3 Remove the unused bounds parameter from DrawLabel
Also refactor BMenuField::Draw()
2013-05-09 21:29:13 -04:00
John Scipione
869e4bdca3 Don't cast to float, use floorf 2013-05-09 21:29:13 -04:00
John Scipione
91810d8efd Use better variable names in SetDivider 2013-05-09 21:29:12 -04:00
John Scipione
df5d08a718 Style fixes to BMenuField
Rename resize to resizingMode, whitespace fixes, compare to 0 explicitly
2013-05-09 21:29:12 -04:00
John Scipione
935599c53f Revert "Info: Set fixed size true for pref app menu field"
This reverts commit 879020baf11d142a48ba1714fcca1c419b93a4c3.
2013-05-09 21:29:11 -04:00
Rene Gollent
3313492032 Fix memory leaks introduced in previous commits. hrev45650 2013-05-09 17:31:42 -04:00
Ingo Weinhold
3271dcd7f6 Update be_book and vision packages 2013-05-09 21:36:31 +02:00
Adrien Destugues
2b67ff2420 Add AddText method to AboutWindow
* Factor out the code to add some data to the about window, with a header and a content under it
 * Make this method public so it's possible to add custom entries in an about box
 * If the method is called with only the header or only the content, the text is added non-bold and non-indented (like the description entry*).
 * Make the header text bold. I'm not sure it looks that good, after all. Thoughts ?
hrev45649
2013-05-09 21:27:43 +02:00
Ingo Weinhold
826a109f96 MimeInfoUpdater: Fix is_shared_object_mime_type()
The comparison must be case insensitive.
2013-05-09 21:10:37 +02:00
Jérôme Duval
01c5671de8 midi kit, media_addon_server, mail_server: fixes 64 bit warnings hrev45648 2013-05-09 18:11:19 +02:00
Ingo Weinhold
204dee708a Use libbe_build also on Haiku
This means the build tools will no longer be built against the host
platform's libbe, which avoids compatibility problems -- e.g. an
older Haiku host libbe may not have certain features the build tools
require -- and also makes the build behave more similiar on Haiku and
other platforms. The host libroot dependency still remains and is not
easy to get rid of.

Also remove some bits of BeOS/Dano/Zeta build support.
2013-05-09 18:08:55 +02:00
Ingo Weinhold
0c53204ecc JPEGTranslator: Add missing jpeg headers dependency 2013-05-09 17:57:09 +02:00
Jérôme Duval
24dba16d04 usb_serial: fixes 64 bit warnings 2013-05-09 17:40:35 +02:00
Jérôme Duval
0e8bd8493a usb_ecm: fixes 64 bit warnings 2013-05-09 17:38:13 +02:00
Jérôme Duval
19d7d464e5 usb_asix: fixes 64 bit warnings 2013-05-09 17:33:27 +02:00
Jérôme Duval
56dc5af735 usb_davicom: fixes 64 bit warnings 2013-05-09 17:30:06 +02:00
Jérôme Duval
6849e7cc15 cx23882: fixes 64 bit warnings 2013-05-09 17:24:09 +02:00
Jérôme Duval
4e159473a9 nbd: fixes 64 bit warnings 2013-05-09 17:05:06 +02:00
Jérôme Duval
d47767ba38 usb_printer: fixes 64 bit warnings 2013-05-09 16:46:02 +02:00
Jérôme Duval
69a33f8c3c usb_floppy: fixes 64 bit warnings 2013-05-09 16:40:49 +02:00
Jérôme Duval
f0704f6ba4 usb_raw: fixes 64 bit warnings 2013-05-09 16:22:15 +02:00
Jérôme Duval
2f66d0df8e usb_midi: fixes 64 bit warnings 2013-05-09 16:16:43 +02:00
Jérôme Duval
1f6d4bcfd3 echo: fixes 64 bit warnings 2013-05-09 16:03:38 +02:00
Jérôme Duval
e825d892e1 efi_gpt: fixes 64 bit warnings 2013-05-09 15:53:50 +02:00
Jérôme Duval
9bc120ace1 mpu401: fixes 64 bit warnings 2013-05-09 15:45:30 +02:00
Jérôme Duval
7e5b0f9649 udf: fixes 64 bit warnings 2013-05-09 15:44:10 +02:00
Jérôme Duval
5a58ea80cf nfs: fixes 64 bit warnings hrev45647 2013-05-09 15:08:11 +02:00
Rene Gollent
e1fff3ea3a Build fix. hrev45646 2013-05-09 07:24:13 -04:00
Rene Gollent
a69facf051 Implement #9756. ImageFunctionsView now builds...
...a source path-based tree of all the image's functions, and
consequently organizes them into a nested hierarchy similar to the
on-disk directory structure in which they were originally found (or at
least, as close as we can get from the DWARF info).
hrev45645
2013-05-08 23:26:12 -04:00
Ingo Weinhold
3272998147 Remove the no longer needed mime_update.sh post install script 2013-05-09 03:43:58 +02:00
Ingo Weinhold
bbd98073f9 Remove update_mime_info() support from libbe_build
It was there only for <build>mimeset, which is now always invoked with a
custom MIME DB and thus won't use the function anymore. We could
actually easily implement it using MimeInfoUpdater, if the MIME DB
directory the build system generates was compiled in.
2013-05-09 03:41:39 +02:00
Ingo Weinhold
518840e305 Complete MIME related support for image/package creation
* Update MimeSet rule to use the MIME DB the build system creates.
* Add CreateAppMimeDBEntries rule and call it from Link for targets that
  might be applications that need to be registered with the MIME DB. For
  the target the rule is invoked with it creates a directory into which
  the entries for the types to be registered are written. The directory
  is associated with the target via the HAIKU_MIME_DB_ENTRIES variable.
* AddFilesToContainer: If a target is added that has MIME DB entries,
  also add those to the container.
* build_haiku_package: Call mimeset for the package contents.
2013-05-09 03:38:10 +02:00
Ingo Weinhold
f666576f62 CopyDirectoryToContainer: fix typo in comment 2013-05-09 03:30:19 +02:00
Ingo Weinhold
fa4511f61b AddDriversToContainer: Handle duplicate invocations
Since the same driver can be added in more than one category, in a few
cases AddDriversToContainer was invoked twice for the same target. Avoid
adding the driver twice to add-ons/kernel/drivers/bin in such a case.
Didn't really cause any problem, but no need to copy the file twice.
2013-05-09 03:29:53 +02:00
Ingo Weinhold
0c61965f2b mimeset: Complete custom mime DB support
* Don't require the first MIME DB directory to exist anymore. Database
  creates it anyway.
* Make use of MimeInfoUpdater to support updating MIME info with a
  custom MIME DB.
* Make use of MimeEntryProcessor::DoRecursively() to support recursive
  operation with a custom MIME DB.
2013-05-09 03:22:24 +02:00
Ingo Weinhold
baadb25955 Add te MimeInfoUpdater to libbe_build 2013-05-09 03:19:25 +02:00
Ingo Weinhold
5fb3348319 MimeEntryProcessor: Add DoRecursively()
While Do() only process the specified entry, DoRecursively() also
recurses into directories.
2013-05-09 03:18:46 +02:00
Ingo Weinhold
f132bdfe9f boot loader: Add 256 KB additional heap
packagefs is using quite a bit additional memory for the MIME DB
entries and with all files identified.
2013-05-09 03:17:43 +02:00
Ingo Weinhold
00090d290d boot loader: print max heap usage info before entering kernel 2013-05-09 03:14:35 +02:00
Ingo Weinhold
c92c12d71a libroot_build: Fix incorrect skipDot check in find_dir_entry()
Would result in the _kern_open_parent_dir() failing for "/" and maybe in
other cases as well.
2013-05-09 01:48:36 +02:00
Ingo Weinhold
865ab2816d Pull class MimeInfoUpdater out of UpdateMimeInfoThread
* Pull out base class MimeEntryProcessor out of AppMetaMimeCreator.
* Pull class MimeInfoUpdater out of UpdateMimeInfoThread and derive it
  from MimeEntryProcessor.
* MimeInfoUpdater: Instead of BMimeType::GuessMimeType(), use
  Database::GuessMimeType() directly.
2013-05-09 01:48:36 +02:00
John Scipione
879020baf1 Info: Set fixed size true for pref app menu field
Fixes #9753

This changes the preferred app menu field to no longer resize itself
based on the item width and instead always take up the rest of the
available space in the window. For narrower items this means that there
will be empty space to the right where there wasn't before. For items
wider than the available width of the window (like the example in #9753)
this means that the item will be truncated when selected.

AFAIK this was always a problem and was not caused by my recent work on
menu fields, we just didn't notice it because it's rare that an application
name in English at the default 12pt font size is wider than the available
space.

That being said, this fix is a band aid, the real fix is to convert this
window to use the layout APIs so that if you have an application that is too
wide to fit then the window will resize itself to fit the new item. There are
other some layout problems in this window too. Unfortunately, like Find, this
window has not been updated in aldeck's Tracker layout branch. Luckily,
converting this window to use the layout API is a lot less work than Find was.
hrev45644
2013-05-08 14:26:45 -04:00
John Scipione
ec1f08fb05 Resize menu field menu bar iff fFixedSize is true
If the menu field is not fixed size than the width of the menu bar
should depend on the menu item contents so just do the default and
get the Bounds() without any extra resizing.
2013-05-08 14:26:45 -04:00
John Scipione
a61d468cf9 BMenuItem: Round to prevent unneeded truncation
The case I fear is if frameWidth is 99.999999 and labelWidth is 100.0
it will attempt to perform a truncation unnecessarily.
2013-05-08 14:26:44 -04:00
Jérôme Duval
a130bab351 ext2: fixes 64 bit warnings hrev45643 2013-05-08 20:10:33 +02:00
Rene Gollent
df720531e3 Use B_USE_SMALL_{SPACING,INSETS} as suggested by Axel. hrev45642 2013-05-07 22:59:35 -04:00
Ingo Weinhold
9ea1940c48 mimeset: WIP to support custom MIME DB directories
Add option -m/--mimedb for specifying one or more directories to be
used as the MIME DB instead of the system MIME DB. Currently only works
with --apps and only non-recursive.

When fully implemented the new feature will be used in the build system
and on Haiku when building packages to generated the MIME DB entries for
applications, so those can be included in the same package. Furthermore
it will be possible to use the MIME DB the build system already
generates to identify files before packaging them.
2013-05-08 04:51:48 +02:00
Ingo Weinhold
d0815ca03b Add private MIME DB classes to libbe_build
* This pulls in some more stuff, like libicon and agg which are also
  included in libbe_build, now.
* Update a few libbe_build classes and headers needed to get things
  building.
* This likely breaks the <build>mimeset build on Haiku.
2013-05-08 04:39:56 +02:00
Ingo Weinhold
57a7a6b916 mime/database_support: Make buildable for host platform 2013-05-08 04:29:18 +02:00
Ingo Weinhold
ed92790ce5 mime/Database::Install(): Fix subtype without supertype case
If the supertype directory for a given subtype didn't exist yet, the
method would fail.
2013-05-08 04:28:31 +02:00