History log of /haiku/src/apps/terminal/AppearPrefView.cpp
Revision Date Author Comments
# 1b370545 17-Dec-2022 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Terminal: graphical settings for configuring themes.

Implements #16835: Make colour schemes modular.
Implements #15936: Terminal settings should allow to drop a colour.

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


# de2ada1f 09-Jul-2021 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Terminal: load themes from data and settings folders.

* Uses the same format as the Terminal settings file
* Adds an additional key, "Theme name", to settings for themes,
which needs to be present for a theme to be loaded, else it
will be skipped
* Loads themes from Terminal/Themes in the data and settings
directories, searching data first, then settings second,
allowing a theme to be tweaked by putting a copy in a
settings folder

Change-Id: I8cadf98151459c1ae6098c38481b16eb3f2cf952


# 11dc1393 21-Feb-2022 Zakero <zakero@zakero.com>

Minor Terminal fixes

In the Terminal settings window, the pop-up help text for
"Tab title:" had two entries for "%% - The character '%'.".
Removed one of the entries.

Fixed the spelling of some constants: kTooTip* vs kToolTip*

Changing the window title and tab title directly will now
show the same tool-tips as the Terminal settings window.

Change-Id: Ic36cc1f8af0305b757105a229203115efee870c8
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4989
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Máximo Castañeda <antiswen@yahoo.es>


# fe3ac93c 07-Jul-2021 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Terminal: add support for per-theme custom ANSI colours.

* Updates the colour palette for Solarized
* Adds new colour palette, Relaxed (MIT License) [1]

[1]: https://github.com/Relaxed-Theme/relaxed-terminal-themes

Change-Id: Ia81120cd983b9c3b935f8a990867ee4b7c35b6d2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4196
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: John Scipione <jscipione@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>


# 8840b3db 14-Aug-2019 Simon South <simon@simonsouth.net>

Terminal: Allow use of Option as Meta key

Add a configuration setting that allows the left Option key to be used as a
Meta key, and add support for the Escape sequences that control the Meta key's
behaviour.

TermWindow now maintains a copy, shared by all its component TermViews, of the
current key map, and updates this copy automatically when notified by the Input
Server a new key map has been loaded.

