History log of /haiku/src/apps/stylededit/StyledEditWindow.cpp
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 3571cd8a 29-Jun-2022 John Scipione <jscipione@gmail.com>

StyledEdit: Add comment explaining MakeFocus() loc

... to explain hrev562209 by Jim906 which fixes #17733
StyledEdit: give initial focus to the TextView

No functional change

Change-Id: Id428290d8d3530e5ef9213489625c1968984d323
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5422
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: nephele <nep@packageloss.eu>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 5b5da451 27-Jun-2022 Jim906 <jim_l@fastmail.com>

StyledEdit: give initial focus to the TextView

* Move the existing MakeFocus call to after the window layout is built.
* Also, add calls to Activate so that StyledEdit becomes the active
window after its find or replace window is closed/hidden, even if
another application is set to 'always on top.'
* Fixes #17733.

Change-Id: I8380e8ce2760ffa3f3467a618a0d843826e4ac99
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5416
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: humdinger <humdingerb@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 40a12ac6 24-Jul-2021 Adrien Destugues <adrien.destugues@opensource.viveris.fr>

StyledEdit: add menu to underline text

Eases testing of B_UNDERSCORE_FACE

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


# aae4fc79 02-May-2021 John Scipione <jscipione@gmail.com>

StyledEdit: SetInsets() instead of insetting initial text rect

Initial rect size doesn't persist to changing text rect sizes and
alignment changes but insets do. Maintains a 3px border around text
on all sides.

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


# 18f50757 06-Jan-2021 X512 <danger_mail@list.ru>

StyledEdit: fix replace menu item

Regression after hrev54812.

Change-Id: I5f8e06c5b161eb859afc7f03b08e1c0cb07a99d0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3604
Reviewed-by: humdinger <humdingerb@gmail.com>


# 4758408a 06-Jan-2021 X512 <danger_mail@list.ru>

StyledEdit: fix layout

Fixes #16721.

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


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

StyledEdit: Fix New menu item after hrev54812

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


# d6005b72 23-Sep-2020 Pascal Abresch <nep@packageloss.eu>

StyledEdit: convert main view to layout api

Change-Id: I913c8f559faf09654b0e249f512858ed24fe1ffe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3537
Reviewed-by: John Scipione <jscipione@gmail.com>


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

IK: align BTextView text rect/fix alignment

Recalculate line breaks in FrameResized() if word-wrap is on, otherwise
only move the text rect into position. StyledEdit was recalculating line
breaks before on resize (we have to in this mode) and the frame offset
updates for non-wrapping text views are inexpensive. This makes resizing
text view's work like StyledEdit everywhere.

Scroll to cursor when word-wrap setting changes if text view is editable.
If you are viewing a long document changing word-wrap can move the cursor
quite far, so scroll back to it.

Fix _ActualTabWidth() pen location for right and center-aligned text views
so that tabs widths are calculated correctly.

Reset fTextRect horizontal limits to bounds minus insets in
_RecalculateLineBreaks(), then grow fTextRect based on alignment when
wrap is off.

Fixing insets also fixes right and center-aligned BTextViews.
Left-aligned text view's grow right, right-aligned ones grow left,
and center-aligned ones grow out.

Make extra scrolling space for all aligned text views go the other way
from how it did in hrev24130 (and on left-aligned text view's too) so
that half the text is visible when you edit past the end or before the
beginnning of a text view instead of none of it.

Fixes #1651 #12608 #13796 #15189

Do not _RecalculateLineBreaks() if text view bounds are invalid.
In SetText() detect invalid text view bounds and resize the view to the
width and height of the first line. Then recalculate line breaks.
This fixes BAlert text view size issues.

Fixes #16481 (regression from hrev54496.)

Remove useless and heavy computation. There is no point in computing line
breaks for a 10px wide text view and it takes a long time because it needs
a lot of linebreaks. The view eventually gets laid out properly.

Fixes #5582 (which was not locale-related, after all.)

Only apply default insets if text rect is set to bounds. This ensures
that apps that manipulate the text rect can continue to do so without
the default insets interfering while apps that don't can benefit
from the defaults. If you want to set the text rect to bounds and
not use the default insets you must override the default by calling
SetInsets(). This prevent the default insets from being applied once
apps have changed the text rect fixing a bug in Icon-O-Matic where the
text rect insets were being applied incorrectly.

Fixes #16488 (regression from hrev54496.)

Reduce left and right insets inside text views from full label spacing
to half label spacing. Unify padding between BTextControl and BTextView.

Move fLayoutData->UpdateInsets() to private BTextView::_UpdateInsets()
because we need access to BTextView member variables when deciding
whether or not to add the default padding or not.

_UpdateInsets() changes:
* Don't update insets if BTextView::SetInsets() was called.
* Don't add default insets unless fTextRect is set to view Bounds().
* Do not set the right and bottom insets to left and top if negative,
set them to 0 like we do to left and top -- DeskCalc bug otherwise.

Fixes #15688

Other BTextView fixes:
* Replace max_c and min_c with std::max and std::min respectively.
* Remove scrolling from one instance of BTextView::SetText() as it
produced undesired results while editing a scrolled text view.
* Add default insets in _UpdateInsets()
* Fix scrolling when entering and deleting text so that some part of
the text is always visible. Make visible scroll width depend on font
size.
* Allow scrolling to a negative offset in x but not y. This allows you
to scroll the entire contents of right and centered-aligned text views
whose content does not fit in the box.
* Change _Refresh() to take an offset instead of a bool so that you can
scroll to any offset.
* Replace TextLength() with fText->Length() in a couple of places.

TextControl changes:
* Set text rect in BTextControl::DoLayout().
* Remove AlignTextRect() from TextInput.

Fix the following problems in apps:

ScreenSaver: Set text rect in PreviewView::AddPreview().
Tracker: Set "Edit name" text view insets to 2. Tweek text rect position
to be on top of label in icon, mini-icon, and list mode. Add a TODO that
the text rect is a pixel off from the name on some files.
Mail: Remove _AlignTextRect() and FrameResized() from AddressTextControl.
Use default insets on the text view, defaults are fine here.
DeskCalc: Set insets based on font size in ExpressionTextView
SetTextRect() instead of manipulating the text rect.
Remove _CheckTextRect() and related methods from InputTextView.
Icon-O-Matic: Remove _CheckTextRect() and related methods from InputTextView.
WebPositive: Remove _AlignTextRect() and FrameResized() from URLTextView
and call SetInsets().
StyledEdit: Word-wrap and FrameResized() changes ported to BTextView.

Fixes #16476 #16480 #16488 (regressions from hrev54496.)

Change-Id: Ifeca6077f8815ccd86d5a3880f99556298aaf0fe
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3152
Reviewed-by: John Scipione <jscipione@gmail.com>


# ffee10ad 12-Apr-2020 Augustin Cavalier <waddlesplash@gmail.com>

StyledEdit: Fix build after previous changes.


# 619b2670 01-Jan-2020 Pascal Abresch <nep@packageloss.eu>

StyledEdit: Add cmd +, cmd - shortcuts for font size

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


# 71103e73 10-Nov-2018 Murai Takashi <tmurai01@gmail.com>

StyledEdit: Fix PVS 1167

Use new(std::nothrow) so that NULL check for allocated memory makes sense.

Change-Id: I6c0e66c63adda430686727a4085132c4e40c7530
Reviewed-on: https://review.haiku-os.org/692
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# da9188ac 08-Dec-2017 Janus <janus2@ymail.com>

StyledEdit: avoid crash on replace window

* Fixes #13842

# e62d9cf8 30-Jun-2015 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit: Rework of the font color system

1) The default font color is now B_DOCUMENT_TEXT_COLOR
2) The font color menu now shows a palette
3) The font color menu now includes a "default" item, set
to B_DOCUMENT_TEXT_COLOR
4) Added a Todo mentionning it would be ideal to not save the default color
itself, but instead saving the fact the default color was used. Maybe allow the
StyleBuffer to use a Null color or something similar.

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

StyledEdit: add navigation menu to status bar.

* Fix #12099.

# 29bce877 13-Nov-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

StyledEdit: ensure caret position gets set correctly

* When opening documents without be:caret_position,
StyledEdit would place the cursor at the end of
the file. _LoadAttrs() intended to set it to the
beginning; however, a check for an existing BRect
for positioning the window would return early,
preventing the caret position to be set.

Fixes #11463

# 991dadd6 16-Jun-2014 Humdinger <humdingerb@gmail.com>

Make sure there's a space in front of B_UTF8_ELLIPSIS.

As PulkoMandy said in hrev47388: C++11 safe and reads better.

# 85ce1385 28-Dec-2013 Rene Gollent <rene@gollent.com>

StyledEdit: Fix #10349.

Override QuitRequested in FindWindow to notify the parent edit window of the
find window's demise so it can reset its corresponding pointer. Otherwise the
latter will potentially access the invalid pointer in question on subsequent
find requests, leading to potential crashes.

# 579c4d6e 26-Nov-2013 Ezo <ezo.dev@gmail.com>

