History log of /haiku/src/preferences/screen/ScreenWindow.cpp
Revision Date Author Comments
# 28d2323a 03-Apr-2024 Daniel Martin <dalmemail@gmail.com>

screen: use B_COUNT_OF(), no functional changes

Change-Id: I827da35d9c04ed3d4884d477a1904f1ff4a4aad1
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7588
Haiku-Format: Haiku-format Bot <no-reply+haikuformatbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# e96dd823 01-Feb-2024 PulkoMandy <pulkomandy@pulkomandy.tk>

Screen preferences: some ui fixes

- When there is no refresh rate info available, disable the menu rather
than showing "nan Hz"
- Rework the screen info tooltip generation, to avoid a confusing %s
that was mistakenly moved to the end of the string in the French
translation.

Change-Id: I4c29863a30c8c761021be57f8a2e2010709b16d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7364
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 3961af9f 29-Jul-2023 Humdinger <humdingerb@gmail.com>

Use UTF8 multiplication sign "×" instead of "x"

It was suggested for translations in Pootle, and I agree it looks
subtly nicer: a bit smaller and vertically centered.

Also made all strings that include the "x" translatable, in case
there are different local usages.

For icon sizes in Tracker, move menu creation into a loop with an
kIconSizes array holding the pixel dimensions.

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


# 453f4d01 31-Jul-2023 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

Screen preferences: remove leftover debug printf


# 4c28b3f1 16-Jul-2022 PulkoMandy <pulkomandy@pulkomandy.tk>

Screen preferences: use a matrix menu for the resolution list

When there are a lot of display resolutions available, the menu can
become very high. Switch to a "matrix" menu with 3 columns in this case
to keep it a reasonable size.

Change-Id: I826be06a91bd1bcae600cc333e34d4a9dd7b3df5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5320
Reviewed-by: nephele nephele <nep-git@packageloss.eu>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# 1f2666fd 04-Jul-2020 JadedTuna <jadedtuna@gmail.com>

preferences/screen: Call _UpdateActiveMode after brightness is reset

* Make sure brightness is reset to properly disable the Revert button.

Fixes #16354

Change-Id: I4551e809db316db05f3fd9db361b8703d149a88b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2989
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# ef046e3b 03-Dec-2019 John Scipione <jscipione@gmail.com>

Screen prefs: Layout tweaks based on feedback

- Put workspaces settings in their own box below the screen box.
- Put brightness slider inside the screen box (currently it works per
screen, not per workspace).
- Move screen name to the title of the screen box.

Remove Set background... button, but keep its label for MonitorView
tool tip to let you know that clicking on it opens Backgrounds. There
wasn't enough room for this button with the brightness slider.

When brightness slider is hidden the window is shorter (unless you
have a lot of options on the right.)

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


# 4dcc9761 30-Nov-2019 John Scipione <jscipione@gmail.com>

Screen prefs: Center Workspaces Columns and Rows

... limiting spinner textbox width instead of growing arbitrarily.

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


# b05def65 12-Sep-2019 Humdinger <humdingerb@gmail.com>

Screen prefs: localize "Brightness" slider

Add a colon, so it fits better to the other slider labels.
Fixes #15346


# 122d4ef7 23-Jul-2019 Murai Takashi <tmurai01@gmail.com>

PVS V595: Pointer was utilized before it was verified against nullptr.

Change-Id: Iba8b7e6160dc237f45080fa7c101fa72e4d8c753
Reviewed-on: https://review.haiku-os.org/c/1643
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 3a2b67b5 21-Nov-2017 Adrien Destugues <pulkomandy@pulkomandy.tk>

Support for configuring screen backlight

Accelerant interface:
Introduce new hooks B_SET_BRIGHTNESS and B_GET_BRIGHTNESS. Brightness is
a float in the 0..1 range.

App_server:
Forward brightness things between BScreen and the accelerant.

intel_extreme:
Implement the hooks. Note that this only works for laptop panels, but
the driver will pretend to support it in other cases as well.

Screen preferences:
If the accelerant supports the B_GET_BRIGHTNESS hook, allow to set
brightness with a slider. Otherwise, the slidere is hidden and these
changes aren't visible.


# 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.


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

Use B_USE_WINDOW_SPACING

Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.


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

Screen: improved window position, fixed empty line.

* The monitor size now scales with the font size.
* It now uses BWindow::MoveOnScreen() to find a good position on screen.
* The monitor info is now properly hidden when there is no info (this
removes a blank line at the top of the left box).


# 41f43d56 26-Aug-2015 Augustin Cavalier <waddlesplash@gmail.com>

Screen: Rework AlertView to just use BAlert.

Fixes #12330.


# a0ba79fb 11-Mar-2015 John Scipione <jscipione@gmail.com>

Split BSpinner into BAbstractSpinner and...

