Commit Graph

38325 Commits

Author SHA1 Message Date
Philippe Houdoin
f8e5c0d433 Fixed what was probably axeld's expected behavior which the previous
fix had changed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40134 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-06 16:02:28 +00:00
Philippe Houdoin
24cc9c135e Fixed gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-06 15:44:28 +00:00
Ryan Leavengood
f8f64f9a2e Make pop-up menu behavior more like BeOS (though this still is not ideal):
If the menu opens right under the mouse cursor, do not select or invoke an item
until the mouse is moved. Since this seems to break normal menu bars, I added
the check for fSuper. As a (bad?) side effect BMenuField menus also need mouse
movement before something is selected. If anything else is broken, let me know.

I'm committing this because it does remove some bad behavior in pop up menus
(unintentionally selecting items.)

We may also want to force the openAnyway behavior as discussed on the mailing
list in December.

In general though the menu handling code really should be redesigned/refactored.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-06 07:14:47 +00:00
Ryan Leavengood
2b70c8f3e4 Fix build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-06 03:57:58 +00:00
Axel Dörfler
5675f44e84 * Work in progress of being able to choose the drive to install the menu to.
Note, the BootManager might not work right now, anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 23:36:35 +00:00
Jérôme Duval
d482c34e49 * added flex group, dirnlink and gdtchecksum features for ext4.
* I reused crc_table.cpp from the UDF filesystem and switched it to have the reversed algorithm,
  then generated the table in CRCTable.cpp
* added a binary search for extent tree leaves.
* fixed a check in InodeAllocator::New().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 21:56:12 +00:00
Siarzhuk Zharski
970c0ac244 GCI task results: "Add translations for newly internationalized apps - part1 - Belarusian"
Completed by Michael Bulosh. Thank you.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40128 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 21:06:57 +00:00
Alex Wilson
7afc775630 In Media preflet:
* Modify MediaListItem to use the visitor pattern
* Use the visitor pattern for comparison of MediaListItem subclassed objects
* Use the visitor pattern in MediaWindow to propagate changes to NodeListItems.
* Rename and/or remove some message constants
* Rename SettingsItem class to NodeMenuItem 
* Rename Settings2Item class to ChannelMenuItem
* Derive SettingsView from BGridView, and make it an abstract base class for two new classes, AudioSettingsView and VideoSettingsView.
* Have the SettingsView subclasses handle messages originating from their children (for the most part).
* Use a BCardLayout to hold our Audio/Video SettingsViews and our instantiated node view (when applicable).
* small changes


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 20:47:17 +00:00
Axel Dörfler
197f59b07d * Another work in progress of converting the BootManager to use the layout API;
most pages do now, albeit it's not perfect yet due to issues with BTextView,
  and BScrollView that make them very inconvenient to use with the layout API.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 20:05:09 +00:00