StyleEdit: non-modal Find/Replace windows implementation

* Switch to non-modal floating windows for Find/Replace dialogs,
preserve parameters of the previous search in this editor session;
* Fixes #10053.

- GCI 2013

# e056d320 25-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

StyledEdit: Use RecentItems helper instead of private impl.

* Switch recent documents list to use RecentItems.h helper instead of
homebrewn implementation;
* Fixes #9999.

- GCI 2013

# 41d5d7c8 22-Oct-2013 Siarzhuk Zharski <imker@gmx.li>

StyledEdit:update status view after document was saved

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

# b97ad336 14-Jun-2013 Jerome Duval <jerome.duval@gmail.com>

StyledEdit: fixed statistics words count.

* Bug #9822 and actual fix suggested by DanielW.

# f74ff8d3 30-Apr-2013 John Scipione <jscipione@gmail.com>

Remove this bit of code from StyledEdit

....as we're gonna do the work in BFilePanel instead.

# 72fb3d39 28-Apr-2013 John Scipione <jscipione@gmail.com>

Remove the alert dialog adjustements, they are now done in BAlert directly

The save panel adjustment has been kept and modified a bit to position the
window nicely. It too uses the BWindow::CenterIn() method that adjusts based
on the screen edges.

# 4122ce2a 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the save panel to the middle of the window as well

# 9e5508fa 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the alert to the middle of the window

# 4a65972a 14-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix GCC2 build. Thanks to John for the warning.

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

# 4755a079 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID992335,CID992334: Check FindRef/String returns

Satisfy Coverity by checking return values of FindRef and FindString
calls for fSavedMessage.

Resolves CID992335 and CID992334.

# 2cfeb3ca 04-Apr-2013 John Scipione <jscipione@gmail.com>

Update StyledEdit to use document background color. Style fixes.

See ticket #5293 Colors_picture2.png

# ad834f73 18-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit:EncodingMenu: autodetect on root menu entry

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

StyledEdit::StatusView Encoding context menu implemented

# c7087c91 09-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

Implement "be:caret_position" document file attribute.

* Use "be:caret_position"document file attribute instead of
"be:line" and "be:selection_{length|offset}" file attributes;
* Fixed code style violations. Thanks to Axel for pointing it out!

# 776c58b2 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.

# e55f69fa 26-Dec-2012 Humdinger <humdingerb@gmail.com>

Use "Revert" instead of "OK" as button label.

# 46f1daff 23-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Handle be:line and °K in RefsReceived, store it in file attributes

This work was done during GCI2012

Fixes #4794

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

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

# 0cc8d8ab 10-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Node monitoring and on-the-fly textencoding change

This work is based on the draft node monitoring implementation
created by Vlad Slepukhin during GCI 2012 and includes following:

* Refactoring of the document "Reload" feature - it replaces
"Revert to saved" one because do the same things and a bit more.
Looks like we have to keep "Reload" menu entry alive until
StyledEdit will get more functional Undo/Redo features. Reload
functionality is also heavily used in node monitoring and
on-the-fly text encoding changing. Fixes #6887;

* Support for text encoding on-the-fly switching. This make
life easier for those who lives in countires with multiple
popular 8-bit encodings. Russia is the sample of such
de facto standards' clash (KOI-8R vs CP1251 etc.);

* Node Monitoring support with alerting user in case the file
size or modification time were changed. Another alert is shown
in case edited file was removed or moved outside of the current
volume. Moving file inside of current volume silently changes
references. Choosing "Ignore" will supress new change alerts
until next Reload or Save user request;

* Do not nag user on quiting window with zero-length untitled
document. Not a Big Deal but annoys in some cases using this
editor session as temporary storage.

# 6993d26c 08-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Revert of hrev44979 and real fix for #6453

Thanks Stefano Ceccherini for opening my eyes. ;-)

# 5eb2d70f 08-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Preserve font size on changing font family of selection.

This task was completed during GCI 2012
Fixes #6453

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

# cdf25540 21-Aug-2012 Rene Gollent <anevilyak@gmail.com>

64-bit fixes for StyledEdit.

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

# bed0d738 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Pulling declarations back into loop, plus small style change.

Pointed out by Jérô and John. Thanks,

# 48249b20 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Stylefixes, no functional change.

# a736c8aa 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Patch by x-ist, thanks! Fixes non-terminating ReplaceAll, #8141.

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

# 87162054 06-Apr-2011 Stephan Aßmus <superstippi@gmx.de>

Follow up commit on r41184, which removed the Edit->Clear menu item.
I suppose it was discussed on the i18n list as mentioned in that
commit. However two things, Humdinger: 1) You did not test your commit,
and 2) You did incomplete cleanup. If you had removed the member variable
from the StyledEditWindow header, you would have gotten at least a
compile error. Those things being said, I did not test my changes
either... :-)


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

# 329daa44 04-Apr-2011 Joachim Seemer <humdingerb@googlemail.com>

Changed a few strings as discussed on the i18n mailing list. Added localization of license descriptions in AboutSystem.

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

# 2ee8f3f6 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



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

# 4517bee6 29-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

Use strlcpy not strncopy.


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

# 5b9003c7 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 5899: Move a variable so it does not go out of scope when a pointer to it
is used. In my testing this did not seem to be a problem but it doesn't hurt to
fix it.


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

# ccb22800 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 6931 and 8076: use strncpy for the extremely unlikely case that
B_TRANSLATE("???") returns something larger than the size of name.


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

# 5d67e2ba 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 10412: remove assignments for unused variables.


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

# d2ff9616 29-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that closes ticket #4689 by adding bold/italic
shortcuts to StyledEdit - thanks a lot!
* Minor style changes.


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

# 20631cef 23-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that adds a few more keyboard shortcuts as part
of ticket #4689.


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

# f088cd3e 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect indentation (spaces vs. tabs), thanks korli!


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

# 5188c282 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed private methhods to have an underscore prefix.
* Ordered methods as they are declared in the header.
* Style cleanup.


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

# 15d26d2c 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Tamás Krutki that adds some statistic info to StyledEdit.
Thanks for the patch!


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

# 252999c4 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed CID 461 as well - same thing, only for adding a menu to the save panel.
* The menus are now only created when the menu bar is found.


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

# 6387dbc3 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed potential NULL menuBar. This fixes CID 462.
* Got rid of the global styled_edit_app variable.
* Minor cleanup.


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

# e7d3e55a 04-Jun-2010 Jérôme Duval <korli@users.berlios.de>

Fixed ReplaceAll behavior with mixed styles. Also suppress undo for replacements as it doesn't seem supported by BTextView.


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

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

* Adapted to Ingo's suggestions: used a more descriptive attribute name,
got rid of the superfluous fSaveMessage check in LoadAttrs().
* Also made the attribute name a proper const variable, and renamed it to
kInfoAttributeName.


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

# 906db303 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@36679 a95241bf-73f2-0310-859d-f6bbb57e9c96

# 9bf722bd 06-May-2010 Axel Dörfler <axeld@pinc-software.de>

* Made the se-info attribute endian-aware.
* Check in LoadAttrs() if the new frame looks valid, and fits on screen, and
ignore it if not.
* Moved static helper function out of the class definition.


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

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

* Applied patch by x-ist that adds StyledEdit storing its window position and
size per document in a se-info attribute.
* Minor style changes.


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

# 77b20801 10-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* StyledEdit now checks the file permissions before writing it (bug #5521). An alert asks the user in case if not writable.


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

# f0da038e 27-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by mt : localize stylededit. Thanks !


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

# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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

# 13e9a630 10-May-2009 Jonas Sundström <jonas@kirilla.com>

Make StyledEdit check its open windows before launching a new one for an entry_ref. Simplify the application class somewhat by removing DispatchMessage() and replacing the custom made ArgvReceivedEx() with a standard ArgvReceived(). Rely on BPath to take care of paths relative to the current working directory - don't do it manually.

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

# 12483e3c 02-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit didn't clear the marks on the Font Styles in the font menu.
It resulted in several bogus checkmarks. (ticket #2984)

Also, The last font was always checked by default. The error was that
instead than Marking the "left align" item, it was checking that font because
of the wrong variable used.


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

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

* Removed the line view again. Sorry, but this is pretty useless, had a small
fixed size, didn't follow our coding style, etc.
* I did not remove the back-end code in the StyledEditView, though (nor did I
had a look at it for coding style violations :-)).


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

# 8e26769c 29-Mar-2009 Rene Gollent <anevilyak@gmail.com>

Patch by Bryce Groff: add line number display to StyledEdit. Fixes ticket #2623. It does however expose an interesting curiosity in BTextView - CurrentLine() does not count a line until it's actually had some text put into it (i.e. simply hitting enter at the last line of the doc does not increment the number that CurrentLine() returns. Is this an oversight or does R5 behave this way also?



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

# f5c4a083 11-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup.


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

# 6cd5f90f 08-Nov-2008 Jérôme Duval <korli@users.berlios.de>

