History log of /haiku/src/preferences/backgrounds/BackgroundsView.cpp
Revision Date Author Comments
# 59d0a832 28-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

Remove "font size / 12" calculations from various places.

Use spacing values from BControlLook instead.


# 1a61e82b 23-Jul-2022 John Scipione <jscipione@gmail.com>

Backgrounds: Rename CustomRefFilter to ImageFilter

... and simplify Filter() logic. Check that GuessMimeType()
status is B_OK. Rename imageFiltering variable to filtering.

No functional change intended unless GuessMimeType() errors.

Change-Id: Ie29f8408a62ee65bf64db5c0bfcc8a13ef89aa15
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5496
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 2eb1389d 20-Jul-2020 John Scipione <jscipione@gmail.com>

Backgrounds: right-align X and Y position boxes

Change-Id: Ice9e51ca30235a6ec28a8a07cf3fea3da43f1414
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3051
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 92db1990 13-May-2020 Adrien Destugues <pulkomandy@pulkomandy.tk>

Backgrounds: style fixes.

Change-Id: Id032524dc7278f843ce4fcd6132e273088d2256e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2693
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# b93a8f39 28-Jun-2018 waddlesplash <waddlesplash@gmail.com>

Backgrounds: Fix GCC 4+ build.


# 3d86db17 04-Jun-2018 David Murphy <murphman@gmail.com>

Backgrounds preflet limited to 10 recent folders

Added recent folder limit as class member but
defaulted the value to 10.
Stopped using index to keep track of selected
path and folder menu item. Instead use BMessage to send
clicked folder path to the folder bg image loader.

Change-Id: I6b1809ff782db839ef43eb7169a7f6e77fb4ec70
Fixes #5026


# b8a61399 08-Feb-2017 Brian Hill <supernova@warpmail.net>

Fix glitch in Screen prefs when changing background color.

When both Backgrounds and Screen are open, if the workspace color is changed
in Backgrounds the monitor preview in Screen will now refresh to the new color.

Also added a BAlert in BackgroundsView.cpp when failing to change the
background image.

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #13286.


# 744a3927 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Use templatized version of BLayoutBuilder

...also more B_USE_WINDOW_SPACING


# 3f772f52 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Backgrounds: let the preview scale with the font size.


# 1503b7f0 05-Jun-2015 Janus <janus2@ymail.com>

Backgrounds: saves the state of ImageFilePanel

* Fixes #8787.


# 27c555cb 30-Dec-2014 Markus Himmel <markus@himmel-villmar.de>

Fix #8881: Add color drops to Backgrounds

- The Backgrounds preferences app will now accept color drops.
- The Backgrounds app will update if a color drop to the desktop
has changed its color due to a direct color drop

Signed-off-by: Jerome Duval <jerome.duval@gmail.com>


# fd849a28 22-Apr-2014 John Scipione <jscipione@gmail.com>

Background: Make menu fields variable width


# 0a669f8c 29-Dec-2013 John Scipione <jscipione@gmail.com>

Backgrounds: style fixes only

* Update copyright headers
* Fill in pragmas
* Eliminate superfluous B_USE_DEFAULT_SPACING, 80 char limit too
* rename msg variable to message


# e66e2a25 21-Jul-2013 Alex Wilson <yourpalal2@gmail.com>

Fix layout issue in Backgrounds preflet.

Add an extra column to the grid layout so that the menu fields are free
to be much bigger than the checkbox.

closes #9882


# 51e2dbe7 05-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: AddGlue() before color control

... so that it is attached to bottom of the box.


# d0ddd796 05-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Update spacing around preview.

So that there isn't extra space at the bottom, only between the monitor
and the X and Y text controls, and the insets.


# 38a00422 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Line up BBox top borders refactor

Found an AddStrut() method that eliminates the need for the ugly
CreateVerticalStut() call. This approximately matches what I did
in Screen Preferences to line up the BBox's there.