Jérôme Duval
23281fb2c1 Moved Easter holidays methods to a Holiday class, an hopefully better place.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 18:00:31 +00:00
Joachim Seemer
89c389ebcb Added more translators, mostly GCI students, to Haiku's About window.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40124 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 17:36:33 +00:00
Axel Dörfler
411a3062f4 * Reverted accidental part of r40114. Thanks Philippe!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-05 17:17:27 +00:00
Axel Dörfler
c9f3b43e9f * Work in progress of using the layout API.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 22:42:19 +00:00
Ingo Weinhold
44b9a93e46 Added intermediate (addr_t) casts before the cast of the parse_expression()
result (uint64) to pointer (CID 4723-4726).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 21:28:46 +00:00
Ingo Weinhold
0af0e394a5 Missed earlier: LargeMemoryPhysicalPageMapper::MemsetPhysical(): Changed
pageOffset variable type from phys_addr_t to addr_t. Avoids potential width
difference when casting to pointer later (CID 4718).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40120 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 21:16:53 +00:00
Ingo Weinhold
5defb0fe6f LargeMemoryPhysicalPageMapper::Memcpy{From,To}Physical(): Changed pageOffset
variable type from phys_addr_t to addr_t. Avoids potential width difference
when casting to pointer later (CID 4719-4722).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 21:13:53 +00:00
Ingo Weinhold
e468e31f7f Added intermediate cast to addr_t before cast to pointer (CID 4717).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40118 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 21:05:07 +00:00
Jérôme Duval
96827f2620 Ooops. Fix AscensionDay and PentecostDay.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:49:46 +00:00
Jérôme Duval
daf3c50529 * changed some methods to static as that's what they are in the end.
* added some methods to find out easter sunday, ascension and pentecost days.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:43:23 +00:00
Axel Dörfler
1fd632e67c * Fixed some more style violations.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40115 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:26:44 +00:00
Axel Dörfler
b76ca311d1 * Renamed bootman to BootManager, and moved it to the applications.
* Renamed its signature to BootManager as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40114 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:23:24 +00:00
Axel Dörfler
5b788d58b7 * Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40113 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 19:14:39 +00:00
Ryan Leavengood
0341cc7868 Use a real random number generator instead of using a time hack. Add myself to
authors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40112 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 18:57:24 +00:00
Axel Dörfler
38109ac999 * Changed some kind of broken translation strings (like replacements with a
fixed order).
* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40111 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 18:00:43 +00:00
Ryan Leavengood
415b188949 Remove kOneSixth constant, replace some uses of floats with ints, add f
specifier to float constants. Hopefully I'm done with this now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 17:53:55 +00:00
Ryan Leavengood
3107597abe Fix coding violations, improve variable naming, remove strange float constants
like 4.f.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 16:14:25 +00:00
Ryan Leavengood
bdb262352e Fix style violations and a few other issues that were pointed out. Thanks!
Also moved private methods to the bottom of source files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 15:46:45 +00:00
Joachim Seemer
59eb31ce66 Who else could need a second try to fix a one-liner? Embarrassing.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 11:03:31 +00:00
Joachim Seemer
4adbc3ad27 Fixed coding style as pointed out by korli. Sorry about that...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40106 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 08:54:23 +00:00
Philippe Houdoin
1a698b259b Actually check *distinct* configurations. Checking always the first one several times wont make it works
better :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 07:37:29 +00:00
Ryan Leavengood
fc74a4ff91 Add the new screen savers Butterfly and Leaves to the image, and also
alphabatize the screen savers in this file.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40104 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 06:20:44 +00:00
Ryan Leavengood
e853910af2 So I'm not sure if this ever worked right or if time is just measured
differently in Germany, but NetworkTime was always setting my time 6 hours
ahead, no matter what time zone or whether I stored the time in local time or
GMT. Upon looking closer and doing some Googling I determined that the constant
Axel used for the number of seconds between 1900 and 2000 was off by 6 hours,
and that combined with the odd kUTCtoGMT constant resulted in the 6 hour
difference.

By just replacing the system_time_difference() function with a correct constant
for the number of seconds between 1900 and 1970 and getting rid of kUTCtoGMT it
now works for me (and at least one other person on #haiku-dev, thanks
kallisti5!) For those wondering NTP time is measured from 1900 hence the need
for this conversion.

I will now look into integrating this with the Time preflet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40103 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 06:18:51 +00:00
Rene Gollent
0d791a3062 Fix uninitialized member var that was resulting in a crash on startup. Resolves #7055.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 04:02:51 +00:00
Ryan Leavengood
71d86b674b Apply another patch from Hamish Morrison to improve the VirtualMemory preflet.
Pretty much implements everything needed to set a swap volume once that is
implemented on the kernel side. This also improves the behavior of the Default
button.

A few changes I made:

- When the swap volume feature is turned on in the code, default to the boot
  volume if the settings file does not have one set.
- Don't show the volumes menu field in the GUI if the swap volume feature is
  not on.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 02:13:13 +00:00