StyledEdit now alerts with "unsupported format" instead of "Bad argument type passed to function" (bug #3071)
OpenFile() now returns early when the format is unsupported (don't add the document to recent documents, don't allow to save the document) (bug #3072)


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

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

BFilePanel doesn't take ownership of the passed entry_ref. That code wouldn't have worked anyway, since FindRef() returns B_OK on success. CID 933

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

# 10c45684 28-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* remove messenger leak in save panel
* tell something if saving a file fails before it gets to TranslationUtils, fixes #2612



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

# 4f3736d7 26-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* show the config job panel, even if no page setup was already performed
this avoids to multiple window popup for page settings and job settings

* Note: this shows the painting regression introduced with r26665, see task #2534



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

# 9e8c301a 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* fix of by one error, makes printing of ranges work properly



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

# 14ea5e5e 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* whitespace cleanup



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

# cbcae6ef 12-Oct-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

StyledEdit didn't print anything if there's only one line (bug #1288).
Note, though, that printing in StyledEdit is still very much broken.
Often it prints only the current page, for example.


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

# b40c9906 04-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Additional style fixes from Julun: adding back the virtual keyword, moving the
commas on class member initializers, fixing a typo. Thanks!


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

# f303cd6c 03-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Applied patch from "HOST", with a few small style fixes myself.


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

# 66eba86f 16-May-2007 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Jonas Sundstrom: fixed the usage of B_UTF8_ELLIPSIS hopefully
everywhere in the tree.
* Added the ellipsis to "About Haiku" in Deskbar as well.
* Minor cleanup of Deskbar's StatusView.cpp


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

# 56a7c23d 02-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* StyledEditWindow::_LoadFile() now traverses symlinks when opening a file.
This fixes bug #593.
* No longer opens an empty document for every non existing path - it now only
opens a new document if there is none yet.
* No longer open an empty document for non existing files - instead, it just
passes the ref to StyledEditApp::OpenDocument(). StyledEditWindow::_LoadFile()
now treats those files gently as well, so that you can create new documents
via StyledEdit as on BeOS without getting annoyed too much.


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

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

* Fixed some minor bugs and oddities, improved error messages.
* Big-time cleanup, added license.


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

# 9a9f64e1 01-Apr-2004 shatty <shatty@nowhere.fake>

use BFilePanel::SetSaveText which selects the filename


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

# 6f9a2da3 25-Jan-2004 shatty <shatty@nowhere.fake>

DarkWyrm feature request: keyboard short for Save As... command-shift-s


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

# 6e6e1d64 26-Nov-2003 DarkWyrm <darkwyrm@gmail.com>

With shatty's permission, added a patch to allow for opening a file by dropping it on the main window


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

# b1551603 01-Sep-2003 shatty <shatty@nowhere.fake>

remove unused variables


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

# d727a85b 10-Aug-2003 shatty <shatty@nowhere.fake>

null settings reveal improper ownership bugs which are now fixed, no more luck needed, fixed a missing delete in destructor


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

# c7e570eb 10-Aug-2003 shatty <shatty@nowhere.fake>

SetSettings turns over ownership to the BMessage so we null out our field to ensure we do not accidently use it later


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

# 4fd52066 08-Aug-2003 shatty <shatty@nowhere.fake>

strange sanity check required


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

# aa9dc9ea 08-Aug-2003 shatty <shatty@nowhere.fake>

disabled find next and replace same when no text has been found or replaced yet, enabled them when that occurs. also fixed replace all so it does not dirty the window if it fails to replace anything.


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

# bed4e0fb 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed the save as case as well


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

# 82928e6a 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed close click save does not save bug


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

# 65035166 31-Jul-2003 shatty <shatty@nowhere.fake>

improve feedback and add shortcuts for alerts


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

# 12dc86bf 31-Jul-2003 shatty <shatty@nowhere.fake>

fix typo in checkin


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

# e4f90625 31-Jul-2003 shatty <shatty@nowhere.fake>

fixed the "find does not work" bug on newly opened files by setting the cursor to the start of the file on opening


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

# cf629a40 31-Jul-2003 shatty <shatty@nowhere.fake>

at least tell the user that saving failed, if writing the file did, all the other returns should notify as well but I am tired and it is time to sleep :-P


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

# 31cd62fb 31-Jul-2003 shatty <shatty@nowhere.fake>

more and more error checks and helpful dialogs explaining what is happening when things go bad


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

# af78ee48 27-Jul-2003 shatty <shatty@nowhere.fake>

added 11 font size at Konrads request


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

# e59c7b66 27-Jul-2003 shatty <shatty@nowhere.fake>

fixed annoying print before page setup aborts print bug


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

# 27f0ec2d 27-Jul-2003 shatty <shatty@nowhere.fake>

print selected pages working better now


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

# a8c26b3b 27-Jul-2003 shatty <shatty@nowhere.fake>

pixel perfect printing?


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

# a50cf5ac 27-Jul-2003 shatty <shatty@nowhere.fake>

perfect print #1


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

# 46555d8f 26-Jul-2003 shatty <shatty@nowhere.fake>

changed to use new BCharacterSet and BCharacterSetRoster from support kit. because libtextencoding.so is not finished yet it uses those sources directly instead of the library.


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

# 62df02c3 15-Jul-2003 shatty <shatty@nowhere.fake>

set changes monitoring on return by error


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

# 670567f9 05-Jul-2003 shatty <shatty@nowhere.fake>

moved encoding handling into StyledEditView and began reading the be:encoding attribute


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

# a1a68508 05-Jul-2003 shatty <shatty@nowhere.fake>

working save as encoding


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

# 0b2e176d 04-Jul-2003 shatty <shatty@nowhere.fake>

second encodings menu up for save as with field


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

# e6903129 04-Jul-2003 shatty <shatty@nowhere.fake>

first start encodings menu up for save as


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

# 9e159bcf 07-Dec-2002 shatty <shatty@nowhere.fake>

update the alignment menu based on the current alignment of the text view


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

# c4df8d57 06-Dec-2002 shatty <shatty@nowhere.fake>

fixed erroneous deleting of print settings BMessage and changed fMenuBar to fFontMenu to fix crashing in font settings


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

# d470934c 22-Nov-2002 shatty <shatty@nowhere.fake>

fixed changing color reset font bug and made the menus update for font and family and font size


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

# 87765587 22-Nov-2002 shatty <shatty@nowhere.fake>

update font menu for color based on selection or cursor location


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

# 8f63353b 22-Nov-2002 shatty <shatty@nowhere.fake>

lots of font related changes to reduce memory consumption and speed up initialization. also fixes for word wrapping screen width.


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

# 0b46ec98 21-Nov-2002 shatty <shatty@nowhere.fake>

improved soft wrapping, now saves alignment and wrapping states


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

# 6cd1da58 20-Nov-2002 shatty <shatty@nowhere.fake>

set the default save as directory appropriately


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

# e2344ee2 20-Nov-2002 shatty <shatty@nowhere.fake>

fix command line execution - thanks BGA


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

# 5f5bb7d7 06-Nov-2002 shatty <shatty@nowhere.fake>

disable undo after font actions


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

# 80f5cbb0 06-Nov-2002 shatty <shatty@nowhere.fake>

I think replace all is fixed now?


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

# 7c7e9acd 07-Nov-2002 shatty <shatty@nowhere.fake>

replace all still has problems but I am sleepy...


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

# a4948226 06-Nov-2002 shatty <shatty@nowhere.fake>

font operations now make the document unclean. they can't be undone, but R5 doesn't let you undo them either.


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

# 844ea151 06-Nov-2002 shatty <shatty@nowhere.fake>

added encodings menu for save and open file panel (not functional yet)


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

# a445cd42 06-Nov-2002 shatty <shatty@nowhere.fake>

recent menu works. save as puts current name into text field. revert bug fixed.


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

# f4798621 06-Nov-2002 shatty <shatty@nowhere.fake>

revert to saved confirmation dialog added


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

# 47378272 05-Nov-2002 shatty <shatty@nowhere.fake>

pixel tweaks


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

# ed48868f 05-Nov-2002 shatty <shatty@nowhere.fake>

style cleanup ; undo, revert, redo, save, quit functions fixed up ; no more extra windows ; quit when all windows are closed ; fix grey lines when scrolling


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

# 10beef3e 04-Nov-2002 shatty <shatty@nowhere.fake>

made open into a submenu, changed case of Save As


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

# 15db9de0 03-Nov-2002 shatty <shatty@nowhere.fake>

patches from Mattias Sundblad


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

# 3e81831b 26-Sep-2002 shatty <shatty@nowhere.fake>

Fixed newline at end of files.


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

# f7afd44b 23-Sep-2002 Phil Greenway <sikosis@gmail.com>

Initial Check in. Coded by Mattias Sundblad.


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

# da9188ac 08-Dec-2017 Janus <janus2@ymail.com>

StyledEdit: avoid crash on replace window

* Fixes #13842


# e62d9cf8 30-Jun-2015 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit: Rework of the font color system

1) The default font color is now B_DOCUMENT_TEXT_COLOR
2) The font color menu now shows a palette
3) The font color menu now includes a "default" item, set
to B_DOCUMENT_TEXT_COLOR
4) Added a Todo mentionning it would be ideal to not save the default color
itself, but instead saving the fact the default color was used. Maybe allow the
StyleBuffer to use a Null color or something similar.


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

