Commit Graph

7304 Commits

Author SHA1 Message Date
Puck Meerburg
b0a48e3844 DriveSetup: Also mount BDiskDevices which contain a file system.
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

GCI2014, Fixes #6783.

* The "Mount All" Tracker menu only mounted partitions, not disks filled
directly with a filesystem.
2014-12-10 08:06:05 +01:00
Augustin Cavalier
bc6db669fd ResourceEdit: delete from tree.
It has been moved to HaikuArchives.
2014-12-07 16:20:43 +00:00
Alexander von Gluck IV
70cc56922e ResourceEdit: Re-add subdir for clean gci removal 2014-12-07 16:18:00 +00:00
Alexander von Gluck IV
d26095f20f Cortex: Fix build on x86_64 (and others?) 2014-12-07 16:05:42 +00:00
Alexander von Gluck IV
74349b4ff4 RedEdit: Fix build 2014-12-07 15:49:05 +00:00
Adrien Destugues
8f4cd9c976 Improve Workspaces Zoom() implementation
* Do not move the window, this is annoying
* Instead of putting the window at a fixed size, keep the current width
and adjust the height so the preview has a correct aspect ratio.

Fixes #5034.
2014-12-05 15:28:54 +01:00
Adrien Destugues
336c69d9c4 Add credits for the Slovenian translation.
Will be included starting tomorrow.
Fixes #11157.
2014-12-05 12:50:39 +01:00
Adrien Destugues
654d47f356 Magnify: fix layout with big font sizes
* Move the menu to the left side so it doesn't overlap the status.
* Fixes #6934.
2014-12-05 10:20:44 +01:00
Adrien Destugues
7291c0a8d9 Expander: escape backslashes in path.
Fixes #9969.
2014-12-04 10:20:32 +01:00
Rene Gollent
049e8f6fbd Debugger: Tweaks to ConsoleOutputView.
- When receiving console output, we now put it into a pending output list.
  An asynchronous worker thread then tells the view to add another line to
  the output view, with a 10 msec delay between lines. This ensures that if
  the debugged program has a large amount of console output, it doesn't result
  in the debugger UI going unresponsive due to handling the constant influx
  of text insertions in rapid succession.
2014-12-03 19:23:48 -05:00
Theodore Kokkoris
f78b08d846 Removed unsigned comparison to zero (CID: 611234) 2014-12-03 21:20:07 +01:00
Adrien Destugues
5da82e3a10 DiskUsage: align tab focus mark with label.
Fixes #6905.
2014-12-03 08:41:09 +01:00
Rene Gollent
310e80e0b6 Debugger: SourceView cleanups.
SourceView:
- Now that we need to track the current text drawing position for syntax
  purposes anyways, get rid of the previous inefficient hack to handle
  tabstops, and instead adjust for them on the fly. This both avoids
  quite a bit of string copying/reformatting, and eliminates the need to
  adjust the syntax highlight offsets to compensate for the aforementioned
  reformatting.
- Fix syntax color for string literals.
2014-12-01 23:36:10 -05:00
Adrien Destugues
7c6b2fa6f1 Fix credits for Lithuanian translation. 2014-12-01 18:41:13 +01:00
Rene Gollent
172a0247dd Debugger: Cleanup.
- Rearrange source_language subdir to have only the interface classes
  at the top level, and devote a subdir to each language-specific
  implementation of them.
2014-11-29 21:30:50 -05:00
Rene Gollent
177202d882 Debugger: Use syntax highlight info for source code view.
SourceView:
- Request syntax highlight information when new source file is set.
- Adjust _FormatLine() to also patch raw syntax highlights to match
  up with calculated tabstops.
- Draw strings in pieces corresponding to how they're broken up in
  terms of syntax highlights with colors.
2014-11-29 21:30:48 -05:00
Rene Gollent
921517ecd3 Debugger: Implement C++ syntax highlighter.
- Implement a basic highlighting engine for C/C++. Not yet used/tested,
  as SourceView will first need some adjustments in order to acquire
  and make use of the highlighter modules in the first place.
2014-11-29 21:30:47 -05:00
Rene Gollent
15758369f2 Debugger: Improvements to C-style expression tokenizer.
- Add recognition of several additional types of tokens that, while
  not necessary for single line expressions, will be needed  for
  parsing/highlighting source files. Also rename tokens for open/close
  paren to reflect their content more accurately, and adjust callers
  accordingly.
2014-11-29 21:30:46 -05:00
Rene Gollent
4671959310 Debugger: Minor refactoring.
- Break the expression evaluator's tokenizer out into its own separate
  header so that the syntax highlighter can also make use of it.
