Commit Graph

139 Commits

Author SHA1 Message Date
Coldfirex 2ca1376080 Mass updating of OpenBeOS text to Haiku
No functional code altered.

https://dev.haiku-os.org/ticket/17197

Change-Id: I75cc74f6be0ad968fd77c31fbe5b0f650a6fe9e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4364
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-11-07 10:00:35 +00:00
Murai Takashi b9e10b0796 Expander: Fix dead nested assignment
Fix value stored to 'status' is never read.
Pointed out by Clang Static Analyzer.

Change-Id: I0bbeafb74168d566128b53f8ad40e71218c78c45
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3473
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-12-09 20:38:41 +00:00
Jérôme Duval b05d6f0af0 POSIX: asprintf and vasprintf are BSD/GNU extensions
fix #16259

Change-Id: Ia16bb6e1944b87b25d1a940bbdaaf6e236db1abf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2020-11-07 08:49:34 +00:00
Adrien Destugues affb3a4a62 Expander: don't allow selecting text while listing files
Selecting moves the cursor and results in file listing being inserted
at the wrong place.
2020-07-27 21:14:59 +02:00
Adrien Destugues 15ba64aaa3 Unify Settings menu shortcut
Use , as the shortcut key for settings in all built-in apps. Some used
S, but that's already the shortcut for saving. , is the recommended
shortcut in the HIG already, but built-in apps were not updated to
match.

Fixes #11733.
2020-07-13 20:53:45 +02:00
Bailey Carlson 7a01e91863 Expander: prevent "Show Contents" checkbox shift 1px
Relocate ExpanderWindow ScrollView outside of vertical LayoutGroup to
prevent show/hide from shifting the LayoutGroup.

Fixes #15692

Change-Id: Ie6cb58a78b07ff74e890e475e7cce359dd93b21e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2899
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2020-06-11 14:52:40 +00:00
Rob Gill aa7f93c54c src/apps Code formatting
*	No functional changes

		code formatting changes only

Change-Id: I046ae21d9b288126022fe0bc2ddf827843765e70
Reviewed-on: https://review.haiku-os.org/c/896
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-01-25 12:40:34 +00:00
Humdinger 07a70c6feb Expander: remove hard newlines from alerts 2018-08-20 17:12:46 +02:00
Kacper Kasper 13300cf63a Expander: fix status view.
* Truncate() would cut Unicode characters in the middle.
* This commit removes arbitrary message length limit as well as workaround
  it was needed for and fixes #5289.
* Status view now expands to maximum possible width and cuts the status
  message if necessary using TruncateString().

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

* Minor whitespace fix.
2016-08-20 07:57:55 +02:00
looncraz fa19dd4470 apps: Convert to using Set*UIColor.
Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0045-0075, 0077-0087 from looncraz, unmodified.
2016-01-04 07:33:09 -05:00
Humdinger c8325bb7d7 Improve layouting of Expander
Especially actually hide the content's scroll view, which
otherwise would peak out if the B_USE_WINDOW_SPACING would
ever be increased.
2015-11-07 17:40:20 +01:00
Humdinger d0ac609964 Use B_USE_WINDOW_SPACING
Use B_USE_WINDOW_SPACING as inset from contents to window border.
Some whitespace cleanup.
2015-11-07 17:40:16 +01:00
Augustin Cavalier 9fb72ec18e Expander: don't scroll to the end if the user modifies the scrollbar position.
Fixes #11027. This preserves the functionality of scroll-to-end while
allowing the user to interrupt it (and resume it, in the case of
extremely long archives).
2015-06-01 19:31:05 -04:00
Adrien Destugues 7291c0a8d9 Expander: escape backslashes in path.
Fixes #9969.
2014-12-04 10:20:32 +01:00
Oliver Tappe 220d040227 Use libstdc++, libsupc++ and libgcc from gcc_syslibs.
* Instead of faking libstdc++.so from libstdc++.a, use libstdc++.so
  from the gcc_syslibs build feature for everything except x86_gcc2.
* Use libgcc_s.so from the gcc_syslibs build feature for everything but
  x86_gcc2 (which still carries libgcc as part of libroot.so).
* Drop filtering of libgcc objects for libroot, as that is no longer
  necessary since we're only using libgcc-as-single-object for libroot
  with x86_gcc2, where the filtered object file doesn't exist. Should
  the objects that used to be filtered cause any problems as part of
  libgcc_s.so, we can always filter them as part of the gcc build.
