<br><br><div class="gmail_quote">On Mon, Mar 1, 2010 at 11:38 AM, Deepayan Sarkar <span dir="ltr"><<a href="mailto:deepayan.sarkar@gmail.com">deepayan.sarkar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, Mar 1, 2010 at 5:45 AM, Michael Lawrence<br>
<div><div></div><div class="h5"><<a href="mailto:lawrence.michael@gene.com">lawrence.michael@gene.com</a>> wrote:<br>
><br>
><br>
> On Mon, Mar 1, 2010 at 5:08 AM, Deepayan Sarkar <<a href="mailto:deepayan.sarkar@gmail.com">deepayan.sarkar@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Mon, Mar 1, 2010 at 4:51 AM, Michael Lawrence<br>
>> <<a href="mailto:lawrence.michael@gene.com">lawrence.michael@gene.com</a>> wrote:<br>
>> ><br>
>> ><br>
>> > On Fri, Feb 26, 2010 at 10:08 PM, Deepayan Sarkar<br>
>> > <<a href="mailto:deepayan.sarkar@gmail.com">deepayan.sarkar@gmail.com</a>> wrote:<br>
>> >><br>
>> >> On Fri, Feb 26, 2010 at 9:42 PM, Michael Lawrence<br>
>> >> <<a href="mailto:lawrence.michael@gene.com">lawrence.michael@gene.com</a>> wrote:<br>
>> >> > I'll have to look into this. All of the type conversions were<br>
>> >> > rewritten.<br>
>> >> > It's likely that many things are broken.<br>
>> >><br>
>> >> Here's a different one with enums--some are there, some are not:<br>
>> >><br>
>> >> > Qt$QTextCursor$NoMove<br>
>> >> NoMove<br>
>> >> 0<br>
>> >> attr(,"class")<br>
>> >> [1] "QtEnum"<br>
>> >> > Qt$QTextCursor$Start<br>
>> >> NULL<br>
>> >> > Qt$QTextCursor$Up<br>
>> >> NULL<br>
>> >><br>
>> ><br>
>> > This one I'm having trouble reproducing. Could you please paste the<br>
>> > complete<br>
>> > code?<br>
>><br>
>> That's basically it. I get<br>
>><br>
>> $ R<br>
>> [...]<br>
>> > library(qtbase)<br>
>> > Qt$QTextCursor$NoMove<br>
>> NoMove<br>
>> 0<br>
>> attr(,"class")<br>
>> [1] "QtEnum"<br>
>> > Qt$QTextCursor$Start<br>
>> NULL<br>
>><br>
>> For the full list at<br>
>> <a href="http://doc.trolltech.com/4.5/qtextcursor.html#MoveOperation-enum" target="_blank">http://doc.trolltech.com/4.5/qtextcursor.html#MoveOperation-enum</a><br>
>><br>
>> > sapply(list(Qt$QTextCursor$NoMove,<br>
>> + Qt$QTextCursor$Start,<br>
>> + Qt$QTextCursor$StartOfLine,<br>
>> + Qt$QTextCursor$StartOfBlock,<br>
>> + Qt$QTextCursor$StartOfWord,<br>
>> + Qt$QTextCursor$PreviousBlock,<br>
>> + Qt$QTextCursor$PreviousCharacter,<br>
>> + Qt$QTextCursor$PreviousWord,<br>
>> + Qt$QTextCursor$Up,<br>
>> + Qt$QTextCursor$Left,<br>
>> + Qt$QTextCursor$WordLeft,<br>
>> + Qt$QTextCursor$End,<br>
>> + Qt$QTextCursor$EndOfLine,<br>
>> + Qt$QTextCursor$EndOfWord,<br>
>> + Qt$QTextCursor$EndOfBlock,<br>
>> + Qt$QTextCursor$NextBlock,<br>
>> + Qt$QTextCursor$NextCharacter,<br>
>> + Qt$QTextCursor$NextWord,<br>
>> + Qt$QTextCursor$Down,<br>
>> + Qt$QTextCursor$Right,<br>
>> + Qt$QTextCursor$WordRight,<br>
>> + Qt$QTextCursor$NextCell,<br>
>> + Qt$QTextCursor$PreviousCell,<br>
>> + Qt$QTextCursor$NextRow,<br>
>> + Qt$QTextCursor$PreviousRow),<br>
>> + is.null)<br>
>> [1] FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE TRUE FALSE TRUE<br>
>> FALSE<br>
>> [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE FALSE FALSE<br>
>> FALSE<br>
>> [25] FALSE<br>
>><br>
>> I haven't tried, but presumably similar things happen for other enums.<br>
>><br>
><br>
> Ok, so just for the record, I get:<br>
><br>
>> ls(attr(Qt$QTextCursor, "env"))<br>
> [1] "BlockUnderCursor" "Document" "Down"<br>
> [4] "End" "EndOfBlock" "EndOfLine"<br>
> [7] "EndOfWord" "KeepAnchor" "Left"<br>
> [10] "LineUnderCursor" "MoveAnchor" "NextBlock"<br>
> [13] "NextCell" "NextCharacter" "NextRow"<br>
> [16] "NextWord" "NoMove" "PreviousBlock"<br>
> [19] "PreviousCell" "PreviousCharacter" "PreviousRow"<br>
> [22] "PreviousWord" "Right" "Start"<br>
> [25] "StartOfBlock" "StartOfLine" "StartOfWord"<br>
> [28] "Up" "WordLeft" "WordRight"<br>
> [31] "WordUnderCursor"<br>
><br>
> I'll check-in my changes, and let you know to try again, just so we're on<br>
> the same page.<br>
<br>
</div></div>svn up had some updates, and installing it now gives me the same list.<br>
<br>
However, now I reliably get<br>
<br>
> Qt$QRectF(0, 0, 100, 100) ## or qrect(0, 0, 100, 100)<br>
Error in assign(enum, structure(enums[enum], class = "QtEnum"), env) :<br>
attempt to use zero-length variable name<br>
<font color="#888888"><br></font></blockquote><div><br></div><div>That sucks, because I don't. Maybe a 4.5 vs 4.6 issue? Could you look into the qenums code and try to catch where it is reporting an empty string for an enum name? If you need help finding your way through the code, just let me know. </div>
<div><br></div><div>Thanks for doing all the grunt work testing here. Sorry I have not been taking the time to test things. Hopefully the demo directory will come to represent a nice set of tests. Also, Qt itself has tests which we could translate to R.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888">
-Deepayan<br>
</font></blockquote></div><br>