I've reverted my previous commit and redid the code to make
the history as nice as possible but my main concern is to make the
code as nice as possible.


# 67a0c8e7 02-Jun-2013 John Scipione <jscipione@gmail.com>

Revert "Backgrounds: Line up BBox top borders"

This reverts commit 4fe4dcf947abde59b084345697c723fb82053bc1.

Want to do a different way.


# 4fe4dcf9 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Line up BBox top borders


# 6aea66ee 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Refactor view layout code

* Eliminate an uneeded group level, top level is B_VERTICAL
* Remove B_USE_DEFAULT_SPACING calls, use default param instead


# c33dfc27 31-May-2013 John Scipione <jscipione@gmail.com>

Background: Increase the cell size of the color control

... to 8.0 matching the value used in the Appearance preflet.
This cell sizes makes the ramps fit nicely with the Red Green
and Blue text boxes at the default 12pt font size.


# 1839b2e6 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Eliminate uneeded view variable


# 821d2bfc 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Don't resize image menu field to preferred


# 94e69032 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: View layout updates

* Replace the stringViews with CreateLabelLayoutItem()s and menus
with CreateMenuBarLayoutItem().
* Remove extra group levels
* Use font aware spacing units in layout constructor.
* Align the fIconLabelOutline check box with the menu fields
instead of the menu field labels.


# 56cf4a96 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: message fall through


# fc584d8a 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Update header, copyright year, add my name


# 2f5349a4 31-May-2013 John Scipione <jscipione@gmail.com>

Revert "Backgrounds: Resize menu fields to preferred width."

This reverts commit 19d9ad49ae52b561d8600ee27c73e9352d2f37b9.


# e473d011 30-May-2013 John Scipione <jscipione@gmail.com>

Return the insets to be equal on all sides


# 7b03c0ce 30-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Use font relative spacing and adjust insets

BBox's now line up.

Once again set the top inset of the BBox that forms the main
backgrounds view to 0. This should probably be converted to
a BView...


# 19d9ad49 30-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Resize menu fields to preferred width.

Also a few other related changes:
* Update the copyright year in header and add my name.
* Use font aware spacing units in layout constructor.
* Align the fIconLabelOutline check box with the menu fields
instead of the menu field labels.


# 0a04b14f 29-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Use layout workspaces menu field


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 4d9b54c1 29-Oct-2011 Oliver Tappe <zooey@hirschkaefer.de>

Some cleanup in Backround preflet:
* rename a couple of members for imroved clarity
* adjust formatting in header

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42971 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e0de404 08-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style fix, as suggested by Jerôme.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e4d2cd5d 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38567 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df9bb1df 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Reworked, as suggested by stippi, to avoid keeping cursors instances of system ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38566 a95241bf-73f2-0310-859d-f6bbb57e9c96


# faff258d 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Use system grab/grabbing cursors.
Fix #6549.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38543 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fd91b7f 17-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Small compilation fixes for coming layout changes... (really!!)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38202 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74add97b 11-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

CID 1740: Memory leak in Backgrounds since Show doesn't take ownership of the info (code is commented)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38029 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07f82a07 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding missing #undef B_TRANSLATE_CONTEXT

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37286 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea8a1f58 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c1a9b92 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c93e2c43 09-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Localization. I believe it to be correct but for some reason Backgrounds crashes on startup. Enjoy\!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71a1ec0d 05-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33911 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dca191e9 05-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33910 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb32e334 04-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Opening Backgrounds on/in a folder was broken, now fixed. Layout-rewrite of parts of the GUI. Rewrote the monitor drawing to fit the layout, for better or worse. Clean-up will follow.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33888 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91147eef 30-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Solve #4336 as suggested by Fredrik Modèen, using shared private code as suggested by Ryan Leavengood. Removed ProcessRefs code path.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32844 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a74004c 15-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

- 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