* Use libsupc++.so from the gcc_syslibs build feature for everything but
  x86_gcc2.
* Adjust all Jamfiles accordingly.
* Deactivate building of faked libstdc++.so for non-x86-gcc2. For
  x86_gcc2, we still build libstdc++.so from the sources in the Haiku
  source tree as part of the Haiku build .
* Put gcc_syslibs package onto the image, when needed.
2014-08-13 13:32:44 +02:00
John Scipione 12bd3f0452 Expander: Replace min_c() and max_c()
...with std::min() and std::max()
2014-06-09 15:56:39 -04:00
John Scipione be931d0706 Expander: Check asprintf() return value 2014-06-09 15:56:27 -04:00
John Scipione 122abe4315 Expander: Check Window()->Lock() return value 2014-06-09 15:56:26 -04:00
John Scipione 1e35cfaea2 Expander: replace string manip with asprintf() 2014-06-09 15:56:26 -04:00
John Scipione e326cef620 Expander: style fixes, no functional change intended 2014-06-09 15:56:25 -04:00
Ingo Weinhold 4b7e219688 Remove /boot/common for good
* Remove support for the "common" installation location from packagefs,
  package kit, package daemon, package managers.
* Rename the B_COMMON_*_DIRECTORY constants referring to writable
  directories to B_SYSTEM_*_DIRECTORY.
* Remove/adjust the use of various B_COMMON_*_DIRECTORY constants.
  I'm sure some occurrence still remain. They can be adjusted when the
  remaining B_COMMON_*_DIRECTORY constants are removed.
2013-10-03 21:52:25 +02:00
Ingo Weinhold cf70d345b2 Merge remote-tracking branch 'haiku/master' into package-management
This reverts 8f7f28a7c3 (OpenGL: Upgrade
to
Mesa 9.2).

Conflicts:
	build/jam/BuildFeatures
	build/jam/HaikuImage
	build/jam/OptionalPackages
	build/scripts/build_cross_tools_gcc4
	src/add-ons/opengl/swpipe/Jamfile
	src/apps/diskusage/Jamfile
	src/kits/tracker/ContainerWindow.cpp
	src/kits/tracker/DeskWindow.cpp
	src/kits/tracker/Jamfile
2013-09-13 01:02:28 +02:00
Ingo Weinhold b0944c78b0 More work towards hybrid support
* All packaging architecture dependent variables do now have a
  respective suffix and are set up for each configured packaging
  architecture, save for the kernel and boot loader variables, which
  are still only set up for the primary architecture.
  For convenience TARGET_PACKAGING_ARCH, TARGET_ARCH, TARGET_LIBSUPC++,
  and TARGET_LIBSTDC++ are set to the respective values for the primary
  packaging architecture by default.
* Introduce a set of MultiArch* rules to help with building targets for
  multiple packaging architectures. Generally the respective targets are
  (additionally) gristed with the packaging architecture. For libraries
  the additional grist is usually omitted for the primary architecture
  (e.g. libroot.so and <x86>libroot.so for x86_gcc2/x86 hybrid), so that
  Jamfiles for targets built only for the primary architecture don't
  need to be changed.
* Add multi-arch build support for all targets needed for the stage 1
  cross devel package as well as for libbe (untested).
2013-08-01 08:54:06 +02:00
Rene Gollent 07438277e7 Expander settings: Fix text control alignment. 2013-07-13 11:12:45 -04:00
Ingo Weinhold 7e78b434f4 Merge remote-tracking branch 'haiku/master' into package-management
Conflicts:
	build/jam/HaikuImage
	build/jam/OptionalPackageDependencies
	build/jam/OptionalPackages
	build/scripts/build_cross_tools_gcc4
	src/add-ons/translators/icns/Jamfile
	src/add-ons/translators/jpeg/Jamfile
2013-07-08 14:01:00 +02:00
Rene Gollent cd28fb0331 Expander: Fix layout regression.
- Adjust ExpanderWindow to use BLayoutBuilder.
- Adjust content pane layout to explicitly use unlimited size, since
it no longer implicitly gets it due to the recent checkbox changes.
2013-07-04 13:15:21 -04:00
Ingo Weinhold 32086850f7 Add HPKG to Expander's supported types 2013-07-04 12:51:26 +02:00
Ingo Weinhold 4f82f6fa72 Add Expander rule for Haiku package 2013-07-01 13:55:16 +02:00
Ingo Weinhold 178d2f9fb9 Expander: create settings directory, if necessary
Fixes #9846.
2013-07-01 13:26:29 +02:00
Ingo Weinhold 301f4b463a Expander: also read rules from data directories
* ExpanderSettings: Use a settings directory "expander" and rename
  settings file to "settings".
