History log of /haiku/src/apps/packageinstaller/PackageView.cpp
Revision Date Author Comments
# fb4fd84f 15-Oct-2020 Murai Takashi <tmurai01@gmail.com>

packageinstaller: Fix -Wformat-security

Change-Id: I9792b89ed0b59d509f20c43170f806a6168cbf81
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3347
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# f98e331c 26-Jun-2018 Niels Sascha Reedijk <niels.reedijk@gmail.com>

Small spelling fixes. Reported by mazbrili through Pootle. Thanks!


# fa19dd44 10-Dec-2015 looncraz <looncraz@looncraz.net>

apps: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.


# 0cec9e76 26-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

PackageInstaller: use string_for_size instead of a custom function.


# 2824c5d3 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 792a46db 25-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Unbreak selecting custom install folders.

BFilePanel always sends B_CANCEL when it hides (as documented in the BeBook),
not just when the user cancels the file panel. Track what message we expect
and only react to B_CANCEL when it means the user really canceled selecting
the target folder.


# ab29480f 20-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Increase install type description height

* In case the scroll bar needs to appear, it had not enough room.


# e75f469d 19-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Implement John's suggestions
* Rename "Install" button to "Begin" so it matches most packages instructions
at least for the English locale.
* Restore right-alignment of the menu field labels.
* Also move the "Begin" button onto its own line to allow more of the target
folder to be readable on the menu field.


# 1d5c1fc3 18-Feb-2014 John Scipione <jscipione@gmail.com>

packageinstaller: style fixes


# 51f34888 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: More robust way to select destination...
... after file panel is cancelled.


# 1e35b8fc 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Handle aborting the file panel

* Select the first item and reset the path.


# 5da00053 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Improved main window layout

* Moved "Install to:" besides the "Install" button again.
* Don't right-align menu field labels.
* Give the install type description some default text when no description is
given. Give it a smaller font, align with the type menu.


# 4407020b 15-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Install apps to non-packaged "apps" folder.

Previously, the target folder was always unset, which meant one needed
to select a target folder manually. When running from a read-only media,
this would still be a problem (a TODO), so that instead of failing to install
the package, the user is simply prompted for a path.
The change means that together with rewriting old paths to packaged
locations to the non-packaged equivalents, just double clicking a PKG and
hitting "Install" will now work. Tested with Moho installer and
Gobe Productive.


# 735727da 15-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Converted to use layout API

* Also auto-hide vertical scroll-bars when not needed.
* Nicer margins everywhere
* TODO: Install type description could collapse when empty or display
a default message.
* More refactoring and cleanup


# a16a1437 16-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageView: Small coding-style cleanup


# 193a4de1 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageView: Refactored a lot of repetitive code...

... to create menu items.


# 236dd276 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Make window title properly localizeable


# a1b7cb62 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Another round of cleanup.


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


# 3c018b5f 05-Jun-2011 Joachim Seemer <humdingerb@googlemail.com>

Added missing localization macros.+alpha

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


# afa20743 15-Aug-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

prof was dereferenced before checking for NULL. CID 1065


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


# 4a31ed96 09-Aug-2010 DarkWyrm <darkwyrm@gmail.com>

Patch a confusing bug which showed "Replace all" as a choice after choosing to skip files which already exist


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


# eef95624 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@36676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f51cdb44 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Remembered the rule wrong about how many blank lines between copyright and
headers.


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


# 091440e0 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the PackageInstaller. Thanks a lot!
Contains small coding style corrections by myself. Closes ticket #5907.


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


# 1edc8258 03-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by sil2100:
* Avoid showing read-only volumes as possible installation targets.
* Mark the menu item for the first suitable volume that was found.
* Removed no more needed debug output.

Fixes #5231. Thanks a lot!


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


# 9ff2343b 01-Apr-2010 Jérôme Duval <korli@users.berlios.de>