# 838eca46 29-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Allows "Icon Label Outline" to be disabled when no background bitmaps are chosen.

It complements r29190 and fixes ticket #2395.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30495 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b10b8f90 27-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preserve Aspect Ratio of Preview in Backgrounds preflet (applies to Widescreen displays).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30466 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4fba3522 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* 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


# 0d7e2012 03-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* The artwork directory has been relocated as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71ed64b7 13-Feb-2009 Jérôme Duval <korli@users.berlios.de>

* Icon label outline is by default true. We take this into account on PoseView creation in Tracker, and when no image is selected in Backgrounds.
* This flag is still only settable when an image is selected.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29190 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0397c54 25-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

don't leak the BMessengers. CID 1009 and 1010

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27742 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0e3096f 22-Aug-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fixed Backgrounds Tracker add-on. I have no idea how some people seem to not
be able toreproduce it before.
- Don't try to access methods in a NULL object. :)
- This fixex bug #1128.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27153 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1f859c04 27-Apr-2008 Jérôme Duval <korli@users.berlios.de>

fixes bug #2169


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dbf2630a 19-Apr-2008 Karsten Heimrich <host.haiku@gmx.de>

* resolved ticket #1880
* implemented center on first start
* removed TODO's as they where partly implemented



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25047 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68c0d50c 21-Jan-2008 Alexandre Deckner <alex@zappotek.com>

- Minor fixes to my last BColorControl patch
- Changed Backgrounds preflet to account for the fixes in BColorControl

First commit :) Hi everybody!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96bc573e 24-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

Include <be_apps/Tracker/Background.h> specifically, instead of adding the
header directory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0aded817 06-Nov-2007 Jérôme Duval <korli@users.berlios.de>

clean the background for all workspaces when no image is selected
this fixes bug #1602


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c34aef7 22-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

changed the meaning of the "icon view label background" Tracker setting:
* it is replaced by a "icon view label outline" feature that renders a black
or white outline around the text of a label under an icon. This can be used
for background images that have a lot of contrast and is visually more
pleasing (IMHO) than the text box in the workspace color (but the outline
could of course still be improved as well)
the outline or "false bold width" feature is a new BFont feature in Haiku
* Tracker appeared to have a disabled feature to install default background
images, I enabled this feature and rewrote it a bit to use our big logo
from the artwork folder, the placement is for 800x600, so not optimal for
larger desktops, but at least it is shown by default on new installations
or rather "fresh" images
* changed the way the dotted underline is rendered under links, accidentally,
this fixes the bug that it was not dotted at all since a while, which is
a bug in app_server or BView not tracking the need to update the drawing
pattern in certain situations (this bug needs to be fixed too of course)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22040 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f93ad78 20-Mar-2007 Jérôme Duval <korli@users.berlios.de>

calls again BMimeType::GuessMimeType() in BackgroundsView (was only called in the ImagePanel filter)
should fix bug #1101


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20400 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb377cd5 26-Feb-2007 Jérôme Duval <korli@users.berlios.de>

fixing indenting style issues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20243 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0e8cacc 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Somehow it still looked strange under R5 this time... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9760e52d 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed wrong layout under R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a9c7fa8 23-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Made the whole thing a bit more font sensitive - looks more or less good with an
18pt font, now.
* Added a few TODO items.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19920 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20ad5fdf 13-Apr-2006 Jérôme Duval <korli@users.berlios.de>

now better place comboboxes taking font size into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17125 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 336bfcc1 10-Apr-2006 Jérôme Duval <korli@users.berlios.de>

fix for bug 455: desktop folder was incorrectly handled for refs from Tracker


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17061 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e7392d7 27-Mar-2006 Jérôme Duval <korli@users.berlios.de>

fixes some bugs with buttons


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cd98287 13-Feb-2006 Jérôme Duval <korli@users.berlios.de>