2014-11-29 21:28:08 -05:00
Rene Gollent
c04274bdd3 Debugger: Add skeleton C/C++ syntax highlighter classes. 2014-11-29 21:28:06 -05:00
Rene Gollent
d431ff418f Debugger: Cleanups/adjustments to syntax interfaces.
- Add missing public keyword for SyntaxHighlightSource/SyntaxHighlightInfo.
- Add initial set of basic syntax highlight types.
- Remove SyntaxHighlightSource. Instead, add a general purpose LineDataSource
  interface to the model classes. Correspondingly adjust SourceCode to inherit
  from it and fixup its derivatives accordingly; also adjust SyntaxHighlighter
  to take a LineDataSource rather than a SyntaxHighlightSource.
2014-11-29 21:27:55 -05:00
Stephan Aßmus
d5ef985e18 HaikuDepot: Added rudimentary screenshot window.
Clicking the thumbnail in the package info area will now open a
window where the full-size screenshot is downloaded and shown. There can
only be one such screenshot window open. Navigating between multiple
screenshots of a package is not yet implemented. Also, no caching, but
this may be OK as it is, since one usually looks at these only once and
doesn't want the harddrive filling up with screenshots.
2014-11-29 23:07:32 +01:00
Stephan Aßmus
f5a8bae677 HaikuDepot: Paragraph: Fixed typo in PrintToStream() 2014-11-29 23:07:30 +01:00
Stephan Aßmus
368ec7fa0e HaikuDepot: Use a LinkedBitmapView for the screenshot. 2014-11-29 23:07:29 +01:00
Stephan Aßmus
77badf8eca HaikuDepot: Added TODO to LinkView and bugfix.
SetViewCursor(NULL) does not unset the view cursor.
2014-11-29 23:07:28 +01:00
Stephan Aßmus
a45f75e0c5 HaikuDepot: LinkedBitmapView derived from BitmapView
Sends a BMessage when clicked and enabled, shows the link cursor
when hovered with the mouse.
2014-11-29 23:07:27 +01:00
Humdinger
5fe12d4049 Correct typo
My condolences...
2014-11-29 15:37:42 +01:00
Adrien Destugues
122fdeece7 FontDemo: fix overwriting of family with style.
Menus were wrongly set to SetLabelFromMarked (probably from a previous
version of the UI without the nested font menu).

Fixes #11517.
2014-11-28 10:48:32 +01:00
Adrien Destugues
344180b745 FontDemo: convert to layout code.
Fixes #9241.
2014-11-27 17:49:22 +01:00
Adrien Destugues
5211ae5d68 Terminal: use BPopUpMenu in BMenuFields.
Using a BMenu works, but it doesn't look as good.
Thanks to Diver for noticing this.
2014-11-27 10:53:16 +01:00
Adrien Destugues
f4e8886fae CharacterMap: Fix 64-bit build 2014-11-27 09:11:46 +01:00
dsizzle
0340e4b336 CharacterMap: several fixes to char. view scroll
* Select items in the encoding list by block identifier rather than
list index (there are holes in the list)
* Scroll to the start of the list when the application starts
* Add and use IsBlockVisible to detect when we need to make a block
visible, avoiding unwanted scrollings in some cases with the previous
method of testing for only one character in the block.

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

Fixes some problems with previous enhancements from #3651.
2014-11-27 08:50:37 +01:00
dsizzle
b8a8557aa9 CharacterMap: use dynamic font menu
* only update if font family update is detected.
* character map can now detect new fonts or removed fonts without
restarting

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

Fixes #3651 part 7.
2014-11-27 08:31:18 +01:00
Adrien Destugues
052e5d936f Workspaces: remove "about" menu item.
The about box is kept, and can be shown from the replicants.

Fixes #8165.
2014-11-26 16:42:50 +01:00
Adrien Destugues
7b5ea03f20 Icon-O-Matic: import SVG gradient names.
The names are often program generated, but better than no name at all.
2014-11-26 14:51:59 +01:00
Adrien Destugues
4c581823cd Style fix. 2014-11-26 13:18:48 +01:00
Adrien Destugues
52051a08de ActivityMonitor: catch the exception
Having the app abort because of an uncaught exception when out of memory
is not user friendly. Just stop drawing the graphs if that ever happens.
2014-11-26 12:24:05 +01:00
Adrien Destugues
3f57b13504 ActivityMonitor: don't draw graph with negative width.
The computation of the graph width could overflow leading to an absurdly
high count of lines to be drawn. This would freeze with BShape trying to
realloc the array to bigger and bigger sizes as lines were added to it
(by increment of 256, but still), or trigerred a bad_alloc in
BeginLineArray which allocates them upfront after I converted the code
to use that (it is more appropriate).

Add sanity checks to avoid the overflow, now you can have hundreds of
graphs without problems (much more than I can fit on my screen anyway,
which I think is good enough).

Fixes #6841.
2014-11-26 12:16:57 +01:00
dsizzle
d67977a5ae CharacterMap: avoid jumping window size
set explicit minimum width of character view to be a bit larger than
fCodeView so that there isn't jumping of the pane sizes when fCodeView's
contents are too long

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

