Commit Graph

2786 Commits

Author SHA1 Message Date
Axel Dörfler
728c7f10e1 * Fixed warnings.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30267 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 20:57:33 +00:00
Ingo Weinhold
36e787103f Made BDebugEventInputStream::ReadNextEvent() nicer to use.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 11:17:24 +00:00
Ingo Weinhold
3dc9bfd17e Beginnings of a graphical tool for analyzing the output of scheduling_recorder.
Doesn't do anything yet.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-19 00:31:03 +00:00
Ingo Weinhold
20dbdc7914 Simplified the includes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30252 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-18 21:52:14 +00:00
Philippe Houdoin
7767db5a86 Quick fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30213 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-16 23:04:17 +00:00
Stephan Aßmus
71db5f0735 * Convert the preference window of Mail to use the layout-management. This is
a compile time option, the BeOS build should be unaffected. Axel can comment
  if he liked the version with the non-aligned/cluttered menu fields better...
* Many thanks to Francisco Castro, who submitted a similar patch in #3735.
  I had already done this work a couple of weeks ago, but never got around to
  commit it. Going to comment on a number of small issues with the patch in
  the ticket, otherwise it does pretty much the same thing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30202 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-16 16:20:15 +00:00
Stephan Aßmus
7cc93cd01c Patch by Ankur Sethi: Use layout-management in the OpenWindow of DiskProbe.
Works around the issue from ticket #1809.

Thanks a lot! Please note some changes I have made:
* When using layout management, use the contructors that don't take BRects
  and "follow modes". (You forgot that for the BButtons.)
* You reversed the button order.
* I found it more convenient to use a BGridLayoutBuilder. And it seemed odd
  to only add the menu bar layout item, not also the label item.
* Finally, to create a patch, cd into the Haiku root folder and use "svn diff",
  like "svn diff src/apps/diskprobe/ > patch.diff". I had to apply your patch
  manually line by line, I am not very firm with "patch", although I am sure
  there would have been a way to do it... :-)

Nice work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30174 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 15:26:31 +00:00
Stephan Aßmus
962bcf7da1 Patch by stpere:
* Make DiskUsage use Tracker's "Get Info" panel instead of it's own (still
  falls back to it's own when Tracker isn't running...)
* Fixed some drawing issues.
* Removed the window aspect constraints.

Thanks a lot! Philippe, please have a look how I changed the license, and the
only coding style violation is that you need to watch out for the 80 chars per
line limit. :-) Great work!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30171 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-15 14:49:06 +00:00
Axel Dörfler
ad491b436f * Moved _CreateBlocks() back into the constructor. That used to make bug #3572
more reproducible, but it doesn't work for me anymore.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-13 13:12:09 +00:00
Ingo Weinhold
1e855c376c * Patch by Fredrik Ekdahl: gcc 4 build fixes (missing headers).
* Added missing header for mountvolume.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30135 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-12 09:57:26 +00:00
Axel Dörfler
78c00a4a53 * Applied patch by sil2001 that fixes bug #3666 (handling of existing symlinks).
* Refactored PkgItem classes, and pulled out a PackageItem base class. Renamed
  other classes to Package*.
* The ItemExists() method should really get a "Apply this choice to all files"
  kind of option...
* Style cleanups.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:37:51 +00:00
Ingo Weinhold
4fba3522e0 * Removed src/kits/tracker/OpenHashTable.h. The shared version in
headers/private/shared is newer, though with small interface changes.
* Removed the unnecessary Debug.h include in
  headers/private/shared/ObjectList.h.
* Adjusted sources using these headers, mostly by adding missing includes.
* Lots of automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30123 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 21:24:32 +00:00
Stephan Aßmus
c3f8b9752e Patch by Chico CHEN: Just use the new path of the userguide in DiskUsage and
the help button comes to live. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-11 19:42:01 +00:00
Stephan Aßmus
160f5f5e2f Patch by Philippe Saint-Pierre: Don't use BTextView::LineHeight() when the font
has not yet been set... Thanks a lot!

D'oh, this one made me slap my hand against my forehead!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-10 08:29:05 +00:00
Stephan Aßmus
54337aafca Small style cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30087 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 23:46:38 +00:00
Axel Dörfler
3c2a04f4c9 * Fixed that you would drag the wrong character when the drag was started
while you were already over another character.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30081 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-09 20:45:18 +00:00
Axel Dörfler
ff99f481b2 * Removed the line view again. Sorry, but this is pretty useless, had a small
fixed size, didn't follow our coding style, etc.
* I did not remove the back-end code in the StyledEditView, though (nor did I
  had a look at it for coding style violations :-)).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 19:50:03 +00:00
Stephan Aßmus
ed1b27536b * Some beautification, mostly for when the replicant is embedded on the Desktop.
* Fall back to a shorter legend label when the room is too small (before
  truncating).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30001 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 16:09:00 +00:00
Stephan Aßmus
b936fc6770 * Watch the system clipboard for changes.
* On the event of a clipboard change, check if the clipboard contains text
  now and replace the contents of the internal "mouse clipboard". So when
  right/middle clicking into the Terminal, the current system clipboard contents
  are inserted. As soon as the user selects text in the Terminal again, that
  text will have priority over the system clipboard, as before.

Fixes ticket #3700.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-07 09:03:29 +00:00
Alexandre Deckner
eee6f40b8b * Archive/Unarchive refresh interval
* Minor style fix


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 20:30:21 +00:00
Rene Gollent
cce423c203 gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-06 15:21:57 +00:00
Rene Gollent
0f617d4476 Fix several cases of forgetting to include libstdc++ in the libs. This allows a successful build of Haiku on gcc4 Haiku, though it's presently unclear to me why this didn't prevent linking on any other platform (gcc2 haiku, and gcc2/4 cross compilers from FBSD had no issues here).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 22:33:53 +00:00
Axel Dörfler
7d33b63d40 * Fixed removing a per CPU source.
* Fixed drawing problem when adding a new source, and the draw happened before
  a new value came in.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:22:14 +00:00
Axel Dörfler
8e26f38727 * Added a ViewHistory class that stores the current values, so they don't have
to be interpolated everytime. This class also makes sure that the values are
  always from the same offsets, so the flickering is gone.
* Need to use SetMouseEventMask() or else the mouse up will be ignored when
  changing the resolution via dragging the mouse.
* Fixed a bug that prevented the DataHistory data interpolation from working
  correctly.
* The refresh threads are now working at B_URGENT_DISPLAY_PRIORITY, making the
  view updates much more stable with less jitter.
* Removed the draw refresh, and have it always be the same as the value
  refresh.
