3175 Commits

Author SHA1 Message Date
Ryan Leavengood
9aad8c7d4b Fix #4185 by making the border and title settings in the context menu positive
settings ("Show x"). This required changing various logic, some of which I
think was also wrong in the negative settings case. Now if you turn off the
border when the title is on, the title will come back when the border is turned
back on. But any changes in the title setting force the border back on. When
loading the settings the border setting takes precedence.

+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32656 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-24 17:38:10 +00:00
Jonas Sundström
1bd2241222 Mime application/ogg is registered and supersedes application/x-ogg. Remove app's bitmap icons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32636 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 17:59:58 +00:00
Jonas Sundström
63d5fc9366 Remove bitmap icons.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32634 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-23 17:38:17 +00:00
Ryan Leavengood
2ff62714d0 Finally implemented BWindow::CenterOnScreen, with associated CenterIn(BRect)
methods as well as Size(). To avoid the problem of centering the window before
it has been resized by the layout system, I force the resizing early. If there
is a better way to do this or some way to avoid doing it repeatedly, let me
know. But I figure the Center* methods should not be called that often.

Updated Screenshot and DiskProbe to use this new method as a test. It certainly
cleaned up DiskProbe. I will update other code over the next few days (if
anyone wants to help, please do :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32612 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-22 14:17:29 +00:00
Ryan Leavengood
177e730557 Incremental progress in improving the Twitcher:
- Remove '`' and '~' keyboard shortcuts from DoKey as those will no longer be
processed there (they are processed at a higher level.)
- Make shortcut for previous app '1' (same behavior as the left cursor key.)
This required adding B_UNMAPPED_KEY_DOWN to MessageReceived since it is actually
Ctrl-1 that is being pressed (which is unmapped in our default keymap.)
- Make the processing of Ctrl-~ (or `) cycle through the windows when the
Twitcher window is showing. This is to mimic the behavior when the Twitcher
window is never shown. There is still a bug though: the order of the switching
changes after the Twitcher window is shown. Why do we have both CycleWindow and
SwitchWindow methods in TSwitchManager? The changing of order seems to be due
to the use of SwitchWindow instead of CycleWindow. I suppose this is for the
day when we implement quick window switching?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32533 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-20 05:19:35 +00:00
Axel Dörfler
87da7984dc * Contrl-~ now switches between application windows. This is handier than the
mechanism used in BeOS, that is to press Control+Option-Tab (which didn't
  work on Haiku, though).
* Did not change the window switch logic, though, so it's still not really
  nice.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32524 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 15:45:17 +00:00
Axel Dörfler
2c69b5b6c0 * Made the libbe_test environment basically working under Haiku - to actually
make it work, one would need to use versioning for all libbe symbols. This is
  worth an 8k price per file that links against libbe.so, so I didn't want to
  commit this as is. An alternative to this solution would be to write a
  separate application that is responsible for the app_server's window. Comments
  welcome.
* Removed BeOS compatbility of the libbe_test stuff.
* Renamed the libbe_test targets from *haiku* to *test*, ie. libbe_haiku.so is
  now called libbe_test.so, haiku_registrar is now test_registrar, etc.
* This also removes BeOS compatibility from tracker/FSUtils.cpp (all BeOS
  compatibility should be removed, but I don't want to make Alexandre more work
  in his branch, and it's not urgent at all).
* Replaced the former "run" scripts for the test environment with a single
  run script (see updated NOTES file).
* Removed the libbe_test target from some applications - this was only to help
  developing them under BeOS, and is thus no longer necessary.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 14:17:13 +00:00
Axel Dörfler
53b322deb2 * Guys, you need to take more care when adding new shortcuts (hey Ingo!); this
is already the second time that the "Switch Terminals" functionality was lost
  this way. I've now changed the shortcut to Alt-Tab, as Alt-G is indeed the
  usual one for "Find Next".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32518 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 14:02:54 +00:00
Ryan Leavengood
3cad461ddb No need for this now with the new icon.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32508 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 03:56:51 +00:00
Ryan Leavengood
f3f9e93a0c Some application MIME signature fixing.
We really should come up with a way to avoid the duplication between the rdef
and source code...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32505 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 03:33:37 +00:00
Philippe Saint-Pierre
29c4d5a983 ShowImage: Using the up and down arrow to change images from a tracker folder,
and loading an image bigger than the current window size didn't get the window enlarged.

exceptions: the window doesn't get resized by this mean if you check the Shrink to window or Zoom to window settings.

Fixes ticket #4273.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32502 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-19 02:20:10 +00:00
Philippe Saint-Pierre
b4c89c3b30 Shutdown submenu in BeMenu: Make it font sensitive.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32500 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-18 23:22:11 +00:00
Philippe Saint-Pierre
d939e03d05 PoorMan: Close the application when you choose Cancel on first launch.
* If you choose cancel on that first dialog, also don't save a config file
* Also fixes the button labelling in the preference panel (several were clipped)
* Allow the user to cancel the selection of the web folder and return to the initial dialog (to choose Default, for example)
* Make the preference panel closable with escape key
* Multiple coding style changes

(Ref: Ticket #4255)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32486 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-18 00:32:57 +00:00
Philippe Saint-Pierre
16424a2470 Removed unnecessary error messages on first launch :
* When you select Cancel, it did display an alert saying it couldn't start the server, and then displays the main window. That error message was unnecessary since the text box (in the main window) already says so.
* When you click on Select, it displays the same error message, and then display the file panel. That error message didn't exactly made sense in that context.

minor style violation (2 lines spacing between methods)
Fixing ticket #4255


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 23:58:39 +00:00
Philippe Saint-Pierre
da2b227ec7 Preference panel : Reverted some of my "optimizations" since Ingo (correctly) points out that:
* they (the way I did it) can do more worse than good in some case
* they (the way I did it) are generally against our coding-style

Sorry about that. (ticket #4245)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 15:31:09 +00:00
Philippe Saint-Pierre
2c3476d3b7 Further optimization in the construction time of the Preference Panel (ticket #4245).
Indentation fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32435 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 05:31:27 +00:00
Philippe Saint-Pierre
307c87b225 Preference panel: Optimizations to make the window appear faster.
* In most case, the font size will already have been found with the regular check, move the extra check at the end if really it's needed.
* Some variables were declared inside loops (BTW, is that more conform to our coding style? It does feel faster if I declare them outside of the loop)
* The alignment was simplified (without visual difference).

In answer to ticket #4245.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 04:13:26 +00:00
Philippe Saint-Pierre
6478aa2744 Screenshot:
* Add extension to the filename. It gets the extension from the BMimeType related to the chosen translator.
* When you change the output format, the extension change accordingly.
* Some variable name change (variable_name -> variableName)

Ticket #3728


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32433 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 03:12:33 +00:00
Philippe Saint-Pierre
fcafc3a5bb Screenshot command line arguments :
* make Screenshot exit gracefully if no argument is given in combination of -d parameter
* honor the delay parameter when also used with the --silent parameter



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 00:51:05 +00:00
Philippe Saint-Pierre
085f6827a9 Jamfile: Remove mention of BackgroundImage.cpp (removed in r32424)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32430 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-16 00:09:05 +00:00
Ryan Leavengood
0a74004c6e - Added back code for scrolling with the cursor keys, this time only when Shift
is pressed.

- Took Humdinger's excellent advice from #4190 to open the Backgrounds
preferences from ShowImage instead of setting the background manually. This
required some tweaks to the Backgrounds preferences to accept RefsReceived in
the application and forward that to the view. In addition the placement is
set to scaled since otherwise it will keep the old placement. How this is
done is sort of hacky, but I'm going to call it an "internal protocol." This
also allowed me to remove the BackgroundImage code from ShowImage which was
just copied from Tracker (yuck.)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32424 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 21:05:23 +00:00
Philippe Saint-Pierre
f7d8d9b87a _SanitizeIDs(): An off by one error was causing a bug in the terminal window numbering.
Ticket #3372.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32422 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 20:53:18 +00:00
Philippe Saint-Pierre
a3c4ce8b7d Preferences Panel : Check if the font, size or color was indeed changed before setting it as modified, avoiding unneeded "Save/Cancel" dialog.
This fixes ticket #3348.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32421 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 18:37:07 +00:00
Ingo Weinhold
e8cbd8db5d Use the handy B_CLOSE_ON_ESCAPE flag instead of fishing for the escape key in
DispatchMessage().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32419 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 17:02:21 +00:00
Philippe Saint-Pierre
3a613432c9 Center the OpenWindow. The problem is that we cannot get the real size of the window before it's actually shown on screen.. the trick I did was to show it offscreen, get the real size and move the window.
Fixes ticket #4236


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32410 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 03:20:07 +00:00
Philippe Saint-Pierre
6c85c7eec8 Revert r32402. Some problems are occuring in the attribute editor and I want to make sure they aren't caused by my patch before committing for good.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32409 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-15 02:33:47 +00:00
Philippe Saint-Pierre
72dace9557 Make the FindWindow closeable with the escape key.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32403 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 23:11:09 +00:00
Philippe Saint-Pierre
498c03bdd6 StringEditor : The TextView wasn't sending messages saying its content was modified by the user.
Symptoms :
* The Save menu item wasn't enabled
* the undo/redo menu item weren't neither

The fix I made was to commit the changes made by the user to the editor instance, by augmenting the InsertText and DeleteText from the TextView.
This fixes ticket #3507.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32402 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 22:44:44 +00:00
Ingo Weinhold
80abc2712f Changed the Ctrl-L behavior: The current screen is now scrolled up completely
instead of actually clearing it, so that it is still in the history.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32398 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 21:13:13 +00:00
Ingo Weinhold
48bbdc1c17 Fixed broken indentation (greetings to Stefano :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32396 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:57:14 +00:00
Ingo Weinhold
7cd672ff50 Fixed some gcc 4 warnings.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:59 +00:00
Ingo Weinhold
f2b1ae9a76 Added escape key support in the find window (pirated from StyledEdit :-)).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32393 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 20:50:03 +00:00
Ingo Weinhold
6fc8f3cdc9 Made the "Not Found." alerts closable via escape key. Not sure, whether we need
those alerts at all, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:31:31 +00:00
Ingo Weinhold
4aa87c0410 Adjusted variable names for the "Find {Previous,Next}" menu items.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:22:01 +00:00
Ingo Weinhold
d76009fdce * Renamed the "Find {Forward,Backward}" menu entries to "Find {Previous/Next}"
and assigned the usual shortcut keys (Cmd-[Shift-]G).
* Changed the behavior so that "Find Next" continues looking in the search
  direction. I'm somewhat undecided whether this is confusing, since the default
  (and usually desired) search direction is backward.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 19:17:20 +00:00
Philippe Saint-Pierre
718b394111 Enhance/fix the cascading of windows in DiskProbe. Re-uses basically the same algorithm as StyledEdit.
Should fix ticket #3911.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32382 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 18:11:49 +00:00
Jonas Sundström
6e59af7488 Removing unused bitmaps.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32364 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 15:30:26 +00:00
Alexandre Deckner
b8508f581e * Icon for Haiku3d
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32361 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:51:17 +00:00
Jonas Sundström
ce17f0d7f9 Cleanup
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:20:06 +00:00
Jonas Sundström
007e852a81 Remove DrawingTidbits.h and .cpp as per TODO comment, replacing code that relies on it. (Please try - I don't have any CD devices wired to audio. BTW, its sometimes schizoid value changing was present before these changes.)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 14:18:14 +00:00
Alexandre Deckner
9d841f24b3 * New icon for MediaConverter.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32354 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 13:35:46 +00:00
Joachim Seemer
89c0073278 Corrected some typos in the 'EULA' of InstallerApp.cpp.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32345 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 08:46:22 +00:00
Ryan Leavengood
037e5cee48 Implemented pretty much all of #4190. The Enter key was actually already set as
a shortcut for fullscreen, but I guess the view was processing it first. So I
just removed B_ENTER as an option for next image. Also Shift plus primary mouse
was already working for moving the image.

Also I know it was discussed at length but I still wonder if all these options
for next and previous image are overkill. Now there is no way to scroll with
the keyboard. And there isn't an easy way to go to the next image with the
mouse (menus are a pain.) So I still think some more UI tweaking is needed to
avoid constant shifting between mouse and keyboard.

Finally I also added Command-1 as a shortcut for Original Size, but it does not
work. Anyone know why?


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32343 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 07:11:49 +00:00
Ryan Leavengood
fd952aef9b Started cleaning up these monsters:
- Add underscore to private methods.
- Use class member initializer syntax.
- Make sure all class members are initialized, use same order as headers.
- Header reordering.
- A few other small things.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32342 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-14 05:21:14 +00:00
Fredrik Modeen
be454e17a1 - Added Chris Roberts OpenTerminal.
- Added him to Contributors
- Missing a icon thoug, any thoughts about how it should look?

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32334 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 22:54:05 +00:00
Jonas Sundström
570830b85b Removing unused code to reveal what's left to replace, so DrawingBits.h and .cpp can be removed as per the TODO comment in these files. Mentioned GPL code is here: http://vlc.sourcearchive.com/documentation/0.9.8a/DrawingTidbits_8cpp-source.html
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 22:21:56 +00:00
Bryce Groff
ce98f98948 Revert back Mount menu item. One should be able to mount disk devices that contain raw filesystems.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 13:55:01 +00:00
Bryce Groff
4a6a6b6d1c Updated menu changes.
* Disable Init menu for partitions that are read only, or have no media (ie. empty cdrom)
* Disable Delete menu for partitions that are devices.
* Disable Mount menu for partitions that are devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32307 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 12:23:35 +00:00
Axel Dörfler
7ec29ae9a2 * Further improved look.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32299 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 10:23:06 +00:00
Ryan Leavengood
8c1ad886ee - Cleanup to match coding guidelines. The header cleanup might have been
overkill.
- Updating some copyright years.
- ResizerWindow.h was not self-contained.

Some of the other files were skipped due to complexity and planned code changes.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32296 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-08-13 07:28:11 +00:00