StyledEdit: add navigation menu to status bar.

* Fix #12099.


# 29bce877 13-Nov-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

StyledEdit: ensure caret position gets set correctly

* When opening documents without be:caret_position,
StyledEdit would place the cursor at the end of
the file. _LoadAttrs() intended to set it to the
beginning; however, a check for an existing BRect
for positioning the window would return early,
preventing the caret position to be set.

Fixes #11463


# 991dadd6 16-Jun-2014 Humdinger <humdingerb@gmail.com>

Make sure there's a space in front of B_UTF8_ELLIPSIS.

As PulkoMandy said in hrev47388: C++11 safe and reads better.


# 85ce1385 28-Dec-2013 Rene Gollent <rene@gollent.com>

StyledEdit: Fix #10349.

Override QuitRequested in FindWindow to notify the parent edit window of the
find window's demise so it can reset its corresponding pointer. Otherwise the
latter will potentially access the invalid pointer in question on subsequent
find requests, leading to potential crashes.


# 579c4d6e 26-Nov-2013 Ezo <ezo.dev@gmail.com>

StyleEdit: non-modal Find/Replace windows implementation

* Switch to non-modal floating windows for Find/Replace dialogs,
preserve parameters of the previous search in this editor session;
* Fixes #10053.

- GCI 2013


# e056d320 25-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

StyledEdit: Use RecentItems helper instead of private impl.

* Switch recent documents list to use RecentItems.h helper instead of
homebrewn implementation;
* Fixes #9999.

- GCI 2013


# 41d5d7c8 22-Oct-2013 Siarzhuk Zharski <imker@gmx.li>

StyledEdit:update status view after document was saved


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


# b97ad336 14-Jun-2013 Jerome Duval <jerome.duval@gmail.com>

StyledEdit: fixed statistics words count.

* Bug #9822 and actual fix suggested by DanielW.


# f74ff8d3 30-Apr-2013 John Scipione <jscipione@gmail.com>

Remove this bit of code from StyledEdit

....as we're gonna do the work in BFilePanel instead.


# 72fb3d39 28-Apr-2013 John Scipione <jscipione@gmail.com>

Remove the alert dialog adjustements, they are now done in BAlert directly

The save panel adjustment has been kept and modified a bit to position the
window nicely. It too uses the BWindow::CenterIn() method that adjusts based
on the screen edges.


# 4122ce2a 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the save panel to the middle of the window as well


# 9e5508fa 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the alert to the middle of the window


# 4a65972a 14-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix GCC2 build. Thanks to John for the warning.


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


# 4755a079 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID992335,CID992334: Check FindRef/String returns

Satisfy Coverity by checking return values of FindRef and FindString
calls for fSavedMessage.

Resolves CID992335 and CID992334.


# 2cfeb3ca 04-Apr-2013 John Scipione <jscipione@gmail.com>

Update StyledEdit to use document background color. Style fixes.

See ticket #5293 Colors_picture2.png


# ad834f73 18-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit:EncodingMenu: autodetect on root menu entry


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

StyledEdit::StatusView Encoding context menu implemented


# c7087c91 09-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

Implement "be:caret_position" document file attribute.

* Use "be:caret_position"document file attribute instead of
"be:line" and "be:selection_{length|offset}" file attributes;
* Fixed code style violations. Thanks to Axel for pointing it out!


# 776c58b2 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


# e55f69fa 26-Dec-2012 Humdinger <humdingerb@gmail.com>

Use "Revert" instead of "OK" as button label.


# 46f1daff 23-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Handle be:line and °K in RefsReceived, store it in file attributes

This work was done during GCI2012

Fixes #4794

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


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


# 0cc8d8ab 10-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Node monitoring and on-the-fly textencoding change

This work is based on the draft node monitoring implementation
created by Vlad Slepukhin during GCI 2012 and includes following:

* Refactoring of the document "Reload" feature - it replaces
"Revert to saved" one because do the same things and a bit more.
Looks like we have to keep "Reload" menu entry alive until
StyledEdit will get more functional Undo/Redo features. Reload
functionality is also heavily used in node monitoring and
on-the-fly text encoding changing. Fixes #6887;

* Support for text encoding on-the-fly switching. This make
life easier for those who lives in countires with multiple
popular 8-bit encodings. Russia is the sample of such
de facto standards' clash (KOI-8R vs CP1251 etc.);

* Node Monitoring support with alerting user in case the file
size or modification time were changed. Another alert is shown
in case edited file was removed or moved outside of the current
volume. Moving file inside of current volume silently changes
references. Choosing "Ignore" will supress new change alerts
until next Reload or Save user request;

* Do not nag user on quiting window with zero-length untitled
document. Not a Big Deal but annoys in some cases using this
editor session as temporary storage.


# 6993d26c 08-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Revert of hrev44979 and real fix for #6453

Thanks Stefano Ceccherini for opening my eyes. ;-)


# 5eb2d70f 08-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Preserve font size on changing font family of selection.

This task was completed during GCI 2012
Fixes #6453

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


# cdf25540 21-Aug-2012 Rene Gollent <anevilyak@gmail.com>

64-bit fixes for StyledEdit.


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


# bed0d738 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Pulling declarations back into loop, plus small style change.

Pointed out by Jérô and John. Thanks,


# 48249b20 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Stylefixes, no functional change.


# a736c8aa 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Patch by x-ist, thanks! Fixes non-terminating ReplaceAll, #8141.


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


# 87162054 06-Apr-2011 Stephan Aßmus <superstippi@gmx.de>

Follow up commit on r41184, which removed the Edit->Clear menu item.
I suppose it was discussed on the i18n list as mentioned in that
commit. However two things, Humdinger: 1) You did not test your commit,
and 2) You did incomplete cleanup. If you had removed the member variable
from the StyledEditWindow header, you would have gotten at least a
compile error. Those things being said, I did not test my changes
either... :-)


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


# 329daa44 04-Apr-2011 Joachim Seemer <humdingerb@googlemail.com>

Changed a few strings as discussed on the i18n mailing list. Added localization of license descriptions in AboutSystem.

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


# 2ee8f3f6 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



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


# 4517bee6 29-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

Use strlcpy not strncopy.


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


# 5b9003c7 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 5899: Move a variable so it does not go out of scope when a pointer to it
is used. In my testing this did not seem to be a problem but it doesn't hurt to
fix it.


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


# ccb22800 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 6931 and 8076: use strncpy for the extremely unlikely case that
B_TRANSLATE("???") returns something larger than the size of name.


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


# 5d67e2ba 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 10412: remove assignments for unused variables.


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


# d2ff9616 29-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that closes ticket #4689 by adding bold/italic
shortcuts to StyledEdit - thanks a lot!
* Minor style changes.


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


# 20631cef 23-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that adds a few more keyboard shortcuts as part
of ticket #4689.


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


# f088cd3e 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect indentation (spaces vs. tabs), thanks korli!


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


# 5188c282 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed private methhods to have an underscore prefix.
* Ordered methods as they are declared in the header.
* Style cleanup.


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


# 15d26d2c 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Tamás Krutki that adds some statistic info to StyledEdit.
Thanks for the patch!


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


# 252999c4 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed CID 461 as well - same thing, only for adding a menu to the save panel.
* The menus are now only created when the menu bar is found.


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


# 6387dbc3 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed potential NULL menuBar. This fixes CID 462.
* Got rid of the global styled_edit_app variable.
* Minor cleanup.


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


# e7d3e55a 04-Jun-2010 Jérôme Duval <korli@users.berlios.de>

Fixed ReplaceAll behavior with mixed styles. Also suppress undo for replacements as it doesn't seem supported by BTextView.


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


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

* Adapted to Ingo's suggestions: used a more descriptive attribute name,
got rid of the superfluous fSaveMessage check in LoadAttrs().
* Also made the attribute name a proper const variable, and renamed it to
kInfoAttributeName.


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


# 906db303 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@36679 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bf722bd 06-May-2010 Axel Dörfler <axeld@pinc-software.de>

* Made the se-info attribute endian-aware.
* Check in LoadAttrs() if the new frame looks valid, and fits on screen, and
ignore it if not.
* Moved static helper function out of the class definition.


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


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

* Applied patch by x-ist that adds StyledEdit storing its window position and
size per document in a se-info attribute.
* Minor style changes.


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


# 77b20801 10-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* StyledEdit now checks the file permissions before writing it (bug #5521). An alert asks the user in case if not writable.


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


# f0da038e 27-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by mt : localize stylededit. Thanks !


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


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 13e9a630 10-May-2009 Jonas Sundström <jonas@kirilla.com>

Make StyledEdit check its open windows before launching a new one for an entry_ref. Simplify the application class somewhat by removing DispatchMessage() and replacing the custom made ArgvReceivedEx() with a standard ArgvReceived(). Rely on BPath to take care of paths relative to the current working directory - don't do it manually.

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