* Added lower refresh intervals (25, and 75 ms).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 21:05:50 +00:00
Rene Gollent
dd6ab6242c gcc4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 17:53:33 +00:00
Jonas Sundström
3b5c46634d Suppress ResizeView (the grey rows & columns view) when entering/leaving fullscreen mode, and when zooming. Its useful only when manually resizing the window. In the other cases it simply flickers by.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 16:56:42 +00:00
Oliver Tappe
349a150359 build fix:
* added 'app' private header path such that ServerProtocolStructs.h
  can be found

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 15:13:53 +00:00
Jonas Sundström
2db5c7580c Spotted a few left-over occurences of the previous names: TrackerGrep and Tracker Grep. Simplified the About window: Version is no longer essential. Its simply part of Haiku now. The name is more self-explanatory now, so there is no need to explain the purpose of the application in the About window. Removed the mention of myself as the maintainer, as its maintained collectively by Haiku now. Moved myself into the list of contributors, after Oliver Tappe, which I think is chronologically correct. If the primary copyright holder was Haiku and not Matthijs Hollemans, it would have been appropriate to use Haikus BAboutWindow, but alas.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29932 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 13:08:42 +00:00
Stephan Aßmus
14cfdab543 Reset the follow mode to "follow none" when instantiating a replicant view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29918 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-05 07:35:40 +00:00
Axel Dörfler
aeab3755ee * Made the button bar no longer draw over the menu bar, and it now uses the
BControlLook to draw its bottom border instead of using a BBox, and have the
  parent move it around to make it somehow fit (or not).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 23:05:55 +00:00
François Revol
37fbed721c Fix gcc4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29912 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 22:42:26 +00:00
Axel Dörfler
7f629a4121 * Tried to make the scrolling position less surprising when resizing the window.
Sometimes it even seems to work :-)
* FrameResized() called _UpdateSize(), although DoLayout() already did so.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29910 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 22:22:34 +00:00
Stephan Aßmus
000fe088a7 Patch by Ma Jie: Basically - make Poorman (the webserver) work. Libhttpd from
Jef Poskanzer is providing the backend, but had to be adopted in some ways.
Other issues in Poorman have been resolved.

When testing the license integration, I stumbled over some AboutSystem bugs,
basically clicking licenses would not open them. I fixed those in this patch,
sorry for mixing that up.

Note to Ma Jie: I changed the encoding of the libhttpd files to UTF-8!
(This affects only the (C) glyph.) Thanks a lot for your awesome work on
Poorman, it's really appreciated!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29906 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 21:03:19 +00:00
Axel Dörfler
195981bb59 * Removed the polling of the network status; instead, it now uses the new
network notifications.
* It also doesn't keep a socket open over the whole time which would prevent
  the network stack to be unloaded.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29904 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 17:12:18 +00:00
Stephan Aßmus
2833e9ea83 * Fix drawing the background if needed on other shelfs than Tracker (untested).
* Fix invalidating the whole view when receiving a color drop, since the frame
  around the text input is also affected now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-04 08:08:51 +00:00