Ingo Weinhold
3292bde924 Opening a FIFO end is supposed to block until the other end is opened, too.
So we need a little work-around to open both ends in the shell process to
avoid blocking. Apparently Haiku's FIFO implementation isn't quite conforming
yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 01:39:30 +00:00
Ryan Leavengood
6186bb4464 Add Geoffry Song and Deyan Genovski to the Contributors in AboutSystem.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 01:15:03 +00:00
Ryan Leavengood
57d51b24ff Add two new screensavers created by students from the GCI:
Butterfly by Geoffry Song.
Leaves by Deyan Genovski and Geoffry Song.

Thanks guys!

I fixed a few coding violations and wrote the Jamfiles.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40098 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 01:10:59 +00:00
Ingo Weinhold
17ebe2b021 Reimplemented the communication with the FS shell for Unixish systems (now
including also Haiku) using FIFOs instead of Unix sockets. Advantages:
* Multiple FS shells can run concurrently, since they no longer need a unique
  address.
* Killing/aborting the build_haiku_image script will automatically tear down
  the FS shell as well, so there shouldn't be any stray FS shell processes
  anymore. Hopefully also fixes #5498.

So far only tested under Haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-04 01:06:56 +00:00
Ingo Weinhold
40982d1e05 Check user_strlcpy() return value (CID 4053).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 19:09:14 +00:00
Ingo Weinhold
0068f3c810 Fixed uint32 underflow in backwards loop (CID 2601).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 18:30:19 +00:00
Ingo Weinhold
a5270963e5 Changed put_parameter() return type to void. The value was always true and
never checked anyway.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 18:03:23 +00:00
Ingo Weinhold
0536ff83e9 * IS_KERNEL_ADDRESS(): Avoid the check against KERNEL_BASE or KERNEL_TOP, if
that's the limit of the addr_t domain anyway.
* Defined IS_USER_ADDRESS() to !IS_KERNEL_ADDRESS(), which semantically it was
  already, just more verbosely.

Should, in the future, avoid hundreds of useless Coverity tickets where the
macros are used.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40093 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 17:56:04 +00:00
Philippe Houdoin
c5f2df286e Switched to use USB_cdc.h definitions.
Expanded search in every configuration, not only first. ELSA USB modem for instance
publish two configurations, the first one being a vendor-specific one for
Windows NT.
ACMDevice now don't assume anymore union functional descriptor is always there.
The data interface index can be found also in Call Management (CM) functional
descriptor.

(Style cleanup pending...)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 17:15:18 +00:00
Philippe Houdoin
cf6bf46a66 Added some function descriptors definitions that were missing.
Renamed USB_CDC_*_PARITY and USB_CDC_*_STOPBIT* to follow the usual
naming pattern.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 16:47:50 +00:00
Joachim Seemer
6d9292c2c4 Committed patch by jalopeura fixing email setting changes, see #7058. Thanks.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40090 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 16:26:59 +00:00
Stefano Ceccherini
6709424150 Added TODO
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 09:34:46 +00:00
Ryan Leavengood
aa252ae103 Add NetworkTime as an application, based on Axel's original. This is mostly
based on Hamish Morrison's work on a GCI task. The changes I made from his
patch were to move this from preferences to apps (I think it is more of an app
than a preflet) and to change the name back to NetworkTime (he had made it
NTP, but most people probably won't know what that stands for.)

This also fixes #2412.

I noticed some changes this could use but wanted to add it before making any
changes so there is an SVN history of those changes. I'll probably also make an
icon in the next few days.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 05:47:33 +00:00
Ryan Leavengood
9530027447 Apply patch from augiedoggie for #6258 which adds Athlon Phenom II's to the CPU
identification list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 04:10:56 +00:00
Ryan Leavengood
494c97f7f9 Apply patch from Karvjorm for #6126 to add console messages from FontDemo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 03:51:25 +00:00
Ryan Leavengood
e62cadc374 Apply the patch from #6069 which makes the Vulcan Death Grip Ctrl+Shift+Cmd.
I assume if this wasn't wanted the ticket would have been closed, and I think
this is fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40085 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-03 03:30:00 +00:00