fix the build for R5


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16378 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ea9eaa1 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Resize the placement controls to their preferred height, make them a little
wider, so that they completely fill up the space they have (making them nicely
aligned to the surrounding border).
* the placement controls now accept up to 5 bytes (for things like "-1000").


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6e2cf48b 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* The X/Y placement text controls are now lined up with the bottom of the
color picker.
* Renamed message constants by considering our style guide.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c77be362 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Now makes sure the boxes/window is large enough for the BColorControl.
* The left and right box should now always look aligned horizontally
(at least under Haiku).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 47c1e3d9 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Now writes the background info message as B_MESSAGE_TYPE attribute (instead of 0).
* Better error reporting when writing the attributes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15744 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd2d1ffd 29-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Renamed BGView to BackgroundsView, etc.
* Moved ImageFilePanel code to its own file, so that it can be reused easily.
* Moved BGWindow stuff into Backgrounds.cpp.
* Cleanup to match our style guide better.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15712 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3f772f525bd98d67b909adaa4299c022a5443905 14-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Backgrounds: let the preview scale with the font size.


# 1503b7f02bb95b75652c239d57e7339b85e9c999 05-Jun-2015 Janus <janus2@ymail.com>

Backgrounds: saves the state of ImageFilePanel

* Fixes #8787.


# 27c555cb7bae26866cdb31f45dd38cea843c3b7d 30-Dec-2014 Markus Himmel <markus@himmel-villmar.de>

Fix #8881: Add color drops to Backgrounds

- The Backgrounds preferences app will now accept color drops.
- The Backgrounds app will update if a color drop to the desktop
has changed its color due to a direct color drop

Signed-off-by: Jerome Duval <jerome.duval@gmail.com>


# fd849a28d936a76e3e99c50426fa90e8791d2a45 22-Apr-2014 John Scipione <jscipione@gmail.com>

Background: Make menu fields variable width


# 0a669f8cd8c354dfe1b4c9553454543e36ea9d0b 29-Dec-2013 John Scipione <jscipione@gmail.com>

Backgrounds: style fixes only

* Update copyright headers
* Fill in pragmas
* Eliminate superfluous B_USE_DEFAULT_SPACING, 80 char limit too
* rename msg variable to message


# e66e2a2535a67c990163883301ca1281086b2bcd 21-Jul-2013 Alex Wilson <yourpalal2@gmail.com>

Fix layout issue in Backgrounds preflet.

Add an extra column to the grid layout so that the menu fields are free
to be much bigger than the checkbox.

closes #9882


# 51e2dbe7f2df7178a0e232a69a87795dcd946084 05-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: AddGlue() before color control

... so that it is attached to bottom of the box.


# d0ddd796b2540fdd66be1bb9797f09f338d38fd8 05-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Update spacing around preview.

So that there isn't extra space at the bottom, only between the monitor
and the X and Y text controls, and the insets.


# 38a0042248c6fa4a06b7ec2525b0df00e48994b5 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Line up BBox top borders refactor

Found an AddStrut() method that eliminates the need for the ugly
CreateVerticalStut() call. This approximately matches what I did
in Screen Preferences to line up the BBox's there.

I've reverted my previous commit and redid the code to make
the history as nice as possible but my main concern is to make the
code as nice as possible.


# 67a0c8e7ac39d6e998175d16a3fe961656c41b20 02-Jun-2013 John Scipione <jscipione@gmail.com>

Revert "Backgrounds: Line up BBox top borders"

This reverts commit 4fe4dcf947abde59b084345697c723fb82053bc1.

Want to do a different way.


# 4fe4dcf947abde59b084345697c723fb82053bc1 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Line up BBox top borders


# 6aea66ee0dfbc7de0680b520d17a82efe43116ed 02-Jun-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Refactor view layout code

* Eliminate an uneeded group level, top level is B_VERTICAL
* Remove B_USE_DEFAULT_SPACING calls, use default param instead


# c33dfc270f6bbb684164fcc98073c5cd8680b066 31-May-2013 John Scipione <jscipione@gmail.com>