Axel Dörfler
317bd7dda3 * Changed directory structure as suggested on the mailing list.
* Made the TimeZoneView less error prone, and also actually use Haiku code (the
  previous check didn't work since it used #if, not #ifdef).
* Also took the liberty to rename our boot loader to haiku_loader, since I had
  to update the nasm binary anyway. Updated the assembly sources to nasm 2.0.
* I haven't found where the synth location in the MIDI code is specified,
  though.
* Also, NetBootArchive, and FloppyBootImage haven't been updated yet. Will do
  so next.
* Some optional packages still put their license to beos/etc/licenses. I didn't
  update them yet, as we'll probably do so anyway at some point. Also, I think
  we might want to introduce a common/data/licenses instead for those.
* If you encounter any problems, please tell!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-03 09:02:44 +00:00
Axel Dörfler
7ac4610afa * Got rid of the mouse move heuristics again, and tried a cleaner approach
by redirecting up/down keys to the list view.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29865 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-02 10:01:05 +00:00
Axel Dörfler
c7c20fc184 * Improved filter input vs. mouse use behaviour.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-02 09:51:09 +00:00
Axel Dörfler
8f400a127a * Added filter control for the Unicode block list.
* The status line now contains the character as well, as suggested by humdinger.
* Moved the list view into its own class UnicodeBlockView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-02 09:46:21 +00:00
Stephan Aßmus
db9de5de43 As Michael correctly pointed out, there is no reason for the window to be
not resizable, since it will even nicely relayout itself on size changes.
Some pages can be resized too small, but anyways, that can be improved.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-01 17:55:04 +00:00
Axel Dörfler
a9fcf35b98 * Added support for copying characters into the clipboard via Command-C, and
a popup menu.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-04-01 15:53:53 +00:00
Philippe Houdoin
b60892ce1c * As suggested by Axel, BMediaTrack::GetCodecInfo() don't anymore say
"Haiku Media Kit: ", as it's given for any caller of a Media Kit API ;-)
* This remove an systematic line feed in the codec pretty name returned;
* Updated MediaPlayer info window text layout to take this change into account.




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29836 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 19:16:18 +00:00
Rene Gollent
f03b0a18cc gcc4 build fixes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 17:59:23 +00:00
Axel Dörfler
ac2bb4db91 * No longer highlight a character once dragging starts.
* Use correct alpha/blending mode for the letters.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29830 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 15:13:29 +00:00
Axel Dörfler
9a0dc161a5 * Selecting a font via its family didn't work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 15:07:20 +00:00
Axel Dörfler
a664f9dec5 * Made the default window size a bit larger.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 14:56:06 +00:00
Axel Dörfler
53d31fb972 * Removed unused MessageReceived() method.
* Made the standard character width a bit wider.
* When moving a character around, it was incorrectly centered in the bitmap
  (StringWidth() was called from the wrong view).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 14:50:58 +00:00
Axel Dörfler
beedda4c2c * Added a string view that shows the character's code on mouse over, the
character gets also highlighted.
* Added support for dragging a character. Holding shift (or option) while
  dragging will copy an UTF-8 hex string instead.
* Minor cleanup.
* Is there any reason BStringView restricts its maximum width?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29825 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 14:42:06 +00:00
Stephan Aßmus
80aabca188 When the window is already full screen (ie, zoomed, not the full-screen mode
without any window border), do not enlarge or shrink the window when going from
or into tabbed mode. Fixes ticket #3646.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29822 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 13:37:04 +00:00
Stephan Aßmus
8222443084 For some reason I do not grasp right now, "c" needs to have uchar type or
the method is broken.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29821 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 13:35:31 +00:00
Axel Dörfler
f05dab29fd * CharacterView now accepts mouse wheel input (it did not forward the messages
to its superclass), and it also sets useful scroller steps.
* Improved layout a bit.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 12:51:50 +00:00
Axel Dörfler
6722e2f797 * Temporarily removed the "Only Show Blocks Contained in Font" - Haiku does
not yet support this.
* Made sure the correct font is selected at start.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29816 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 11:55:59 +00:00
Axel Dörfler
b045287228 * Started an application showing the Unicode character map.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-31 10:45:34 +00:00
Philippe Houdoin
71ec08a773 Quick & dirty fix to align labels and contents.
Quick because a better option is use the layout feature.
Dirty because it's assert BMediaTrack::GetCodecInfo() return a two-lines pretty name.
BTW, why prefixing "Haiku Media Kit:\n" the codec name?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29806 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-30 20:55:54 +00:00
Stephan Aßmus
79f3690f4a When embedded on the Desktop as a replicent, prevent the Desktop view from
painting over the workspaces view. The way this is currently handled in
app_server makes it flicker even in double buffered mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29791 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 18:21:24 +00:00
Rene Gollent
8e26769c8b Patch by Bryce Groff: add line number display to StyledEdit. Fixes ticket #2623. It does however expose an interesting curiosity in BTextView - CurrentLine() does not count a line until it's actually had some text put into it (i.e. simply hitting enter at the last line of the doc does not increment the number that CurrentLine() returns. Is this an oversight or does R5 behave this way also?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-29 16:29:53 +00:00
Stephan Aßmus
403687d8d2 * Beautified everything with the help of BControlLook.
* When embedded on the desktop, draw with alpha compositing.
* Implemented flashing the pressed keys.
* Clicking the calculator icon in compressed mode will evaluate.
* Cleaned up dead code, did some refactoring.
* Removed Audio Feedback option, since the feature is currently missing support
  in Haiku. (play_sound() unimplemented)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29763 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-28 19:45:45 +00:00
Stephan Aßmus
4e78d3bc78 Something is fishy with the pen location and graphics states. At first, this
irritated me when drawing BShapes. Those are always offseted by the current
pen location (to be compatible with BeOS). On first draw, it worked ok, on
subsequent draws, no shape to be seen. Now I've noticed that ActivityMonitor
does not draw it's offscreen view when placed on the Desktop. This seems to
be the same issue. The BView is archiving a wrong penlocation. I've looked
a bit around for the actual problem, but until I can find it, this patch fixes
the replicant mode of ActivityMonitor.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-28 18:05:16 +00:00
Stephan Aßmus
d63a77f913 Didn't spot this coding style violation! Sorry.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29737 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 17:58:56 +00:00
Stephan Aßmus
661d0430d0 * Patch by Ziyu Yu. The bootman window doesn't need to be resizable.
Fixed ticket #2330.
* Additionally, I fixed the bootman window popping up at some place and then
  centering.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29734 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-26 15:59:21 +00:00
Stephan Aßmus
681c2e4425 The button and menu field draw routines take a background color into account,
which makes the resessed frame blend better with the surroundings. This can
be seen best in Keymap, where a different color is set on some buttons, but
the resessed frame should still be the same across all those buttons.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 23:34:19 +00:00
Jérôme Duval
934e233b60 * don't copy /var (bug #3584)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-25 20:42:35 +00:00
Stephan Aßmus
f7335ab6ed Coding style cleanup, no functional change. Hopefully. :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-24 11:22:35 +00:00
Stephan Aßmus
4b0f97863f Change label of Mount menu to just "Mount", as in Tracker. The items mounted
could be something else than disks anyways.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29652 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-22 11:49:50 +00:00
Stephan Aßmus
cb6afcb146 * Give Deskbar a refreshed and cleaner look.
* Fixed a bunch of problems in layouting the various views. (For example,
  the last app menu entry is no longer one pixel too short, but there was
  more...)
* Fixed Deskbar being not wide enough for the Haiku logo in certain modes.
* Enabled the mount menu. I think it's a good idea to have at a more prominent
  location where new Haiku users may look for it (Gnome also has this in
  the main panel).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29631 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-21 17:27:06 +00:00
Stephan Aßmus
55c030c4e2 Unbroke the "Mount Menu in Deskbar" feature. It re-uses the MountMenu code
from libtracker.so. BTW, I like this feature, since it gives mounting volumes
more visibility. But this commit does not enable it. Use

-SubDirC++Flags -D_SHOW_CALENDAR_MENU_WINDOW=1 ;
+SubDirC++Flags -D_SHOW_CALENDAR_MENU_WINDOW=1 -DMOUNT_MENU_IN_DESKBAR=1 ;

in the Deskbar Jamfile to enable it.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29627 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-21 11:34:06 +00:00
Michael Pfeiffer
1b1b6fce17 Applied patch of ticket #3169 by oco: Set default partition correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29626 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-21 10:23:34 +00:00
Stephan Aßmus
432ce3738d * Tracked down the mkdepend tool which Ingo used in his updated makefile-engine
which auto-generates dependencies. It was written by Lars Duening for BeOS
  and uses libglob, which is also part of make. To re-use libglob and since
  make is already part of the Haiku tree, I added mkdepend to the bin tools.
* Added Lars Duening's copyright to AboutSystem.
* Added skeleton makefile and makefile-engine to data/develop.
* Added mkdepend and makefile-engine files to the Development optional package.
  It could be argued to move the make bin command there too, from it's current
  location in the HaikuImage file. However, make could be useful to always
  have available.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29609 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-19 12:19:41 +00:00
Stephan Aßmus
5ef44d9bfc * Do not draw the BMenuItem content twice. (Fixes bad anti-aliasing of labels
when applications are expanded in the Deskbar.)
* Simplified setting B_OP_COPY drawing mode.
* PopState() at the end of drawing, not before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29601 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 17:24:08 +00:00
Stephan Aßmus
1cf94bf91f Cleaned up the include list. It's probably safest to include <Debug.h> before
anything else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29600 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 17:21:48 +00:00
Stephan Aßmus
1162fe1c93 Removed DeskBar from the libbe_test target.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29599 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 17:20:07 +00:00
Axel Dörfler
a7ea0713b4 * Now listens to disk device notifications, and rescans its device list when
something comes in -- this could be greatly improved, though.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-18 08:56:49 +00:00
Jérôme Duval
c0f674824c * fixed symlink creation and symlink attributes
* more debug output


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 21:55:50 +00:00
Jérôme Duval
8f29cb488f * added debug output
* don't create the directory with the link name, only the parent


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-16 00:23:16 +00:00
Joachim Seemer
2bb8b19f08 Forgot to re-format the About alert. Oops.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 17:47:59 +00:00
Joachim Seemer
1e251de143 Exchanged all occurences of 'Expand-O-Matic' to 'Expander'.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29544 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-15 17:07:48 +00:00
Jérôme Duval
b38dbcd92d * set the thread priority to normal for spawned processes (bug #3564)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 22:19:35 +00:00
Axel Dörfler
7aed1511f6 * The window size is no longer directly saved when you change it in the menu.
* "Save as Default" now also saves the current Terminal size.
* Exchanged the strange default Termina sizes with some others, added a
  separator between the full screen setting.
* Removed the "Term" prefix from TermView::fTerm{Columns|Rows}.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29513 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 13:50:08 +00:00
Axel Dörfler
152a0ade57 * Changed the default settings to close after being done with expanding.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-14 08:50:08 +00:00
Axel Dörfler
b38bec60dc * Fix for the previous fix; abs() is in stdlib.h, not math.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 21:17:38 +00:00
Axel Dörfler
4f7f915759 * GCC4 build fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29498 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 21:11:54 +00:00
Axel Dörfler
1bb87bd0b1 * Added a settings window - right now, you can only change the time interval,
though.
* Shortened the time interval defaults to 250 ms; the drawing updates are made
  every 500 ms - this still seems to have only little influence on CPU load over
  here (YMMV).
* The resolution/scale change is now applied to all views, not just the current.
* Changed the pen size of the chart to 1.5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29497 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 20:19:10 +00:00
Stephan Aßmus
51ff40fed0 When adding/removing the second tab, check if the window is near the bottom of
the screen, and then move/resize the window upward, so that it's bottom doesn't
go beyond the screen border.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 20:18:01 +00:00
Axel Dörfler
a41b1bcb3a * The shortcuts of the encodings shadowed other shortcuts, like Command-G to
switch Terminals. I've not only removed that shortcut, though, I disabled
  all encoding shortcuts, as I frankly don't see any use for them beyond
  confusing users (by accidently hitting one of the 134 shortcuts).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 20:00:01 +00:00
François Revol
acef747411 Comment out debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-13 16:50:47 +00:00
Axel Dörfler
2c5ecffabf * Fixed and optimized the directory filter: since it already gets the stat
data, calling BNode::IsDirectory() is more expensive. Also, it did not
  traverse symlinks, and thus left them out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29485 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 22:37:17 +00:00
Axel Dörfler
5654f62097 Almost didn't notice this patch from Christian Packmann:
* changed function names iterate() and iterate1() to more descriptive 
  iterate_float() and iterate_double()
* set better starting position for Mandelbrot set
* add higher values to "Iterations" menu: 2048, 4096, 8192


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-12 11:27:22 +00:00
Stephan Aßmus
77b23b704d Removed left-over debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29423 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 11:52:47 +00:00
Stephan Aßmus
46f2d7feec * Basically, the audio buffer size was simply too small and caused
audio playback with frequent glitches. I am testing with HDA and have
  perfect audio now. The only remaining problem is the drop-sample
  resampling in the system mixer, which gives a somewhat metallic sound.
* Removed hardcoded values from preferred format and used them if
  the consumer supplies wildcard values. Since the system mixer supplies
  wildcards for all those values, this change does not have any effect
  for now. The code is more correct, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-07 11:39:48 +00:00
Stephan Aßmus
d5e2aa9389 Patch by Oliver Coursiere:
Center the TV window on start. Fixes ticket #3041. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29363 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-03-01 13:58:05 +00:00
Jérôme Duval
f163ab92bb replicant view is already sized correctly
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-23 19:31:51 +00:00
Jérôme Duval
bc3229d648 * load settings before building the window: the behavior is then similar with the replicant version.
* change window limits when keypad option is off
* style cleanup


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29293 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 22:45:41 +00:00
Bruno G. Albuquerque
cac9c31e53 - Removed debug output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 14:31:45 +00:00
Bruno G. Albuquerque
7323980943 - Fix displaying of the From: popup menu when composing a new message.
This actually show a bug in BPopUpMenu. It seesm to think that its size
includes the arrow at its right size and so it draws the menu item
string over it. Stippi?



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 14:31:03 +00:00
Bruno G. Albuquerque
ae2bf46029 The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-22 13:45:40 +00:00
Stefano Ceccherini
4012c75a86 Remove TermView dependency from Shell. It now depends on TerminalBuffer instead.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 18:08:11 +00:00
Jérôme Duval
551612ea11 Applied patch from richy_rich for bug #3034. Seems like 100*100 is a good minimum size.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-21 14:58:41 +00:00
Stephan Aßmus
2387efafa3 Resolved a couple minor TODOs to use layout friendly constructors, which have
become available meanwhile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-16 12:19:04 +00:00
Jérôme Duval
8881ad6503 * fix spacing between scope and vu views
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29226 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 19:43:38 +00:00
Stephan Aßmus
2f86ba4557 Implemented a new look for the Haiku interface controls. It was
overheard that they looked too ninety-ish.
TODO: The code behind this is work in progress. The basic idea
is to extract all drawing code into a new class BControlLook,
of which there is a global instance be_control_look, instantiated
in InterfaceDefs.cpp. At the moment, all the old drawing code is
still there, and the usage of be_control_look is inside if-bodies
checking the instance against NULL. In another words, by not
instanitating be_control_look, you can revert back to the old look.
BControlLook's job is to provide reusable methods for drawing
certain types of frames, backgrounds and labels, so that application
developers can make controls that re-use the same drawing code
as built-in controls and adopt to changes made there. I have added
the notion of "borders". Each of the frame drawing methods can be
made to draw certain borders only, which is supposed to help when
controls shall visually attach. This feature is not fully explored
at all ATM.
TODO: Update BColumnListView header view and BStringItem text
spacing. Update other apps where it makes sense to use BControlLook.
For the moment, only Tracker and LaunchBox are updated. More...
NOTE: The new look is not very radically different, so that existing
apps do not immediately look too ugly or out of place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29221 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 18:23:19 +00:00
Jérôme Duval
2a8ffa8805 * Break parsing loop if PkgA is encountered. This helps with QEmu pkg.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29216 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 17:05:36 +00:00
Stephan Aßmus
64eb49fd24 * Cleanup in the Gradient department. No fuctional change.
Renamed BGradient::color_step to BGradient::ColorStop
  as it's called everywhere else. Also renamed BGradient::gradient_type
  to just BGradient::Type. Renamed BGradient::Type() to GetType().
* Simplification of method names in Painter.cpp. Some not yet
  complete and yet inactive code to accelerate vertical gradients
  (bypassing AGG for this special case).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29214 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 15:15:49 +00:00
Alexandre Deckner
a1056d5fa3 * Key font size now also takes the window width into account.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-15 12:58:09 +00:00
Jérôme Duval
58bda9983c * alert when the destination volume is read only. Fixes bug #3422.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29195 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-14 00:58:01 +00:00
Jérôme Duval
ac53f5c1f1 * place the Encoding before the To. this fixes bug #1206
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29182 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-10 23:36:56 +00:00
Jérôme Duval
0b5e655d25 Changed the error message for unreadable packages to be a passive one, as suggested by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29162 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 14:19:06 +00:00
Jérôme Duval
b97c244e6e * exits on invalid packages
* added messages on errors


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29159 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-08 12:46:05 +00:00
Jérôme Duval
9cb330883d added a max length for the name text control in DriveSetup. it's atm the max value for bfs volumes.
added a TODO as it should depend of the fs type.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29149 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 15:43:19 +00:00
Jérôme Duval
90e7d21528 * Truncates Installer menu fields volume labels. This fixes bug #2192.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29148 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-07 15:18:12 +00:00
François Revol
09a51729ad Focus the password field on Enter if it's empty and not yet active.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 23:54:39 +00:00
François Revol
3813268c9c add a --nonmodal option.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-06 16:21:17 +00:00
Stefano Ceccherini
f498be9297 Applied patch by h.z. (slightly modified by myself) included in bug #2715. I tested it briefly with Konatu Tohaba font and it seems to work correctly. Please review.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29129 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-03 14:04:52 +00:00
Michael Lotz
d0eaec3086 Fix more operator precedence errors. These do not do what you'd expect at first
sight. The comparison operator takes precedence over the binary ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29121 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-02-01 23:24:55 +00:00
Stephan Aßmus
d5e24b12c1 * Add more properties to the <svg> tag, version and XML namespaces. This should
improve compatibility of the exported SVG files.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-31 10:09:14 +00:00
Stephan Aßmus
89d04738c0 Patch by Michael Kanis:
* Switched CodyCam GUI to use Haiku layout management.

Thanks a lot!!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-30 22:26:58 +00:00
Karsten Heimrich
f2e161c535 * make use of the now available decorator infos
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 21:04:10 +00:00
Jérôme Duval
a4797804ba * removed the background border
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-27 20:14:55 +00:00
Jérôme Duval
86bc2f8eac * removed the fancy border on the Installer background
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-26 23:35:12 +00:00
Jérôme Duval
6504b22390 * calls BTextView hooks, this allows to select text (see bug #2497)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29018 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 19:57:21 +00:00
Stephan Aßmus
5ade2c5acd Fixed coding style issues pointed out by Jerome.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29009 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 12:17:02 +00:00
Stephan Aßmus
cee9364ac5 Applied patch by Clemens Zeidler which gives the Terminal a nice context
menu with additional options when dropping files from Tracker into the
Terminal. Thanks a lot, Clemens!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29007 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-25 11:29:39 +00:00
Jérôme Duval
52e59b292b Improves the EULA alert look (bug #3321)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-24 11:29:18 +00:00
Michael Lotz
ce837badf2 Fix GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:10:17 +00:00
Michael Lotz
fb3e35fcec Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:05:15 +00:00
Michael Lotz
7e359a9b53 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 02:37:28 +00:00
Axel Dörfler
cb744e5c22 * Implemented Copy(), Cut(), and Paste() for the hex mode. Additionally, the
text view will now accept raw data in text mode as well.
* This closes bug #3327.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 08:31:44 +00:00
Axel Dörfler
8bc239bc55 * Resolved a TODO and implemented an is_valid_utf8() function that replaces the
former is_valid_ascii(). This function is now also exported in the header.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 08:30:24 +00:00
Rene Gollent
2409f4caa6 Fix a few style violations from my previous commit. (thanks Axel!)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 01:22:30 +00:00
Axel Dörfler
c6790819de * Use the new get_device_icon() call under Haiku. This fixes bug #3325.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 20:38:44 +00:00
Rene Gollent
5d1e75d3cb If we're going to fail because of a missing CD drive, never show the CD player window at all instead of flickering it briefly. This fixes ticket #2333.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:42:15 +00:00
Axel Dörfler
a107d1676e * Made the get_token_list() function behave the same way as under BeOS. This
simplifies the code in the Switcher, but has the drawback that the window
  list is not "static" anymore, ie. the items in the window list of the Deskbar
  will now jump around as in BeOS.
* However, EasyMove now works under Haiku as well out of the box, if that is
  something we want :)
* Maybe we should instead add another parameter to the window list to make
  it sorted or not; sorting the list as it's done now is much simpler and
  faster on the server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 19:16:43 +00:00
Stefano Ceccherini
ee9b4396bf fCheckMouseTracking was never initialized to false, causing spurious selections when opening a new tab. Fixes bug #2910
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 16:01:43 +00:00
Axel Dörfler
c2177fe861 * The Switcher now "remembers" the first app when doing a quick switch over
more than one application, so that will be the next app to switch to for the
  next switch.
* This solution is not entirely perfect, though, as it needs to visually bring
  the first app to front inbetween to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 11:46:53 +00:00
Axel Dörfler
0b0a2ca6c4 * Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 23:18:40 +00:00
Axel Dörfler
94c366d233 * Fixed some obvious misbehaviour of the switcher.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-18 22:53:31 +00:00
Stephan Aßmus
4e034d2ab3 Make sure that text clippings dragged from DeskCalc will be named "DeskCalc
clipping" instead of the default "Untitled clipping". Fixes last remaining
issue of #2749.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:55:15 +00:00
Stephan Aßmus
bc7dbfd71d Forgot to add "x" as a multiplication sign as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:21:53 +00:00
Stephan Aßmus
85d74ff62d Changed token type handling so that different chars can resolve to the same
token type (part of #3236). "/" now equals "\" and ":" to mean "divide by".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28921 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 14:19:36 +00:00
Stephan Aßmus
cf4ef413b1 Set resizing mode before calling BMenuBar::ResizeToPreferred(), since the
default menu bar resizing mode triggers some R5 compatibility behavior wich
we don't want in MediaPlayer. This fixes the (apparantly) last remaining
issue from #2180.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28917 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-17 13:04:01 +00:00
Axel Dörfler
ff6ab52278 * We don't need the BeOS FrameMoved() work-around for Haiku.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-15 11:39:55 +00:00
Stephan Aßmus
7a6bda7716 Got rid of the options window and implemented them directly
in the context menu. Since there are only so few options, this
is much more convenient. (Fixes part of #3236.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28902 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 19:12:42 +00:00
Stephan Aßmus
46c8e2c17d Patch by Lukasz Kozlowski:
* Fixed About menu item for DeskCalc to say "DeskCalc" instead of "Calculator".
  (fixes #3234)

Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28896 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-14 13:37:19 +00:00
Axel Dörfler
f5c4a08357 * Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-11 14:22:49 +00:00
Jérôme Duval
359176d906 * now use source and destination as initial directory for file panels. This fixes bug #3175.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-07 21:52:07 +00:00
Axel Dörfler
a31688d23d * Set "openAnyway" argument of BPopUpMenu::Go() to true, fixing bug #1493,
thanks to Edwin for the hint!
* Removed about menu item, as that's a bit superfluous in such a tiny app
  (you can still use "hey" to get the window from the running app).
* It was leaking the menu, as it didn't set it to auto-destruct.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-29 22:07:54 +00:00
Rene Gollent
9d17b26a56 Patch by Lukasz Zemczak: fix installer crashes reported in ticket #2969.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-28 20:57:21 +00:00
Rene Gollent
8aafdd05fc Make the uptime view a multiline textview. This allows it to gracefully wrap the text instead of simply cutting it off when your uptime is too long to fit into the provided space. Fixes ticket #701.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28786 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-12-09 05:37:35 +00:00
Stephan Aßmus
8d267d142a Fixed the "power" operator (^).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28668 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:15:13 +00:00
Stephan Aßmus
34ef8378c5 Fixed the problem that icon buttons are too small when creating new ones.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28667 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:14:10 +00:00
Stephan Aßmus
f1d4302878 Small style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28666 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 22:13:21 +00:00
Axel Dörfler
5d029ca0bd * Renamed settings file (removed the "pinc" part of it).
* Removed BeOS compatible flag from the subdir.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28661 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-16 21:19:58 +00:00
Stephan Aßmus
b419343e89 Do not set fSent to true in SaveAsDraft() already, since it is correctly set
in Send(), which uses SaveAsDraft(). This fixes #1020. Thanks to kaoutsis and
ksmith for their investigation!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28641 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-13 20:07:32 +00:00
Jérôme Duval
c6f8aa29f2 * better handling of dropped files
* dragging now uses the mime type icon


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28613 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-11 19:24:33 +00:00
Jérôme Duval
39dbc363ef clearer error messages
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 16:37:19 +00:00
Jérôme Duval
019ed09bee * cancel rendering if selection changed
* update track slider borders if selection changed
* added drag'n drop from ScopeView


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 14:37:18 +00:00
Stephan Aßmus
59251feadc More realistic file size restriction. UINT32_MAX is not defined on some
target platforms, too.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-09 11:08:19 +00:00
Jérôme Duval
dbbc34b6b2 resets fPlayFile once deleted
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 22:41:20 +00:00
Jérôme Duval
6cd5f90f73 StyledEdit now alerts with "unsupported format" instead of "Bad argument type passed to function" (bug #3071)
OpenFile() now returns early when the format is unsupported (don't add the document to recent documents, don't allow to save the document) (bug #3072)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 15:58:06 +00:00
Stephan Aßmus
52de6dce94 Moved the gradient_type and color_step structs into the BGradient
class/namespace. Renamed the B_GRADIENT_* types to TYPE_* as the context
is already given.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 14:56:56 +00:00
Stephan Aßmus
3bd8c2318f * Fixed a warning.
* fStyleMap could be deleted more than once in certain situations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 13:22:33 +00:00
Stephan Aßmus
8b62d2f0e5 That the core system code of Haiku is distributed under the terms of the MIT
license was nowhere mentioned. I added an explaination to the copyrights section
and also mentioned that clicking a license name will open the respective
license for reading.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-08 10:31:52 +00:00
Stephan Aßmus
bf5a91e2ff Added Adrian Panasiuk for his very good bug reporting work and helpful
patches. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28540 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 22:52:50 +00:00
Stephan Aßmus
ef367a8a81 Small coding style fix.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:18:26 +00:00
Stephan Aßmus
53bc794334 Free buffer in error case.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-06 11:18:01 +00:00
Stephan Aßmus
de36f71531 More or less applied patch by anxiety that implements showing a file
icon in the MediaPlayer Info window. I changed it a bit, so that the
icon retrieval only happens at the file change notification (quite
important, since the info window receives playback position notifications).
I also changed it to take the icon from the file first, if there is one.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 16:46:59 +00:00
Stephan Aßmus
19b75ed8a8 Small cleanup. Use BitmapFlags() also in the other condition (don't
hardcode overlay color space).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-05 16:10:59 +00:00
Jérôme Duval
9467d1448c fix a style violation
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28507 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 21:52:57 +00:00
Stephan Aßmus
8443d21cf8 Included "Mike's Arbitrary Precision Math Library" in DeskCalc (BSD style
license) and rebased the ExpressionParser from double on the MAPM data type.
Currently, the binary operators are not supported anymore, but the imprecise
calculations were getting on my nerves. I think a lot more neat functions
could now be supported, but I have not looked into it further. I also didn't
dare look closer at the C code of the library, but it seems to be well
tested. It's portable by all means, I guess even if the target platform has
8.3 char file names to hold the code... Luckily, the library inclused a C++
wrapper class for the data type (MAPM) which makes it fairly comfortable to
use and hides the ugly C stuff and messy memory management.

The result seems to be quite nice so far. Previously, I couldn't even calculate
my finances without eventually getting some rounding errors.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 20:47:41 +00:00
Jérôme Duval
07db0c6fd0 remove the length limit control, it simplifies the UI.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-04 20:36:57 +00:00
François Revol
ac3a539c97 Fix comment
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 22:00:43 +00:00
Jérôme Duval
1f492539e7 implemented PartitionColumn::GetPreferredWidth()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28462 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-02 12:34:31 +00:00
François Revol
fbc1ca4196 No need for NULL there.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28447 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 22:17:19 +00:00
Stephan Aßmus
8b0dc5ae13 Added Clemens Zeidler to the list of contributors for his
Synaptics Touchpad driver patch. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28418 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-11-01 10:53:58 +00:00
Jérôme Duval
f2a5c5714d cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28411 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-31 19:25:42 +00:00
François Revol
29ac46e843 - missing space between sentenses
- fix BeOS build


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-30 19:41:43 +00:00
Michael Pfeiffer
2643c0dddd Show size of partition. This should work even if the FS module is not on the image..
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-24 20:46:50 +00:00
Jérôme Duval
bdb1d3ac7c * BMediaRoster::GetAudio*() should return B_NAME_NOT_FOUND when nothing is set
* In this case, SoundRecorder shows a different error message, more informative, confer bug #134


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28303 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 21:30:19 +00:00
Jérôme Duval
88fef303b1 adapt the record format with the input format
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28302 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-23 19:02:08 +00:00
Rene Gollent
950eeadd92 Factor out a ValidateDest() function that checks if the destination is valid
and throws up a BAlert if not. Reuse this when the user clicks expand to check
for and grab the destination path. This fixes the problem that if the user
manually types in or pastes a destination path and then immediately clicks
Expand, the actual destination path used is never updated. Thanks to Daniel
Teixeira for reporting.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-22 13:54:30 +00:00
Maurice Kalinowski
65b27c0e43 - Add option to stick Magnify to a certain coordinate.
- Keep updating on this area
- Fixes #2831



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-21 21:37:31 +00:00
Maurice Kalinowski
5430c032f4 Whitespace cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28270 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-21 20:57:27 +00:00
Stefano Ceccherini
6bda235a59 some gcc4 warning fixes
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28207 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-17 08:08:20 +00:00
Stephan Aßmus
85649f93c7 Removed the solid white icons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28169 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-16 12:57:09 +00:00
Stephan Aßmus
2748e5b7f6 patch by Artur Wyszynski:
Build fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28147 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 17:08:51 +00:00
Stephan Aßmus
714c386ac3 packageinstaller:
* Reworded info_prepare() for clarity. 
* info_get_package_version() and info_get_package_name() were returning
  memory from a local variable. They return an error code now, possibly
  from info_prepare().

installedpackages:
* Simplifications and refactoring.
* Improve the layout of the interface (using layout management).
* Fix coding style issues.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 16:12:08 +00:00
Axel Dörfler
2f8909e465 * Removed the old "andrew" code. IIRC it was a start to rework Terminal, but
it's so outdated by now, that it's hardly of any use now. Of course, it's
  still in the SVN history if you want to have a look at it :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28138 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 15:27:52 +00:00
Axel Dörfler
4a29c739af * When adding new bitmaps, Pairs now checks if it already got it (in case two
apps are using the same icon).
* This fixes bug #2694.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28133 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:45:51 +00:00
Axel Dörfler
08a6ab444b * Added a _MouseDistanceSinceLastClick() that returns the square of the pixel
distance of the last click and the point passed in.
* Use this one to delay starting of character wide selections.
* Also, treat double/triple clicks as single clicks if the mouse moved too far.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28132 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 14:06:25 +00:00
Axel Dörfler
61fc0bb6be * Adjusted the difficulty levels a bit to fit better with what you likely get.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28131 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 13:11:59 +00:00
Axel Dörfler
6a63492f6c * When switching Terminals via Command-G, we now also take the workspace
information into account, ie. we now behave like the Terminal on BeOS, and only
  allow to switch between the Terminal windows of one workspace.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:48:19 +00:00
Axel Dörfler
302809b46f * Moved duplicated initializers to the _InitObject() method.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28127 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 12:23:17 +00:00
François Revol
a326b4f1b1 Fix the BeOS build. Yeah I know I'm the only one building Terminal on Zeta...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28126 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 11:53:43 +00:00
Axel Dörfler
c2f7e34f8d * When resizing the Terminal, we now show a small BStringView that displays the
current size of the Terminal in characters.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28125 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-15 10:24:53 +00:00
Stephan Aßmus
991547ef6c Patch by Artur Wyszynski:
* Implemented BGradient, BGradientLinear, BGradientRadial,
  BGradientDiamond, BGradientConic and BGradientRadialFocus
  new Interface Kit classes.
* Implemented all the (AGG-based) backend necessary in
  the app_server to render gradients (Painter, DrawingEngine)
* app_server/View can convert a BGradient layout to screen
  coordinates.
* Added BGradient methods of the Fill* methods in BView.
* Implemented a test app and added it to the image as a
  demo.
* Adopted Icon-O-Matic and libs/icon in order to avoid
  clashing with the new BGradient class. Re-use some
  parts where possible.

Awesome work, Artur! Thanks a lot. Now a more modern
looking GUI has just become much easier to implement! :-)

TODO:
* Remove the need to have gradient type twice in the
  app_server protocol.
* Refactor some parts of the patch to remove duplicated
  code (Painter, DrawingEngine).
* Adopt the BPicture protocol to know about BGradients.
* Review some parts of the BArchivable implementation.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28109 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 21:27:42 +00:00
Stephan Aßmus
60a6c9c331 Add short cuts for changing the snapping mode.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 19:30:47 +00:00
Stephan Aßmus
531bc71bf9 Use the parent's low color, not view color for the icon background and frame
base color. Fixes the frame looking much too strong.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28097 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 18:36:07 +00:00
Stephan Aßmus
a6099ca9e5 * Implemented changing the icons size (several ones are supported from
16 x 16 to 64 x 64).
* Changed the layout code to have dynamic padding depending on main icon size.
* Fixed a problem with the "Auto Raise" feature where, when the pad was along
  the bottom, you had to tip the top of the screen with the mouse for the pad
  to raise...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 18:32:31 +00:00
Stephan Aßmus
8eeb005f20 ... actually, "unnest" the rest of the file as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28095 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 17:25:42 +00:00
Stephan Aßmus
80e1925251 * Reworded MouseDown() to avoid all these nested conditions...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28094 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 17:23:00 +00:00
Stephan Aßmus
b2ade57dd9 * Improve indentation.
* Use layout friendly constructor of BView.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 13:39:55 +00:00
François Revol
9a1e8ef4ce - factor out code
- name color drops


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28075 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 10:11:28 +00:00
François Revol
456e89ccc2 - fix bezier points
- set names on objects
/me pets Humdinger


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28074 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 09:40:14 +00:00
Stefano Ceccherini
80fa95ad77 no need to use private libbe variables anymore
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28073 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 09:19:21 +00:00
François Revol
9842ea8fda - better handling of escapement, but still wrong
- handle line feeds
- warn when text is too long
- better control points, but it's still not correct


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28072 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-14 08:41:03 +00:00
François Revol
ad5eea0a83 Fix Haiku build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28065 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:45:31 +00:00
François Revol
8457f71f08 - handle color drops as a new style
- handle dropped/pastes text as shapes with path (and style when with text_runs from StyledEdit)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:42:29 +00:00
Stephan Aßmus
249a4a187e zooey + stippi:
Reimplemented the drag message over the team entries dragging. The previous
implementation used the menu bar tracking by faking a B_MOUSE_DOWN event. The
problem was that in Haiku menus are always sticky and therefor the tracking
thread was not exited when the user released the mouse (which was supposed to
trigger the drop event in the Deskbar). The new implementation follows the
drag in the asynchronous mouse hooks and uses it's own selection state in
TTeamMenuItem to highlight the eventual drop targets.
Fixes #2771.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28063 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 23:31:19 +00:00
Stephan Aßmus
010866b091 Meanwhile and zuMi both have send me an icon for the Mandelbrot demo. I have
made a new icon which should incorporate the best stuff from both icons. Thanks
a lot to both of you! The Mandelbrot_2 icon shows the fractal with the initial
color palette that the real Mandelbrot demo will use, but I like zuMi's colors
better. Just adding it for reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28043 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 16:06:00 +00:00
Stephan Aßmus
eaa9af9937 Never use the current menu UI color, but always the view color of any given
menu. Fixes #974.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28030 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:40:07 +00:00
Stephan Aßmus
f3142445ae Fixed the layout/width of the search string text view.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-13 12:02:32 +00:00
Stephan Aßmus
d6aa728ab5 * Some work in progress towards supporting "Playlist->Save" versus
"Playlist->Save As...".
* Fixed loading of playlists. Sorting the list after loading it is
  not the idea of restoring a manually sorted playlist.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-12 21:13:59 +00:00
Stephan Aßmus
7060b0a220 Fix playback of playlists when "auto play files" is off. The playback stopped
after every new file of a playlist.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-12 21:12:07 +00:00
Stephan Aßmus
ac6b0fc9d2 Remember the last used file panel folder. Also remember the folder even
if the user cancled the file panel. Some improvements to the SettingsMessage
and some more helpful comments here and there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-11 23:33:59 +00:00
Jérôme Duval
43450d12d7 SoundRecorder window is now not zoomable
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-11 23:26:31 +00:00
François Revol
6b6bfc7b31 Got rid of the ugly non-working hack to hide the password and use BTextView::HideTyping() instead. Seems the BeOS one removes the text on call !?
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-11 08:24:39 +00:00
François Revol
d5368245ce Support IP:port notation in the server field for sftp, pass it as -oPort=port.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 23:27:25 +00:00
Axel Dörfler
230e325926 * The network usage data sources are now actually using a single scale as
intended before.
* Also found a bug in the scales that prevented them from working.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 23:20:59 +00:00
Karsten Heimrich
d034a4c9f7 * traverse the entry so that symlinks to files can be opened as well
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 19:08:57 +00:00
Karsten Heimrich
18c9bf5575 * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 19:07:20 +00:00
Stephan Aßmus
126ce07138 * Cleanup with regards to file panel usage. There are two global file panels
now maintained by the application. (So that the last used folder is more
  consistently remembered.)
* Added a message protocol for using the file panels from other loopers.
* Implemented playlist saving and loading for the binary (BMessage-based)
  format. There were some beginnings for supporting a m3u-like text-based format
  as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 18:55:06 +00:00
Stephan Aßmus
609bc8ca47 Fix a confusion with the big-endian versus little endian saving of the
magic four bytes to recognize native (BMessage-based) icons. The file
recognition rule didn't work in the end.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-10 18:41:57 +00:00
Stefano Ceccherini
2cddb12bac don't use the minimum window width, but the real window width. Just in case one day the deskbar was a bit wider
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 12:35:06 +00:00
Axel Dörfler
4682283fbd * The BView archived the view's event mask - if the auto-raise feature was
enabled when the view got archived, the replicant inherited the event mask
  of the view. We now make sure the event mask is always set to 0.
* This fixes bug #2566.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 10:03:43 +00:00
François Revol
82a6a6f3b2 Some debug code.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 09:51:49 +00:00
Axel Dörfler
8a89ce7e93 * WorkspacesView::MouseDown() now only reacts on mouse buttons within the view
even if the auto raise feature is activated. This fixes bug #2173.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-09 09:50:58 +00:00
François Revol
eaa3a999ac Fix the gMainApp race on launch in a cleaner way.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27895 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 20:52:19 +00:00
Karsten Heimrich
d8b7877cf2 * correct comment, i've written a small test app and it works the same way on R5
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27894 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 20:21:03 +00:00
Karsten Heimrich
f3547bb3d3 * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-06 20:20:09 +00:00
Karsten Heimrich
8f30a89d1c * the way it was now, not all items would have been deleted
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-05 21:52:40 +00:00
Karsten Heimrich
c8fe174643 * fix a crash when closing Cortex with some connected nodes
This should have crashed on R5 too, what happend is that deleting
  a 'Box' will cause a release of it's EndPoints, thus leaving some
  dangling EndPoint pointers in the Wires, which they access to call
  disconnect. So deletion order is important here, delete Wires first.
 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27880 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-05 21:11:20 +00:00
Karsten Heimrich
fe811b9829 * cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-05 20:55:25 +00:00
Stephan Aßmus
cbfa2ce735 New BSnow icon by zuMi. Thanks a lot! :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-04 17:00:42 +00:00
Karsten Heimrich
74fd3b540a * fix probable memory leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:48:19 +00:00
Karsten Heimrich
5ac3a15ece * build fix...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27859 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:44:40 +00:00
Karsten Heimrich
05ea853598 * fix some mem leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27858 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:36:58 +00:00
Karsten Heimrich
c716766b3d * whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27857 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:35:57 +00:00
Karsten Heimrich
c1a10c140c * fix mem leak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:32:52 +00:00
Karsten Heimrich
eba8ea5eb2 * fix mem leak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:31:59 +00:00
Karsten Heimrich
036203a01a * fix small mem leak
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:07:30 +00:00
Karsten Heimrich
3c0f9a7cba * fix probable memory leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 12:01:35 +00:00
Karsten Heimrich
ce757605b0 * automatic whitespace cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27852 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 11:56:02 +00:00
Karsten Heimrich
ebf84359c4 * fix probable memory leaks, not in the image but anyway...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27850 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 11:35:28 +00:00
Stefano Ceccherini
5feb95a185 Added Francesco Piccinno (and not Piccinini as I incorrectly wrote in the if_re driver commit message, sorry!) to the about box.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27848 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 11:12:14 +00:00
Karsten Heimrich
cb0c40290e * fix probable memory leaks
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27847 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-03 11:08:50 +00:00
Karsten Heimrich
8e4e6e30ff * Screenshot app icon, kudos to Humdinger
- /me still wonders why we have to use such tiny icons in Deskbar,
  fuzzy look and for sure not handicapped people friendly, hmmm...



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-01 19:19:36 +00:00
Karsten Heimrich
ef52eb17ea * make sure we close the app on ESCAPE
* do not launch a second window in case of RefsReceived



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27799 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-30 21:43:36 +00:00
Karsten Heimrich
ae1cc08385 * save the last output location
* save the last used output format
* save the last 5 choosen locations
* don't do any window init in silent mode



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27785 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-29 22:05:26 +00:00
Stefano Ceccherini
3bb8984f7c don't leak the BMessenger in case of error. CID 836
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27776 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-29 07:05:26 +00:00
François Revol
ca75aaad96 Fix for R5:
- add missing controls for R5 version
- hack to work around a race that happens on BeOS at least, someone should fix it better. stippi ?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27764 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-27 22:32:43 +00:00
François Revol
a3d8a94533 Hack to fix building for R5. Should go away later.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27749 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-09-26 15:30:32 +00:00