2 concrete classes which are currently implemented:
* BSpinner (works on int32s)
* BDecimalSpinner (works on doubles)

In addition BAbstractSpinner now inherits from BControl instead of
BView/BInvoker. This allowed for code simplification at the cost of needing to
cast for the decimal version because SetValue(int32 value) comes from BControl.

Also, add a spinner_button_style enum with 3 options:
* SPINNER_BUTTON_HORIZONTAL_ARROWS
* SPINNER_BUTTON_VERTICAL_ARROWS
* SPINNER_BUTTON_PLUS_MINUS

which sets the spinner arrows to either use horizontal arrows (left/right)
vertical arrows, (up/down), or +/- symbols (the default).

If the spinner button is using horizontal arrows you can decrement and increment
the spinner value by pushing control+left/right, otherwise you can increment and
decrement by pushing up or down. The reason for needing control is so that you
can move the cursor in the textbox otherwise.

Switch the 3 apps that are currently using BSpinners to use the integer variety
in Deskbar preferences, WebPostive preferences, and Screen preferences.


# a3fa81bd 10-Mar-2014 John Scipione <jscipione@gmail.com>

Update Screen prefs to use BSpinner class


# 95ef5044 19-Jan-2015 Janus <janus2@ymail.com>

Screen: disable Apply button when no changes would be made.

* Previously this would work only in "current workspace" mode.
* Also avoid calling count_workspaces in a loop since its result is not
cached and it needs to ask app_server each time.
* Fixes #4231.

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


# a2cb1737 02-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Screen prefs: force weight of the two boxes

Depending on the locale and string length the layout could leave only a
small part of the window for the rightmost part, which is the important
thing. Force the weight of each side so we have a more balanced window.


# 8b46ee25 02-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Screen prefs: move driver info to main window

* Fixes relevant part of #5125
* The remaining information (serial number, frequency ranges) is
"advanced" and can be hidden in the tooltip. However, the video driver
used may be important important information, if you want to know if you
are using VESA, or if you have multiple video cards (Optimus for
example).


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# a2bf375c 10-Jan-2014 John Scipione <jscipione@gmail.com>

Use UTF-8 minus sign instead of dash


# 6048f541 20-Aug-2013 John Scipione <jscipione@gmail.com>

Screen prefs: Use menu field layout methods

... to layout the menu field label and menu in the grid. This makes
the label and grid layout correctly, the AddMenuField() method should
be deprecated or fixed as it lays out the menu field differently.

Also replace numeric spacing units with font relative spacing units.


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

Revert to manually offsetting the BBox in BScreen.

Take this opportunity to reapply this hack in a much nicer way.

Before the hack included the default margins, now it doesn't.

Should be back to normal, sorry for the noise.


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

Screen: Undo hack to line up the top borders of the BBox's

Also, use font relative spacing units


# e1c88201 16-Mar-2013 John Scipione <jscipione@gmail.com>

Update screen prefs layout. Fixes #8817

* Center monitor info and Workspaces label.
* Use font-relative spacing.
* Update the header including copyright year, sort contributors by name and add
myself as well.


# c33a865c 31-Jan-2013 John Scipione <jscipione@gmail.com>

Style fixes only.


# c491b5ad 31-Jan-2013 John Scipione <jscipione@gmail.com>

When the workspace changes use the passed in workspace screen mode

...instead of the current workspace screen mode that we are switching from.
Fixes #9415
Also don't ignore the returned the status code when updating the screen mode.


# 5084d0d4 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 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.


# ec495b30 02-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Fix incorrect error check.

The case where GetRefreshLimits() failed wasn't being detected and
handled correctly.


# cf076964 31-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix crashing corner case in screen prefs.

If the refresh limits only allowed a single refresh, the menu item constructed
had no BMessage. This caused _UpdateRefreshControls() to crash when attempting
to match the current refresh rate to the item. For simplicity, give it a message
containing the fixed refresh rate just as in all other cases. Should finally
fix #8431.


# 0efb8b66 31-Mar-2012 Jerome Duval <jerome.duval@gmail.com>

Screen: fixed a warning and gcc2 build.


# 294a85aa 30-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix build.


# 7e44de36 30-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix several issues in Screen preflet.

- Always initialize other menu item data member.
- Always use refresh_rate_to_string() to generate item labels.
- When searching for the item matching the selected refresh rate,
look for it by the actual refresh rate stored in the item's message
rather than by string comparisons of the label.
- Don't assume the Other menu item exists, since it doesn't in cases
where the refresh rate constraints only allow a single rate.
- Update copyright year.

Fixes #8431.


# 958e0ca5 04-Nov-2011 John Scipione <jscipione@gmail.com>

Make the Screen preference app windows non-resizable and make the top line of the screen BBox flush with the top line of the control BBox. Fixes #7526

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