Background: Increase the cell size of the color control

... to 8.0 matching the value used in the Appearance preflet.
This cell sizes makes the ramps fit nicely with the Red Green
and Blue text boxes at the default 12pt font size.


# 1839b2e699fbd0d360a623ef8b768a5e34584da1 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Eliminate uneeded view variable


# 821d2bfcb0611cb11aad3d7016d9779980762c43 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Don't resize image menu field to preferred


# 94e6903259f06f2abeb3dbd38369e1fb1f64c505 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: View layout updates

* Replace the stringViews with CreateLabelLayoutItem()s and menus
with CreateMenuBarLayoutItem().
* Remove extra group levels
* Use font aware spacing units in layout constructor.
* Align the fIconLabelOutline check box with the menu fields
instead of the menu field labels.


# 56cf4a96bcd56f24a54f7a6ba25adaf05b84dfe8 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: message fall through


# fc584d8a7d9996961edbddc1b88b9aa8a7df91f4 31-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Update header, copyright year, add my name


# 2f5349a40af16c4144dc0f289122fe9fbf6bdb0d 31-May-2013 John Scipione <jscipione@gmail.com>

Revert "Backgrounds: Resize menu fields to preferred width."

This reverts commit 19d9ad49ae52b561d8600ee27c73e9352d2f37b9.


# e473d011dd5eaef32c56bac56ea23450cd7f9aca 30-May-2013 John Scipione <jscipione@gmail.com>

Return the insets to be equal on all sides


# 7b03c0ce313bf24d0bd0c32f0efceb85af6747eb 30-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Use font relative spacing and adjust insets

BBox's now line up.

Once again set the top inset of the BBox that forms the main
backgrounds view to 0. This should probably be converted to
a BView...


# 19d9ad49ae52b561d8600ee27c73e9352d2f37b9 30-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Resize menu fields to preferred width.

Also a few other related changes:
* Update the copyright year in header and add my name.
* Use font aware spacing units in layout constructor.
* Align the fIconLabelOutline check box with the menu fields
instead of the menu field labels.


# 0a04b14f8c477758ed64bcdf8aa93ccde45851d0 29-May-2013 John Scipione <jscipione@gmail.com>

Backgrounds: Use layout workspaces menu field


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 4d9b54c1759730155ec4511cf68144f7300eb710 29-Oct-2011 Oliver Tappe <zooey@hirschkaefer.de>

Some cleanup in Backround preflet:
* rename a couple of members for imroved clarity
* adjust formatting in header

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42971 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2e0de4043635ecadd59e77456219af497fce80a0 08-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style fix, as suggested by Jerôme.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e4d2cd5dfda1546fb88e057e1ce3eb1c97e0f35a 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38567 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df9bb1df9717c8e30b626951b809a357a7177177 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Reworked, as suggested by stippi, to avoid keeping cursors instances of system ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38566 a95241bf-73f2-0310-859d-f6bbb57e9c96


# faff258d9a6f1808c4cb8784b660c6f4e0efc668 06-Sep-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Use system grab/grabbing cursors.
Fix #6549.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38543 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fd91b7ffd48e2b21ab98e3865ff94201ac59544 17-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Small compilation fixes for coming layout changes... (really!!)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38202 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74add97b4772040c1182aa9f6e26e150dd858fdf 11-Aug-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

CID 1740: Memory leak in Backgrounds since Show doesn't take ownership of the info (code is commented)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38029 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07f82a07cdf1e3708ad7b2e957053b0b4b147e67 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Adding missing #undef B_TRANSLATE_CONTEXT

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37286 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ea8a1f58047c231e4f3df22f0086b3b31b407dc7 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36681 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c1a9b926aa0b1890a011a44398379d1c47f09c1 20-Dec-2009 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Patch by Humdinger to convert a lot of things to sentance case.
* Cleanup and update of all the touched catkeys files


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34731 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c93e2c436d53148c0b38fd39449a2fd449cb47f1 09-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Localization. I believe it to be correct but for some reason Backgrounds crashes on startup. Enjoy\!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33970 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71a1ec0dd3da958126a980a3400a568701a09e02 05-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33911 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dca191e9b75fa7c5d70177042a7bc29983e93836 05-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33910 a95241bf-73f2-0310-859d-f6bbb57e9c96