# 12483e3c 02-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit didn't clear the marks on the Font Styles in the font menu.
It resulted in several bogus checkmarks. (ticket #2984)

Also, The last font was always checked by default. The error was that
instead than Marking the "left align" item, it was checking that font because
of the wrong variable used.


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


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

* Removed the line view again. Sorry, but this is pretty useless, had a small
fixed size, didn't follow our coding style, etc.
* I did not remove the back-end code in the StyledEditView, though (nor did I
had a look at it for coding style violations :-)).


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


# 8e26769c 29-Mar-2009 Rene Gollent <anevilyak@gmail.com>

Patch by Bryce Groff: add line number display to StyledEdit. Fixes ticket #2623. It does however expose an interesting curiosity in BTextView - CurrentLine() does not count a line until it's actually had some text put into it (i.e. simply hitting enter at the last line of the doc does not increment the number that CurrentLine() returns. Is this an oversight or does R5 behave this way also?



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


# f5c4a083 11-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup.


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


# 6cd5f90f 08-Nov-2008 Jérôme Duval <korli@users.berlios.de>

StyledEdit now alerts with "unsupported format" instead of "Bad argument type passed to function" (bug #3071)
OpenFile() now returns early when the format is unsupported (don't add the document to recent documents, don't allow to save the document) (bug #3072)


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


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

BFilePanel doesn't take ownership of the passed entry_ref. That code wouldn't have worked anyway, since FindRef() returns B_OK on success. CID 933

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


# 10c45684 28-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* remove messenger leak in save panel
* tell something if saving a file fails before it gets to TranslationUtils, fixes #2612



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


# 4f3736d7 26-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* show the config job panel, even if no page setup was already performed
this avoids to multiple window popup for page settings and job settings

* Note: this shows the painting regression introduced with r26665, see task #2534



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


# 9e8c301a 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* fix of by one error, makes printing of ranges work properly



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


# 14ea5e5e 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* whitespace cleanup



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


# cbcae6ef 12-Oct-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

StyledEdit didn't print anything if there's only one line (bug #1288).
Note, though, that printing in StyledEdit is still very much broken.
Often it prints only the current page, for example.


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


# b40c9906 04-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Additional style fixes from Julun: adding back the virtual keyword, moving the
commas on class member initializers, fixing a typo. Thanks!


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


# f303cd6c 03-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Applied patch from "HOST", with a few small style fixes myself.


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


# 66eba86f 16-May-2007 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Jonas Sundstrom: fixed the usage of B_UTF8_ELLIPSIS hopefully
everywhere in the tree.
* Added the ellipsis to "About Haiku" in Deskbar as well.
* Minor cleanup of Deskbar's StatusView.cpp


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


# 56a7c23d 02-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* StyledEditWindow::_LoadFile() now traverses symlinks when opening a file.
This fixes bug #593.
* No longer opens an empty document for every non existing path - it now only
opens a new document if there is none yet.
* No longer open an empty document for non existing files - instead, it just
passes the ref to StyledEditApp::OpenDocument(). StyledEditWindow::_LoadFile()
now treats those files gently as well, so that you can create new documents
via StyledEdit as on BeOS without getting annoyed too much.


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


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

* Fixed some minor bugs and oddities, improved error messages.
* Big-time cleanup, added license.


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


# 9a9f64e1 01-Apr-2004 shatty <shatty@nowhere.fake>

use BFilePanel::SetSaveText which selects the filename


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


# 6f9a2da3 25-Jan-2004 shatty <shatty@nowhere.fake>

DarkWyrm feature request: keyboard short for Save As... command-shift-s


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


# 6e6e1d64 26-Nov-2003 DarkWyrm <darkwyrm@gmail.com>

With shatty's permission, added a patch to allow for opening a file by dropping it on the main window


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


# b1551603 01-Sep-2003 shatty <shatty@nowhere.fake>

remove unused variables


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


# d727a85b 10-Aug-2003 shatty <shatty@nowhere.fake>

null settings reveal improper ownership bugs which are now fixed, no more luck needed, fixed a missing delete in destructor


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


# c7e570eb 10-Aug-2003 shatty <shatty@nowhere.fake>

SetSettings turns over ownership to the BMessage so we null out our field to ensure we do not accidently use it later


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


# 4fd52066 08-Aug-2003 shatty <shatty@nowhere.fake>

strange sanity check required


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


# aa9dc9ea 08-Aug-2003 shatty <shatty@nowhere.fake>

disabled find next and replace same when no text has been found or replaced yet, enabled them when that occurs. also fixed replace all so it does not dirty the window if it fails to replace anything.


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


# bed4e0fb 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed the save as case as well


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


# 82928e6a 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed close click save does not save bug


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


# 65035166 31-Jul-2003 shatty <shatty@nowhere.fake>

improve feedback and add shortcuts for alerts


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


# 12dc86bf 31-Jul-2003 shatty <shatty@nowhere.fake>

fix typo in checkin


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


# e4f90625 31-Jul-2003 shatty <shatty@nowhere.fake>

fixed the "find does not work" bug on newly opened files by setting the cursor to the start of the file on opening


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


# cf629a40 31-Jul-2003 shatty <shatty@nowhere.fake>

at least tell the user that saving failed, if writing the file did, all the other returns should notify as well but I am tired and it is time to sleep :-P


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


# 31cd62fb 31-Jul-2003 shatty <shatty@nowhere.fake>

more and more error checks and helpful dialogs explaining what is happening when things go bad


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


# af78ee48 27-Jul-2003 shatty <shatty@nowhere.fake>

added 11 font size at Konrads request


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


# e59c7b66 27-Jul-2003 shatty <shatty@nowhere.fake>

fixed annoying print before page setup aborts print bug


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


# 27f0ec2d 27-Jul-2003 shatty <shatty@nowhere.fake>

print selected pages working better now


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


# a8c26b3b 27-Jul-2003 shatty <shatty@nowhere.fake>

pixel perfect printing?


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


# a50cf5ac 27-Jul-2003 shatty <shatty@nowhere.fake>

perfect print #1


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


# 46555d8f 26-Jul-2003 shatty <shatty@nowhere.fake>

changed to use new BCharacterSet and BCharacterSetRoster from support kit. because libtextencoding.so is not finished yet it uses those sources directly instead of the library.


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


# 62df02c3 15-Jul-2003 shatty <shatty@nowhere.fake>

set changes monitoring on return by error


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


# 670567f9 05-Jul-2003 shatty <shatty@nowhere.fake>

moved encoding handling into StyledEditView and began reading the be:encoding attribute


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


# a1a68508 05-Jul-2003 shatty <shatty@nowhere.fake>

working save as encoding


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


# 0b2e176d 04-Jul-2003 shatty <shatty@nowhere.fake>

second encodings menu up for save as with field


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


# e6903129 04-Jul-2003 shatty <shatty@nowhere.fake>

first start encodings menu up for save as


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


# 9e159bcf 07-Dec-2002 shatty <shatty@nowhere.fake>

update the alignment menu based on the current alignment of the text view


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


# c4df8d57 06-Dec-2002 shatty <shatty@nowhere.fake>

fixed erroneous deleting of print settings BMessage and changed fMenuBar to fFontMenu to fix crashing in font settings


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


# d470934c 22-Nov-2002 shatty <shatty@nowhere.fake>

fixed changing color reset font bug and made the menus update for font and family and font size


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


# 87765587 22-Nov-2002 shatty <shatty@nowhere.fake>

update font menu for color based on selection or cursor location


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


# 8f63353b 22-Nov-2002 shatty <shatty@nowhere.fake>

lots of font related changes to reduce memory consumption and speed up initialization. also fixes for word wrapping screen width.


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


# 0b46ec98 21-Nov-2002 shatty <shatty@nowhere.fake>

improved soft wrapping, now saves alignment and wrapping states


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


# 6cd1da58 20-Nov-2002 shatty <shatty@nowhere.fake>

set the default save as directory appropriately


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


# e2344ee2 20-Nov-2002 shatty <shatty@nowhere.fake>

fix command line execution - thanks BGA


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


# 5f5bb7d7 06-Nov-2002 shatty <shatty@nowhere.fake>

disable undo after font actions


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


# 80f5cbb0 06-Nov-2002 shatty <shatty@nowhere.fake>

I think replace all is fixed now?


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


# 7c7e9acd 07-Nov-2002 shatty <shatty@nowhere.fake>

replace all still has problems but I am sleepy...


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


# a4948226 06-Nov-2002 shatty <shatty@nowhere.fake>

font operations now make the document unclean. they can't be undone, but R5 doesn't let you undo them either.


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


# 844ea151 06-Nov-2002 shatty <shatty@nowhere.fake>

added encodings menu for save and open file panel (not functional yet)


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


# a445cd42 06-Nov-2002 shatty <shatty@nowhere.fake>

recent menu works. save as puts current name into text field. revert bug fixed.


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


# f4798621 06-Nov-2002 shatty <shatty@nowhere.fake>

revert to saved confirmation dialog added


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


# 47378272 05-Nov-2002 shatty <shatty@nowhere.fake>

pixel tweaks


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


# ed48868f 05-Nov-2002 shatty <shatty@nowhere.fake>

style cleanup ; undo, revert, redo, save, quit functions fixed up ; no more extra windows ; quit when all windows are closed ; fix grey lines when scrolling


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


# 10beef3e 04-Nov-2002 shatty <shatty@nowhere.fake>

made open into a submenu, changed case of Save As


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


# 15db9de0 03-Nov-2002 shatty <shatty@nowhere.fake>

patches from Mattias Sundblad


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


# 3e81831b 26-Sep-2002 shatty <shatty@nowhere.fake>

Fixed newline at end of files.


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


# f7afd44b 23-Sep-2002 Phil Greenway <sikosis@gmail.com>

Initial Check in. Coded by Mattias Sundblad.


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


# e62d9cf8c568e4fd2c80e163cbdae5a4376e898f 30-Jun-2015 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit: Rework of the font color system

1) The default font color is now B_DOCUMENT_TEXT_COLOR
2) The font color menu now shows a palette
3) The font color menu now includes a "default" item, set
to B_DOCUMENT_TEXT_COLOR
4) Added a Todo mentionning it would be ideal to not save the default color
itself, but instead saving the fact the default color was used. Maybe allow the
StyleBuffer to use a Null color or something similar.


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