# 3f953a72 03-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed missing initialization of fIsVesa, which should fix #7588.
+alpha


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


# 10dfe897 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Really, there is absolutely no need to pass the default argument to an
optional parameter...


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


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# d374a272 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

App name localization.

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


# 551c9f15 26-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Localization-related fixes:
- unify the character case of the same looking strings;
- removed excessive translation for strings unvisible for end users;
- beginning spaces are handled outside of B_TRANSLATE;
- meaningful captions for warning Alerts.


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


# 26747978 29-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Various build fixes.


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


# c9e8f97a 29-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll as part of GCI: localize Screen.


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


# 25fd5c7b 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38064 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


# 55030977 14-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Also show the tool tip in case there is no monitor info, but still info about
the device.


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


# 61c5c89b 14-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added info about the graphics device as suggested in #5112. However, it's
currently only shown in the monitor tool tip, that is now feels a bit crowded,
so a better solution would be nice. I'm hesitant to give it a more prominent
position, though, unless one has proof-read what the accelerants actually
return here.
* Added missing space between the serial number of the monitor and the date it
has been produced.
* Renamed fTempScreenMode to fUndoScreenMode, as it's only used to deliver that
functionality.


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


# 75c92c56 18-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Updating some Preferences MIME signatures.


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


# 7477d4f3 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Even though it might be a bit too crowded, the monitor preview now also
shows the DPI of the chosen resolution. Better ideas welcome.
* Cleanup.


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


# 1fc4cb1f 07-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* If the user selected color space is not available for the selected resolution,
_CheckColorMenu() now selects the closest item available - if you switch back
the resolution to one that supports the original color space, it will be
restored. This fixes bug #2995.
* I also reverted r24674 as I remembered why I did that in the first place
(advertizing 24 bit modes as 32 bit), and it was a pretty stupid idea to
solve it like this, I must admit.
* Instead, the color space menu now only shows spaces that are actually
supported by the card at all. One could think about hiding 24 bit in case
both 24 bit, and 32 bit are available, but I didn't do that yet.


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


# f99cba9e 07-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The colors menu had "label from marked" activated, but then replaced its
label, causing bug #4193.


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


# 1a8af605 05-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Now also puts the monitor's serial number and production date into the
tool tip (if available).


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


# 6ca5e0f9 03-Aug-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fix small typo.

Is it intentional that Horizontal Frequency is reported as being KHz while
Vertical Frequency is reported as being Hz?



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


# af8f9c31 03-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a tool tip for the monitor's capabilities.


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


# 70a2b1b5 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the refresh slider/menu take the monitor's capabilities into account.


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


# 8bf23e3c 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Made MonitorView better utilize the space it has.
* Less flickering.
* Reduced spacing in the left box.


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


# 66ab1666 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a max resolution to MonitorView that can be chosen to define when it
should fill its space completely (which is now the maximal resolution that
can be chosen).
* Improved monitor info in case there is no name.


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


# 12966d04 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Now shows some info about the monitor if detected.


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


# b21d610e 30-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Now uses the layout engine instead of the home brewn thing.
* As a side effect, the window is now resizable, and also stores its window
size, not just its position.
* Replaced the old workspace count setter menu with column/row text controls.


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


# 27c43a2d 08-Dec-2008 Rene Gollent <anevilyak@gmail.com>

Implement the missing pieces to handle per workspace display mode support.
Adjust Workspace view to correctly scale each workspace based on the
resolution of that workspace. This exposes one or two anomalies in other
places in the app_server code though which I wasn't able to track down.
This fixes ticket #693.




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


# 6bda235a 17-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some gcc4 warning fixes

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


# 199893c3 03-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Jan Klötzke with some changes by myself:
* The vesa driver/accelerant supports mode switching now. No special handling
is needed anymore.
* Always write the vesa settings file to directly start with the right
resolution regardless of the used graphics driver. Should save an additional
mode switch while booting.


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


# e6b421a9 29-Apr-2008 Jérôme Duval <korli@users.berlios.de>

fix misuse of ... with B_UTF8_ELLIPSIS


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


# 5de171da 30-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* Now presents 24 bit modes as 32 bit modes to the user to avoid confusion.
* screen_mode will not make a difference between 32 and 24 bit anymore in the
equally operator.
* Some cards only support 24 bit instead of 32, for example Qemu VESA mode.


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


# b72c4836 06-Mar-2008 Alexandre Deckner <alex@zappotek.com>

* as discussed on the dev list, fixed revert and apply behaviour (tested
under vesa and supported mode). Changed message of the vesa warning
alert. TODO: additional warning text (see discussion)
* apply now stays deactivated if you only change the workspace count as
it is applied instantly already.
* disabled current workspace menu item for now since it is not
implemented. see ticket #696


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


# d1516993 26-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