The Meta key was an extra modifier key present on early UNIX workstations that
provided access to the "extended" portion of the ASCII character set. Although
it has vanished from modern keyboards certain UNIX software still relies on the
key, most notably GNU Emacs and the GNU readline library, the latter of which
is used by bash and a wide variety of other software that reads input from a
terminal. (Python's interactive mode uses readline, for instance.)

With this patch applied and the new setting enabled, the left Option key can be
used to access additional editing and navigation features at the command line.
It also makes usable the port of GNU Emacs currently available from HaikuDepot.

Fixes #15294.

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


# ecfaa77a 03-Nov-2016 Jérôme Duval <jerome.duval@gmail.com>

Terminal: Implement a few cursor CSI commands.

* Cursor back tab, cursor forward tab.
* Cursor next line, cursor previous line.
* also add size 13 to the list of font sizes.


# 105acc92 29-Oct-2016 Jérôme Duval <jerome.duval@gmail.com>

Terminal: always use bright for bold text.

* "Allow bold font" now enables the use of the bold font for bold text.
* so one can now see bold text in black on black.


# f88412cc 21-Feb-2015 JackBurton <stefano.ceccherini@gmail.com>

Moved IsFontUsable() to Globals.h/cpp


# dbf8c834 19-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Terminal: added basic conditional title patterns.

* You can now insert arbitrary text only if the following or previous
placeholder does not resolve to an empty value using the %<, %> and
%- placeholders.
* Additionally, any non-alpha numeric character between % and the
placeholder character will only be displayed if the placeholder does
not resolve to an empty value, too.
* All of this allows you to get rid of the extra space between
"Terminal" and ":" before the current path -- which is now the
default.


# 5211ae5d 27-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal: use BPopUpMenu in BMenuFields.

Using a BMenu works, but it doesn't look as good.
Thanks to Diver for noticing this.


# 482f0eeb 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

add window size and encoding to terminal prefs

* The menu items now only set the values for the current window without
saving,
* The settings in the preference window are persistent,
* The "save as defaults" menu item is removed.

Fixes #5030.


# defb8292 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal Prefs: replace "OK" with "Defaults"

Again, this is the more standard way to do things in Haiku.


# cca6cae6 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal preferences: replace "Cancel" with "Revert"

This is the standard way in Haiku preference panels.


# be3f404c 13-Feb-2014 Jonathan Schleifer <js@webkeks.org>

Terminal: Add option to use bright instead of bold text

A saturated add was chosen instead of tint_color, as the results of
tint_color were too extreme.


# b0044e44 02-Sep-2013 Siarzhuk Zharski <zharik@gmx.li>

Temrinal Prefs: update color control on scheme change

Update the color control state on the scheme change event
Fixes #9864.


# 4e17bdd8 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID991252: Possible NULL dereference on scheme name

The color scheme name pointer is dereferenced but was not checked for
NULL value.


# 15aa7713 28-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Keep color control enabled after color scheme change

Fixes #9532


# 344de4cc 10-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix Terminal localization issues in Custom color scheme

* Localized Label of the colors menu entry was used as the key
during loading corresponding color value from the preferences file.
It was obviously observed only on non-English locales;
* Fixes #7209 #8256.


# 748378c8 12-Dec-2012 Humdinger <humdingerb@gmail.com>

Renamed cusor colour settings.

"Cursor text" and "Cursor background" in the Color popup menu are
a bit unintuitive. Changed to "Text under cursor" and "Cursor".


# 1eccdc25 08-Dec-2012 John Scipione <jscipione@gmail.com>

Increase the font size options in Terminal

Sizes range from 8 to 36 but not all sizes are represented. The
progression is not linear, the font size increases first by 1,
then 2, and finally by 4.

Works by keying command-(plus)/command-(minus) or selecting
from Font size menu, or from selecting from Font menu in Terminal
settings. If you alter the settings file to put in some other font
size it should still work, but the menu item won't be checked.

Fixes #8849


# bfbcec14 07-Dec-2012 John Scipione <jscipione@gmail.com>

Unify the Font menu and Font size menu into one.

The Font size menu becomes a submenu of Font so that you can set
both the font and font size at once.

This fixes #4198


# 9e4281ad 07-Dec-2012 John Scipione <jscipione@gmail.com>

Make font size dropdown in settings windows work again


# dc1456f6 07-Dec-2012 John Scipione <jscipione@gmail.com>

Add font sizes to Font Size menu in addition to in settings


# 992c7397 06-Dec-2012 John Scipione <jscipione@gmail.com>

Remove ugly const_cast, thanks Ingo


# 715c56d4 06-Dec-2012 John Scipione <jscipione@gmail.com>

Style fixes only, no functional changes intended

including converting a while loop into a for loop.


# cfd9c96d 04-Dec-2012 John Scipione <jscipione@gmail.com>

Style fix: compare to 0 in strcmp() explicitly.


# 2005db27 04-Dec-2012 John Scipione <jscipione@gmail.com>

Change schema in Terminal to color scheme.

Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.


# a2b5d15a 04-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

Terminal: Ensure changing color schema modifies cursor

* Really fixes #8256


# 63dffc01 07-Nov-2012 Humdinger <humdingerb@gmail.com>

Improved string of new Terminal setting.


# 12290528 05-Nov-2012 Jonathan Schleifer <js@webkeks.org>

Terminal: Make the cursor color configurable.

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


# 4e3d346e 04-Nov-2012 Jonathan Schleifer <js@webkeks.org>

Terminal: Make cursor blinking an option.

Signed-off-by: Rene Gollent <anevilyak@gmail.com>


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


# 5c6b9eb0 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# a2f89c58 02-Feb-2012 Siarzhuk Zharski <zharik@gmx.li>

[Coverity] Fixed some uninit fields and return values checks

* Fixed CID2398, CID9945, CID9943, CID4215


# 7781d9ad 29-Oct-2011 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by 'mt' that fixes ticket #6275 - thanks a lot!


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


# c2a14a1a 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Can't use static const PREF_*_COLOR keys for translation.
Revert to literals for color menu items which needs, them, being localized.
Add missing source files to DoCatalogs.


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


# d7070812 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localize some forgotten strings spotted by diver.
Fix #6375.


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


# b6476732 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved the reusable part of the tab/window title prefs tool tips to
TermConst.h/cpp.


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


# 02ee32bb 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented support for dynamic tab and window titles:
* Added settings for tab and window titles. Both are strings with optional
placeholders for tab/terminal index, currently active process name and
current directory.
* Added a generic utility class PatternEvaluator that allows to expand this
kind of pattern strings and callback classes
[Tab,Window]TitlePlaceholderMapper that provide the specific expansion for
the tab and window title placeholders.
* TermWindow:
- Separated the notions of session (== tab) and window titles. The tty
clients no longer set the window, but the session title.
- Use the patterns instead of the hard-coded window/tab titles.
- Recompute all titles once a second, so changes of running programs are
reflected.
* The default patterns for tab and window titles are "%1d: %p" (last CWD
component and name of the running process) and "Terminal %i: %t" (Terminal
ID and active tab title). Unfortunately the space on the tabs is seriously
limited, so that the tab title is virtually always truncated. Ideas welcome.



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


# b3b19de5 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Style cleanup.


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


# ffad8506 28-Oct-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Remove the setting for a fixed cursor color. Instead, the cursor now inverts the colors of the char below it.
* This allows getting a cursor well visible both on black and white backgrouds.


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


# 1eeda2bd 18-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Fix style violations I've commited in r38207 and r38251, the first pointed out by Ingo <- thanks!


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


# a881dd4a 18-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Fix regression caused by me in r38207, pointed out by diver in #6407, thanks!


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


# 111b8ee8 26-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Better wording.
The colors don't need to be public.
Style.


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


# 6491fb59 25-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Terminal will issue an alert, if there are active processes and the
user closes the window (doesn't work if the user closes only a tab, yet).
Active by default but can be disabled by a checkbox.
- The preference window needs to be reworked.
- Wording of the alert and the option can be improved (I accept advices).



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


# 7071dfc1 19-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style.
Add NULL guard to the color schemes struct, although the code was safe
neverthless (for now)


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


# 80490c77 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Add a menufield to select color combinations, and add obvious
"white on black" and "black on white". For some reason these aren't
applied live, like when you chose a custom combo.
I'm not really fond of the code, and will rework it in the next few days.
But at least it works!


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


# b2f1b286 07-May-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed spelling in the TR_CONTEXT macro. BTW this macro should be renamed
as well. Maybe B_TRANSLATION_CONTEXT?
* Minor cleanup.


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


# 6c514d3e 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@36675 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8989d8a5 06-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the Terminal application. Thanks a lot.
Closes ticket #5850.


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


# 1a7f5cb9 21-Dec-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Patch by mt (ticket #5149): Applied BGridLayout to BMenuFields in the
preferences window. Thanks!


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


# a2ba3d65 21-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed dependency to the global gMouseClipboard from TermView. Now there's
a SetMouseClipboard() method to set one (defaults to be_clipboard, maybe
it's not a good idea and should default to NULL instead).


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


# 6b87afd3 21-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Made the Find Window a bit wider by default, moved some functions around,
got rid of MenuUtil.h/cpp.
Some style change.



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


# 64fd88f5 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Tweak a bit the layout of the preference window.


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


# 70f7a8ad 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Cleanup: removed unused messages constant and classes, merged AppearPrefView
with PrefView, moved main from Terminal.cpp to TermApp.cpp.


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


# a5ec0eeb 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed the BMessengers to make clearer to which messengers they
refer to. Made some parameters const references. Removed leftovers.


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


# c1ca410b 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Work in progress: converting the terminal preference window to the layout api


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


# a0750e65 13-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added TODO comment, removed leftover.


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


# 42517d7f 13-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added a check which makes WebDings fail the IsFontUsable() check.


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


# b6c92a37 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

If no item is selected, select the first item.


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


# fba4e002 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Also set a default style in the preferences. Mark the menuitem with the
default family/style.


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


# e3b9a828 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

When building the font menu, also include font styles.
Now it's possible to select bold or oblique font styles.


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


# 0d77a112 04-Oct-2009 Ryan Leavengood <leavengood@gmail.com>

A patch from Caitlin Shaw (aka rogueeve) to fix #4715, some Terminal
improvements:

* fixed text for "Use Text" radio button in Find dialog being cut off
* more user friendly error messages for Find dialog:
"no search string" becomes "No search string was entered.", or "Nothing is
selected." as appropriate.
* Preferences dialog opens unacceptably slow when a larger number of fonts are
installed due to AppearPrefView's "IsFontUsuable" routine. But was able to
cut opening time by about half with a minor optimization to the loop.

* Fixed an ugly word-wrap of Takashi Murai's name in About dialog


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


# da2b227e 16-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preference panel : Reverted some of my "optimizations" since Ingo (correctly) points out that:
* they (the way I did it) can do more worse than good in some case
* they (the way I did it) are generally against our coding-style

Sorry about that. (ticket #4245)


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


# 2c3476d3 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Further optimization in the construction time of the Preference Panel (ticket #4245).
Indentation fix.


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


# 307c87b2 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preference panel: Optimizations to make the window appear faster.

* In most case, the font size will already have been found with the regular check, move the extra check at the end if really it's needed.
* Some variables were declared inside loops (BTW, is that more conform to our coding style? It does feel faster if I declare them outside of the loop)
* The alignment was simplified (without visual difference).

In answer to ticket #4245.



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


# a3c4ce8b 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preferences Panel : Check if the font, size or color was indeed changed before setting it as modified, avoiding unneeded "Save/Cancel" dialog.
This fixes ticket #3348.


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


# b61e1f74 10-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Terminal's preferences window :
* Align the controls
* Remove a bit of gray space that was superflous
* Size dropdown menu now includes sizes of 13, 15 or 17, if needed, avoiding the case where is shown the word "size".
Basically, it doesn't show them unless you got at that value by using the menu entries.

Also disables the Increase/Decrease text size menu entries if you reach the upper or lower bounds.

Partly fixes ticket #4198.


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


# e2d1e007 08-Aug-2009 Joachim Seemer <humdingerb@googlemail.com>

Applied old patch by Urias (see #3209) improving strings in Terminal's preferences. Added a few more tidbits.

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


# 35e29efe 08-May-2009 Axel Dörfler <axeld@pinc-software.de>

* Messed up IsFontUsable(), this closed bug #3895 if I understand diver
correctly.


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


# 728c7f10 19-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Fixed warnings.
* Automatic whitespace cleanup.


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


# f498be92 03-Feb-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied patch by h.z. (slightly modified by myself) included in bug #2715. I tested it briefly with Konatu Tohaba font and it seems to work correctly. Please review.

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


# b9a5b823 11-Jun-2008 Alexandre Deckner <alex@zappotek.com>

- Changed BColorControl cellsize to account for the fixes in BColorControl. A rounding error gave the right appearance. see r23671 and r23680. Also, we might want to check the minimum cellsize in R5 and use the same for compatibility.


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


# 80f6938b 08-May-2008 François Revol <revol@free.fr>

- MakeMenu() now adds a separator for empty strings.
- add pref names for ANSI colors, for later...


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


# 4882883b 07-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

AppearPrefView was mixing up flags and resizing mode. Fixed.
Also set the flag B_PULSE_NEEDED (for the blinking cursor) in TermView.


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


# 4d67ea42 04-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

And of course, actually save the font size selected via shortcut.


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


# c4eae2c1 21-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more renaming


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


# 7014c8a3 17-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed support for "Full font", which wasn't used anyway. Since
our Terminal only works correctly with fixed width fonts, now the font
menu filters out variable width ones. For some reason, though, Konatu
Tohaba isn't recognized as fixed. Various other changes.


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


# dc25fe81 17-Jul-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Got rid of gTermPref by adding some static methods to PrefHandler.
The font size menu wasn't up to date with the current settings. Fixed.


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


# 3834597b 26-Feb-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Another patch by Vasilis Kaoutsis: Replaced pointer use with a
BMessenger


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


# 723de034 11-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

* Removed "full font" vs. "half font" setting (in the GUI only for now) - this
should better be handled by the app_server (ie. via font overlays).
* Fixed compilation under Dano.
* Fixed some broken headers.
* Cleanup.


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


# d3dc729f 18-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Moved the files out of the MYOB folder into the main folder.
There are some double entries (like TermApp.cpp and TerminalApp.cpp, so
it still needs a further cleanup).


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


# f88412ccdafc8040a7136786cda432767c668e30 21-Feb-2015 JackBurton <stefano.ceccherini@gmail.com>

Moved IsFontUsable() to Globals.h/cpp


# dbf8c834a25bf2e138e2163ff110d62b663c9736 19-Feb-2015 Axel Dörfler <axeld@pinc-software.de>

Terminal: added basic conditional title patterns.

* You can now insert arbitrary text only if the following or previous
placeholder does not resolve to an empty value using the %<, %> and
%- placeholders.
* Additionally, any non-alpha numeric character between % and the
placeholder character will only be displayed if the placeholder does
not resolve to an empty value, too.
* All of this allows you to get rid of the extra space between
"Terminal" and ":" before the current path -- which is now the
default.


# 5211ae5d68901d91974081997fcd9cb2ee733b4b 27-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal: use BPopUpMenu in BMenuFields.

Using a BMenu works, but it doesn't look as good.
Thanks to Diver for noticing this.


# 482f0eeb0169f5091ccc56af5124b19a9e801573 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

add window size and encoding to terminal prefs

* The menu items now only set the values for the current window without
saving,
* The settings in the preference window are persistent,
* The "save as defaults" menu item is removed.

Fixes #5030.


# defb82922a0f1e2872aae848b8c565fd26b2eb90 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal Prefs: replace "OK" with "Defaults"

Again, this is the more standard way to do things in Haiku.


# cca6cae659cc8ab5bbacaf49c35d95e40e4d7f88 10-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Terminal preferences: replace "Cancel" with "Revert"

This is the standard way in Haiku preference panels.


# be3f404ca1068e9d0ae262ed4ab4fab2fa91b103 13-Feb-2014 Jonathan Schleifer <js@webkeks.org>

Terminal: Add option to use bright instead of bold text

A saturated add was chosen instead of tint_color, as the results of
tint_color were too extreme.


# b0044e44370ab2cbdff9b4f530dc6b362eac0397 02-Sep-2013 Siarzhuk Zharski <zharik@gmx.li>

Temrinal Prefs: update color control on scheme change

Update the color control state on the scheme change event
Fixes #9864.


# 4e17bdd83f2f3a04b9088cbdd8b8ce77cf1ccd44 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID991252: Possible NULL dereference on scheme name

The color scheme name pointer is dereferenced but was not checked for
NULL value.


# 15aa77139011a57c47c11ba7fe1fee3c45ec2173 28-Mar-2013 Siarzhuk Zharski <zharik@gmx.li>

Keep color control enabled after color scheme change

Fixes #9532


# 344de4ccd12eb0fe63d7d3c8aece5138fe1909bd 10-Feb-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix Terminal localization issues in Custom color scheme

* Localized Label of the colors menu entry was used as the key
during loading corresponding color value from the preferences file.
It was obviously observed only on non-English locales;
* Fixes #7209 #8256.


# 748378c82683178e55f06b4c2d711d4aea7a1b06 12-Dec-2012 Humdinger <humdingerb@gmail.com>

Renamed cusor colour settings.

"Cursor text" and "Cursor background" in the Color popup menu are
a bit unintuitive. Changed to "Text under cursor" and "Cursor".


# 1eccdc25feba35a3f3312dd18e014a883e99ef1d 08-Dec-2012 John Scipione <jscipione@gmail.com>

Increase the font size options in Terminal

Sizes range from 8 to 36 but not all sizes are represented. The
progression is not linear, the font size increases first by 1,
then 2, and finally by 4.

Works by keying command-(plus)/command-(minus) or selecting
from Font size menu, or from selecting from Font menu in Terminal
settings. If you alter the settings file to put in some other font
size it should still work, but the menu item won't be checked.

Fixes #8849


# bfbcec141efc619ecadbc11f5cc7047437f6fa1d 07-Dec-2012 John Scipione <jscipione@gmail.com>

Unify the Font menu and Font size menu into one.

The Font size menu becomes a submenu of Font so that you can set
both the font and font size at once.

This fixes #4198


# 9e4281adaf91955c39ab518b331fe317dd78a216 07-Dec-2012 John Scipione <jscipione@gmail.com>

Make font size dropdown in settings windows work again


# dc1456f662de373745f3623c83dc7a6b239e0e1a 07-Dec-2012 John Scipione <jscipione@gmail.com>

Add font sizes to Font Size menu in addition to in settings


# 992c7397cf62bda71c2dfdee0c49575820f6bbd8 06-Dec-2012 John Scipione <jscipione@gmail.com>

Remove ugly const_cast, thanks Ingo


# 715c56d45435a373b9f581960fd352506a348922 06-Dec-2012 John Scipione <jscipione@gmail.com>

Style fixes only, no functional changes intended

including converting a while loop into a for loop.


# cfd9c96db5b111667bc085b854aebcdd346c8f37 04-Dec-2012 John Scipione <jscipione@gmail.com>

Style fix: compare to 0 in strcmp() explicitly.


# 2005db27ff2f17487996d6b807847450b5bc2547 04-Dec-2012 John Scipione <jscipione@gmail.com>

Change schema in Terminal to color scheme.

Love this feature, but, color schema is not a thing, it is a color
scheme. Change both the display text and the variable names.

Also changed "Retro Terminal" color scheme to just "Retro". Terminal
is redundant.


# a2b5d15aef1cb3beaacf33973c1007a237d596f6 04-Dec-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

Terminal: Ensure changing color schema modifies cursor

* Really fixes #8256


# 63dffc0194e460381e535f9dcc64b5bf6fc9ae5f 07-Nov-2012 Humdinger <humdingerb@gmail.com>

Improved string of new Terminal setting.


# 122905281dd29a0ee9ef35dd280a33aab21e6c3d 05-Nov-2012 Jonathan Schleifer <js@webkeks.org>

Terminal: Make the cursor color configurable.

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


# 4e3d346e9177b9a6ad3d84c28a39c08898e0a6ec 04-Nov-2012 Jonathan Schleifer <js@webkeks.org>

Terminal: Make cursor blinking an option.

Signed-off-by: Rene Gollent <anevilyak@gmail.com>


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


# 5c6b9eb00d0d623c12f72eb82a471cb4c71f4f33 23-Feb-2012 Jerome Duval <jerome.duval@gmail.com>

Some fixes for GCC 4.6 warning: variable set but not used


# a2f89c5843433b8d93a96fc2cfc98c29ddc628f8 02-Feb-2012 Siarzhuk Zharski <zharik@gmx.li>

[Coverity] Fixed some uninit fields and return values checks

* Fixed CID2398, CID9945, CID9943, CID4215


# 7781d9ad28ffca6da65e9bf646358c2540ffc2f3 29-Oct-2011 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by 'mt' that fixes ticket #6275 - thanks a lot!


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


# c2a14a1a859b5627493bd294641715fb27892a14 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Can't use static const PREF_*_COLOR keys for translation.
Revert to literals for color menu items which needs, them, being localized.
Add missing source files to DoCatalogs.


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


# d70708127f7528a303520849a6150343577ad5de 06-Dec-2010 Philippe Houdoin <philippe.houdoin@gmail.com>

Localize some forgotten strings spotted by diver.
Fix #6375.


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


# b6476732274148903e53f91a46fb7e7e8185977c 19-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Moved the reusable part of the tab/window title prefs tool tips to
TermConst.h/cpp.


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


# 02ee32bb0d3cc6680c421177bb490dba84230081 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented support for dynamic tab and window titles:
* Added settings for tab and window titles. Both are strings with optional
placeholders for tab/terminal index, currently active process name and
current directory.
* Added a generic utility class PatternEvaluator that allows to expand this
kind of pattern strings and callback classes
[Tab,Window]TitlePlaceholderMapper that provide the specific expansion for
the tab and window title placeholders.
* TermWindow:
- Separated the notions of session (== tab) and window titles. The tty
clients no longer set the window, but the session title.
- Use the patterns instead of the hard-coded window/tab titles.
- Recompute all titles once a second, so changes of running programs are
reflected.
* The default patterns for tab and window titles are "%1d: %p" (last CWD
component and name of the running process) and "Terminal %i: %t" (Terminal
ID and active tab title). Unfortunately the space on the tabs is seriously
limited, so that the tab title is virtually always truncated. Ideas welcome.



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


# b3b19de56b897b95169c8dee497e80c1fc26c7c5 17-Nov-2010 Ingo Weinhold <ingo_weinhold@gmx.de>

Style cleanup.


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


# ffad85060af9d695c5eb0468c91b8a438d42d638 28-Oct-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Remove the setting for a fixed cursor color. Instead, the cursor now inverts the colors of the char below it.
* This allows getting a cursor well visible both on black and white backgrouds.


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


# 1eeda2bd42e2824fc1a01aedfabaf96e8636edcb 18-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Fix style violations I've commited in r38207 and r38251, the first pointed out by Ingo <- thanks!


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


# a881dd4a37f1294a636d9f6d490e7bf9493d21fb 18-Aug-2010 Alex Wilson <yourpalal2@gmail.com>

Fix regression caused by me in r38207, pointed out by diver in #6407, thanks!


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


# 111b8ee836b5974e2800e48d24999d02746d1a82 26-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Better wording.
The colors don't need to be public.
Style.


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


# 6491fb598a70c8e58c3d205f7d8cf5438927fb20 25-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Terminal will issue an alert, if there are active processes and the
user closes the window (doesn't work if the user closes only a tab, yet).
Active by default but can be disabled by a checkbox.
- The preference window needs to be reworked.
- Wording of the alert and the option can be improved (I accept advices).



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


# 7071dfc1d1e468a0700ecff0661abeacbfb980ac 19-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Style.
Add NULL guard to the color schemes struct, although the code was safe
neverthless (for now)


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


# 80490c776a1a727daf66f2eec0431d43cab69c73 16-Jul-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Add a menufield to select color combinations, and add obvious
"white on black" and "black on white". For some reason these aren't
applied live, like when you chose a custom combo.
I'm not really fond of the code, and will rework it in the next few days.
But at least it works!


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


# b2f1b286403ef22cf0451264bd1ce0b8efe2373a 07-May-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed spelling in the TR_CONTEXT macro. BTW this macro should be renamed
as well. Maybe B_TRANSLATION_CONTEXT?
* Minor cleanup.


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


# 6c514d3e3bfc9c33f9f4a2edd0b593d734046c8f 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@36675 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8989d8a52e0ca6b551f2a57b51a7f1c77726144b 06-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the Terminal application. Thanks a lot.
Closes ticket #5850.


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


# 1a7f5cb95d73ddc3f9d19b0130d8b5a6365e130f 21-Dec-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Patch by mt (ticket #5149): Applied BGridLayout to BMenuFields in the
preferences window. Thanks!


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


# a2ba3d656212da5e985caf215b1a4513a016ad1e 21-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed dependency to the global gMouseClipboard from TermView. Now there's
a SetMouseClipboard() method to set one (defaults to be_clipboard, maybe
it's not a good idea and should default to NULL instead).


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


# 6b87afd3608687b867eb276402e945e273d0add6 21-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Made the Find Window a bit wider by default, moved some functions around,
got rid of MenuUtil.h/cpp.
Some style change.



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


# 64fd88f56aa7c10039d2d07eef72bc572ef6d439 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Tweak a bit the layout of the preference window.


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


# 70f7a8ad0f5ae85b18c2ae9ad9b0d45f7f87522c 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Cleanup: removed unused messages constant and classes, merged AppearPrefView
with PrefView, moved main from Terminal.cpp to TermApp.cpp.


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


# a5ec0eeb43a14b09d418eed8da3d8767e63c3882 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Renamed the BMessengers to make clearer to which messengers they
refer to. Made some parameters const references. Removed leftovers.


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


# c1ca410b12258c740d1c725b2f0fbadca9fe8321 20-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Work in progress: converting the terminal preference window to the layout api


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


# a0750e6550732c450b63a5072d5bb100f46b12a8 13-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added TODO comment, removed leftover.


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


# 42517d7f6cfd6614bbc38fa55e93f65464ec7fb2 13-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Added a check which makes WebDings fail the IsFontUsable() check.


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


# b6c92a37791e644ac1d0e94361714e73fdec2e5a 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

If no item is selected, select the first item.


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


# fba4e002b1a89bb281a266f7b64c1c27db62bc1b 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Also set a default style in the preferences. Mark the menuitem with the
default family/style.


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


# e3b9a828db254005a7577f5b7eff6414cb774819 07-Nov-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

When building the font menu, also include font styles.
Now it's possible to select bold or oblique font styles.


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


# 0d77a112bcd001be506571d42c233dfe8da079c3 04-Oct-2009 Ryan Leavengood <leavengood@gmail.com>

A patch from Caitlin Shaw (aka rogueeve) to fix #4715, some Terminal
improvements:

* fixed text for "Use Text" radio button in Find dialog being cut off
* more user friendly error messages for Find dialog:
"no search string" becomes "No search string was entered.", or "Nothing is
selected." as appropriate.
* Preferences dialog opens unacceptably slow when a larger number of fonts are
installed due to AppearPrefView's "IsFontUsuable" routine. But was able to
cut opening time by about half with a minor optimization to the loop.

* Fixed an ugly word-wrap of Takashi Murai's name in About dialog


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


# da2b227ec7153752aa26a830b49345bb821259f8 16-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preference panel : Reverted some of my "optimizations" since Ingo (correctly) points out that:
* they (the way I did it) can do more worse than good in some case
* they (the way I did it) are generally against our coding-style

Sorry about that. (ticket #4245)


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


# 2c3476d3b7c207acb3f1f622287cb878e2709924 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Further optimization in the construction time of the Preference Panel (ticket #4245).
Indentation fix.


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


# 307c87b22551725bf8b7aa2461bdfd5ab95c4bc2 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preference panel: Optimizations to make the window appear faster.

* In most case, the font size will already have been found with the regular check, move the extra check at the end if really it's needed.
* Some variables were declared inside loops (BTW, is that more conform to our coding style? It does feel faster if I declare them outside of the loop)
* The alignment was simplified (without visual difference).

In answer to ticket #4245.



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


# a3c4ce8b7dc84b89e9a6bc8e2be7864dd2fe7656 15-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Preferences Panel : Check if the font, size or color was indeed changed before setting it as modified, avoiding unneeded "Save/Cancel" dialog.
This fixes ticket #3348.


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


# b61e1f74bf422d9a5d5f1b531b686270ebef4d16 10-Aug-2009 Philippe Saint-Pierre <stpere@gmail.com>

Terminal's preferences window :
* Align the controls
* Remove a bit of gray space that was superflous
* Size dropdown menu now includes sizes of 13, 15 or 17, if needed, avoiding the case where is shown the word "size".
Basically, it doesn't show them unless you got at that value by using the menu entries.

Also disables the Increase/Decrease text size menu entries if you reach the upper or lower bounds.

Partly fixes ticket #4198.


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


# e2d1e007c0bd7bc1efdaec87f2690cf776cac60d 08-Aug-2009 Joachim Seemer <humdingerb@googlemail.com>

Applied old patch by Urias (see #3209) improving strings in Terminal's preferences. Added a few more tidbits.

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


# 35e29efeef2d634d74005d482a1cf773fcc857b3 08-May-2009 Axel Dörfler <axeld@pinc-software.de>

* Messed up IsFontUsable(), this closed bug #3895 if I understand diver
correctly.


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


# 728c7f10e10cfcdd0b423c667321eaa17b136b3c 19-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Fixed warnings.
* Automatic whitespace cleanup.


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


# f498be9297862dda8330e3dae2b730afba2570cd 03-Feb-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied patch by h.z. (slightly modified by myself) included in bug #2715. I tested it briefly with Konatu Tohaba font and it seems to work correctly. Please review.

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


# b9a5b8236b7106ada4cf333743e10552522c6540 11-Jun-2008 Alexandre Deckner <alex@zappotek.com>

- Changed BColorControl cellsize to account for the fixes in BColorControl. A rounding error gave the right appearance. see r23671 and r23680. Also, we might want to check the minimum cellsize in R5 and use the same for compatibility.


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


# 80f6938b34b03d1ff832cc013d24db3e1cd18116 08-May-2008 François Revol <revol@free.fr>

- MakeMenu() now adds a separator for empty strings.
- add pref names for ANSI colors, for later...


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


# 4882883b6f2e3ba2c4834a87856de978208a0072 07-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

AppearPrefView was mixing up flags and resizing mode. Fixed.
Also set the flag B_PULSE_NEEDED (for the blinking cursor) in TermView.


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


# 4d67ea42f3070b136f1de66dfd777ab3a97eb206 04-Feb-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

And of course, actually save the font size selected via shortcut.


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


# c4eae2c1fc5ea7f6cb86552efcb895eee38e8fad 21-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

more renaming


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


# 7014c8a3790cfbd79887ef7092b6c89ad9e548bd 17-Jan-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Removed support for "Full font", which wasn't used anyway. Since
our Terminal only works correctly with fixed width fonts, now the font
menu filters out variable width ones. For some reason, though, Konatu
Tohaba isn't recognized as fixed. Various other changes.


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


# dc25fe8173a381f951765f518a85c287e894cd8c 17-Jul-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Got rid of gTermPref by adding some static methods to PrefHandler.
The font size menu wasn't up to date with the current settings. Fixed.


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


# 3834597b97b6bb3a0d50d5870e338de809c2a9c8 26-Feb-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Another patch by Vasilis Kaoutsis: Replaced pointer use with a
BMessenger


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


# 723de034c64749fadc75bee362171f1127bf00c3 11-Nov-2005 Axel Dörfler <axeld@pinc-software.de>

* Removed "full font" vs. "half font" setting (in the GUI only for now) - this
should better be handled by the app_server (ie. via font overlays).
* Fixed compilation under Dano.
* Fixed some broken headers.
* Cleanup.


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


# d3dc729f9fbe302c5c45c3ec2518650a260605d7 18-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Moved the files out of the MYOB folder into the main folder.
There are some double entries (like TermApp.cpp and TerminalApp.cpp, so
it still needs a further cleanup).


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