Commit Graph

5621 Commits

Author SHA1 Message Date
John Scipione
83baea76a8 Update copyright info for ProcessController 2012-11-13 01:24:18 -05:00
John Scipione
be7c552a50 Bring AboutRequested() method back, not sure why I removed it. 2012-11-13 01:18:37 -05:00
John Scipione
730a45ee8f Rework NetworkStatus to use a non-modal BAboutWindow 2012-11-13 01:12:44 -05:00
John Scipione
5bf91175bc Haiku may be alpha quality, but DeskCalc isn't 2012-11-13 00:45:01 -05:00
John Scipione
cea3811974 Remove About DeskCalc... from right click menu.
We decided not to include about dialogs in system apps (right?)
2012-11-13 00:36:33 -05:00
John Scipione
80d7bf83bd Add authors back. 2012-11-12 23:57:33 -05:00
John Scipione
97a814061e Instead of destroying the BAboutWindow object on close, Hide() it, then on the destructor of the calling window call Quit() explicitly to destroy it. 2012-11-12 23:57:30 -05:00
John Scipione
12a9a71db6 Use a quit bool in B_ABOUT_REQUESTED to indicate that the about window has quit instead of using kAboutWindowClosed message. This prevents message signature clashes. 2012-11-12 23:57:27 -05:00
John Scipione
3fdab58446 Set the about window object to NULL on close or quit.
Pass the BHandler object that opened the about window to BAboutWindow.
When the window closes, send a kAboutWindowClosed message back to the
handler. This allows the handler to set the variable to NULL.

Implement the new about dialog constructor in all apps that use it.
Remove the old constructor. This now works reliably for all cases I
tested without crashing and does the right thing on close. The setup
and teardown is a bit more complicated than I wanted though.
Unfortunately this seems to be necessary when not using a BAlert.

Fetching the app icon does not work reliably yet. This is because for
replicants the app may not be running. I may have to pass the icon in
instead of grabbing it from the signature.
2012-11-12 23:57:26 -05:00
John Scipione
5b0cd98792 WIP: Create the about dialog once, hide and show, Quit() when object is destroyed. 2012-11-12 23:57:25 -05:00
John Scipione
0046f44436 Modify about window to take an app signature.
* Grabs the app icon and version from the resource file.
* Allow you to specify the copyright holder instead of hardcoding
  "Haiku, Inc."
* Support multiple extra copyright fields.
* Modify BAlert to take a custom icon.
* Set the custom icon of the BAlert to the app icon.
* Also set the app version.

* Convert BAboutWindow to derive from BWindow
* Place a 128x128 icon and fill out a scrolling BTextView
  with options such as authors, version history, copyright,
  license, etc. Still needs some work but is coming along.

* Add the word Version to the version line, i8n'ed of course,
  and tweak the info box and default sizes.