Made the menu fields variable width again; it looked a bit ugly before to me.


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


# 4008594d 09-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Fixed bug #1016 ('Apply' button overlaying Video Format Popup menu).


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


# 10e9b12f 07-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Renamed SET_INITIAL_MODE_MSG to BUTTON_UNDO_MSG.


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


# abc649b8 07-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Made the Screen preflet's behavior consistent with the other preflets.
* Moved Apply button into controls box (resolution, etc.), so its meaning is more obvious.
* Revert now resets the whole screen settings for all workspaces to the configuration at the start of the preflet.
* In confirmation window, renamed Revert to Undo because that's what it actually does (it has nothing to do with the Revert in the main dialog).
* Disabled Defaults button (for now) since it doesn't use the screen's preferred settings and added a few TODOs.
* This should fix bug #321.
Note: Unfortunately, it won't work correctly on R5 because BScreen can only access the active workspace, it seems (locally, I used activate_workspace() for testing the preflet). Also, Haiku doesn't yet support setting screen preferences for each workspace individually, so I couldn't test it.
I hope my code isn't too terrible. :)


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


# 4be51fe3 02-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Now we also update the original preferences when multi-screen settings change.


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


# 894deb54 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Actually, the check isn't necessary because I'm not copying R5 behavior, anymore...I'm getting tired. :) Maybe I can checkin the Tracker fix, quickly.


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


# f00b41e4 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Fixed stupid logic mistake. Thanks for noticing, Axel!


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


# a40498e2 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

* Fixed a little bug that caused unnecessary mode changes when pressing Revert.
* Fixed compilation under R5.
* Made Revert more user-friendly by also allowing to revert settings to the previously active state after having pressed Apply. This only works if you didn't make new changes in the meantime. In that case, only the new changes will be reverted.


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


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

Added special VESA mode support to the Screen preferences: the "Refresh Rate:" menu field
will be hidden, and on resolution change, you get a message that tells you that the change
will take effect with the next reboot.
The "vesa" mode file will be written on exit if any changes were made.
This closes bug #547.


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


# 6f095d6a 15-Nov-2006 Ryan Leavengood <leavengood@gmail.com>

Fixed a small bug I found in the Screen preferences:

Now if the Backgrounds preferences app is already running clicking the
"Set Background..." button will activate it. Previously this was ignored
because the app was launched without checking the return code from be_roster.


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


# c5d10f7a 16-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* Made the refresh selection window font sensitive.
* Nicer separation from RefreshSlider.
* Got rid of the RefreshView class (a BStringView does its job now).
* Cleanup.


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


# 29e8a73a 25-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* No longer ignores the screen refresh limits from the driver.
* Now builds under R5, but looks ugly (for testing only).


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


# a796facf 25-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Filled the hole between 60 and 75 Hz for the refresh rates.


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


# cfa91cc4 23-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Reverting the screen mode now reverts to the one applied last, not the
one that was active when the application was launched (which was lost
on workspace change, anyway).
* Fixed on-screen centering of the AlertWindow.


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


# c5d80d47 23-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Changed the signature of "Backgrounds" to follow how those signatures
are supposed to look like.
* Fixed Screen to have the correct signature for Backgrounds (had the
one from Be before).


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


# 3dfd20c0 16-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* made the font of the "Set Background..." button
a little smaller, to lessen the importance of this
button.
* changed the "standard" frequencies. I hope this
doesn't have any negative impact on anything.


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


# 8242ac7f 16-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

The "Screen" preferences application is no longer compatible to BeOS
(it could be built with minimal effort, but it looks awful since
BMenuFields are not resized correctly on R5).


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


# df3f5bac 16-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* enjoy a fully font sensitive Screen preflet
* the Radeon specific controls are now layouted below
the other menu fields, it is easily changed back
to the side by side layout by changing the default
value of "sideBySide" for ScreenWindow::LayoutMenuFields()
* I added a "Set Background..." button, because I didn't
like the hidden functionality of the monitor view too
much. That is still there though.
* TODO: fix the awareness of changes to the workspace
count and include those in "reverting" and "defaults"


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


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

The multi-monitor settings now also look okay. Still needs some work, though, and
a new layout as well.


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


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

The aspect ratio of the monitor is now independent of the size of the MonitorView's bounds.


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


# 5a78744b 28-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

First baby steps into a font sensitive interface. At least it now looks good when
runnning under Haiku :)


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


# 6edaa0f6 23-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed PostMessage usage

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


# 07184a9e 15-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

No longer ignores a failing SetMode() but will show an error request.


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


# a10cf76e 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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


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

Screen: improved window position, fixed empty line.

* The monitor size now scales with the font size.
* It now uses BWindow::MoveOnScreen() to find a good position on screen.
* The monitor info is now properly hidden when there is no info (this
removes a blank line at the top of the left box).