# eb32e334f8685bc2f404e7e9dc5b37545e6e15f5 04-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Opening Backgrounds on/in a folder was broken, now fixed. Layout-rewrite of parts of the GUI. Rewrote the monitor drawing to fit the layout, for better or worse. Clean-up will follow.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33888 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 91147eefd09df0f0b90f7e15ebe2e2a738ddd746 30-Aug-2009 Jonas Sundström <jonas@kirilla.com>

Solve #4336 as suggested by Fredrik Modèen, using shared private code as suggested by Ryan Leavengood. Removed ProcessRefs code path.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32844 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a74004c6e4f9d9fb2040b63a6ab913820966f1f 15-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

- 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


# 838eca46655915dc1f9fdea896792c7cf2b6b5a8 29-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Allows "Icon Label Outline" to be disabled when no background bitmaps are chosen.

It complements r29190 and fixes ticket #2395.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30495 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b10b8f90cbee8c91b96b7b2ca8709e664e8f0a67 27-Apr-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preserve Aspect Ratio of Preview in Backgrounds preflet (applies to Widescreen displays).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30466 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4fba3522e02906506b6c713ef5b57d72e9458fef 11-Apr-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

* 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


# 0d7e2012768611ab80a4f3815258a8c8279d38c8 03-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* The artwork directory has been relocated as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29879 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 71ed64b71b2d7654cbb087abd9060407b59bc1ca 13-Feb-2009 Jérôme Duval <korli@users.berlios.de>

* Icon label outline is by default true. We take this into account on PoseView creation in Tracker, and when no image is selected in Backgrounds.
* This flag is still only settable when an image is selected.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29190 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0397c5424d5473bb432f23d7a51c30465e6471e 25-Sep-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

don't leak the BMessengers. CID 1009 and 1010

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27742 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a0e3096f6a341e2d6b94d05eba564c2ceb35eacf 22-Aug-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fixed Backgrounds Tracker add-on. I have no idea how some people seem to not
be able toreproduce it before.
- Don't try to access methods in a NULL object. :)
- This fixex bug #1128.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27153 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1f859c04707ebb8c12879e6c1f06098a75b8aab3 27-Apr-2008 Jérôme Duval <korli@users.berlios.de>

fixes bug #2169


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25221 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dbf2630af2d2f23217876b38b9fdb98e5dc382e8 19-Apr-2008 Karsten Heimrich <host.haiku@gmx.de>

* resolved ticket #1880
* implemented center on first start
* removed TODO's as they where partly implemented



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25047 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68c0d50c01caf15af75090d632495a0eb011a57e 21-Jan-2008 Alexandre Deckner <alex@zappotek.com>

- Minor fixes to my last BColorControl patch
- Changed Backgrounds preflet to account for the fixes in BColorControl

First commit :) Hi everybody!



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23680 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 96bc573e6e673c3629dcb01f1c74cac8110a365b 24-Nov-2007 Axel Dörfler <axeld@pinc-software.de>

Include <be_apps/Tracker/Background.h> specifically, instead of adding the
header directory.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22988 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0aded817280cb6a0254318b22e61dbeaa6d26262 06-Nov-2007 Jérôme Duval <korli@users.berlios.de>

clean the background for all workspaces when no image is selected
this fixes bug #1602


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22848 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5c34aef797c60839b66395519c53b39291dc35c7 22-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