Fixes #3651 part 9.
2014-11-26 08:34:05 +01:00
dsizzle
c3205c10d7 CharacterMap: show font family and style
Signed-off-by: Adrien Destugues <pulkomandy@gmail.com>

Fixes #3651 item 2.
2014-11-26 08:34:04 +01:00
dsizzle
74d9b875c2 CharacterMap: select Unicode block for current character
* Scrolling the list of characters now selects the currently visible
block in the blocks list.

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

Fixes #3651, part 1
2014-11-25 08:30:08 +01:00
Adrien Destugues
03ad73fc87 More uses of BMessageFormat
ZipOMatic, DiskUsage, MediaConverter, MediaPlayer, ShowImage,
WebPositive, Screen preferences, Tracker, string_for_size.

Thanks to KapiX for reporting those!
2014-11-24 15:42:52 +01:00
Adrien Destugues
2824c5d3a4 Fix various typos and inconsistencies in strings
DiskProbe, DriveSetup, Icon-O-Matic, Installer, Login,
PackageInstaller, Screenshot, Translation Inspector, BootManager,
CharacterMap, CodyCam, BPrintJob

DiskUsage: removed useless translation, used only for layouting purposes

Thanks to KapiX for spotting these problems.
2014-11-24 09:42:26 +01:00
Adrien Destugues
46d4471af7 PoorMan: better labelling of button
According to the HIG, button labels should be verbs implying actions.
Replace the "default" button with "create public_html", which is what
will happen if you click it.

Thanks to KapiX for the suggestion.
2014-11-24 08:44:17 +01:00
Rene Gollent
6136e4303c Debugger: Cleanups.
VariablesView:
- Remove unused member variable.
- Add optional presentation name field to ModelNode, which allows
  overriding the name of its underlying ValueNode for display purposes.
  Used to ensure that a top-level node for an expression always shows
  the expression string itself, even when the returned result is a value
  node with a different name.
2014-11-23 09:13:06 -05:00
Rene Gollent
0690178786 Debugger: Further improvements to expression handling.
VariablesView:
- ModelNode now acquires a reference to its target variable. This
  is necessary because in the case of expression variables, the
  model node is ultimately the only one aware of it, and therefore
  needs to manage its lifetime.
- AddSyntheticNode() now discriminates between the case where it
  needs to create a node child on behalf of the caller versus when
  it's given an already created one, as is the case when an expression
  resolves to a value node. Consequently it also detects whether
  it needs to request value resolution or not, and handles accordingly.
- _AddExpressionNode() now supports value node results and handles
  them accordingly.
2014-11-23 00:18:14 -05:00
Rene Gollent
b4a861136b Debugger: Adjust VariablesView for new expression API.
- Simplify handling of expression nodes. For primitive results, we now
  construct a Variable object that represents the expression result, and
  then add that as we would any other local variable. This simplifies handling,
  and also allows saving/restoration of their view state to be handled the
  same as other nodes. Complex expression results aren't yet handled properly,
  pending some further work in progress on the evaluator.
2014-11-22 17:08:51 -05:00
Rene Gollent
81c848a14a Debugger: Rework expression parsing API.
ExpressionInfo:
- No longer stores an explicit result type (this is inferred from
  evaluation of the expression itself now).
- Introduce class ExpressionResult for returning the result of an
  expression computation. This can currently take the form of either
  a primitive value, or a value node object.
- Adjust UserInterfaceListener and ExpressionInfo::Listener to take
  the above changes into account, and correspondingly adjust all
  callers/listeners.

CLanguageExpressionEvaluator:
- Introduce child class Operand. This subsumes the functionality that
  was previously in the separate Number class, and can represent a
  primitive value, a value node or  a type. Also has functionality to
  implicity handle type promotion/inferring when performing calculations
  between operands.
- Adjust expression parser to operate in terms of Operands rather than
  Numbers. This allows a number of improvements, most notably that an
  expression can now return a value node as a result rather than only
  a primitive number. This capability isn't yet fully used, but paves
  the way for future uses such as an expression that evaluates to a data
  member, a global variable, or an arbitrary pointer of a particular type.
- Various cleanups/simplifications that were possible as a result of the above
  changes.

ExpressionEvaluationWindow/ExpressionPromptWindow:
- Remove type menu field, since the expression API no longer uses it.

Adding/removing expressions in the VariablesView is temporarily disabled,
pending some further rework there to properly handle the new result object.
2014-11-22 17:06:48 -05:00
Adrien Destugues
4011cb5d30 BootManager: different error when no MBR is found
We were using the same "no space available" message used when the first
partition starts too early. Be more specific here to make it clearer
what the problem is.

Fixes #7087.
2014-11-21 18:14:10 +01:00
Adrien Destugues
d433a61aa2 GLTeapot: wait for retrace.
Rendering at 200+fps is useless when your display can't handle it.
Now we can spin many more teapots while demo'ing Haiku without wasting
as much CPU.
2014-11-21 13:31:19 +01:00