# 41f43d568fa1f2af68bd3209850cb0b349b49ff4 26-Aug-2015 Augustin Cavalier <waddlesplash@gmail.com>

Screen: Rework AlertView to just use BAlert.

Fixes #12330.


# a0ba79fbff0d2a8ce0f008362d5e8832c1d994c2 11-Mar-2015 John Scipione <jscipione@gmail.com>

Split BSpinner into BAbstractSpinner and...

2 concrete classes which are currently implemented:
* BSpinner (works on int32s)
* BDecimalSpinner (works on doubles)

In addition BAbstractSpinner now inherits from BControl instead of
BView/BInvoker. This allowed for code simplification at the cost of needing to
cast for the decimal version because SetValue(int32 value) comes from BControl.

Also, add a spinner_button_style enum with 3 options:
* SPINNER_BUTTON_HORIZONTAL_ARROWS
* SPINNER_BUTTON_VERTICAL_ARROWS
* SPINNER_BUTTON_PLUS_MINUS

which sets the spinner arrows to either use horizontal arrows (left/right)
vertical arrows, (up/down), or +/- symbols (the default).

If the spinner button is using horizontal arrows you can decrement and increment
the spinner value by pushing control+left/right, otherwise you can increment and
decrement by pushing up or down. The reason for needing control is so that you
can move the cursor in the textbox otherwise.

Switch the 3 apps that are currently using BSpinners to use the integer variety
in Deskbar preferences, WebPostive preferences, and Screen preferences.


# a3fa81bd03537343e59b375946838e363dbd3a74 10-Mar-2014 John Scipione <jscipione@gmail.com>

Update Screen prefs to use BSpinner class


# 95ef50445f4c79fdbc2aad175287975ec214d6f1 19-Jan-2015 Janus <janus2@ymail.com>

Screen: disable Apply button when no changes would be made.

* Previously this would work only in "current workspace" mode.
* Also avoid calling count_workspaces in a loop since its result is not
cached and it needs to ask app_server each time.
* Fixes #4231.

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


# a2cb1737d8fda3e34f1701638a45bda7fa36c546 02-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Screen prefs: force weight of the two boxes

Depending on the locale and string length the layout could leave only a
small part of the window for the rightmost part, which is the important
thing. Force the weight of each side so we have a more balanced window.


# 8b46ee25ac1409929f9a11efb254525e19b9b0bf 02-Dec-2014 Adrien Destugues <pulkomandy@gmail.com>

Screen prefs: move driver info to main window

* Fixes relevant part of #5125
* The remaining information (serial number, frequency ranges) is
"advanced" and can be hidden in the tooltip. However, the video driver
used may be important important information, if you want to know if you
are using VESA, or if you have multiple video cards (Optimus for
example).


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# a2bf375cbda523490de43c3a389b91a2e36780eb 10-Jan-2014 John Scipione <jscipione@gmail.com>

Use UTF-8 minus sign instead of dash


# 6048f54145df1c26c3590e7a1613f7cda70eee81 20-Aug-2013 John Scipione <jscipione@gmail.com>

Screen prefs: Use menu field layout methods

... to layout the menu field label and menu in the grid. This makes
the label and grid layout correctly, the AddMenuField() method should
be deprecated or fixed as it lays out the menu field differently.

Also replace numeric spacing units with font relative spacing units.


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

Revert to manually offsetting the BBox in BScreen.

Take this opportunity to reapply this hack in a much nicer way.

Before the hack included the default margins, now it doesn't.

Should be back to normal, sorry for the noise.


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

Screen: Undo hack to line up the top borders of the BBox's

Also, use font relative spacing units


# e1c882014b6307abb44772a4045fcef67a2fc6e8 16-Mar-2013 John Scipione <jscipione@gmail.com>

Update screen prefs layout. Fixes #8817

* Center monitor info and Workspaces label.
* Use font-relative spacing.
* Update the header including copyright year, sort contributors by name and add
myself as well.


# c33a865c7c3ce73ab74354a41ac83cf4de20d726 31-Jan-2013 John Scipione <jscipione@gmail.com>

Style fixes only.


# c491b5ad85c60a4b07821f7e9fbf34f60a26375e 31-Jan-2013 John Scipione <jscipione@gmail.com>

When the workspace changes use the passed in workspace screen mode

...instead of the current workspace screen mode that we are switching from.
Fixes #9415
Also don't ignore the returned the status code when updating the screen mode.


# 5084d0d451501f3c026d593dc109cbb76d7688fc 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added more things to x86_64 image.

Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 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.


# ec495b30ce9d392d151df2e94359ad75d7b659bd 02-Apr-2012 Rene Gollent <anevilyak@gmail.com>

Fix incorrect error check.

The case where GetRefreshLimits() failed wasn't being detected and
handled correctly.


