Stefano Ceccherini
f6fd4d6a70
Added bitmaps for the horizontal and vertical thumbs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-04 09:43:21 +00:00
Stefano Ceccherini
859c5ac301
Implemented Archive() and unarchiving constructor. Removed bad linefeeds.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11234 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 15:50:41 +00:00
Stefano Ceccherini
8f8871f95b
Use definitions from WindowPrivate.h and InputServerTypes.h instead of redefining them.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11233 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-03 07:36:27 +00:00
Stefano Ceccherini
fd873802ab
Implemented some more BChannelControl methods. It's almost fully functional. BChannelSlider won't crash if ThumbFor() returns NULL.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-02 09:34:06 +00:00
Stefano Ceccherini
422c07914d
Applied our style guide as someone (cough! *** Axel *** cough!) bugged me (correctly) about it :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11181 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-01 14:29:06 +00:00
Stefano Ceccherini
976f53a988
Fixed warnings. Maximum initial values are 100 (One should always print values in decimal, not hex). Implemented GetSupportedSuites().
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11180 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-01 13:16:22 +00:00
Stefano Ceccherini
1c3a6ab025
Implemented a couple of methods. Most are tested, even if not thoroughly.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11179 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-01 07:42:07 +00:00
Stefano Ceccherini
a0394110da
We have submenus working (still not perfect, though)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10869 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-19 10:52:40 +00:00
Stefano Ceccherini
0c14fc6dfd
Changes to make BMenu behave correctly. Implemented SetTrackingHook(). AddItem() calls the debugger in some cases, as it should. Cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10868 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-19 09:03:47 +00:00
Stefano Ceccherini
2cdfcae44b
The LowColor() had to be resetted after having drawn the shortcut symbol. Corrected a weird typo.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10829 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 15:10:46 +00:00
Stefano Ceccherini
6c857bb9fe
BMenuItem now also draws the trigger at the right position. There was a small visual glitch because the menu's lowcolor was not resetted: fixed. BMenuItem::Draw() needs a cleanup.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10828 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 13:44:36 +00:00
Stefano Ceccherini
727e24f793
Now BMenu also calculate the triggers for BMenuItems.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10827 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 10:42:41 +00:00
Stefano Ceccherini
d0733791ae
Removed MallocIO.cpp as it wasn't being built, and BMallocIO implementation is in DataIO.cpp.
...
We might want to split them again, but keeping that old file around was counterproductive.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10824 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 08:44:03 +00:00
Stefano Ceccherini
5fd36a241d
A BMenuItem couldn't be removed and then added back to a BMenu: Fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10708 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-13 08:50:50 +00:00
Stefano Ceccherini
27ec1ee4fe
Added a clarifying comment.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10707 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-13 08:40:52 +00:00
Stefano Ceccherini
2ce1b3ecc2
Cleanups
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10695 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-12 11:39:56 +00:00
Stefano Ceccherini
4339dcab52
Removed some wrong code and added a comment. Small style fixes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-10 14:18:53 +00:00
Stefano Ceccherini
4ff5ade253
Many visual fixes to BMenu. Now it's almost undistinguable from the real thing. SeparatorItems were being drawn too dark. Fixed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10585 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 14:42:19 +00:00
Stefano Ceccherini
b282b9018e
Implemented separator style 2, courtesy of Olivier Milla
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10584 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 13:13:42 +00:00
Stefano Ceccherini
a3dff518f0
Updated header
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10583 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 13:00:33 +00:00
Stefano Ceccherini
5b7528754d
The frame around the BMenu is now drawn by a special class (as happens in beos), and not by BMenu::DrawBackground(). Refactored BMenuWindow to support scrolling (not implemented yet). The AddItem() functions now call the private _AddItem(). Implemented AddList(), but it's not tested. BMenus are now offsetted by 2, 2, as in BeOS.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10582 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-04 12:59:49 +00:00
Stefano Ceccherini
92044c244d
Removed the frame parameter from BMenuWindow
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 16:05:46 +00:00
Stefano Ceccherini
1664b981f2
Added some todo items, cleanups. Removed the frame parameter from BMenuWindow as it's not needed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 16:05:05 +00:00
Stefano Ceccherini
4e876d126e
implemented B_ITEMS_IN_MATRIX layout correctly. Small cleanups all around.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 13:33:03 +00:00
Stefano Ceccherini
9a8540fb4e
Now menuitems are highlighted correctly, and submenus open, at least.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10570 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 11:34:14 +00:00
Stefano Ceccherini
c38a7df2a8
Accidentally commented the DrawContent call. I promise, this is the last commit for this year.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10557 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 11:52:39 +00:00
Stefano Ceccherini
92aa9dcf85
some more cleanups. The AddItem() variation which accepts a BRect parameter now calls the debugger if called when the layout is not B_ITEMS_IN_MATRIX.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10556 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 11:44:04 +00:00
Stefano Ceccherini
9944a2998d
Now items are removed correctly. All RemoveItem() call pass now through the private RemoveItems() method. ComputeLayout now uses a switch block, and prints a warning if B_ITEMS_IN_MATRIX is used, since it's not supported yet. Some cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10555 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 09:44:56 +00:00
Stefano Ceccherini
7ca9166efa
Now BSeparatorItem's Draw() checks the separator type. Implemented separator type "1". Please, someone with a better "artistic" skill than me, feel free to implement separator type "2" and check if the drawing of the others is correct :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10554 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-31 09:04:14 +00:00
Stefano Ceccherini
efa306a09d
BMenu now does even work correctly and doesn't flicker anymore. Submenus does not yet, though, and sticky mode is not yed supported.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 15:37:33 +00:00
Stefano Ceccherini
b0d01b5f78
MenuWindow now uses the private window_feel "1025", which I guess we'll need to implement server side too, since it behaves differently than B_MODAL_WINDOW_FEEL. Menu items added to a menubar didn't appear immediately, so I forced an Invalidate(). Could be made better, I think.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 13:27:00 +00:00
Stefano Ceccherini
31e911da16
Fixed BMenuBar drawing. Managed to have BMenu working (partially) with BMenuBar.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 11:03:36 +00:00
Stefano Ceccherini
860ec9a8ac
Moved BSeparatorItem's interface to its own file. Everything still builds, amazing :P
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 10:11:38 +00:00
Stefano Ceccherini
36d4f05908
Style changes, some checks for NULL values
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10549 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 10:02:39 +00:00
Stefano Ceccherini
1b925bd5ae
Moved BSeparatorItem`s implementation to its own file. Will split headers later.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10548 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 09:54:48 +00:00
Stefano Ceccherini
ddd7b87d8e
Small cleanup, added a TODO comment.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10547 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 09:42:46 +00:00
Stefano Ceccherini
a5e772c9c2
Fixed the other bug reported by Axel: the blinking caret spuriously drawn at a wrong position.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10546 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-30 07:59:24 +00:00
Stefano Ceccherini
d5aba99a5e
Refresh() has to do some operations even if there is no window available.
...
This fixes a bug in Diskprobe, thanks to Axel for reporting.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10543 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-29 11:15:22 +00:00
Stefano Ceccherini
cc9f6bbded
Implemented RestoreFocus(). Thanks to Ingo and Marc for the help
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10539 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 14:16:56 +00:00
Stefano Ceccherini
e411c65862
Mmmmh, I love Cut & Paste...
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10538 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:56:01 +00:00
Stefano Ceccherini
14260ebb3b
Small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10537 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:48:15 +00:00
Stefano Ceccherini
446b8c194e
Moved BMenuWindow to its own file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10536 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:05:16 +00:00
Stefano Ceccherini
86832512bb
Now includes MenuWindow.h instead of duplicating the declaration
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10535 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-27 09:04:28 +00:00
Stefano Ceccherini
872e52f249
DOS-->BeOS endlines
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10530 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 17:55:42 +00:00
Stefano Ceccherini
c74996495a
Hacked BMenuBar into something working, not yet with our own BMenu but with beos's one. B_WILL_FIX our BMenu. Not everything work, though.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10529 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 17:45:36 +00:00
Stefano Ceccherini
baab695f35
Removed StringItem.cpp as its implementation is in ListItem.cpp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10528 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-24 11:39:14 +00:00
Stefano Ceccherini
fd99e7194c
Made the (private) 'JAHA' message a constant, and moved it to ViewAux.h. Maybe it doesn't fit much in there, but I didn't want to create a new header just for it. Feel free to move it to a better place.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10521 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 14:03:28 +00:00
Stefano Ceccherini
3a15790e0f
Fixed a couple of infinite loops, small style changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10520 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 13:27:14 +00:00
Stefano Ceccherini
bc6981cc74
Switch synchronous and asynchronous mouse tracking code as it was wrongly placed. Style changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10517 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-23 12:13:56 +00:00
Stefano Ceccherini
3583227ca5
Style changes, moved some functionalities to private methods
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10515 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-22 10:43:40 +00:00
Stefano Ceccherini
ca8ed92280
Moved gPrivateScreen into the BPrivate namespace. Small cleanups to Application.cpp. Refined some comments. Used strdup() instead of new because it`s nicer for strings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10514 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-21 10:44:31 +00:00
Stefano Ceccherini
6f633eb2a6
Some comments on possible changes, before I forget about them. Compacted some code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10480 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-17 08:29:08 +00:00
Stefano Ceccherini
0115269685
When Clear() was called, an undo action was created even if undo was disabled. Fixed, and added a comment to it. Some more checks for NULL, some variable renaming.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10476 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-16 08:27:09 +00:00
Stefano Ceccherini
f19d9d3b36
Moved functionality of do_argv() into a new static helper function called fill_argv_message(). Now do_argv() handles the B_ARGV_RECEIVED message (incidentally, thats almost how its done in beos). That made DispatchMessage() a bit cleaner.Added some comments. B_PATH_NAME_LENGTH + 1 --> B_PATH_NAME_LENGTH.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10448 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-14 11:18:42 +00:00
Stefano Ceccherini
bd6c26014a
Now it calls ScriptReceived if it receives a scripting message in MessageReceived(). Falls back to BLooper::MessageReceived() in case something goes wrong (just to be safe).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10442 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 23:29:03 +00:00
Stefano Ceccherini
833a592226
Added B_SILENT_RELAUNCH handler. Expanded a comment.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10412 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-13 10:59:35 +00:00
Stefano Ceccherini
b1ce1640cd
Renamed gApplicationPropInfo to sPropertyInfo and made it static.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10390 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:15:11 +00:00
Stefano Ceccherini
a8fc5954c0
Implemented get_window_list(), and used it in count_windows() and window_at(). That simplified the code a lot. Removed some unused headers.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10389 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 10:12:59 +00:00
Stefano Ceccherini
ff6f3ceb3c
Line wrapping was done a character off. Added 1 to the line origins calculation.Lines have now the same height of the be's version. Note that this last change made some visual glitches appear again when selecting. Need to research that.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10386 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-11 08:27:49 +00:00
Stefano Ceccherini
4ce5abc64b
Stupid me: kBlackColor is a static, and so it's initialized to 0, so text was drawn in a transparent color, if no default color was specified.
...
Added +1 to the pen position to draw text more correctly.
Thanks to Andrew for reporting
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10366 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-07 10:32:04 +00:00
Stefano Ceccherini
5bac5044b7
Fixed warnings and added a comment
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-06 12:37:11 +00:00
Stefano Ceccherini
322853c8d3
Last fix screwed selection in other places: Fixed. Some more cleanups. Inline inputted text now highlights at least line, in case of multiple lines.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10357 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-04 17:49:09 +00:00
Stefano Ceccherini
6e6f8fff95
Line wrapping didn't work with multi byte charachters. Fixed.
...
If the view was resized when there was a selection, the selection disappeared. Fixed.
Added some more documentation and some more comments. Improved comments.
Removed some debug output.
Improved some code here and there.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10353 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-12-02 18:26:49 +00:00
Stefano Ceccherini
25d65010fc
Fixed warnings and license stuff
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-27 18:17:15 +00:00
Stefano Ceccherini
4e8891d152
Check in the serial mouse addon before I forget about it (hmmm holidays...).
...
Should be cleaned up a bit and maybe merged with the "other" mouse addon.
Courtesy of Oscar Lesta aka BiPolar
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-26 08:17:37 +00:00
Stefano Ceccherini
8b7faba29f
Made double buffering a compile time option (disabled by default as there is some issues with it)
...
Made widthbuffer a compile time option (disabled by default).
Some minor changes.
Updated the "known bugs" section
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10225 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-25 11:00:50 +00:00
Stefano Ceccherini
970c2591f5
Double buffering support (as it's in the original version). Needs some testing to see if it's cheaper/better than direct drawing.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-17 11:02:16 +00:00
Stefano Ceccherini
c82fcfe3f3
stricmp -> strcasecmp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9929 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-11 15:58:03 +00:00
Stefano Ceccherini
bdd5913945
Small cleanup, added a comment to some obscure code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9898 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-10 12:43:06 +00:00
Stefano Ceccherini
9bcc882ae1
changed stricmp to strcasecmp to fix the build.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-10 12:21:13 +00:00
Stefano Ceccherini
a2fab5626d
Added a debugger call in case the reallocation fails.
...
We can't handle an allocation failure there (at least for now). Took the chance to stylize the code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9782 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-04 08:53:46 +00:00
Stefano Ceccherini
2d60bd8b95
- Avoid setting the input method active if it is already
...
- Now we use the textview coordinate system correctly in OffsetAt()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9780 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-04 07:36:23 +00:00
Stefano Ceccherini
84fed7e642
Line wrapping needs to work at charachter level, not byte level
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9762 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 11:54:38 +00:00
Stefano Ceccherini
2f597f2eb7
fixed a warning, that amazingly didn't appear here (thanks andrew)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9759 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 09:40:27 +00:00
Stefano Ceccherini
8ca0bfcbb0
ifdeffed out some code in OffsetAt(), and added some simpler (and hopefully more correct) code, to handle multi byte charachters correctly when selecting via mouse.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9757 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-03 09:33:55 +00:00
Stefano Ceccherini
6dc85dbf52
Added a comment to some stuff which wasn't so clear (thanks to Andrew for clarifying this).
...
Now we free() the run_array allocated by "RunArray()" (as we're supposed to do), thus removing a leak.
Changed some includes from <> to "" just for my personal pleasure.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9648 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-29 09:18:35 +00:00
Stefano Ceccherini
f900119889
Style changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9647 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-29 09:11:53 +00:00
Stefano Ceccherini
08db68e8ee
It turns out that nothing was broken in TextView.cpp, and the fact that BTranslationUtils::GetStyledText()
...
crashed when used with our BTextView if the STELine struct was 12 byte in size, was just because
libtranslation.so was using BeOS's BTextView, where the size of that struct is 16. In fact, linking against our
libtranslation.so doesn't avoid the crash, while compiling that lib against our BTextView and then linking
against it makes the crash disappear.
Changed the comment near that struct.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9646 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-29 06:38:26 +00:00
Stefano Ceccherini
3704cba94a
This is funny. This commit fixes the crash in BTextView. Something has to be severely broken somewhere in TextView.cpp, or am I missing something ?
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9506 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-25 21:32:50 +00:00
Stefano Ceccherini
a13f233057
Finished input method stuff: now we do also the red highlighting.
...
InlineInput.cpp will probably be simplified in the future.
Some subtle fixes to the keyboard/mouse selection code,
which wasn't yet behaving as the real BTextView.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9494 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-25 06:34:51 +00:00
Stefano Ceccherini
9199a3397b
Synchronous and asynchronous MouseDown() code was wrongly placed.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9436 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-20 11:15:37 +00:00
Stefano Ceccherini
afcf990925
Forgot to change fromOffset to currentOffset in one place. WidthBuffer could not work right with multi byte characters
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9434 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-20 10:42:39 +00:00
Stefano Ceccherini
7bb5b0eaed
Fixed a bad bug in WidthBuffer, which would make BTextView behave in a weird way.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9404 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 21:37:00 +00:00
Stefano Ceccherini
99a5b57a50
Style and license fixes, added Marc Flerackers to the authors list.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9392 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 13:39:20 +00:00
Stefano Ceccherini
058691d409
Style changes, updated license header,
...
now uses the correct constants (B_FONT_FAMILY_AND_STYLE, etc.) instead of the numbers directly... tsk, tsk :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9391 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-18 10:21:46 +00:00
Stefano Ceccherini
06103a3d87
removed _PS2_MOUSE_ define, as it isn't used anymore
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9339 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-14 09:33:36 +00:00
Stefano Ceccherini
8b1a3af3db
Fixed ps2/at keyboard driver. I've started using this as my default keyboard driver on r5, so I can test it and implement what's missing (mostly settings ioctls).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9311 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 06:34:37 +00:00
Stefano Ceccherini
5a745a2134
Applied a patch by BiPolar, which fixes the second wheel handling (can't test as I don't have a two wheeled mouse).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9298 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 10:00:48 +00:00
Stefano Ceccherini
6a2b2afab3
Switched to "DEBUG" from "TRACE_MOUSE". That way it's easier to enable syslogging in the driver
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9297 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-12 09:52:57 +00:00
Stefano Ceccherini
cbc9d62f52
Fixed issue with Lock/UnlockStaticBuffer() on R5
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9286 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 23:33:01 +00:00
Stefano Ceccherini
9edda3ec6d
cbuf.h now includes OS.h and not kernel.h anymore. This fixes a strange issue in building the ps2 mouse driver. Thanks to Axel for the advice
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9285 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 23:14:49 +00:00
Stefano Ceccherini
c6a2e89fec
Fixed small typos in the comments
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 14:43:32 +00:00
Stefano Ceccherini
2910a19bbf
Added an ifdef around static variables, so we use beos ones when COMPILE_FOR_R5 is defined.
...
That makes testing TextView under beos possible, again.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9283 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 13:43:39 +00:00
Stefano Ceccherini
53a74c2fa2
Fixed the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9280 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-11 08:17:38 +00:00
Stefano Ceccherini
a87bf00703
Bare minimum stuff to have BPopupmenu working with our own BMenu
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9269 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-09 08:50:17 +00:00
Stefano Ceccherini
bed94c4a3a
Started to Implement a way to have different ps2 packet sizes.
...
Added (empty) handlers for some ioctl which started to bug me,
some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-01 07:13:04 +00:00
Stefano Ceccherini
d51394ddd6
Fixed bad redrawing of the text when alignment is different than B_ALIGN_LEFT
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9122 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 13:10:43 +00:00
Stefano Ceccherini
5302d71190
Fixed LineWidth(): now it calls StyledWidth(). It's not an issue, since charachter widths are cached by _BWidthBuffer_.
...
Marc Flerackers lend me a hand and now alignments should work much better (if not perfectly)
Some cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9119 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 12:49:34 +00:00
Stefano Ceccherini
1c4b8c6af4
This file was building fine on my pc. Weird. Hope this fixes the issue.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9117 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 08:10:30 +00:00
Stefano Ceccherini
dbce0eca86
Now configures RX filter to receive broadcast transmissions also. This fixes the issue of
...
the card not receiving anything if the transmission was started from another box.
Fixed a couple of warnings. Many cleanups.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9116 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-30 06:34:16 +00:00