Commit Graph

46386 Commits

Author SHA1 Message Date
John Scipione
f3decd2060 Fix #9726 Revert CenterIn() and CenterOnScreen()
... back to their previous void returning roles. AlertPosition() is used instead to
check that an alert fits within the sides of the screen and all that.

Also add another CenterOnScreen() method that takes a Screen ID
so you can center a window on another monitor that the one it is currently on
(theoretically someday anyway).
2013-04-30 20:15:33 -04:00
John Scipione
d4d842b4ed Style fix in BAlert, some sort of strange spaces got in there 2013-04-30 20:15:32 -04:00
John Scipione
6723d9fc94 Create a BWindow::AlertPosition() method and use it
...to position alert's and open/save dialogs nicely inside of the parent window,
or if that is unavailable, the screen frame.

AlertPosition() is private (for now) but BAlert and BFilePanel are BWindow's friends so
BWindow allows those classes to touch it's privates.
2013-04-30 20:15:32 -04:00
John Scipione
f74ff8d324 Remove this bit of code from StyledEdit
....as we're gonna do the work in BFilePanel instead.
2013-04-30 20:15:32 -04:00
Ingo Weinhold
0c661892d4 BPackageInfo::Parser: Fix error output
The "=" operator isn't actually allowed in a resolvable expression. It
has to be "==" instead.
2013-05-01 02:08:43 +02:00
Ingo Weinhold
98a0dd5fd8 Update ICU packages
We extract both packages to the same directory now, since the icu_devel
package depends on the base package and contains relative symlinks to
the libraries. ATM that isn't really relevant, since we link directly
against the libraries from the base package, but we might want to
change that eventually.
2013-05-01 02:02:56 +02:00
Ingo Weinhold
6c6d6490bf ExtractArchive rule: Allow the directory to have a grist 2013-05-01 02:01:44 +02:00
Ingo Weinhold
7cbdf4f023 Update packages for several ports
* apr
* apr_util
* curl
* expat
* libxml2
* ncurses
* neon
* pcre
* subversion

This corrects the use of develop/lib paths and a few other things.
2013-04-30 22:50:18 +02:00
Adrien Destugues
fd19c7366d Fix BAboutWindow lifecycle
BAboutWindow returned false in QuitRequested in order to hide instead of closing.
Not only this keeps a BLooper running for a rarely used window, but it also
prevents quitting an application in the window was not destroyed first.

 * Remove aforementioned QuitRequested method,
 * Add a static GetWindow method that returns the existing about window, if there
is one, or creates one if there is not. A boolean can be set to tell the caller
what happened,
 * Adjust all callers to use that new method, instead of managing the window themselves.
2013-04-30 21:50:24 +02:00
John Scipione
3a12979db2 FindPanel: Set the MIME type field to fixed width
...instead of based on the width of its contents which can make the window
grow too wide. Fixes #9719
2013-04-29 22:25:12 -04:00
John Scipione
c80aa6e4bc Simplication in Tracker Find Panel
If attribute mode and you select a mime type, Remove then add the rows first
with the first items marked, then go through and re-mark the selected item.
2013-04-29 22:22:06 -04:00
Ingo Weinhold
c476e9a368 Update openssh package 2013-04-30 00:40:09 +02:00
Ingo Weinhold
f803a8a6cb packagefs: Fix .settings package link for install path case 2013-04-29 23:47:00 +02:00
Ingo Weinhold
bbd4272be7 Add passwd, login to the provides of haiku.hpkg 2013-04-29 22:36:32 +02:00
Jérôme Duval
2e00579938 bsnow: use uchar instead of char to avoid narrowing conversion warnings. 2013-04-29 21:44:01 +02:00
Jérôme Duval
cd749a7652 Terminal: use unsigned short instead of int to avoid a narrowing conversion warning.
* unsigned short is the type used in the struct winsize.
2013-04-29 21:40:34 +02:00
Jérôme Duval
e367c05620 SoundRecorder: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* also use std::min() instead of min_c()
2013-04-29 21:35:40 +02:00
Jérôme Duval
a83d8d14b5 Installer: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* also use std::min() instead of min_c()
2013-04-29 21:31:20 +02:00
Jérôme Duval
88499de190 attribute_overlay: fixed a warning.
* warning about comparison between signed and unsigned integer expressions.
2013-04-29 21:25:20 +02:00
Jérôme Duval
3756e0ac38 kernel: use uint64 instead of int64 to avoid narrowing conversion warnings.
* gdb_register is used only in arch_debug.cpp
2013-04-29 21:20:35 +02:00
Jérôme Duval
295cdbee6b keymap: use uchar instead of char to avoid narrowing conversion warnings. 2013-04-29 21:09:59 +02:00
Jérôme Duval
311e148798 vfs: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
2013-04-29 20:57:34 +02:00
Jérôme Duval
56efe80f85 nfs4: fixed two warnings.
* warnings about comparison between signed and unsigned integer expressions.
* the use of max_c() was superflous anyway as the result is only used for a comparison
with the left value.
2013-04-29 20:29:10 +02:00
Jérôme Duval
778d2528d6 write_overlay: fixed three warnings, I hope correctly.
* warnings about comparison between signed and unsigned integer expressions.
2013-04-29 20:22:13 +02:00
Jérôme Duval
d592954e3c app_server: avoids referencing a temporary IntRect instance.
* GCC lets us use a const reference to a temporary, but using it after it disappeared
  is incorrect.