StyledEdit: add navigation menu to status bar.

* Fix #12099.


# 29bce877071294445ba4aa055c56dfa893a1a59c 13-Nov-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

StyledEdit: ensure caret position gets set correctly

* When opening documents without be:caret_position,
StyledEdit would place the cursor at the end of
the file. _LoadAttrs() intended to set it to the
beginning; however, a check for an existing BRect
for positioning the window would return early,
preventing the caret position to be set.

Fixes #11463


# 991dadd6324f7b7a68e94743a39ebae789823228 16-Jun-2014 Humdinger <humdingerb@gmail.com>

Make sure there's a space in front of B_UTF8_ELLIPSIS.

As PulkoMandy said in hrev47388: C++11 safe and reads better.


# 85ce13855746c2548343883e7d9efd16349875c2 28-Dec-2013 Rene Gollent <rene@gollent.com>

StyledEdit: Fix #10349.

Override QuitRequested in FindWindow to notify the parent edit window of the
find window's demise so it can reset its corresponding pointer. Otherwise the
latter will potentially access the invalid pointer in question on subsequent
find requests, leading to potential crashes.


# 579c4d6e5f3bcb12e1fd9d7a5c1808602b5f3a58 26-Nov-2013 Ezo <ezo.dev@gmail.com>

StyleEdit: non-modal Find/Replace windows implementation

* Switch to non-modal floating windows for Find/Replace dialogs,
preserve parameters of the previous search in this editor session;
* Fixes #10053.

- GCI 2013


# e056d320272e8728f032758d48b9dd1f0ac58891 25-Nov-2013 Freeman Lou <freemanlou2430@Yahoo.com>

StyledEdit: Use RecentItems helper instead of private impl.

* Switch recent documents list to use RecentItems.h helper instead of
homebrewn implementation;
* Fixes #9999.

- GCI 2013


# 41d5d7c87d9313b0f5c9b4e48324140673c273b4 22-Oct-2013 Siarzhuk Zharski <imker@gmx.li>

StyledEdit:update status view after document was saved


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


# b97ad33697764fb805e7419f382e28b37f0f8a75 14-Jun-2013 Jerome Duval <jerome.duval@gmail.com>

StyledEdit: fixed statistics words count.

* Bug #9822 and actual fix suggested by DanielW.


# f74ff8d324ac79b64713d7b52e6ec7c26dc1896a 30-Apr-2013 John Scipione <jscipione@gmail.com>

Remove this bit of code from StyledEdit

....as we're gonna do the work in BFilePanel instead.


# 72fb3d3984850bbc56838a6fde14f096285201b2 28-Apr-2013 John Scipione <jscipione@gmail.com>

Remove the alert dialog adjustements, they are now done in BAlert directly

The save panel adjustment has been kept and modified a bit to position the
window nicely. It too uses the BWindow::CenterIn() method that adjusts based
on the screen edges.


# 4122ce2aff2d004bd1570d9aa680849cbaf10766 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the save panel to the middle of the window as well


# 9e5508fab4d41233873460d65021166f5c228fed 19-Apr-2013 John Scipione <jscipione@gmail.com>

Move the alert to the middle of the window


# 4a65972ac4939f63c0ea05ef4465a59e5aa8a553 14-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix GCC2 build. Thanks to John for the warning.


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


# 4755a0794e5a640c98b51256e8580a37d4b83190 05-Apr-2013 Siarzhuk Zharski <zharik@gmx.li>

Fix CID992335,CID992334: Check FindRef/String returns

Satisfy Coverity by checking return values of FindRef and FindString
calls for fSavedMessage.

Resolves CID992335 and CID992334.


# 2cfeb3ca9cf0e90a154133fb14d9edf3f9fbad54 04-Apr-2013 John Scipione <jscipione@gmail.com>

Update StyledEdit to use document background color. Style fixes.

See ticket #5293 Colors_picture2.png


# ad834f7320d508dc5991adcef2f10e3fd37fca9d 18-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

StyledEdit:EncodingMenu: autodetect on root menu entry


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

StyledEdit::StatusView Encoding context menu implemented


# c7087c91837c663ba6794265914f5c408c4f3375 09-Jan-2013 Siarzhuk Zharski <zharik@gmx.li>

Implement "be:caret_position" document file attribute.

* Use "be:caret_position"document file attribute instead of
"be:line" and "be:selection_{length|offset}" file attributes;
* Fixed code style violations. Thanks to Axel for pointing it out!


# 776c58b2b56d8bcf33638a2ecb6c697f95a1cbf3 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


# e55f69faf9feee4a8d2d6f0f1d03038f9f1b97a1 26-Dec-2012 Humdinger <humdingerb@gmail.com>

Use "Revert" instead of "OK" as button label.


# 46f1daff68176b7e003ddae46fce11f4b92340dd 23-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Handle be:line and °K in RefsReceived, store it in file attributes

This work was done during GCI2012

Fixes #4794

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


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


# 0cc8d8ab3e4ac684e0ac1c8d6b5b45046b8f6bea 10-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Node monitoring and on-the-fly textencoding change

This work is based on the draft node monitoring implementation
created by Vlad Slepukhin during GCI 2012 and includes following:

* Refactoring of the document "Reload" feature - it replaces
"Revert to saved" one because do the same things and a bit more.
Looks like we have to keep "Reload" menu entry alive until
StyledEdit will get more functional Undo/Redo features. Reload
functionality is also heavily used in node monitoring and
on-the-fly text encoding changing. Fixes #6887;

* Support for text encoding on-the-fly switching. This make
life easier for those who lives in countires with multiple
popular 8-bit encodings. Russia is the sample of such
de facto standards' clash (KOI-8R vs CP1251 etc.);

* Node Monitoring support with alerting user in case the file
size or modification time were changed. Another alert is shown
in case edited file was removed or moved outside of the current
volume. Moving file inside of current volume silently changes
references. Choosing "Ignore" will supress new change alerts
until next Reload or Save user request;

* Do not nag user on quiting window with zero-length untitled
document. Not a Big Deal but annoys in some cases using this
editor session as temporary storage.


# 6993d26c7abec2a48764a85260b0190933dd179b 08-Dec-2012 Siarzhuk Zharski <zharik@gmx.li>

Revert of hrev44979 and real fix for #6453

Thanks Stefano Ceccherini for opening my eyes. ;-)


# 5eb2d70fa786defcfd712bcf9d596af01288a08f 08-Dec-2012 Vlad Slepukhin <slp.vld@gmail.com>

Preserve font size on changing font family of selection.

This task was completed during GCI 2012
Fixes #6453

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


# cdf25540df17e3fbb706d1c98c447689e8be4fe4 21-Aug-2012 Rene Gollent <anevilyak@gmail.com>

64-bit fixes for StyledEdit.


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


# bed0d7384bb16feb34e1e1d84fcd50039159d99c 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Pulling declarations back into loop, plus small style change.

Pointed out by Jérô and John. Thanks,


# 48249b20646d5a6a58b084eee73827953df407ca 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Stylefixes, no functional change.


# a736c8aa6bdaaba029f8f651f6018422697478e9 25-Jul-2012 Humdinger <humdingerb@gmail.com>

Patch by x-ist, thanks! Fixes non-terminating ReplaceAll, #8141.


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


# 871620540d2b64748aa18eb1b96ad3fd2c1fc0d8 06-Apr-2011 Stephan Aßmus <superstippi@gmx.de>

