Commit Graph

46082 Commits

Author SHA1 Message Date
John Scipione
16ccdab9c9 TIFFTranslator: Style fixes to TIFFView 2013-05-30 17:24:37 -04:00
John Scipione
44efd20581 SGITranslator: style fixes for SGIView 2013-05-30 17:19:44 -04:00
John Scipione
14701d3ec9 Font Demo: Tweak layout of menu fields.
Need to add more height to the menu fields because we
no longer resize them automatically for fixed size mode
(for BeOS compat) and the text was shorter in BeOS.
2013-05-30 00:05:19 -04:00
John Scipione
e9c1c3b70b Chart: tweak menu field widths. Don't ResizeToPreferred() 2013-05-30 00:05:19 -04:00
John Scipione
f6d98e7b75 File Panel: make room for icon in directory menu field 2013-05-30 00:05:18 -04:00
John Scipione
0a04b14f8c Backgrounds: Use layout workspaces menu field 2013-05-30 00:05:18 -04:00
John Scipione
ca3a1c0451 BMenuField: If fixed size always set max content width
When you resize, also set max content width.

Create a SetMaxContentWidth() method that includes the margins.
2013-05-30 00:05:17 -04:00
John Scipione
d926be8ab3 BMenuItem: Check MaxContentWidth for truncation 2013-05-30 00:05:17 -04:00
John Scipione
92c12506ac Move kMinMenuBarWidth to MenuField.cpp 2013-05-30 00:05:16 -04:00
John Scipione
6da3c1c788 if menu _BMCMenuBar_ subtract the popup indicator width
... when calculating the width of items in _ComputeLayout. This prevents
that menu field from growing on selection fixing #9796 and #2413.

Also a few style fixes.
2013-05-30 00:05:16 -04:00
John Scipione
a1cf3ead5f Resize menu field if below minimum width in auto-size mode
... cancelling the normal item truncation behavior.
This funcationality comes from BeOS R5, we need to reproduce it for
backwards compat. KeymapSwitcher depends on it at least.

Minimum width is 20px, was set in last commit, comes from BeOS R5.
2013-05-30 00:05:16 -04:00
John Scipione
6031e62420 Move constants to BMCPrivate.h and refactor
We use these constants in both MenuField.cpp and BMCPrivate.cpp

Incorporate kMarginWidth into kPopUpIndicatorWidth.

A small code simplication in FrameResized() along with replacing bare numbers
with magic constants.
2013-05-30 00:05:15 -04:00
John Scipione
f7c092f5db Refactor _BMCMenuBar_::Draw a bit
Move the comments around, expand on them and an 80 char fix.
2013-05-30 00:05:15 -04:00
John Scipione
9af9f5150d Don't resize to preferred height if fixed size, BeOS didn't 2013-05-30 00:05:14 -04:00
John Scipione
17aed1bfc8 Use roundf() as suggested by Axel 2013-05-30 00:05:14 -04:00
Rene Gollent
8835205cf6 Sentence casing corrections, no functional change. 2013-05-29 23:34:43 -04:00
Rene Gollent
dd33ff02fd Add menu item to request team restart. 2013-05-29 22:01:32 -04:00
Rene Gollent
7cbc5a5964 Add UserInterfaceListener hook to request a team restart. 2013-05-29 21:59:51 -04:00
Rene Gollent
c90773b3ba Implement support for restarting teams.
- TeamDebugger's listener interface now exports a
TeamDebuggerRestartRequested hook. The latter is used to request
starting a new debugger instance with the same arguments/settings as the
team it represented. Implemented for the graphical debugger.

- When a team terminates, the resulting dialog now allows the user to
choose to quit, restart, or simply do nothing. The latter option still
needs some work though, as e.g. setting additional breakpoints currently
fails since the corresponding debugger interface is no longer around.