changed the meaning of the "icon view label background" Tracker setting:
* it is replaced by a "icon view label outline" feature that renders a black
or white outline around the text of a label under an icon. This can be used
for background images that have a lot of contrast and is visually more
pleasing (IMHO) than the text box in the workspace color (but the outline
could of course still be improved as well)
the outline or "false bold width" feature is a new BFont feature in Haiku
* Tracker appeared to have a disabled feature to install default background
images, I enabled this feature and rewrote it a bit to use our big logo
from the artwork folder, the placement is for 800x600, so not optimal for
larger desktops, but at least it is shown by default on new installations
or rather "fresh" images
* changed the way the dotted underline is rendered under links, accidentally,
this fixes the bug that it was not dotted at all since a while, which is
a bug in app_server or BView not tracking the need to update the drawing
pattern in certain situations (this bug needs to be fixed too of course)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22040 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f93ad781b236213bf4fa4285072a8205c5fd291 20-Mar-2007 Jérôme Duval <korli@users.berlios.de>

calls again BMimeType::GuessMimeType() in BackgroundsView (was only called in the ImagePanel filter)
should fix bug #1101


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20400 a95241bf-73f2-0310-859d-f6bbb57e9c96


# bb377cd514b55c8230edae50687da627de3aff22 26-Feb-2007 Jérôme Duval <korli@users.berlios.de>

fixing indenting style issues


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20243 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d0e8cacc5668bc256f7ebefd949719a61e6b1c4f 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Somehow it still looked strange under R5 this time... :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9760e52d0c56b32b9d434f4ec9ec563b1df87ab9 24-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

Fixed wrong layout under R5.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19939 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a9c7fa8eb10ed55ddf899abf625ddc3b24f4b68 23-Jan-2007 Axel Dörfler <axeld@pinc-software.de>

* Made the whole thing a bit more font sensitive - looks more or less good with an
18pt font, now.
* Added a few TODO items.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19920 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 20ad5fdfba052fcec5e49be1f61dc130a5ea0744 13-Apr-2006 Jérôme Duval <korli@users.berlios.de>

now better place comboboxes taking font size into account


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17125 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 336bfcc12728cf7062a98f4478d2f8c1fca8708d 10-Apr-2006 Jérôme Duval <korli@users.berlios.de>

fix for bug 455: desktop folder was incorrectly handled for refs from Tracker


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17061 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e7392d78beedc290006ba9e9e224f8d922c37f6 27-Mar-2006 Jérôme Duval <korli@users.berlios.de>

fixes some bugs with buttons


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16898 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3cd98287634d59d52ad4dd94498a649bac1113f5 13-Feb-2006 Jérôme Duval <korli@users.berlios.de>

fix the build for R5


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16378 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ea9eaa1cb72a29d4e171711fe05dcc32d635f29 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Resize the placement controls to their preferred height, make them a little
wider, so that they completely fill up the space they have (making them nicely
aligned to the surrounding border).
* the placement controls now accept up to 5 bytes (for things like "-1000").


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6e2cf48b9f1995aec26d59e722051ba11e9de566 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* The X/Y placement text controls are now lined up with the bottom of the
color picker.
* Renamed message constants by considering our style guide.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c77be36230680b816e808e43158a6c5a06f6e034 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Now makes sure the boxes/window is large enough for the BColorControl.
* The left and right box should now always look aligned horizontally
(at least under Haiku).
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15748 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 47c1e3d9a9bb1cd9bba212406de50eb20ce04e90 30-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Now writes the background info message as B_MESSAGE_TYPE attribute (instead of 0).
* Better error reporting when writing the attributes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15744 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd2d1ffddaf52a626186ee4b15320e9415fe5d0b 29-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

* Renamed BGView to BackgroundsView, etc.
* Moved ImageFilePanel code to its own file, so that it can be reused easily.
* Moved BGWindow stuff into Backgrounds.cpp.
* Cleanup to match our style guide better.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15712 a95241bf-73f2-0310-859d-f6bbb57e9c96