# cf0769649ecb448f3f1be418cfdd459f7c14486d 31-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix crashing corner case in screen prefs.

If the refresh limits only allowed a single refresh, the menu item constructed
had no BMessage. This caused _UpdateRefreshControls() to crash when attempting
to match the current refresh rate to the item. For simplicity, give it a message
containing the fixed refresh rate just as in all other cases. Should finally
fix #8431.


# 0efb8b6639094b6c57724aadc24c1bdf06ac9b3b 31-Mar-2012 Jerome Duval <jerome.duval@gmail.com>

Screen: fixed a warning and gcc2 build.


# 294a85aa68ff8700145e60112be57000107ab697 30-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix build.


# 7e44de362f7aa888dc01ed867de8815f600b7fd9 30-Mar-2012 Rene Gollent <anevilyak@gmail.com>

Fix several issues in Screen preflet.

- Always initialize other menu item data member.
- Always use refresh_rate_to_string() to generate item labels.
- When searching for the item matching the selected refresh rate,
look for it by the actual refresh rate stored in the item's message
rather than by string comparisons of the label.
- Don't assume the Other menu item exists, since it doesn't in cases
where the refresh rate constraints only allow a single rate.
- Update copyright year.

Fixes #8431.


# 958e0ca51d6afaba887e06cc35d9133076d5a207 04-Nov-2011 John Scipione <jscipione@gmail.com>

Make the Screen preference app windows non-resizable and make the top line of the screen BBox flush with the top line of the control BBox. Fixes #7526

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


# 3f953a72ff25302c43b84a4aa534a8b212c49a67 03-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed missing initialization of fIsVesa, which should fix #7588.
+alpha


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


# 10dfe8970c81ccbcb818dcfcd484c4006aa42d12 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Really, there is absolutely no need to pass the default argument to an
optional parameter...


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


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

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


# d374a27286b8a52974a97dba0d5966ea026a665d 16-Mar-2011 Jonas Sundström <jonas@kirilla.com>

App name localization.

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


# 551c9f15a4139ebbabd7609f4c142086a69a61e8 26-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Localization-related fixes:
- unify the character case of the same looking strings;
- removed excessive translation for strings unvisible for end users;
- beginning spaces are handled outside of B_TRANSLATE;
- meaningful captions for warning Alerts.


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


# 267479782d9bfb61695ace95cc46e594186bdfd0 29-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Various build fixes.


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


# c9e8f97a95be14aa6fb3a272c9bc746c69bb8d0d 29-Dec-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by Mike Roll as part of GCI: localize Screen.


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


# 25fd5c7b3558df58baee955efafec15fd2ceadae 12-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Update some apps/add-ons/preflets for impending changes to the layout API, specifically the layout builders. Also do a bit of style and layout cleanup in some places. This is part of #6407. Everything I've updated should look and function the same as it did before.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38064 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


# 5503097733bb2c9f3f15dad5f700e4434d551625 14-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Also show the tool tip in case there is no monitor info, but still info about
the device.


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


# 61c5c89b6d6c0c132cdcfb42dc0369ca02c17649 14-Dec-2009 Axel Dörfler <axeld@pinc-software.de>

* Added info about the graphics device as suggested in #5112. However, it's
currently only shown in the monitor tool tip, that is now feels a bit crowded,
so a better solution would be nice. I'm hesitant to give it a more prominent
position, though, unless one has proof-read what the accelerants actually
return here.
* Added missing space between the serial number of the monitor and the date it
has been produced.
* Renamed fTempScreenMode to fUndoScreenMode, as it's only used to deliver that
functionality.


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


# 75c92c56f6c1b7fc5252f2b424679cea445c49e0 18-Aug-2009 Ryan Leavengood <leavengood@gmail.com>

Updating some Preferences MIME signatures.


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


# 7477d4f3c203fd9611413de47f4c307584a6afcc 13-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Even though it might be a bit too crowded, the monitor preview now also
shows the DPI of the chosen resolution. Better ideas welcome.
* Cleanup.


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


# 1fc4cb1f275d1c970745decfec43e1e532716834 07-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* If the user selected color space is not available for the selected resolution,
_CheckColorMenu() now selects the closest item available - if you switch back
the resolution to one that supports the original color space, it will be
restored. This fixes bug #2995.
* I also reverted r24674 as I remembered why I did that in the first place
(advertizing 24 bit modes as 32 bit), and it was a pretty stupid idea to
solve it like this, I must admit.
* Instead, the color space menu now only shows spaces that are actually
supported by the card at all. One could think about hiding 24 bit in case
both 24 bit, and 32 bit are available, but I didn't do that yet.


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


# f99cba9e576028f6369be502f3134d41ef5c5442 07-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* The colors menu had "label from marked" activated, but then replaced its
label, causing bug #4193.


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