Implements the main part of #9774.
2013-05-29 19:25:49 -04:00
Rene Gollent
2f6ecd577a Add parsing for several new attribute classes.
- Collectively the previous set of changes get us minimally parsing
some of the new DWARF4 output from gcc 4.7 as well as some of the
draft DWARF5 extensions, which allows us to handle such executables
a bit more gracefully. Not all of the new information is made use of
as yet though. Should resolve #9799.
2013-05-28 22:36:56 -04:00
Rene Gollent
54a0525eca DIESubprogram: Add parsing for main subprogram attribute.
- Will be used later to recognize the main function of a given program.
2013-05-28 22:36:55 -04:00
Rene Gollent
cc428f5bbf Sync definitions with DWARF4 + DWARF5 drafts.
- Add tag, attribute and form definitions from DWARF4, as well as some
  from DWARF5 draft proposals that gcc4.7 is now emitting.
- Add corresponding attribute getter/setters and class definitions.
- Add appropriate attribute class definitions.
- Update tag name and attribute name retrieval accordingly for the
  above.
- Implement barebones DIECallSite/DIECallSiteParameter.
2013-05-28 22:36:33 -04:00
John Scipione
128c5556b9 Set fLastMousedOverItem NULL in ctor
This has a good chance to fix #9676
2013-05-28 18:12:23 -04:00
John Scipione
9ffe350441 Don't set this pointer NULL, is set on next line. 2013-05-28 18:10:56 -04:00
John Scipione
c0d45b53ed Remove DOUBLECLICKBRINGSTOFRONT macro
The code that used it has already been removed and if it were
enabled it would do bad things.
2013-05-28 18:08:54 -04:00
John Scipione
d0f798c8d2 Style fixes to ExpandoMenuBar 2013-05-28 18:07:23 -04:00
Pawel Dziepak
83fd8a6199 Closing an UDP socket should wake all blocked recv() 2013-05-28 20:44:10 +02:00
Siarzhuk Zharski
9609ed8664 KeymapSwitcher opt.package updated to 1.2.7.10
* Fixed hotkeys selector resize issue occured on latest Haiku revisions;
* Fixed handling of system-wide keymap switch mode;
* Remove BDragger from the Deskbar replicant.
2013-05-28 14:39:26 +02:00
Rene Gollent
a6543e68c0 When an exception/breakpoint is hit, activate...
...the team window. Resolves #9797.
2013-05-27 22:01:17 -04:00
Axel Dörfler
0c9bc63e5c app_server: added more debug output on screen change problems. 2013-05-27 21:54:14 +00:00
Jérôme Duval
e6373bb39d virtio_pci: build not only for x86. 2013-05-26 19:58:54 +02:00
Jérôme Duval
78b461d6a1 Merge branch 'virtio' 2013-05-26 17:12:25 +02:00
Jérôme Duval
6bbf9c9da9 Virtio: added drivers for PCI busses, bus manager and block device.
* the Virtio PCI bus driver exposes a Virtio controller to the Virtio bus manager,
which in turn exposes a Virtio device consumed by Virtio drivers. Drivers follow the
new driver model.
* virtio_block handles Virtio block devices under disk/virtual/virtio_block/x/raw.
* Here is the Qemu command line option for Virtio disk devices:
  -drive file=haiku.image,if=virtio
* the PCI bus driver currently supports only legacy interrupts (no MSI(-X) yet).
* There is room for improvements in the bus manager:
  - it notifies the host for each queued request, which isn't optimal.
  - transfer descriptors should probably be simply preallocated (they are nicely
    leaked at the moment).
  - indirect descriptors are not supported yet.
and in the block driver:
  - get the id of the disk.
  - implements flushing the cache.
  - improves dma restrictions.
  - do_io() should use a page for header descriptors instead of malloc(), which
    could cross boundaries.
* The device manager tries to guess the driver based on the PCI device type, this
implies having to declare the "busses/virtio" path for each possible type
provided by Virtio. Thus future driver additions might require patching the device
manager.
* virtio.h is still private, the API is subject to changes.
* virtio_pci.h, virtio_blk.h, virtio_ring.h are copied unchanged from FreeBSD.
2013-05-26 17:02:50 +02:00
Jérôme Duval
3aae21ab63 virtio: integrate into the build and image
* device_manager: scans busses/virtio for network device types
  and scsi controllers.