Applied patch by sil2100 that enables handling of script files (bug #3762)


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


# fc11b80c 06-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by sil2100 that basically adds a "Yes to all" button, see
ticket #4059. I fixed a few style violations, though. Thanks!
* Automatic whitespace cleanup.


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


# 78c00a4a 11-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by sil2001 that fixes bug #3666 (handling of existing symlinks).
* Refactored PkgItem classes, and pulled out a PackageItem base class. Renamed
other classes to Package*.
* The ItemExists() method should really get a "Apply this choice to all files"
kind of option...
* Style cleanups.


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


# 0b5e655d 08-Feb-2009 Jérôme Duval <korli@users.berlios.de>

Changed the error message for unreadable packages to be a passive one, as suggested by Stephan.


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


# b97c244e 07-Feb-2009 Jérôme Duval <korli@users.berlios.de>

* exits on invalid packages
* added messages on errors


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


# c9d15f8c 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Duane R. Bailey:
* Replaced occurances of "..." by B_UTF8_ELLIPSIS in the apps folder.


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


# bf86f099 13-Jan-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup


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


# 44f919da 12-Oct-2007 Ryan Leavengood <leavengood@gmail.com>

Adding Łukasz Zemczak's package installer to our tree. This was his Google
Summer of Code project. Thanks for your work Łukasz and I hope we can see
more work from you.

Still to do:
- Create an icon.
- Add pkg files to the MIME database with PackageInstaller as the default
handler. The rdef here has the MIME type name for the pkg format should
anyone else choose to add it :)
- Support for running scripts included with packages.
- Testing various different packages.
- Fixing problems in the Haiku GUI layout system which affect the code used
for various parts of the installer GUI (please bear with the commented out
code for now.)
- Adding this to the image.

Tomorrow I will add Łukasz's InstalledPackages utility which can be used to
view installed packages and uninstall them.


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


# 0cec9e768094d96cf1be95d6358a7e1982250f23 26-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

PackageInstaller: use string_for_size instead of a custom function.


# 2824c5d3a428b1f52fb41e7cf84ef1690cfadc80 24-Nov-2014 Adrien Destugues <pulkomandy@gmail.com>

Fix various typos and inconsistencies in strings

DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.


# 792a46db79db1f22b8183ea6994aac44771147f1 25-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Unbreak selecting custom install folders.

BFilePanel always sends B_CANCEL when it hides (as documented in the BeBook),
not just when the user cancels the file panel. Track what message we expect
and only react to B_CANCEL when it means the user really canceled selecting
the target folder.


# ab29480f78006f475603a8d247288c8745511472 20-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Increase install type description height

* In case the scroll bar needs to appear, it had not enough room.


# e75f469d340f4edc08d3fa297bef05f46e29c30c 19-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Implement John's suggestions
* Rename "Install" button to "Begin" so it matches most packages instructions
at least for the English locale.
* Restore right-alignment of the menu field labels.
* Also move the "Begin" button onto its own line to allow more of the target
folder to be readable on the menu field.


# 1d5c1fc35d04f9daf080bb5005674c89a05c5542 18-Feb-2014 John Scipione <jscipione@gmail.com>

packageinstaller: style fixes


# 51f34888d923ddb28af4ce6dc6f117629a3bbc24 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: More robust way to select destination...
... after file panel is cancelled.


# 1e35b8fc96f5c5e5d8398555a05115a8744af6d9 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Handle aborting the file panel

* Select the first item and reset the path.


# 5da00053491bf01fe04f33fd302b064e3d87f958 18-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Improved main window layout

* Moved "Install to:" besides the "Install" button again.
* Don't right-align menu field labels.
* Give the install type description some default text when no description is
given. Give it a smaller font, align with the type menu.


# 4407020ba450ea3f7d02db93ac9e5b2c4e22d25e 15-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Install apps to non-packaged "apps" folder.

Previously, the target folder was always unset, which meant one needed
to select a target folder manually. When running from a read-only media,
this would still be a problem (a TODO), so that instead of failing to install
the package, the user is simply prompted for a path.
The change means that together with rewriting old paths to packaged
locations to the non-packaged equivalents, just double clicking a PKG and
hitting "Install" will now work. Tested with Moho installer and
Gobe Productive.


# 735727da48cebc514589f0d545f654dfde4ebf30 15-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Converted to use layout API

* Also auto-hide vertical scroll-bars when not needed.
* Nicer margins everywhere
* TODO: Install type description could collapse when empty or display
a default message.
* More refactoring and cleanup


# a16a1437a779f7a40153d8ebd06995fe396e5a1f 16-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageView: Small coding-style cleanup


