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
Stefano Ceccherini
d7ff9fac45
getopt() is already defined in unistd.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:59:55 +00:00
Stefano Ceccherini
2ebebc8356
Our termios.h header doesn't define termio to termios (as the R5 one does). termios is the correct name, anyway.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:49:09 +00:00
Stefano Ceccherini
70751f7bfc
- Fixed every Styling issue (at least the ones exposed by StyledEdit). Setting fonts works now
...
- Cleaned up PageUp/Down handling code
- Now setups undo in Clear()
- Alignment now partially works
- Fixed some visual artifacts which could've showed up during typing with an input method
- Added a "known bugs" section
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9096 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-29 07:18:10 +00:00
Stefano Ceccherini
91f868aeb7
Ok, this time for real.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9083 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 23:10:13 +00:00
Stefano Ceccherini
c3c637606a
Fixed an annoying jump-to-last-line-on-END-bug (reported by Waldemar)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 22:50:23 +00:00
Stefano Ceccherini
1ce76bfd47
Added "new" keyboard driver, which implements the "correct" keyboard api. Not tested or anything. Not yet added to the build as I even did some last minute changes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:44:02 +00:00
Stefano Ceccherini
d4c31885aa
Renamed sync() to card_sync() to avoid name clashing with the "sync()" function in the new unistd.h. Commented out transparent_blit() to suppress a compiler warning, and added a comment to it.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9069 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:32:47 +00:00
Stefano Ceccherini
b397f1b53b
Should fix the build, things have changed in kb_mouse_driver.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9068 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 08:26:16 +00:00
Stefano Ceccherini
6b06287720
Some "forgotten" cleanups. Added a check for NULL in the constructor which avoids a crash in some cases.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:23:16 +00:00
Stefano Ceccherini
b0881688c3
Now checks if the driver is already opened, and return B_BUSY if true.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-27 07:20:57 +00:00
Stefano Ceccherini
86b8a8828a
Set the wheel_delta to 0, otherwise we could send "spurious" wheel movements
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9032 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 06:45:20 +00:00
Stefano Ceccherini
6be70a0fa1
Finally fixed the problem with the styling code: now selecting two sections of text
...
with a different color and change the font size works correctly.
Fixed a problem with mouse selection (a regression introduced when I fixed selection with keyboard).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9031 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-23 06:40:22 +00:00
Stefano Ceccherini
1fec91104a
Added newline at the end of the file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9029 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-22 07:05:56 +00:00
Stefano Ceccherini
40404d6a4b
Now uses the mouse_pos struct and commands definitions from kb_mouse_drivers.h.
...
Added cbuf_adapter.h so that the ps2 mouse driver can be compiled also against BeOS R5's kernel (for testing).
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-22 07:01:41 +00:00
Stefano Ceccherini
97a326b35f
Almost completely rewritten the ps2 mouse driver. Now it works (max 3 buttons for now), even under R5 (though you need a header that I won't commit here).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9004 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-20 06:32:23 +00:00
Stefano Ceccherini
7575ec2d87
Uncommented the code which makes auto indenting possible.
...
Correctly maintain fClickOffset in SetText().
Some small style fixes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-17 10:16:06 +00:00
Stefano Ceccherini
33efb91915
Almost rewrote the mouse input add-on to handle multiple devices, added usb devices monitoring (not tested as USB doesn't work on my machine).
...
Now it generates the device name from the folder name (i.e. /dev/input/mouse/serial/0 ---> "serial mouse 1").
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8860 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-06 06:42:58 +00:00
Stefano Ceccherini
0dbc4bef49
Changed the fQuit variable to a static sQuit. Removed the snooze() in the device watcher thread function.
...
Started implementing the "one thread per device" design.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8810 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:43:56 +00:00
Stefano Ceccherini
145a357d37
This fixes the crash when Debug is active (at least over here; Korli, can you check?)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8809 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-03 07:12:02 +00:00
Stefano Ceccherini
3aa69c787f
Some changes to the Mouse Input Server Device add-on. B_MOUSE_UP/DOWN still don't work correctly
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8794 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-09-02 08:52:54 +00:00
Stefano Ceccherini
4826cc5f6a
Added a (mostly not tested) _PointerList_ class. Please (Michael Pfeiffer or Ingo, whoever comes here first ) have a look at it :)
...
Note that I needed to write my own BSearch() because the compare functions used by _PointerList_ wants items as arguments, while the C bsearch() wants pointers to items as arguments.
The same applies to qsort(), though it's not been written yet.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8744 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 10:10:23 +00:00
Stefano Ceccherini
f6cd639a4b
Sheesh! No wonder the styling code wasn't fully working, as we were using different constants for font attributes than the ones used by BeOS R5. Now we use those constants directly. Still not ok, but we are on the right track now (I hope :))
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8738 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-31 07:08:49 +00:00
Stefano Ceccherini
74dca7b4f4
- Fixed crash during unarchiving, caused by the use of the wrong variable (thanks to Bill Hayden for reporting), and added a check which would have avoided the crash.
...
- Style changes to StyleBuffer.cpp plus a small fix in ContinuousGetStyle().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8723 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-30 09:02:31 +00:00
Stefano Ceccherini
6276c26824
- Some more error checking in some functions
...
- Fixed SetMaxBytes(), and made it delete the text if it's longer than the indicated bytes
- Fixed Delete(int32, int32) as it was doing bad things if you deleted the final part of the text
- Fixed PageDown handling (at least, it looks like so)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8673 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 08:35:15 +00:00
Stefano Ceccherini
758fe00be9
Started adding input methods "clauses" support.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8672 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-27 06:50:41 +00:00
Stefano Ceccherini
7fd612e59f
And here's the blue highlight when an input method addon like the Japanese one is used (the red one isn't yet there)
...
Some minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8657 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-26 06:30:43 +00:00
Stefano Ceccherini
939b1a9c4c
PageDown and PageUp now behave a bit better. Still not completely ok, plus the code is a mess.
...
Needs to cleanup
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8640 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 07:50:35 +00:00
Stefano Ceccherini
e13bd0e1a8
Reverted to the original comment, as I had worked on an older version of this file.
...
Took the chance to add the license header.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 07:36:57 +00:00
Stefano Ceccherini
2a346d67a6
- Fixed a nasty regression which made the control unusable
...
- Fixed the "caret looks like a point" bug
- More work on the Styling code
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-25 06:49:43 +00:00
Stefano Ceccherini
0cc992995e
Changed some parameters to be passed through const reference [A change suggested by Christian Packmann]. This gives a nice speed boost.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8628 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-24 06:31:36 +00:00
Stefano Ceccherini
9705d07a5d
I tought I already committed this:
...
Some small fixes and error checks
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8597 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-08-17 13:52:18 +00:00
Stefano Ceccherini
5dccfc1921
Some small changes (mostly suggested by Axel). Added more ToDO items, changed some comments, added some more (unhandled yet) message codes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8496 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-29 06:49:17 +00:00
Stefano Ceccherini
660a04f377
Fixed some refresh bug I introduced in one of the latest commits. "Where are those millions open source code reviewers when you need them?". Word wrapping should work again. Some small style changes. Added some more TODO items and some comments.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8491 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-28 08:33:28 +00:00
Stefano Ceccherini
f7021a391f
Fixed a nasty bug
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8482 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-27 07:15:43 +00:00
Stefano Ceccherini
6cd5d5b1f1
Implemented AppResources() "by the book" (not tested), InitialWorkspace(), researched and implemented a TODO item, some small cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8481 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-27 06:26:07 +00:00
Stefano Ceccherini
41e3acb043
Added some comments, some small style changes, and some TODO items.
...
Simplified some code.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8458 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-23 09:58:25 +00:00
Stefano Ceccherini
a901231dac
Reworked Selection, as it was simply broken before. Still not 100% correct
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8449 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-22 09:40:40 +00:00
Stefano Ceccherini
539a90858a
Home / End go to the start/end of the line, not to the start/end of the buffer.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8445 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-21 07:22:22 +00:00
Stefano Ceccherini
c1fa3828af
Fixed Home/End key handling. Thanks to Andrew for reporting.
...
I know this won't be the last one :)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8439 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-20 07:41:47 +00:00
Stefano Ceccherini
18c94e1dd0
Added InlineInput.cpp to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8432 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-19 14:39:57 +00:00
Stefano Ceccherini
6adf049cfa
Inline input method handling for BTextView (still lacks the blue/red highlighting). Thanks to Andrew and Koki for the hints.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8431 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-19 14:38:35 +00:00
Stefano Ceccherini
aaae158a2b
Changed BTextView::GetText(), so that the real work is done by the backend. Should be much faster now.
...
Fixed _BTextGapBuffer_::RealCharAt(), some minor changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8408 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-16 06:37:54 +00:00
Stefano Ceccherini
26b5401027
Added implementation of _set_menu_sem_() to Window.cpp (should it go to a different place ?), thus fixing the build (at least here, I hope I didn't forget anything else).
...
Thanks to Bill Hayden for reporting and sorry again for the trouble.
Changed a comment in PopUpMenu.cpp
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8394 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-14 07:41:47 +00:00
Stefano Ceccherini
1bdb4507f5
Added ZombieReplicantView, Dragger & Shelf to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8388 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-13 06:47:52 +00:00
Stefano Ceccherini
4b44b0265a
Finished (or, at least fixed) BPopUpMenu, to make it do something useful (it works actually, even if not all options are tested).
...
Fixed build of Dragger, Shelf and ZombieReplicantView
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8387 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-13 06:46:09 +00:00
Stefano Ceccherini
17495d0b40
Fixed some spelling errors in some comments and added more of them
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8360 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 11:14:31 +00:00
Stefano Ceccherini
06a6652107
BRect::Intersects() should return false if the passed rect is invalid
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8359 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 07:56:50 +00:00
Stefano Ceccherini
61c93e14bc
Researched and removed a TODO item
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8358 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-09 07:13:03 +00:00
Stefano Ceccherini
6fb34cf9b2
Work in progress, almost synched with the code on my hard drive:
...
Moved some functionalities to private methods,
some small fix.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8336 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-07 07:04:37 +00:00
Stefano Ceccherini
3f9ae8a3ce
Looks like SetFullScreen wasn't correct and could crash.
...
Fixed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-05 07:11:22 +00:00
Stefano Ceccherini
edc6e254f3
Fixed the outstanding BRegion bug. It turned out that rects_intersect() returned true in some cases when called with an invalid clipping_rect. Added an ASSERT() call to BRegion::_AddRect(), which would've saved my day.
...
Added some comments
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-07-01 06:16:00 +00:00
Stefano Ceccherini
eb1086edb6
A fix for some broken code, adjusted some comments, adjusted copyright notice
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-30 11:00:26 +00:00
Stefano Ceccherini
a5f7275d76
Adding some more or less complete classes from Marc Flerackers
...
(BDragger, BShelf and ZombieReplicantView). Not yet added to the build
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 12:20:32 +00:00
Stefano Ceccherini
39ffb98012
Added some comments and some (commented, for now) code as an example for the app_server communication.
...
DarkWyrm (or Adi, or whoever else), please feel free to implement the needed code on the app_server side when you want ^_^ (or when it's possible, not so important right now)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8229 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-29 08:24:33 +00:00
Stefano Ceccherini
f3e0a5e9a5
Just a quick fix for some obviously wrong code. Added SetDrawingMode(B_OP_COPY) in AttachedToWindow, before starting work on asynchronous mouse tracking.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 09:50:51 +00:00
Stefano Ceccherini
ddffb5d813
Forgot to add Screen.cpp & PrivateScreen.cpp to the build
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8212 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 09:27:04 +00:00
Stefano Ceccherini
359aeca0f5
Should use private interface headers
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8211 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:19:30 +00:00
Stefano Ceccherini
6542ca9b70
Added gPrivateScreen declaration
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8210 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:14:57 +00:00
Stefano Ceccherini
624df6c6b5
Rewrote some parts BPrivateScreen (in a hurry) to make libbe compile
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8209 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-28 08:12:32 +00:00
Stefano Ceccherini
5a5aa2e3c5
Now it checks (on KeyDown()) if the entered charachter is allowed, and it doesn't insert (and beeps) if not.
...
More documentation,
some more cleanups,
started implementing input methods messages handling (but don't hold your breath)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8157 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-25 10:00:29 +00:00
Stefano Ceccherini
75ad89705f
- Started documenting the class
...
- Added the B_INPUT_METHOD_AWARE flag to the constructor
- Fixed an obvious error in ResolveSpecifier()
- Added some ToDO items
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8145 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-24 13:46:58 +00:00
Stefano Ceccherini
a667ca3cde
Implemented MakeResizable more correctly (at least, it looks like it). Replaced LONG_MAX with the right lines number in Refresh() calls. Started work to make the widget double buffered. More cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-22 15:20:51 +00:00
Stefano Ceccherini
7889e7c9ed
Fixed a crash when undoing an "internal text drop", some cleanups.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-21 12:56:46 +00:00
Stefano Ceccherini
895207da06
Implemented BTextView::SetText(BFile *.... etc.)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8038 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 09:51:10 +00:00
Stefano Ceccherini
e3a2e77198
Be nice and explain why we don't free fBasePtr. Implemented Area()
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8037 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 08:36:18 +00:00
Stefano Ceccherini
843f00a15e
Removes a crash in the BApplication tests. Some tests work now.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8036 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-18 06:34:30 +00:00
Stefano Ceccherini
20b628d310
Some cleanups for BStopWatch. Added the check for B_INTERRUPTED to the semaphore acquisition in BLocker
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-17 08:10:36 +00:00
Stefano Ceccherini
6ed18b369b
Fixes the build with gcc 3.2.2 (still has many warnings, though)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-14 08:46:38 +00:00
Stefano Ceccherini
f59a054710
Should always count to 10 before committing. Another comment
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7856 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 14:26:22 +00:00
Stefano Ceccherini
741f96a162
Added a comment
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7855 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-08 14:03:38 +00:00