2013-05-26 16:05:53 +02:00
Siarzhuk Zharski
a5862816b1 Jamfile/makefile-engines:replace -nostart with -shared
Starting from our GCC 4.7.3 the shared library -nostart option is not
valid anymore. Replace it with -shared one that works in GCC2 build
environment too.
2013-05-26 12:42:46 +02:00
Siarzhuk Zharski
5c190736fd ICNS/JPEGTranslators: add Jamfile deps to lib headers
* Add Jamfile dependency to LIBPNG headers on icns_png.c;
* Add Jamfile dependency to LIBJPEG headers on JPEGTranslator.cpp
  be_jdatasrc.c
2013-05-26 09:07:19 +02:00
Niels Sascha Reedijk
3410c916d7 Update translations from Pootle 2013-05-25 06:13:03 +02:00
Murai Takashi
1cabed5eee fix self-inited fTransparentMode, closing #9788.
Signed-off-by: Philippe Houdoin <philippe.houdoin@gmail.com>
2013-05-24 10:16:49 +02:00
Philippe Houdoin
8683f5d4ee Quick style polishing... 2013-05-24 10:11:53 +02:00
Murai Takashi
de6f4cc900 fix self-inited fTransparentMode, closing #9788.
Signed-off-by: Philippe Houdoin <philippe.houdoin@gmail.com>
2013-05-24 10:04:49 +02:00
Murai Takashi
4e370115ac GIFTranslator: fix incorrectly initialized fTransparentMode
Signed-off-by: Philippe Houdoin <philippe.houdoin@gmail.com>
2013-05-24 09:45:46 +02:00
Philippe Houdoin
415962e25f Add an unittest for if_nameindex to network kit tests pool 2013-05-24 09:44:41 +02:00
Siarzhuk Zharski
7c8e63e171 Terminal: fix handling utf-8 characters in OSC commands
Process the Operating System Control command in multibyte-aware way.
That fixes corresponding behavior for latest versions of Midnight
Commander;
2013-05-23 20:35:21 +02:00
Siarzhuk Zharski
3bbef9dd76 Discard Termcap and switch console apps to use Terminfo
* Switch bash, debugger, less, telnet[d] and top apps to use termcap
  functionality provided by ncurses lib instead of GNU libtermcap.so;
* NetBSD version of tput utility replaced with ncurses' one. Fixes #9606;
* terminfo database is provided as mandatory package installed during
  building target system;
* Remove libtermcap module. The termcap database source and
  corresponding build rules are not removed to provide backward compatibility -
  until all optional packages will be rebuild on upcoming system version
  using terminfo. Note that gcc2 builds may require to provide termcap a bit
  longer in the sake of binary compatibility with R5 era apps.
2013-05-23 14:07:50 +02:00
Pawel Dziepak
6c9c8a037c vm: fix area insertion logic
* When looking for a place for new area the size of the area to be
   inserted instead of the next area size was used to check whether
   we are already past the upper bound.
 * There was an attempt to insert area even if we were past the
   upper bound.
2013-05-22 19:31:26 +02:00
Pawel Dziepak
07e1875ea2 libroot: explicitly check ABI version
As Axel suggested use simple, explicit checks for legacy ABI version
instead of obscure "compatibility mode".
2013-05-22 19:31:05 +02:00
Rene Gollent
325f7bb4ec Show correct type in case a typecast has taken place. 2013-05-21 17:37:50 -04:00
Rene Gollent
e312ed26ef Add "Cast to array" context option.
Implements a simple context shortcut allowing to cast a pointer variable
directly to a 10-element array of the type it points to. Resolves #9778.
2013-05-20 19:03:55 -04:00
Rene Gollent
f297d6591d Relax range setting constraints for arrays.
- VariablesView now detects if a container's range is fixed or not,
and uses that to adjust both the prompt it displays and whether or not
the parsed ranges are bounds checked.
- ArrayValueNode now returns the currently user-set range rather than
the dimension constraints, since those might not always be accurate.
2013-05-20 19:03:53 -04:00
Rene Gollent
570241e8b7 Extend ValueNode interface for ranged containers.
Add an IsContainerRangeFixed() hook which specifies whether or not
the container in question can only display elements within a fixed
lower/upper bound, i.e. B{Object}List.
2013-05-20 19:03:52 -04:00