2012-11-12 23:57:24 -05:00
John Scipione
1a5df674c1 Fix saving and re-expanding items.
Subtle bug #1 found, 11th hour change broke this feature, fixed
once again.
2012-11-12 23:30:51 -05:00
John Scipione
a05a00c849 Tiny style fix 2012-11-12 22:03:27 -05:00
John Scipione
d1e438cad1 Force app menu to auto-layout before recomputing scroll limits.
This makes Deskbar correctly calulate the scroll limits in the case
when scrollbars are attached but not due to an app being added or
removed for example because the icon sizes increased.
2012-11-12 22:03:26 -05:00
John Scipione
652a115c1c Use fDragRegion width not left, you can't depend on the screen position reliably 2012-11-12 22:03:26 -05:00
John Scipione
27a53c3c9e Fix build, forgot a { 2012-11-12 22:03:25 -05:00
John Scipione
b4c922197c Fix Deskbar crash when scroll arrows are removed.
fExpando is added and removed from InlineScrollView only and it is
created and destroyed in BarView only. Before this there was a
case where it was removed in both InlineScrollView and BarView
causing a crash from the double remove
2012-11-12 22:03:25 -05:00
John Scipione
3135d0e0de Shrink icon only width a bit to make room for more icons
...before turning scrolling on.
2012-11-12 22:03:24 -05:00
John Scipione
e4f9bfce33 Need to position window before checking for scrolling.
Otherwise when you switch from bottom mini mode to vertical expando mode
you'll get scroll arrows when you shouldn't because the bottom of the
window frame will be below the screen.
2012-11-12 22:03:24 -05:00
John Scipione
dec421b1db Make sure that you remove the separator item before adding the team menu in mini mode or it won't work all the time 2012-11-12 22:03:23 -05:00
John Scipione
d6f6b835ad Draw a nice menu background on the inline scroll view and when scroll faster when you push control/option/command and click the little arrow button. 2012-11-12 22:03:23 -05:00
John Scipione
0e100a37a9 Cleanup 2012-11-12 22:03:22 -05:00
John Scipione
ed75ca7201 Set the scroll arrow limit based on the min menu item widths
... rather than the current menu item widths. This means that
Deskbar will shrink the menu items until they are at their minimum
size before it activates the scroll arrows. Previous to this
change the scroll arrows were being turned on prematurely. Also
lower the minimum menu item width to the icon width + 50pixels which
is arbitrary but looks good to my eye.
2012-11-12 22:03:22 -05:00
John Scipione
c07e6ff292 Make horizontal scrolling work in Deskbar
* Split the Leaf menu and seperator into their own menubar.
* I got rid of a lot of special cases for horizontal in the
  ExpandoMenuBar class because now the menubar contains the same
  items as in vertical mode. However, it also means that the dreaded
  <none> bug also affects horizontal mode.
* Make the application menubar resize itself even in horizontal mode.
  This means that the view background shows through so I'm going to have
  to fix this up.
* Calculate when to add the scroll arrows and how much to allow the user
  to scroll by for horizontal. CheckItemSizes() got a big refactoring.
* Rework the InlineScrollView class a bit. It no longer requires you to
  specify the begin and end limits on construction because it can
  calculate them instead. It also no longer depends on the screen at all,
  this means this class can be extened to be used more generally and in
  more places.
2012-11-12 22:03:22 -05:00
John Scipione
e6d8c22a7d WIP: Add support for horizontal scrolling. 2012-11-12 22:03:21 -05:00
John Scipione
255853fe15 Add left and right Scrollers and also an orientation parameter. Set the limit based on the view bottom and not the window bottom. 2012-11-12 22:03:21 -05:00
John Scipione
32f840b768 Rename ScrollArrowView to InlineScrollView
InlineScrollView takes a BView instead of a BMenu as well, and it
no longer has flags to do drawing respond to frame changes since
this view does neither of those things.
2012-11-12 22:03:20 -05:00
John Scipione
e06f13f911 Replace a deleted comment, check parent is not NULL before using it. 2012-11-12 22:03:20 -05:00
John Scipione
9c5644aa09 Detach the scrollbars before deleting fExpando.
... when rebuilding the application bar.

This fixes a Deskbar crash on resolution change because the lower
scrollbar is a child of fExpando so it must be removed and deleted
before fExpando is. So the tear down is remote scroll arrows
(if attached) then remote fExpando, then remove the scroll arrow
container view. The application bar is then rebuilt in reverse.
2012-11-12 22:03:19 -05:00
John Scipione
36ac19ebc1 Make the lower arrow a child of the menu instead.
When you scroll, make the lower arrow scroll the same way to give
the illusion that it isn't moving at all.

So, now both arrows scroll on MouseDown, but, Deskbar crashes on
resolution change.
2012-11-12 22:03:19 -05:00
John Scipione
fcfe60b02e Renamed BMenuScrollView to TScrollArrowView and moved it into Deskbar
Also gave the Up Arrow and Down Arrow a scroll arrow. The up arrow works
but the down arrow doesn't because the sibling menu is stealing the
MouseDown event."
2012-11-12 22:03:18 -05:00
John Scipione
afa1c29104 Tweaks, remove dead code. Menu and Menubar are stock again. 2012-11-12 22:03:18 -05:00
John Scipione
7ee3b479d1 Make the MenuScrollView a fixed size...
instead of trying to make it follow fExpando just make it a fixed
size on creation. It is invisible and extends to the bottom of the
screen. fExpando grows inside it, and the window follows fExpando.
When the window grows taller than the screenframe the arrows are
added. You can scroll with the mouse wheel, but I haven't yet gotten
scrolling to work from clicking. Deskbar still crashes when going
from Mini mode to vertical expando mode. I have no idea why.
2012-11-12 22:03:17 -05:00
John Scipione
49ff476d13 Make ScrollMenu not rely on Menu.cpp
Rename ScrollMenu.cpp to MenuScrollView.cpp

Half step towards making this class work as part of Deskbar without
extending any other classes. Scrolling works both with mouse and
scroll wheel. Redraws on scroll, need to make that work better.
Also need to move classes out of the Interface Kit and into Deskbar.
2012-11-12 22:03:17 -05:00
John Scipione
cb55ef9fb5 WIP: Created a BScrollMenu class that works like BMenuWindow but works on a view instead of a window. Use this to implement a scrollable BarMenuBar in Deskbar. The basics work but there are issues still with sizing and other issues.
Modify the ScrollMenu class to use the layout kit by adding a constructor that doesn't take a view.

Get the BScrollMenu class to follow the size of the BMenu it is a parent of. Adjust the scrollers to appear in the right places. This is a WIP but it works in Deskbar, next step is to integrate this directly into BMenu with the scrollers as children of the menu instead of as children of the BScroller class.

Rebase changes on top of master

Deskbar scrolling works for the most part, just need to fix the
bottom arrow and clean up a bit.
2012-11-12 22:03:16 -05:00
Rene Gollent
5ad155d720 Use Architecture information in WatchPromptWindow.
- We now check what types of watchpoints the target CPU supports
  and limit the UI accordingly.
2012-11-12 20:22:47 -05:00
Rene Gollent
6be4555f92 Also report back the number of bytes each register can watch. 2012-11-12 20:22:15 -05:00
Rene Gollent
22fc56ce8c Correct an oversight. Thanks Ingo! 2012-11-11 12:03:28 -05:00
Rene Gollent
4f9eec722c Add watchpoint capabilities hook to Architecture.
Will be used by the watchpoint manager and/or watchpoint UI to
present and/or handle the relative limitations of the current platform.
2012-11-11 11:32:30 -05:00
Rene Gollent
4549786bad Code reorganization. 2012-11-07 23:19:23 +01:00
Humdinger
a095f503dc Changing 'Blinking cursor' in settings too.
+alpha4. quick, quick..
2012-11-07 19:49:51 +01:00
Rene Gollent
0ba9bff27d Revert preservation of watchpoints in settings. 2012-11-07 15:26:18 +01:00
Rene Gollent
12c53499e7 More UI support for watchpointgs.
- BreakpointTableModel now encapsulates both breakpoints and watchpoints.
- Extended BreakpointView and TeamWindow to handle enable/disable/removing
  watchpoints as well.
2012-11-07 14:52:00 +01:00
Rene Gollent
c1e45a1e82 Persist watchpoints in TeamSettings. 2012-11-07 14:52:00 +01:00
Humdinger
63dffc0194 Improved string of new Terminal setting. 2012-11-07 13:22:33 +01:00
threedeyes
1aa6f64953 NTFS: renamed [NTFS File System] to [NT File System] to be consistent with Be File System 2012-11-07 09:24:46 +00:00
threedeyes
a8199d692a Fixed wrong parameters order 2012-11-07 08:39:30 +00:00
Rene Gollent
7c9e4b9a44 Fix gcc2 warning. 2012-11-06 21:57:24 +01:00
Rene Gollent
2a2e3bafa2 Add UI hooks for watchpoints.
This gets basic watchpoint support working. Right clicking on a variable
and picking Watch now opens a prompt with the inferred address, size
and watch type for the user to adjust.

Still needs some work to get them to show/be modifiable in the breakpoints
tab and to get them to respect architectural restrictions (i.e. on x86 we
can realistically only do 2 hardware watchpoints and those are restricted
to write watch), at least until we support software emulated watchpoints.
2012-11-06 20:57:15 +01:00
Rene Gollent
9b64b5d241 Add TODO note. 2012-11-06 13:26:41 +01:00
Rene Gollent
7b74c56650 Cleanup: move expression parsing for types to SourceLanguage. 2012-11-06 12:22:06 +01:00
Rene Gollent
4235cb3e33 Start adding the underlying infrastructure for watchpoint support. 2012-11-06 11:46:27 +01:00
Rene Gollent
35cadd6f3c Add watchpoint support in DebuggerInterface. 2012-11-05 20:48:33 +01:00
François Revol
ca0d271159 Terminal: Add a tooltip when in fullscreen mode
* When in full screen mode, add a tooltip with the window title,
and a keyboard shortcut hint so one knows how to get out of it.
Should help with #7356
* 80 column cleanup
2012-11-05 20:03:53 +01:00
Jonathan Schleifer
a0e690928b Terminal: Fix cursor blinking.
Signed-off-by: Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>
2012-11-05 19:23:58 +01:00
Rene Gollent
9e7a46be20 Extend typecasting to support pointer/address types.
We now parse the user's input to see if it should be a pointer/reference
type and create a derived type accordingly. This allows casting to e.g.
StyledEditApp*.
2012-11-05 17:56:02 +01:00
Rene Gollent
ab7a2ea818 Add support for creating derived types to DwarfType. 2012-11-05 17:55:17 +01:00
Jonathan Schleifer
122905281d Terminal: Make the cursor color configurable.
Signed-off-by: Adrien Destugues - PulkoMandy <pulkomandy@pulkomandy.tk>
2012-11-05 16:27:41 +01:00
Adrien Destugues - PulkoMandy
5d6ec6d03a Handle colors. 2012-11-05 15:22:33 +01:00
Adrien Destugues - PulkoMandy
d481cb7370 Fix newline handling
Haiku sends '\n' when you press the enter key, but the terminal standard
mandates that we use "\r\n" instead. This can be made into a setting later.
2012-11-05 15:22:31 +01:00
Adrien Destugues - PulkoMandy
7e23386ae8 Resize terminal buffer with window.
Unlike in Haiku terminal, vterm does not rearrange lines wen they
are wrapped. Chars outside the viewing area are just lost.
2012-11-05 15:22:29 +01:00
Adrien Destugues - PulkoMandy
469e6cd228 Log serial input to a file. 2012-11-05 15:22:26 +01:00
Adrien Destugues - PulkoMandy
04434656af Serial port configuration
* Dynamically update the serial port list in the connection menu when devices get added or removed
 * Make the settings in the settings menu actually do something
2012-11-05 15:22:24 +01:00
Jonathan Schleifer
4e3d346e91 Terminal: Make cursor blinking an option.
Signed-off-by: Rene Gollent <anevilyak@gmail.com>
2012-11-04 17:40:24 +01:00
Rene Gollent
8a4cdf3e60 Fix handling of notifications. Basic typecasting now works.
Still needs a bit of work to properly grok pointer/reference types.
2012-11-04 16:22:59 +01:00
Rene Gollent
ba4dad8b49 Fix child-creation-needs-value nodes.
We only want to do a delete/create cycle if the node actually changed. Fixes
BMessageValueNode.
2012-11-04 13:10:35 +01:00
Rene Gollent
e8cdcede03 Start adding support for typecast support.
Not yet complete/working.
2012-11-04 09:37:16 +01:00
Rene Gollent
674bc40589 Fix reference problem in InspectorWindow.
On quit, the inspector window needs to detach itself from its current
block and release its reference. Otherwise the next attempt to inspect
the same block will crash since it still contains the deleted window
in its listener list. Also fixes leaking blocks.
2012-11-04 09:09:44 +01:00
threedeyes
a6de493213 DriveSetup: Added ntfs support. 2012-11-04 00:48:08 +00:00
Jérôme Duval
a6a99fce04 zlib: added an optional build package, integrated to the build
* optional package for zlib 1.2.7
* keep zlib in build for the bootloader tarfs
2012-10-30 21:50:24 +01:00
Matt Madia
9815f07dce Added jprostko as a maintainer. 2012-10-13 12:03:44 +00:00
Ryan Leavengood
df840270bd Add Prasad Joshi to the contributors list. 2012-10-03 15:51:07 -04:00
Jürgen Wall
2f5c0cbab1 Don't create filename entries without actual matches.
Added an early return in GrepWindow::_OnReportResult(BMessage* message)
in case the report message does not contain matches.

Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2012-10-03 14:25:30 +02:00
Humdinger
9af3b83575 Added Hungarian translators Róbert Dancsó and Zsolt Bicsk.
Thanks guys!
+alpha4
2012-10-02 18:46:12 +02:00
Humdinger
e8c6eee0ca Added Brazilian translators. Thanks guys!
(+alpha4)
2012-09-29 08:14:30 +02:00
Humdinger
83953c9405 Using B_TRANSLATE_SYSTEM_NAME for 'FontDemo', plus tiny style fix.
+alpha4
2012-09-24 18:31:47 +02:00
Humdinger
57c8cbd820 Made 'BSnow' translatable, plus tiny style correction.
Fixes #9025.
2012-09-24 18:06:24 +02:00
Humdinger
79650056f0 Fixed control label in Poorman settings.
The BTextControls were using the wrong constructor.
Fixes #9024.
+alpha4
2012-09-24 17:53:51 +02:00
Axel Dörfler
baeb048bd1 Don't start showing the hint for each solved number.
* Instead, only keep it visible when the user made it visible.
* Minor cleanup.
2012-09-23 11:23:29 +02:00
Stephan Aßmus
f672eb2827 Small cleanups to dragging partition entries code. 2012-09-16 11:11:40 +02:00
Jacob Waterman
5d871e578d Added drag & drop of disk/partition paths; drag a list item to terminal, pe, etc. and release to copy the path. (ticket #8872)
Signed-off-by: Stephan Aßmus <superstippi@gmx.de>
2012-09-16 10:37:38 +02:00
Humdinger
f6d33da6a4 Small corrections to AboutSystem.
Thanks Rene.
2012-09-05 19:38:14 +02:00
Humdinger
ae7bcbaa12 Updated the list of contributers.
Added people to the list contributers.
Moved people to the list of past maintainers.
Added GCI to our Google thanks.
2012-09-05 18:19:40 +02:00
Philippe Saint-Pierre
b5f22a7f78 MediaPlayer: Deletion of playlist entries
Several scenarios of misbehaviour found and fixed, examples :
* Deleting an item sitting before the currently playing item had the effect of
starting the playback of the item before the delete item.
(now it just updates the indexes - setting it to fCurrentIndex - 1 - without altering playback).

* Deleting the last item of the list had for effect of starting the playback of the entry
newingly being the last entry, regardless if the last entry was the active one or not.

Should fix #6689.
2012-09-02 16:14:02 -04:00
Rene Gollent
cdf25540df 64-bit fixes for StyledEdit. 2012-08-28 10:11:53 +01:00
Rene Gollent
c3fa08a6c9 64-bit fixes for ProcessController. 2012-08-28 10:11:53 +01:00
Axel Dörfler
242e01d245 Improved member variable naming as suggested by Stippi. 2012-08-27 20:00:06 +02:00
Philippe Saint-Pierre
53312de5e5 MediaPlayer: Toggling Fullscreen wrongly reset control status
All controls were enabled when toggling fullscreen on and off;
now it recalls the argument last used in SetEnabled() and reuse it
when called in AttachedInWindow() (which occurs in such toggling)

Fixes #8804.
2012-08-25 21:28:10 -04:00
Axel Dörfler
c95601d728 Fixed hiding the mouse cursor after going full screen.
* This fixes a regression I introduced in hrev43648; the mouse cursor
  was only being hidden in case the controls were visible (ie. only
  after an extra mouse move in full screen).
2012-08-25 13:57:50 +02:00
Alex Smith
816aded4c1 Added Installer and DriveSetup to image. 2012-08-18 10:36:00 +01:00
Ryan Leavengood
eb89cc6b0b Deskbar: You know, we should actually use the translated name.
If this ever worked before, I don't know how.
2012-08-19 21:29:28 -04:00
Ryan Leavengood
a1efcf2c7f Set the Terminal window flags correctly when going fullscreen.
Fixes #8862.
2012-08-19 00:16:02 -04:00
Alex Smith
e688bf23d4 Merge branch 'master' into x86_64
Conflicts:
	src/servers/app/ServerWindow.cpp
2012-08-16 21:11:15 +01:00
Humdinger
468f826656 Some more string translations.
A few more translator changes I missed with last commit.
Added a few more strings for translation, pointed out by diver.
Thanks!
2012-08-16 20:13:40 +02:00
Adrien Destugues - PulkoMandy
4c3295fc92 Tweak DiskUsage pie view colors and drawing
* Use colors from http://haiku-os.org/files/downloads/2007-03-20_haiku-color-palette.png
 * The pie view used a simple multiplication to lighten the colors, leading to overflows. Use tint_color instead
 * The outline of each pie slice was drawn with lines, which did not align perfectly. Use StrokeArc with a slightly bigger pen size than the colored area instead.

Screenshot of the result:
http://pulkomandy.tk/drop/diskusage.png/
2012-08-15 10:32:04 +02:00
Humdinger
ef4ed1b76b Replaced "Preferences"/"Options" with "Settings"
Replaced remaining "Preferences" and "Options" with "Settings" as
that is generally used for app settings instead of the system
preferences found in the preference panels.

Renamed Tracker's "Preferences" to "Tracker preferences" to be
similar to the entries in the Deskbar and e.g. the Media replicant
in the Deskbar tray.
2012-08-15 09:53:38 +02:00
Ryan Leavengood
1a59d9dbeb Improve Deskbar's WindowShouldBeListed utility function.
It now has all the knowledge about whether a window should be shown or not.
Since I fixed #4127, ORing with is_mini is no longer needed.
2012-08-12 10:41:19 -04:00
Alex Smith
5084d0d451 Added more things to x86_64 image.
Some preference apps, mount_server and AboutSystem. Removed the check
for x86_64 in the boot script, the normal path through the script will
work now. Also removed a temporary hack to workaround AboutSystem not
being there in build_haiku_image.
2012-08-10 09:32:54 +01:00
Alex Smith
e963289800 Added Tracker and Deskbar to x86_64 build. 2012-08-09 19:36:52 +01:00
Alex Smith
a5e96a301e Merge branch 'master' into x86_64 2012-08-09 08:24:50 +01:00