Commit Graph

52292 Commits

Author SHA1 Message Date
Adrien Destugues
3d2cd4484d NetFS package: fix require on usrland_fs
* This was missing an underscore.
* Fixes #11541.
2014-12-01 11:18:18 +01:00
Adrien Destugues
97bb6cddcb Mouse Prefs: use a thinner and lighter outline
suggested by Axel and Stephan, this makes the mouse look better, and the
button numbers (the important part here) stand out more.
2014-12-01 10:49:53 +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
Jérôme Duval
969ddf9c9d libsolv_bootstrap: bump revision. 2014-11-29 22:08:10 +01:00
Humdinger
2e2c68cc35 Sentence casing of context menu item of network prefs. 2014-11-29 18:25:33 +01:00
Humdinger
5fe12d4049 Correct typo
My condolences...
2014-11-29 15:37:42 +01:00
autonielx
ef6da249e2 Update translations from Pootle 2014-11-29 07:53:00 +01:00
autonielx
120525a214 Remove the cdplayer app, it is not used anymore 2014-11-29 07:52:59 +01:00
Alexander von Gluck IV
f83af26271 data: Kernel settings file
* Add example line to always boot using safe
  video mode (vesa)
2014-11-28 20:37:02 -06:00
Adrien Destugues
3deab26b88 Remove useless stub driver.
* There are already ways to mount disk images of various formats, no
need for this one which doesn't have anything implemented.
2014-11-28 14:49:07 +01:00
Adrien Destugues
6dee50beeb Add package for BeMines.
Fixes #9208.
2014-11-28 14:11:49 +01:00
Adrien Destugues
069804d7ca FileTypes: prevent picking folder as preferred app
* I'm not sure why this was changed back in 2006, the file panel is
reused in various cases but I don't see one where selecting a folder
would make sense.
* If I missed something, then different file panels should be used for
the different cases.

Fixes #8805.
2014-11-28 11:45:26 +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
Oliver Tappe
2462ab577d Drop autotools and libtool from haikuports.cross.
* None of these are required to be cross-built, as they all can be built on
  the bootstrap image just fine.
* Additionally, update bash_boostrap from 4.27 to 4.30, as 4.27 causes the
  build of gcc on the bootstrap image to fail.
2014-11-27 21:58:24 +01:00
Adrien Destugues
344180b745 FontDemo: convert to layout code.
Fixes #9241.
2014-11-27 17:49:22 +01:00
Adrien Destugues
f448e83bdd Build fix. 2014-11-27 17:15:22 +01:00
Adrien Destugues
1a08983193 Network: use string_for_size for transfer rates.
Don't ask translators to translate these units over and over again.
2014-11-27 16:55:36 +01:00
Adrien Destugues
b549b15d81 Mouse prefs: better looking mouse.
* I went with my own graphics as the one in the preflet didn't look that
nice
* The clicked button is shown using a bold font rather than filling it
grey. I was too lazy to find the correct BShapes for all cases (1, 2 and
3 button mouses)

Fixes #6825.
2014-11-27 16:13:19 +01:00
Adrien Destugues
4c7f391f32 Add a <limits> header for gcc2.
Hacked from the gcc4 version. There may be wrong values returned in some
cases.

Fixes #6701.
2014-11-27 12:14:39 +01:00
Adrien Destugues
56abf4aa37 Fix std::isnan and friends for gcc2.
gcc2 was relying on the c99 functions being there, but they are not in
the std namespace.
* Disable the C99 functions and macros in C++ mode
* Redefine them as inline functions in cmath in the std namespace.

Fixes #7396.
2014-11-27 10:58:49 +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
Adrien Destugues
3d06e082bc BOptionPopUp: move mennu setup to AttachedToWindow
* There is no need to delay this to AllAttached
* Apps may want to override the SetDivider, and doing it as late as
AllAttached can be annoying.

Fixes #10734.
2014-11-27 09:00:23 +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
Automatic Committer
f891000ea0 Update pci.ids from pciids.sourceforge.net 2014-11-27 05:20:25 +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
42272d2342 OutlineListView: yet another list/fullList mismatch.
Fixes #5817.
2014-11-26 13:48:52 +01:00
Adrien Destugues
83b732c732 checkstyle.vim: add catch to checked keywords
* Check catch() without space
* Check }\ncatch () with newline
* Remove false positive on area_for() and other functions ending with a keyword
2014-11-26 13:27:33 +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
Adrien Destugues
31f5b8b5d2 BView::BeginLineArray: leave object in consistent state
We allow this method to throw bad_alloc exceptions as there is no other
way to report errors. However we left the object in a broken state
(maxCount set, but array not initialized) which would crash when calling
either AddLine or EndLineArray.

Initialize the count to 0 before throwing the exception so now
EndLineArray can be called and operations resumed safely after an
allocation failure.
2014-11-26 12:14:36 +01:00
Adrien Destugues
d9354cdedc Mouse prefs: truncated string in Suomi translation
* Set the minimal size of the double click test area so the string fits,
in any language.
* Fixes #5746.
2014-11-26 10:57:52 +01:00
Adrien Destugues
3d01d427ae Keymap preferneces: improve deadkey handling logic
* The key down message is not delivered when completing a dead key, so
act on key up instead.
* Pressing a character after a dead key would leave the keymap in "dead
key" mode, and that mode would be exited only by pressing a dead key
again.

Fixes #5734.
2014-11-26 10:35:43 +01:00
Adrien Destugues
1abd97e225 Add SerialConnect to DeskBar menu.
It works well enough now.
2014-11-26 10:12:44 +01:00
Adrien Destugues
c278afdec1 BOptionPopUp: build fix. 2014-11-26 09:48:57 +01:00
Adrien Destugues
d47ada16bc BOptionPopUp: don't offset when there is no label.
We add a 8 pixel space between the label and the menu, but we shouldn't
do that when the label is empty. This matches BMenuField behavior.

Fixes part of #10734.
2014-11-26 09:29:48 +01:00