# 1a8af60548374f85f30796b0cacf28bef11d0c8d 05-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Now also puts the monitor's serial number and production date into the
tool tip (if available).


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


# 6ca5e0f9fabd124957cd42f79e32aae89ff77513 03-Aug-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

- Fix small typo.

Is it intentional that Horizontal Frequency is reported as being KHz while
Vertical Frequency is reported as being Hz?



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


# af8f9c3135867d2f08a9d875d6e079ee4fa52f98 03-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a tool tip for the monitor's capabilities.


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


# 70a2b1b51b77e9d0a59f11f80cad970fef123493 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the refresh slider/menu take the monitor's capabilities into account.


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


# 8bf23e3caa061e25ffff4ec68e77371a8722a116 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Made MonitorView better utilize the space it has.
* Less flickering.
* Reduced spacing in the left box.


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


# 66ab1666891c73bdcda1c95ecedb6da98d124bd3 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Added a max resolution to MonitorView that can be chosen to define when it
should fill its space completely (which is now the maximal resolution that
can be chosen).
* Improved monitor info in case there is no name.


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


# 12966d04e9769e8f1e86b9c81c367a80ea7a6b23 31-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Now shows some info about the monitor if detected.


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


# b21d610e9e89de95e43e4911811a9dce5dbb87b3 30-Jul-2009 Axel Dörfler <axeld@pinc-software.de>

* Now uses the layout engine instead of the home brewn thing.
* As a side effect, the window is now resizable, and also stores its window
size, not just its position.
* Replaced the old workspace count setter menu with column/row text controls.


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


# 27c43a2d8f20fd98050c6acd9abac970b1d4d7c8 08-Dec-2008 Rene Gollent <anevilyak@gmail.com>

Implement the missing pieces to handle per workspace display mode support.
Adjust Workspace view to correctly scale each workspace based on the
resolution of that workspace. This exposes one or two anomalies in other
places in the app_server code though which I wasn't able to track down.
This fixes ticket #693.




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


# 6bda235a592737fa04aefa756026f32892810715 17-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some gcc4 warning fixes

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


# 199893c3f3a57500ea1061474e55e88916744c1e 03-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

Applied patch by Jan Klötzke with some changes by myself:
* The vesa driver/accelerant supports mode switching now. No special handling
is needed anymore.
* Always write the vesa settings file to directly start with the right
resolution regardless of the used graphics driver. Should save an additional
mode switch while booting.


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


# e6b421a98eee762db7b1c0237e608356a2a26383 29-Apr-2008 Jérôme Duval <korli@users.berlios.de>

fix misuse of ... with B_UTF8_ELLIPSIS


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


# 5de171daf3ba89574a56fbf7cd9eec41646ce091 30-Mar-2008 Axel Dörfler <axeld@pinc-software.de>

* Now presents 24 bit modes as 32 bit modes to the user to avoid confusion.
* screen_mode will not make a difference between 32 and 24 bit anymore in the
equally operator.
* Some cards only support 24 bit instead of 32, for example Qemu VESA mode.


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


# b72c48365613565e225b3a763ba7eb6a6b802d5e 06-Mar-2008 Alexandre Deckner <alex@zappotek.com>

* as discussed on the dev list, fixed revert and apply behaviour (tested
under vesa and supported mode). Changed message of the vesa warning
alert. TODO: additional warning text (see discussion)
* apply now stays deactivated if you only change the workspace count as
it is applied instantly already.
* disabled current workspace menu item for now since it is not
implemented. see ticket #696


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


# d1516993c2385d3b99d7cd744e9ec712c0df7575 26-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

Made the menu fields variable width again; it looked a bit ugly before to me.


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


# 4008594db3ad6b4f679a11d9120ad14785a35ca6 09-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Fixed bug #1016 ('Apply' button overlaying Video Format Popup menu).


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


# 10e9b12fe0659358a218146042f84cfca3e7ee70 07-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Renamed SET_INITIAL_MODE_MSG to BUTTON_UNDO_MSG.


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


# abc649b8689b9f87bf15b353bd2473b5d308911a 07-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Made the Screen preflet's behavior consistent with the other preflets.
* Moved Apply button into controls box (resolution, etc.), so its meaning is more obvious.
* Revert now resets the whole screen settings for all workspaces to the configuration at the start of the preflet.
* In confirmation window, renamed Revert to Undo because that's what it actually does (it has nothing to do with the Revert in the main dialog).
* Disabled Defaults button (for now) since it doesn't use the screen's preferred settings and added a few TODOs.
* This should fix bug #321.
Note: Unfortunately, it won't work correctly on R5 because BScreen can only access the active workspace, it seems (locally, I used activate_workspace() for testing the preflet). Also, Haiku doesn't yet support setting screen preferences for each workspace individually, so I couldn't test it.
I hope my code isn't too terrible. :)


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


