History log of /haiku/src/apps/icon-o-matic/gui/SavePanel.cpp
Revision Date Author Comments
# a4e4beaf 18-Jul-2023 Humdinger <humdingerb@gmail.com>

IOM: Localization/String improvements

* Switching mis-used B_TRANSLATE_CONTEXT to B_TRANSLATE_COMMENT
* Use B_TRANSLATE_SYSTEM_NAME for "Icon-O-Matic"
* Remove remnants of old localization system
* Rename "Control Points" to vertex/vertices
* Add a ":" after Undo/Redo
* Sentence casing
* Avoid Yes/No buttons in BAlert

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


# 69b1d7ac 14-Dec-2020 Alexander von Gluck IV <kallisti5@unixzen.com>

apps/icon-o-matic: Fix null pointer dereference in export window

* Bailing early in SavePanel constructor is pretty bad and creates
a bunch of NULL pointers things later try and reference.
* HScrollview and VScrollview no longer exist after migrating to
using the layout kit.

Change-Id: Ia80d68508246f952547fb687e29029304a8ffd1e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3507
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# f4352262 17-Jun-2020 Rob Gill <rrobgill@protonmail.com>

Trivial additions for localization of strings

Signed-off-by: Rob Gill <rrobgill@protonmail.com>
Change-Id: I078f2de99c6461a937f4c645b65d5caf06d54dcb
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2925
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


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

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

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


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


# 493c0c2b 25-Dec-2013 Stephan Aßmus <superstippi@gmx.de>

Icon-O-Matic: Adjust save file panel title as intended.

* SetExportMode() was supposed to toggle the panel title from "*Save*" to
"*Export*", but never called Window()->SetTitle().
* Remove now duplicate translation from constructor.


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

Close alerts with ESCAPE key.

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


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 86ecd6fb 14-Dec-2011 Sergei Reznikov <reznikov.sergei@gmail.com>

Fix casing. I'm sorry for the noise.

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


# 81d084fe 14-Dec-2011 Sergei Reznikov <reznikov.sergei@gmail.com>

Localize title of Save Image dialog.

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


# 97056676 04-Apr-2011 Stephan Aßmus <superstippi@gmx.de>

* Created separate PNG exporters for 16x16, 32x32 and 64x64 sizes.
* When exporting for the first time, use the native saver's file
name to initialize the file panel save text.
* Don't shadow exportMode variable.
* Small cleanups.


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


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

Patch by Dziadek: localize IconOMatic


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


# f6884761 19-Nov-2007 Stephan Aßmus <superstippi@gmx.de>

* add a new export format to get the vector icon data as C source


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


# 664c21b3 15-Dec-2006 Stephan Aßmus <superstippi@gmx.de>

* don't always forget the last export mode in SavePanel
(was only saved when switching from "export" to "save")
* make use of drop index when dragging and dropping paths in
list view


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


# fae6fb6d 19-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

* fixed stupid bug that prevented saving in native format
* fixed bug in RDefExporter
* improved zooming, icon is now centered at program start


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


# 774831e7 16-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

big clean up of Save and Export stuff:
* implemented SavePanel that let's you chose the Export format
* introduced DocumentSaver class and several implementations
* Document no longer remembers any entry_refs, but a native
and export document saver, for other export formats than
HVIF, it is no longer necessary to go through the file panel,
simply invoking Export will do
* this makes it much easier to have a custom saver that sends
a message with an HVIF icon to another app instead of saving
to a file
* cleaned up File menu
* last used export format is persistent


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


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


# 493c0c2b5138585fcac37a0a7906c790981886a3 25-Dec-2013 Stephan Aßmus <superstippi@gmx.de>

Icon-O-Matic: Adjust save file panel title as intended.

* SetExportMode() was supposed to toggle the panel title from "*Save*" to
"*Export*", but never called Window()->SetTitle().
* Remove now duplicate translation from constructor.


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

Close alerts with ESCAPE key.

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


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 86ecd6fba9f1989d000ff6c350f85eddb594c00b 14-Dec-2011 Sergei Reznikov <reznikov.sergei@gmail.com>

Fix casing. I'm sorry for the noise.

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


# 81d084fe141e1ee28b9a787eed5f9b034a6e36f5 14-Dec-2011 Sergei Reznikov <reznikov.sergei@gmail.com>

Localize title of Save Image dialog.

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


# 9705667601610f29e7a9ac65bec273cc198adda6 04-Apr-2011 Stephan Aßmus <superstippi@gmx.de>

* Created separate PNG exporters for 16x16, 32x32 and 64x64 sizes.
* When exporting for the first time, use the native saver's file
name to initialize the file panel save text.
* Don't shadow exportMode variable.
* Small cleanups.


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


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

Patch by Dziadek: localize IconOMatic


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


# f688476148e9a03699ebee673a7568f5a7cb7420 19-Nov-2007 Stephan Aßmus <superstippi@gmx.de>

* add a new export format to get the vector icon data as C source


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


# 664c21b3816749d545be1bf252239de1fdd94396 15-Dec-2006 Stephan Aßmus <superstippi@gmx.de>

* don't always forget the last export mode in SavePanel
(was only saved when switching from "export" to "save")
* make use of drop index when dragging and dropping paths in
list view


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


# fae6fb6d69b20bf18e1bcc51ec1384b1a313d6a3 19-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

* fixed stupid bug that prevented saving in native format
* fixed bug in RDefExporter
* improved zooming, icon is now centered at program start


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


# 774831e7c242f07168f07e1d804d93fe63687702 16-Nov-2006 Stephan Aßmus <superstippi@gmx.de>

big clean up of Save and Export stuff:
* implemented SavePanel that let's you chose the Export format
* introduced DocumentSaver class and several implementations
* Document no longer remembers any entry_refs, but a native
and export document saver, for other export formats than
HVIF, it is no longer necessary to go through the file panel,
simply invoking Export will do
* this makes it much easier to have a custom saver that sends
a message with an HVIF icon to another app instead of saving
to a file
* cleaned up File menu
* last used export format is persistent


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