Follow up commit on r41184, which removed the Edit->Clear menu item.
I suppose it was discussed on the i18n list as mentioned in that
commit. However two things, Humdinger: 1) You did not test your commit,
and 2) You did incomplete cleanup. If you had removed the member variable
from the StyledEditWindow header, you would have gotten at least a
compile error. Those things being said, I did not test my changes
either... :-)


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


# 329daa448d02cf0f291a45f61a2e16c1b87834ea 04-Apr-2011 Joachim Seemer <humdingerb@googlemail.com>

Changed a few strings as discussed on the i18n mailing list. Added localization of license descriptions in AboutSystem.

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


# 2ee8f3f65fdeb106272bd3a195898778c86abf27 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



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


# 4517bee6c00d4fe1d29990824936ce3c08f58282 29-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

Use strlcpy not strncopy.


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


# 5b9003c79e1babe0c31b8aae2660dacc55653b42 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 5899: Move a variable so it does not go out of scope when a pointer to it
is used. In my testing this did not seem to be a problem but it doesn't hurt to
fix it.


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


# ccb228004ce59897b0aa98fab95886ff30cef00f 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 6931 and 8076: use strncpy for the extremely unlikely case that
B_TRANSLATE("???") returns something larger than the size of name.


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


# 5d67e2ba0556eccb04f82f5fa647e4d69e406e4c 28-Dec-2010 Ryan Leavengood <leavengood@gmail.com>

CID 10412: remove assignments for unused variables.


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


# d2ff9616c8a53f5b786d35a7a9b820267c4a39b4 29-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that closes ticket #4689 by adding bold/italic
shortcuts to StyledEdit - thanks a lot!
* Minor style changes.


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


# 20631cef4cce8a3081981d4f870e113a68b685f3 23-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by negusnyul that adds a few more keyboard shortcuts as part
of ticket #4689.


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


# f088cd3e6e308fc1870ebe400e6a437510d5953c 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect indentation (spaces vs. tabs), thanks korli!


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


# 5188c282ad822fc0b909f9f9cd02f84c63f00b74 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Renamed private methhods to have an underscore prefix.
* Ordered methods as they are declared in the header.
* Style cleanup.


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


# 15d26d2cef29a05bcf4a1ad70722e04992b22c02 20-Nov-2010 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Tamás Krutki that adds some statistic info to StyledEdit.
Thanks for the patch!


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


# 252999c4e26d7ef6dde45bfe731bab673158e0ca 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed CID 461 as well - same thing, only for adding a menu to the save panel.
* The menus are now only created when the menu bar is found.


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


# 6387dbc3f2970af20ced63336595de17e35d873f 30-Aug-2010 Axel Dörfler <axeld@pinc-software.de>

* Fixed potential NULL menuBar. This fixes CID 462.
* Got rid of the global styled_edit_app variable.
* Minor cleanup.


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


# e7d3e55ad60a62998aa0fbb10ac2bc93b2be1033 04-Jun-2010 Jérôme Duval <korli@users.berlios.de>

Fixed ReplaceAll behavior with mixed styles. Also suppress undo for replacements as it doesn't seem supported by BTextView.


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


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

* Adapted to Ingo's suggestions: used a more descriptive attribute name,
got rid of the superfluous fSaveMessage check in LoadAttrs().
* Also made the attribute name a proper const variable, and renamed it to
kInfoAttributeName.


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


# 906db3030bf4c91a82835d8609b10bc38f55f602 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@36679 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9bf722bd79fdbaea96eb723da20801f0ae9b61a4 06-May-2010 Axel Dörfler <axeld@pinc-software.de>

* Made the se-info attribute endian-aware.
* Check in LoadAttrs() if the new frame looks valid, and fits on screen, and
ignore it if not.
* Moved static helper function out of the class definition.


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


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

* Applied patch by x-ist that adds StyledEdit storing its window position and
size per document in a se-info attribute.
* Minor style changes.


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


# 77b2080187a845bfb08f38e394fb256eaf6c54e6 10-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* StyledEdit now checks the file permissions before writing it (bug #5521). An alert asks the user in case if not writable.


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


# f0da038e3de65f8d2e9cf5fbd69becad35c267d1 27-Feb-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Patch by mt : localize stylededit. Thanks !


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


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


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


# 13e9a630b9e5460c2c1798f6b9a1864b3f42984a 10-May-2009 Jonas Sundström <jonas@kirilla.com>

Make StyledEdit check its open windows before launching a new one for an entry_ref. Simplify the application class somewhat by removing DispatchMessage() and replacing the custom made ArgvReceivedEx() with a standard ArgvReceived(). Rely on BPath to take care of paths relative to the current working directory - don't do it manually.

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


# 12483e3cbfea89cad0408a50fd4d9bc0f00d0756 02-May-2009 Philippe Saint-Pierre <stpere@gmail.com>

StyledEdit didn't clear the marks on the Font Styles in the font menu.
It resulted in several bogus checkmarks. (ticket #2984)

Also, The last font was always checked by default. The error was that
instead than Marking the "left align" item, it was checking that font because
of the wrong variable used.


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


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

* Removed the line view again. Sorry, but this is pretty useless, had a small
fixed size, didn't follow our coding style, etc.
* I did not remove the back-end code in the StyledEditView, though (nor did I
had a look at it for coding style violations :-)).


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


# 8e26769c8b0451466b4334a54403c5f29277b358 29-Mar-2009 Rene Gollent <anevilyak@gmail.com>

Patch by Bryce Groff: add line number display to StyledEdit. Fixes ticket #2623. It does however expose an interesting curiosity in BTextView - CurrentLine() does not count a line until it's actually had some text put into it (i.e. simply hitting enter at the last line of the doc does not increment the number that CurrentLine() returns. Is this an oversight or does R5 behave this way also?



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


# f5c4a083572c6811780c3196145e3fea52da2001 11-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Actually show the error that happened - are we Windows or what?
* Automatic whitespace cleanup.


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


# 6cd5f90f73c4e2e6c02b81dd9607db0ea9d64099 08-Nov-2008 Jérôme Duval <korli@users.berlios.de>

