History log of /haiku/src/apps/stylededit/StatusView.cpp
Revision Date Author Comments
# 7eab6b48 02-May-2024 PulkoMandy <pulkomandy@pulkomandy.tk>

Fix printf format warnings in B_TRANSLATE strings

Previously these were not checked by the compiler due to a missing
function attribute.

Unfortunately, for the translation macros to work, the translated string
must be identical in all architectures (otherwise, we would need
different translations and different catalogs for each). This means the
B_PRI* macros can't be used, and instead the parameters must be in one
of the types handled directly by printf. Change the variables types
directly where it was easily possible, and otherwise, use a cast.

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


# 322be3be 25-Jul-2021 Pascal Abresch <nep@packageloss.eu>

StatusView: compute font size based on scrollbar size

Compute a font size that just fits the available space, instead of using
an arbitrary scaling. This makes the code adjust to any font and any UI
size.

Select the appropriate font using a binary search, which will need only
a few attempts (I think 6 font sizes will be tried at the default
config)

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


# 34ab7060 26-Aug-2022 Augustin Cavalier <waddlesplash@gmail.com>

StyledEdit: Do not do font->Size() / 12 but rather downscale directly.


# 39b50e10 29-Dec-2020 Pascal Abresch <nep@packageloss.eu>

StyledEdit: fix statusview font size

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


# 7451b647 02-Aug-2019 Ryan Leavengood <leavengood@gmail.com>

StyledEdit: draw the status bar with the panel text color

Hopefully this is the last piece of #4868.


# 8914c88d 30-May-2015 Janus <janus2@ymail.com>

StyledEdit: add navigation menu to status bar.

* Fix #12099.


# 42cb481f 03-Sep-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit:supress unlock if the file is on RO volume

Show the "Read-only" status for documents that are living on read-only
volumes and do not show unlock menu for such files.

* The enhancement pointed out by Sergei Reznikov (Diver). Thanks!


# f8668ab4 13-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Improve File Encoding StatusView cell. (Fixes #9653)

* Encoding cell of the StyledEdit StatusView is visible now only in case
the currently opened file encoding is not equal to default UTF-8 one;
* The Encodings menu that was opened by click on this cell is removed;
* Cmd-Opt-PgDn/PgUp shortcuts are added for quick iteration through the
list of encodings.


# 20cbdcd1 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView:No stretching for pos cell only


# 29155ba4 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView: prevent duplicating context menu


# 8a85cd4c 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView Encoding context menu implemented


# 0f4985d8 22-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

StyledEdit:Implemented StatusLine and R5-like ReadOnly mode

This work was done during GCI2012.

Fixes #3655

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 8914c88dab7a8c90549e355ed3de12d604e47b7d 30-May-2015 Janus <janus2@ymail.com>

StyledEdit: add navigation menu to status bar.

* Fix #12099.


# 42cb481fe45322e10415a2b8ea9ae7edac94e58f 03-Sep-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit:supress unlock if the file is on RO volume

Show the "Read-only" status for documents that are living on read-only
volumes and do not show unlock menu for such files.

* The enhancement pointed out by Sergei Reznikov (Diver). Thanks!


# f8668ab42f2b09cdd3f7fe4964fe5485b2960dc2 13-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Improve File Encoding StatusView cell. (Fixes #9653)

* Encoding cell of the StyledEdit StatusView is visible now only in case
the currently opened file encoding is not equal to default UTF-8 one;
* The Encodings menu that was opened by click on this cell is removed;
* Cmd-Opt-PgDn/PgUp shortcuts are added for quick iteration through the
list of encodings.


# 20cbdcd16648f6b2a0add3374f00380249789d45 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView:No stretching for pos cell only


# 29155ba4de03e767c1a9c9baac71ee51660087d4 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView: prevent duplicating context menu


# 8a85cd4ce8e1d53e676e7abbd4fa016001f4489c 16-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit::StatusView Encoding context menu implemented


# 0f4985d884971e1c221cb02eae16b1f08708629a 22-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

StyledEdit:Implemented StatusLine and R5-like ReadOnly mode

This work was done during GCI2012.

Fixes #3655

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>