# 4be51fe314df1645aa937335ad861fc739071259 02-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Now we also update the original preferences when multi-screen settings change.


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


# 894deb54ab5eaf3eab7260748f9854b38b1ad2e1 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Actually, the check isn't necessary because I'm not copying R5 behavior, anymore...I'm getting tired. :) Maybe I can checkin the Tracker fix, quickly.


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


# f00b41e4a7213d7e26a0d558cb237ab5277507ab 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

Fixed stupid logic mistake. Thanks for noticing, Axel!


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


# a40498e2b2d2bdbe296823c96407f6ed67759a9e 01-Feb-2007 Waldemar Kornewald <wkornewald@nowhere.fake>

* Fixed a little bug that caused unnecessary mode changes when pressing Revert.
* Fixed compilation under R5.
* Made Revert more user-friendly by also allowing to revert settings to the previously active state after having pressed Apply. This only works if you didn't make new changes in the meantime. In that case, only the new changes will be reverted.


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


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

Added special VESA mode support to the Screen preferences: the "Refresh Rate:" menu field
will be hidden, and on resolution change, you get a message that tells you that the change
will take effect with the next reboot.
The "vesa" mode file will be written on exit if any changes were made.
This closes bug #547.


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


# 6f095d6a03a761b4db2761141b9d72fc9b9ba4af 15-Nov-2006 Ryan Leavengood <leavengood@gmail.com>

Fixed a small bug I found in the Screen preferences:

Now if the Backgrounds preferences app is already running clicking the
"Set Background..." button will activate it. Previously this was ignored
because the app was launched without checking the return code from be_roster.


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


# c5d10f7ae552b82c0089fc147de0d9b5fbc5c20b 16-Apr-2006 Axel Dörfler <axeld@pinc-software.de>

* Made the refresh selection window font sensitive.
* Nicer separation from RefreshSlider.
* Got rid of the RefreshView class (a BStringView does its job now).
* Cleanup.


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


# 29e8a73a07ad05379041635507d5a55c65c8d71c 25-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* No longer ignores the screen refresh limits from the driver.
* Now builds under R5, but looks ugly (for testing only).


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


# a796facf49be0157a6ff0cd7104b85da1fd50bed 25-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Filled the hole between 60 and 75 Hz for the refresh rates.


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


# cfa91cc4cb6fa963c5f7ec91487fd33c1ad4d556 23-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Reverting the screen mode now reverts to the one applied last, not the
one that was active when the application was launched (which was lost
on workspace change, anyway).
* Fixed on-screen centering of the AlertWindow.


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


# c5d80d47d8ede71277f5285506c63496fd250747 23-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Changed the signature of "Backgrounds" to follow how those signatures
are supposed to look like.
* Fixed Screen to have the correct signature for Backgrounds (had the
one from Be before).


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


# 3dfd20c019e31d22398393ec27b063395eecdb82 16-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* made the font of the "Set Background..." button
a little smaller, to lessen the importance of this
button.
* changed the "standard" frequencies. I hope this
doesn't have any negative impact on anything.


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


# 8242ac7f2f0cd492d0b1617e7f5018b3f6c095e9 16-Feb-2006 Axel Dörfler <axeld@pinc-software.de>

The "Screen" preferences application is no longer compatible to BeOS
(it could be built with minimal effort, but it looks awful since
BMenuFields are not resized correctly on R5).


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


# df3f5bac689697d061f180862bb6fa434210088c 16-Feb-2006 Stephan Aßmus <superstippi@gmx.de>

* enjoy a fully font sensitive Screen preflet
* the Radeon specific controls are now layouted below
the other menu fields, it is easily changed back
to the side by side layout by changing the default
value of "sideBySide" for ScreenWindow::LayoutMenuFields()
* I added a "Set Background..." button, because I didn't
like the hidden functionality of the monitor view too
much. That is still there though.
* TODO: fix the awareness of changes to the workspace
count and include those in "reverting" and "defaults"


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


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

The multi-monitor settings now also look okay. Still needs some work, though, and
a new layout as well.


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


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

The aspect ratio of the monitor is now independent of the size of the MonitorView's bounds.


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


# 5a78744bedbbca9f8071f79ed681ad5857f51931 28-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

First baby steps into a font sensitive interface. At least it now looks good when
runnning under Haiku :)


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


# 6edaa0f6a61f0ae4f137a099e2a333f4275aed52 23-Dec-2005 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Fixed PostMessage usage

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


# 07184a9e61bdfa436b189c1382c7792835e4db28 15-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

No longer ignores a failing SetMode() but will show an error request.


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


# a10cf76ef5b9e8c726ebc47183abd6943023cf8f 24-Jun-2005 Axel Dörfler <axeld@pinc-software.de>

Renamed src/prefs to "preferences", as the directory is usually called in BeOS.


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