* reverts hrev45576 as this patch seems more correct.
2013-04-29 20:17:14 +02:00
Ingo Weinhold
e0f7f688f1 Extract packages' settings dir to common/settings in image
That's a somewhat crude initial approach to installing the default
settings of packages when building the image.
2013-04-29 19:38:29 +02:00
Ingo Weinhold
330cb41ef5 package list: Add option "-p"
It prints just a list of paths for all entries.
2013-04-29 19:33:51 +02:00
Ingo Weinhold
c10119fa42 BStringList: Add Join() 2013-04-29 19:32:23 +02:00
Ingo Weinhold
ece8449668 Pimp up AddTargetVariableToScript to support a list of targets 2013-04-29 17:57:37 +02:00
Ingo Weinhold
4fd280ddfa Simplify use of InstallOptionalHaikuImagePackage
When invoked for a hpkg only the installation location (i.e. "common"
or "system") has to be specified now and "common" is the default. The
rule uses AddPackageFilesToHaikuImage now.
2013-04-29 17:28:18 +02:00
Ingo Weinhold
5d41bc9af9 Add AddPackageFilesToHaikuImage rule 2013-04-29 16:13:03 +02:00
Ingo Weinhold
58081381ea packagefs: Add a .settings package symlink
It points to the settings directory appropriate for global settings.
When a package is installed in ~/config, we cannot use the settings/
subdirectory for global settings, since then the files could clash with
equally named user specific settings files (e.g. in case of
ssh/known_hosts). So we use ~/config/settings/global for global
settings instead.
2013-04-29 15:38:34 +02:00
Ingo Weinhold
87a36d2227 PackageFSMountType: Add *_ENUM_COUNT 2013-04-29 15:31:13 +02:00
Ingo Weinhold
e17463fed2 Update gettext package 2013-04-29 11:44:34 +02:00
John Scipione
ed08c5287a Update CPUFrequency layout a bit
* Use font relative insets and spacing for window.
* Make the input box for Integration Time more reasonably sized and right
  align the label.
* Make the Install replicant into Deskbar button flush right.
* Use the standard amount of space between the Defaults and Revert buttons.
2013-04-29 01:20:52 -04:00
John Scipione
ec63fd3249 Use std::max instead of max_c 2013-04-29 01:18:13 -04:00
John Scipione
3c777060bc Fix gcc4 build, use max_c from SupportDefs instead of max 2013-04-29 01:10:06 -04:00
John Scipione
f542c5137d Fix bug involving the condition string being removed when it shouldn't
This bug occured when you selected from the mime type menu field while in
attribute mode. The rows are removed and added again but the condition string
view was left out because the menu item wasn't marked yet. Reordered to remove
row, then set marked, then add row checking if marked and adding the condition
string view based on the marked mime type. If no mime types are set it uses the
first mimetype instead which is what we want in that case.
2013-04-28 23:49:27 -04:00
John Scipione
2db4f1832a Make logic menu field more font dynamic, wasn't working for Japanese
Some style fixes and code simplications too.
2013-04-28 23:44:09 -04:00
John Scipione
e001e604b9 Consolidate strings so they are added to the catalog just once. 2013-04-28 23:41:34 -04:00
John Scipione
337a12f63f Another style fix 2013-04-28 23:39:49 -04:00
John Scipione
32994cb474 Style fixes and code simplifications 2013-04-28 23:38:04 -04:00
John Scipione
955d6389af Close window on Esc 2013-04-28 23:35:54 -04:00
John Scipione
72fb3d3984 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.
2013-04-28 20:30:22 -04:00
John Scipione
e894fbc0ac Adjust BAlert to position the alert using the revamped BWindow::CenterIn() method.
BAlert::AlertPosition() has been superceded by the new BWindow method and should
be considered deprecated. Note that the alert position is not in the direct center of the
screen, it is offset vertically like before.
2013-04-28 20:30:22 -04:00
John Scipione
54153cc8b2 Update CenterIn() and CenterOnScreen() methods in BWindow
* These methods now return the new point after centering.
* But more importantly CenterIn() does some new adjustments to keep the window
  position inside the screen edge. If you pass the screen frame into CenterIn()
  it skips these adjustments.
2013-04-28 20:30:21 -04:00
John Scipione
65e6ce6d53 Style changes in Alert and StyledEdit Find Window 2013-04-28 20:30:19 -04:00
Ingo Weinhold
0302ce8180 Update bzip2 package 2013-04-29 01:43:01 +02:00
Ingo Weinhold
bd3c533887 Update openssh package 2013-04-29 01:03:50 +02:00
Oliver Tappe
d287414628 Update BeBook package and fix URL of BePDF package. 2013-04-28 23:50:46 +02:00