History log of /haiku/src/apps/stylededit/StyledEditApp.cpp
Revision Date Author Comments
# f638c82a 29-Sep-2016 Adrien Destugues <pulkomandy@pulkomandy.tk>

StyledText: fix reading of utf-8 documents

BNode::ReadAttrString does not check for the attribute to actually be a
string. It will return B_OK (and useless data) if called on a
B_INT32_TYPE attribute. Check the attribute type before reading.

Also remove various debug ouput leftovers.

May fix #12976.


# 7e267cd3 12-Jan-2016 Axel Dörfler <axeld@pinc-software.de>

StyledEdit: Make default window size depend on font size.


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


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


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

Stylefixes, no functional change.


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


# 541ff51a 15-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup BCatalogAddOn.

* rename BCatalogAddOn to BCatalogData, since it doesn't represent an
add-on, but rather the catalog data provided by an add-on
* move BCatalogData out of Catalog.{h,cpp} into its own header and
implementation file
* drop BCatalogData::MarkForTranslation() methods, they're not needed
* drop BCatalog::GetNoAutoCollectString() methods, they're not being
used anywhere
* cleanup the B_TRANSLATE_... macros somewhat
* add versions of the B_TRANSLATE_MARK_... macros that are meant to be
used in void context (when the string isn't being used by the program,
just meant to be picked up by collectcatkeys).
* adjust several apps to use B_TRANSLATE_MARK_..._VOID where needed
* adjust users of BCatalogAddOn accordingly


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

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

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


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

Further localization. Making use of B_TRANSLATE_APP_NAME, AboutWindow. Cleanups. Please review/test changes in Terminal.

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


# be8fa2fb 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# 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


# 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


# 3aa9a863 12-May-2009 Jonas Sundström <jonas@kirilla.com>

Clean up: shortening comment, adding if/else braces. Thanks Axel\!

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


# b8bc570a 11-May-2009 Jonas Sundström <jonas@kirilla.com>

Partial revert. Reimplementing the previous behaviour of accounting for differences in current working directory between the running single-launch process and later invocations of the same, as this is necessary to handle correctly any relative paths given on the command-line. Added comment.

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


# fbc1ca41 01-Nov-2008 François Revol <revol@free.fr>

No need for NULL there.


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


# e2891a43 22-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

Don't leak the argv array that is passed to ArgvReceivedEx(). Its contents
are only used to open supplied files by name, it doesn't take ownership.
Fixes CID 934.


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


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

StyledEdit now makes use of the new BTranslationUtils functions which
simplify the code quite a lot.


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


# 649ddde0 25-Apr-2006 Ryan Leavengood <leavengood@gmail.com>

Fixing bug 541:

The arguments passed on the command-line were not checked if they were files before being opened. This caused StyledEdit to crash if a directory was one of the arguments. Now each argument being passed is checked to see if it is a file before being opened, and if all arguments are directories, an empty document will be opened.


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


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



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


# 338b8dc3 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


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


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

wrapping cascading! okay, i am really wasting my time now... I will go back to terminal I promise.


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


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

exactly duplicate R5 cascade behavior


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


# 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


# 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


# 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


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

open a new empty document on re-launch


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


# 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


# 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


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


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


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

Stylefixes, no functional change.


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


# 541ff51a6ef4c47f8ab105ba6ff895cdbba83aca 15-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup BCatalogAddOn.

* rename BCatalogAddOn to BCatalogData, since it doesn't represent an
add-on, but rather the catalog data provided by an add-on
* move BCatalogData out of Catalog.{h,cpp} into its own header and
implementation file
* drop BCatalogData::MarkForTranslation() methods, they're not needed
* drop BCatalog::GetNoAutoCollectString() methods, they're not being
used anywhere
* cleanup the B_TRANSLATE_... macros somewhat
* add versions of the B_TRANSLATE_MARK_... macros that are meant to be
used in void context (when the string isn't being used by the program,
just meant to be picked up by collectcatkeys).
* adjust several apps to use B_TRANSLATE_MARK_..._VOID where needed
* adjust users of BCatalogAddOn accordingly


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

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

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


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

Further localization. Making use of B_TRANSLATE_APP_NAME, AboutWindow. Cleanups. Please review/test changes in Terminal.

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


# be8fa2fb3088ab1921612b60f352dd9334b40b3d 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# 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


# 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


# 3aa9a863430e04319ddfe1e91fdca3b583c0021e 12-May-2009 Jonas Sundström <jonas@kirilla.com>

Clean up: shortening comment, adding if/else braces. Thanks Axel\!

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


# b8bc570a122998bdc6c03bb4f69863809bf40634 11-May-2009 Jonas Sundström <jonas@kirilla.com>

Partial revert. Reimplementing the previous behaviour of accounting for differences in current working directory between the running single-launch process and later invocations of the same, as this is necessary to handle correctly any relative paths given on the command-line. Added comment.

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


# fbc1ca41967dcd5c768eec057b7ef6bd8dc5fc4d 01-Nov-2008 François Revol <revol@free.fr>

No need for NULL there.


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


# e2891a435a40b50861b14f0c957815829de8c8b8 22-Sep-2008 Michael Lotz <mmlr@mlotz.ch>

Don't leak the argv array that is passed to ArgvReceivedEx(). Its contents
are only used to open supplied files by name, it doesn't take ownership.
Fixes CID 934.


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


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

StyledEdit now makes use of the new BTranslationUtils functions which
simplify the code quite a lot.


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


# 649ddde05f788ed1749b8d3488b03f082bf85a2b 25-Apr-2006 Ryan Leavengood <leavengood@gmail.com>

Fixing bug 541:

The arguments passed on the command-line were not checked if they were files before being opened. This caused StyledEdit to crash if a directory was one of the arguments. Now each argument being passed is checked to see if it is a file before being opened, and if all arguments are directories, an empty document will be opened.


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


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



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


# 338b8dc301721b1f472e8297a898d4eaa2f2ee3a 29-Oct-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Merged changes from branch build_system_redesign at revision 14573.


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


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

wrapping cascading! okay, i am really wasting my time now... I will go back to terminal I promise.


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


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

exactly duplicate R5 cascade behavior


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


# 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


# 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


# 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


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

open a new empty document on re-launch


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


# 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


# 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