StyledEdit now alerts with "unsupported format" instead of "Bad argument type passed to function" (bug #3071)
OpenFile() now returns early when the format is unsupported (don't add the document to recent documents, don't allow to save the document) (bug #3072)


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


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

BFilePanel doesn't take ownership of the passed entry_ref. That code wouldn't have worked anyway, since FindRef() returns B_OK on success. CID 933

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


# 10c45684eaaef5afd7f6639db1cbd05a17a73e59 28-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* remove messenger leak in save panel
* tell something if saving a file fails before it gets to TranslationUtils, fixes #2612



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


# 4f3736d7b6ce7a1455e2c9e1aba9e2380826231b 26-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* show the config job panel, even if no page setup was already performed
this avoids to multiple window popup for page settings and job settings

* Note: this shows the painting regression introduced with r26665, see task #2534



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


# 9e8c301a39ee959bd60c35f8d19bae8bb8511ded 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* fix of by one error, makes printing of ranges work properly



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


# 14ea5e5e98ab4e46e9bb58f292fc10ad8c5f0049 05-Aug-2008 Karsten Heimrich <host.haiku@gmx.de>

* whitespace cleanup



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


# cbcae6ef9b6bc0dea7841f84102b99a296b820e7 12-Oct-2007 Stefano Ceccherini <stefano.ceccherini@gmail.com>

StyledEdit didn't print anything if there's only one line (bug #1288).
Note, though, that printing in StyledEdit is still very much broken.
Often it prints only the current page, for example.


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


# b40c9906279a60165875c8c968c4acca5d39de93 04-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Additional style fixes from Julun: adding back the virtual keyword, moving the
commas on class member initializers, fixing a typo. Thanks!


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


# f303cd6cc2bb3c3f415ca7083e2b90c720d99fa9 03-Sep-2007 Ryan Leavengood <leavengood@gmail.com>

Applied patch from "HOST", with a few small style fixes myself.


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


# 66eba86f4b3c2eef6462d090e93245fc60d7127b 16-May-2007 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by Jonas Sundstrom: fixed the usage of B_UTF8_ELLIPSIS hopefully
everywhere in the tree.
* Added the ellipsis to "About Haiku" in Deskbar as well.
* Minor cleanup of Deskbar's StatusView.cpp


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


# 56a7c23d08827465e53e93ac452d436fbaf6ef7b 02-Jun-2006 Axel Dörfler <axeld@pinc-software.de>

* StyledEditWindow::_LoadFile() now traverses symlinks when opening a file.
This fixes bug #593.
* No longer opens an empty document for every non existing path - it now only
opens a new document if there is none yet.
* No longer open an empty document for non existing files - instead, it just
passes the ref to StyledEditApp::OpenDocument(). StyledEditWindow::_LoadFile()
now treats those files gently as well, so that you can create new documents
via StyledEdit as on BeOS without getting annoyed too much.


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


# 31139022cd3056691fc8d6f64b2d9ffa9a101de3 10-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

* Fixed some minor bugs and oddities, improved error messages.
* Big-time cleanup, added license.


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


# 9a9f64e114d09cbeb07f8dd1d76fdb31dd1f7988 01-Apr-2004 shatty <shatty@nowhere.fake>

use BFilePanel::SetSaveText which selects the filename


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


# 6f9a2da3405e2a67e57820564e022d517da3b6a8 25-Jan-2004 shatty <shatty@nowhere.fake>

DarkWyrm feature request: keyboard short for Save As... command-shift-s


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


# 6e6e1d6443a79f127d769f02aa5a52dc94f11cd5 26-Nov-2003 DarkWyrm <darkwyrm@gmail.com>

With shatty's permission, added a patch to allow for opening a file by dropping it on the main window


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


# b15516030c2310c55194100d73786f9ef170230c 01-Sep-2003 shatty <shatty@nowhere.fake>

remove unused variables


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


# d727a85b3b3210aca4b9304c60ed8c6a46f21efc 10-Aug-2003 shatty <shatty@nowhere.fake>

null settings reveal improper ownership bugs which are now fixed, no more luck needed, fixed a missing delete in destructor


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


# c7e570eb7f3ed069bbbfdaf1bf3f381f632ba711 10-Aug-2003 shatty <shatty@nowhere.fake>

SetSettings turns over ownership to the BMessage so we null out our field to ensure we do not accidently use it later


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


# 4fd520663000582e73454172b1c6fcdaaed4ac24 08-Aug-2003 shatty <shatty@nowhere.fake>

strange sanity check required


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


# aa9dc9ead80e57598ba31ac74ed7c18880192919 08-Aug-2003 shatty <shatty@nowhere.fake>

disabled find next and replace same when no text has been found or replaced yet, enabled them when that occurs. also fixed replace all so it does not dirty the window if it fails to replace anything.


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


# bed4e0fbf1afac6504cd8a35eea6d337ed9f9879 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed the save as case as well


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


# 82928e6a50b1f6f3ef676ccea1493323d05b63a6 07-Aug-2003 shatty <shatty@nowhere.fake>

fixed close click save does not save bug


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


# 65035166ae9d3cab84d83b74f3afa543d89f5e11 31-Jul-2003 shatty <shatty@nowhere.fake>

improve feedback and add shortcuts for alerts


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


# 12dc86bf35f653f7c6d7071451f507041a88d3f1 31-Jul-2003 shatty <shatty@nowhere.fake>

fix typo in checkin


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


# e4f90625cc3beb863b81730d83216f72f121b031 31-Jul-2003 shatty <shatty@nowhere.fake>

fixed the "find does not work" bug on newly opened files by setting the cursor to the start of the file on opening


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


# cf629a4037eccffe382000469f94fb7535b0c4e6 31-Jul-2003 shatty <shatty@nowhere.fake>

at least tell the user that saving failed, if writing the file did, all the other returns should notify as well but I am tired and it is time to sleep :-P


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


# 31cd62fb1e1526f6572ea784369e1ac40cde7858 31-Jul-2003 shatty <shatty@nowhere.fake>

more and more error checks and helpful dialogs explaining what is happening when things go bad


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


# af78ee4866c540a18deff6025732af3c296e9767 27-Jul-2003 shatty <shatty@nowhere.fake>

added 11 font size at Konrads request


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


# e59c7b66eaee45895be4e9e66d4cc30dc22277e1 27-Jul-2003 shatty <shatty@nowhere.fake>

fixed annoying print before page setup aborts print bug


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


# 27f0ec2d65efa8077fe321c946b8b9f339caf8a2 27-Jul-2003 shatty <shatty@nowhere.fake>

print selected pages working better now


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


# a8c26b3b30b3399dcb1f68ab119cb01fd444bc2a 27-Jul-2003 shatty <shatty@nowhere.fake>

pixel perfect printing?


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


# a50cf5ac37531a214bf811c27b839186c2e35ae6 27-Jul-2003 shatty <shatty@nowhere.fake>

perfect print #1


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


# 46555d8f436bd50ad3a657c87c8db6b6b3a3fd99 26-Jul-2003 shatty <shatty@nowhere.fake>

changed to use new BCharacterSet and BCharacterSetRoster from support kit. because libtextencoding.so is not finished yet it uses those sources directly instead of the library.


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


# 62df02c3e6ba1da44075387cef356d32f14bcba1 15-Jul-2003 shatty <shatty@nowhere.fake>

set changes monitoring on return by error


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


# 670567f9d4b17d6a7b0ef7bdbc9834b56890d7de 05-Jul-2003 shatty <shatty@nowhere.fake>

moved encoding handling into StyledEditView and began reading the be:encoding attribute


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


# a1a685089bf7832d3eccea564e632676797f17b0 05-Jul-2003 shatty <shatty@nowhere.fake>

working save as encoding


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


# 0b2e176dc0e6d07f3a383d777bb46ec08c7e74c2 04-Jul-2003 shatty <shatty@nowhere.fake>

second encodings menu up for save as with field


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


# e6903129a7093378016c800236dd47b175056ff9 04-Jul-2003 shatty <shatty@nowhere.fake>

first start encodings menu up for save as


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


# 9e159bcf9aadc7468ec46ca08a25519986b6a205 07-Dec-2002 shatty <shatty@nowhere.fake>

update the alignment menu based on the current alignment of the text view


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


# c4df8d57dfbf2b39650916514006bc2c403da31c 06-Dec-2002 shatty <shatty@nowhere.fake>

fixed erroneous deleting of print settings BMessage and changed fMenuBar to fFontMenu to fix crashing in font settings


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


# d470934c958d734cbc2f83f079aad3f79ceb57b3 22-Nov-2002 shatty <shatty@nowhere.fake>

fixed changing color reset font bug and made the menus update for font and family and font size


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


# 87765587633d485d4aec7d68bb116e1a51ed777a 22-Nov-2002 shatty <shatty@nowhere.fake>

update font menu for color based on selection or cursor location


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


# 8f63353baff01e03aaeb5a26b04988fd588a0074 22-Nov-2002 shatty <shatty@nowhere.fake>

lots of font related changes to reduce memory consumption and speed up initialization. also fixes for word wrapping screen width.


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


# 0b46ec9848d666ead1fbdf4bdff9cb50182d5213 21-Nov-2002 shatty <shatty@nowhere.fake>

improved soft wrapping, now saves alignment and wrapping states


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


# 6cd1da58bac058a832fc0a7d665dad16c60af5d4 20-Nov-2002 shatty <shatty@nowhere.fake>

set the default save as directory appropriately


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


# e2344ee25b9250db74573c7a3c6ae7e201848730 20-Nov-2002 shatty <shatty@nowhere.fake>

fix command line execution - thanks BGA


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


# 5f5bb7d7ebf667cbd59cc2cde1a5366a13db29de 06-Nov-2002 shatty <shatty@nowhere.fake>

disable undo after font actions


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


# 80f5cbb0a5d28dd31cae56979cbfeb96c49268a6 06-Nov-2002 shatty <shatty@nowhere.fake>

I think replace all is fixed now?


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


# 7c7e9acdade766c6fff7536607ffa0a4acd3e5a9 07-Nov-2002 shatty <shatty@nowhere.fake>

replace all still has problems but I am sleepy...


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


# a49482266aa609a23b6fc13dca407a3a530a9b2d 06-Nov-2002 shatty <shatty@nowhere.fake>

font operations now make the document unclean. they can't be undone, but R5 doesn't let you undo them either.


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


# 844ea151d043b34012933b62f091f1c6f15be5d1 06-Nov-2002 shatty <shatty@nowhere.fake>

added encodings menu for save and open file panel (not functional yet)


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


# a445cd428f49ab78da3ffe56a060834a72a3d3c6 06-Nov-2002 shatty <shatty@nowhere.fake>

recent menu works. save as puts current name into text field. revert bug fixed.


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


# f47986217ad4d71f9983587fe655020e5a345eb8 06-Nov-2002 shatty <shatty@nowhere.fake>

revert to saved confirmation dialog added


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


# 4737827244b1e3a4f8c8a1d0a483d6345a0d4cf9 05-Nov-2002 shatty <shatty@nowhere.fake>

pixel tweaks


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


# ed48868f638d5129cdd21b59f36e8e227a05aaaa 05-Nov-2002 shatty <shatty@nowhere.fake>

style cleanup ; undo, revert, redo, save, quit functions fixed up ; no more extra windows ; quit when all windows are closed ; fix grey lines when scrolling


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


# 10beef3e411a37652a6da1b361a379162ba46f5d 04-Nov-2002 shatty <shatty@nowhere.fake>

made open into a submenu, changed case of Save As


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


# 15db9de07f4f6a479b8ff7efd403d2fadf93e39f 03-Nov-2002 shatty <shatty@nowhere.fake>

patches from Mattias Sundblad


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


# 3e81831b699f3a9cc95251a27afe42fa12ef8889 26-Sep-2002 shatty <shatty@nowhere.fake>

Fixed newline at end of files.


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


# f7afd44bda63d8eb9a9bc62683fbfc73b6b232b7 23-Sep-2002 Phil Greenway <sikosis@gmail.com>

Initial Check in. Coded by Mattias Sundblad.


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