Commit Graph

45906 Commits

Author SHA1 Message Date
John Scipione
56cf4a96bc Backgrounds: message fall through 2013-05-31 15:28:56 -04:00
John Scipione
fc584d8a7d Backgrounds: Update header, copyright year, add my name 2013-05-31 15:27:58 -04:00
John Scipione
2f5349a40a Revert "Backgrounds: Resize menu fields to preferred width."
This reverts commit 19d9ad49ae.
2013-05-31 15:22:26 -04:00
John Scipione
e339efbfef SGITranslator: Ax ResizeToPreferred(), use glue instead. 2013-05-31 15:22:04 -04:00
John Scipione
10e82a5380 TIFFTranslator: Ax ResizeToPreferred(), use glue instead. 2013-05-31 15:21:36 -04:00
John Scipione
463355a736 TIFFTranslator: Remove this unneeded SetDivider() call. 2013-05-31 15:20:29 -04:00
John Scipione
c6fa4474a4 Revert "TIFFTranslator: Resize menu field to preferred width."
This reverts commit d9dae4d313.
2013-05-31 15:00:54 -04:00
John Scipione
6a0d79319a Revert "SGITranslator: Resize menu field to preferred width"
This reverts commit dc674f5d96.
2013-05-31 15:00:45 -04:00
Rene Gollent
ccc445576a Update Vision package.
Includes a patch by Humdinger to sentence case various strings in the UI. Thanks!
2013-05-30 22:27:43 -04:00
John Scipione
83cc66b38f Revert to manually offsetting the BBox in BScreen.
Take this opportunity to reapply this hack in a much nicer way.

Before the hack included the default margins, now it doesn't.

Should be back to normal, sorry for the noise.
2013-05-30 22:10:40 -04:00
John Scipione
e473d011dd Return the insets to be equal on all sides 2013-05-30 22:07:43 -04:00
John Scipione
fc77b031d7 Revert "BBox: Always offset the top border by the same amount"
This reverts commit 39899cf662.

Checked with BeOS R5, and this is not how it works, to remain
compatable we need to go back to how this was before.
2013-05-30 21:47:04 -04:00
Rene Gollent
cebb446f55 BreakpointManager: Adjust breakpoint installation logic.
If the debugger interface isn't currently connected, don't attempt to
actually install the breakpoint, and simply consider the operation a
success. This allows setting new breakpoints after e.g. the team has
exited.

Resolves remaining part of #9774.
2013-05-30 21:15:33 -04:00
Rene Gollent
6443c430b2 TeamDebugger: minor cleanups.
- On team exit, close the debug interface.
- When receiving a restart request via the listener, save settings
before dispatching it.
2013-05-30 21:15:33 -04:00
Rene Gollent
05d98101be DebuggerInterface: reset port IDs on Close()...
...and add accessor to detect whether we currently have a valid
connection or not.
2013-05-30 21:15:32 -04:00
John Scipione
7b03c0ce31 Backgrounds: Use font relative spacing and adjust insets
BBox's now line up.

Once again set the top inset of the BBox that forms the main
backgrounds view to 0. This should probably be converted to
a BView...
2013-05-30 20:43:34 -04:00
John Scipione
80e5b062fe Appearance: Use font relative spacing insets for the preview boxes
Set the top inset to 0 since BBox's now have a natural top offset.
2013-05-30 20:40:45 -04:00
John Scipione
4666484ff2 Screen: Undo hack to line up the top borders of the BBox's
Also, use font relative spacing units
2013-05-30 20:39:23 -04:00
John Scipione
39899cf662 BBox: Always offset the top border by the same amount
...so that the top border of BBox's with no labels, BBox's with
text labels, and BBox's with BControl labels will all line up.
2013-05-30 20:38:04 -04:00
John Scipione
f9954bfc69 Style fixes to BBox, update copyright header 2013-05-30 20:35:42 -04:00
John Scipione
19d9ad49ae Backgrounds: Resize menu fields to preferred width.
Also a few other related changes:
* Update the copyright year in header and add my name.
* Use font aware spacing units in layout constructor.
* Align the fIconLabelOutline check box with the menu fields
  instead of the menu field labels.
2013-05-30 17:47:26 -04:00
John Scipione
d9dae4d313 TIFFTranslator: Resize menu field to preferred width. 2013-05-30 17:44:10 -04:00
John Scipione
dc674f5d96 SGITranslator: Resize menu field to preferred width
... when the window is first activated. Unfortunately the preferred
width has not been set until after the window is shown so we can't
do the work in AllAttached().
2013-05-30 17:43:34 -04:00
John Scipione
7f4dce0c88 TIFFTranslator: Sentence case Use compression 2013-05-30 17:25:17 -04:00
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