* ExpanderRules: Read expander rules from "rules" files in the settings
  directory, then from files in expander/rules subdirectories of the
  installation location data directories, and finally add the built-in
  rules. This allows packages to provide expander rules (as already
  done by the p7zip package).
* OptionalPackages: Remove AddExpanderRuleToHaikuImage invocations.
* ImageRules: Remove Expander rule file related rules.
2013-06-30 13:29:48 +02:00
Ingo Weinhold 2cf916cbe2 ExpanderRules: Coding style update
Also makes the ExpanderRule getters const. No other functional change.
2013-06-30 13:15:35 +02:00
Gleb Posobin a51eefdd08 Hint to layout manager for window width estimation
Fixes #5289

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-12 12:06:07 +01:00
Siarzhuk Zharski 2ede175119 Small refactoring of Expander and AboutSystem GCI patches.
* Fix excessive snprintf in SystemAbout kernel build date/time;
* Create destination folder message adjusted with HIG requirements;

Thanks for pointing out, Landon Fuller and Pulkomandy.
2012-12-02 17:58:06 +01:00
Przemysław Buczkowski cb65bb8732 Create dest. folder if it haven't existed. Fixes #8519
That was implemented during completing GCI 2012 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>
2012-12-02 13:43:00 +01:00
Humdinger aed3510485 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.
2012-08-05 19:32:46 +02:00
Oliver Tappe 546208a539 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.
2012-04-16 21:31:22 +02:00
Humdinger a697ddedc5 Cancel settings window on ESC, small cleanup. 2012-02-29 20:21:20 +01:00
Humdinger ddec5397e4 Now sets back its settings when closing the settings window with "Cancel".
* Pulled reading and writing settings into private functions.
* Call _ReadSettings() when canceling settings window to revert to
  original settings.
2012-02-29 19:22:07 +01:00
Humdinger 98cce525f0 Clean up. No functional change. 2012-02-29 19:19:37 +01:00
Humdinger a866fc60f9 Remodeled the settings window after MediaPlayer. 2012-02-29 19:17:46 +01:00
Humdinger 4c9dc4c642 Cosmetical improvements. 2012-02-29 18:58:28 +01:00
Jonas Sundström 11c7ff531a Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41108 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-26 02:18:52 +00:00
Jonas Sundström 560ff4478d 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
2011-03-25 22:13:48 +00:00
Jonas Sundström b97c51490a Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-16 00:42:18 +00:00
Jonas Sundström 066522e87b Localization changes. Use of B_TRANSLATE_APP_NAME(). Small cleanups.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-03-14 14:41:13 +00:00
Stephan Aßmus 4153964a10 Moved IconUtils.h to Interface Kit and therefor made it an "official" header. Since the class has no
virtual but only static methods, it is not so likely that binary compatibility issues may arrise
from using it in new apps. Adjusted all the Jamfiles that included the private libicon headers. Note
that it was never necessary to link against libicon.a, since it's part of libbe anyway. There was one
instance where that was done. Hopefully it does not break the build, but I did this change a while ago,
tested it and then the harddrive began failing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40679 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-25 09:12:38 +00:00
Joachim Seemer 0ea362ab50 * Improved ambiguous commands in Icon-O-Matic. A direction like left/right
when rotating indices doesn't always make sense. Think of an "8" shape.
   Reordered these items to give the correct shortcut order Alt+R - Shift+Alt+R.
 * More localizing of strings in ActivityMonitor and Expander.
 * TextSearch had problems with the search button being to small if one of the
   translated strings for Search/Cancel get's bigger than the other. Now resizes
   after toggling.
 * FileTypes missed a file for the catalog in the Jamfile.
   


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40441 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-11 19:20:11 +00:00
Joachim Seemer 46f8ab6c60 Removed left over commented line, put %s in quotes for better readability.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40438 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-11 08:09:48 +00:00
Joachim Seemer c16bcdfcb7 Made some more strings localizable, removed some unnecessary localizations from CDPlayer. I hope everything's OK...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-02-10 22:03:51 +00:00
Jonas Sundström f72663929e CID 3037: missing return after deleting itself.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40276 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-01-23 23:00:15 +00:00