# 193a4de178e21cc14e7904b5e98916d922f51955 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageView: Refactored a lot of repetitive code...

... to create menu items.


# 236dd276ac7b6584b6260c517c03e9622f6b62f1 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Make window title properly localizeable


# a1b7cb6256be90106645da0c2d0b78e6cbb96777 12-Feb-2014 Stephan Aßmus <superstippi@gmx.de>

PackageInstaller: Another round of cleanup.


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


# 3c018b5f64130b7bee821db8c3adc3e1235eb2e7 05-Jun-2011 Joachim Seemer <humdingerb@googlemail.com>

Added missing localization macros.+alpha

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


# afa20743628af7b85c647063ff1783bd498b473c 15-Aug-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

prof was dereferenced before checking for NULL. CID 1065


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


# 4a31ed96f97de76576103494eb4366d4d330b952 09-Aug-2010 DarkWyrm <darkwyrm@gmail.com>

Patch a confusing bug which showed "Replace all" as a choice after choosing to skip files which already exist


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


# eef956245ee61a863221ea316e715d03773a6383 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@36676 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f51cdb4436c3d03c13683d120f6c677dfca616c1 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Remembered the rule wrong about how many blank lines between copyright and
headers.


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


# 091440e0048f51f8708bece1a8aebeae3d1f2d36 05-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Jorma Karvonen: Localization of the PackageInstaller. Thanks a lot!
Contains small coding style corrections by myself. Closes ticket #5907.


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


# 1edc8258ef0f7d74fb723e4bd3de137a62889bc6 03-May-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by sil2100:
* Avoid showing read-only volumes as possible installation targets.
* Mark the menu item for the first suitable volume that was found.
* Removed no more needed debug output.

Fixes #5231. Thanks a lot!


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


# 9ff2343b35fc95500601a2cb77719dd591e7f423 01-Apr-2010 Jérôme Duval <korli@users.berlios.de>

Applied patch by sil2100 that enables handling of script files (bug #3762)


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


# fc11b80c6c3a2d9f1a52014ab1341a9923d74e8f 06-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by sil2100 that basically adds a "Yes to all" button, see
ticket #4059. I fixed a few style violations, though. Thanks!
* Automatic whitespace cleanup.


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


# 78c00a4a53afcaeeebb337e5601dd8c1f70308e6 11-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Applied patch by sil2001 that fixes bug #3666 (handling of existing symlinks).
* Refactored PkgItem classes, and pulled out a PackageItem base class. Renamed
other classes to Package*.
* The ItemExists() method should really get a "Apply this choice to all files"
kind of option...
* Style cleanups.


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


# 0b5e655d259afa8bfff1082fb4f5f351222ee3a2 08-Feb-2009 Jérôme Duval <korli@users.berlios.de>

Changed the error message for unreadable packages to be a passive one, as suggested by Stephan.


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


# b97c244e6e721593031095cd3e61e2946154483b 07-Feb-2009 Jérôme Duval <korli@users.berlios.de>

* exits on invalid packages
* added messages on errors


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


# c9d15f8cdbe8d04eea74ac738dc6b3bb081a00f8 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Duane R. Bailey:
* Replaced occurances of "..." by B_UTF8_ELLIPSIS in the apps folder.


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


# bf86f09912b25c4494f2e1b40462590910d118b1 13-Jan-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup


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


# 44f919da9afa25ffd54e29c6f64cfba20e41f34f 12-Oct-2007 Ryan Leavengood <leavengood@gmail.com>

Adding Łukasz Zemczak's package installer to our tree. This was his Google
Summer of Code project. Thanks for your work Łukasz and I hope we can see
more work from you.

Still to do:
- Create an icon.
- Add pkg files to the MIME database with PackageInstaller as the default
handler. The rdef here has the MIME type name for the pkg format should
anyone else choose to add it :)
- Support for running scripts included with packages.
- Testing various different packages.
- Fixing problems in the Haiku GUI layout system which affect the code used
for various parts of the installer GUI (please bear with the commented out
code for now.)
- Adding this to the image.

Tomorrow I will add Łukasz's InstalledPackages utility which can be used to
view installed packages and uninstall them.


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