[QScintilla] Re: QScintilla Digest, Vol 16, Issue 4

Patrick Mabie pmabie at gmail.com
Tue Nov 6 21:17:12 GMT 2007


qscintilla-request at riverbankcomputing.com wrote:
> Send QScintilla mailing list submissions to
> 	qscintilla at riverbankcomputing.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
> or, via email, send a message with subject or body 'help' to
> 	qscintilla-request at riverbankcomputing.com
>
> You can reach the person managing the list at
> 	qscintilla-owner at riverbankcomputing.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of QScintilla digest..."
>
>
> Today's Topics:
>
>    1. Re: Setting Up Styles in QScintilla (Phil Thompson)
>    2. Re: QScintilla Digest, Vol 16, Issue 3 (??????)
>    3. Re: Re: QScintilla Digest, Vol 16, Issue 3 (Phil Thompson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 5 Nov 2007 19:19:16 +0000
> From: Phil Thompson <phil at riverbankcomputing.com>
> Subject: Re: [QScintilla] Setting Up Styles in QScintilla
> To: qscintilla at riverbankcomputing.com
> Message-ID: <200711051919.16945.phil at riverbankcomputing.com>
> Content-Type: text/plain;  charset="iso-8859-1"
>
> On Sunday 04 November 2007, Patrick Mabie wrote:
>   
>> To Phil
>>          Thanks for your reply!
>>
>>
>> Using Vista, msvc2005,C++,QScintilla-1.73-gpl-2.1
>>
>> I am trying to set Styles in QScintilla.
>>
>> textEdit->SendScintilla(textEdit->SCI_STYLESETFORE,m_pCpp->Comment,newColor
>> );
>>
>> :-(
>>
>> This Fails , I am not sure why , but it does.
>>     
>
> Why not use QsciLexer::setColor()?
>
>   
>> My Question is what is the proper way to do this , QScintilla is so well
>> done, I must be  overlooking something.
>>
>> I am also trying to set up a api for the cpp lexer but it's failing to. :'(
>> void Props::LoadStyles()
>> {
>>     m_pStyles << "Default" << "Comment" << "CommentLine" << "CommentDoc"
>> << "Number" << "Keyword"
>>    << "DoubleQuotedString" << "SingleQuotedString" << "UUID" <<
>> "PreProcessor" << "Operator"  << "Identifier"
>>    << "UnclosedString" << "VerbatimString" << "Regex"  <<
>> "CommentLineDoc" << "KeywordSet2"
>>    << "CommentDocKeyword" << "CommentDocKeywordError" << "GlobalClass";
>> }
>>
>> void Props::LangCpp()
>> {
>>    CheckLexer();
>>    m_pCpp = new QsciLexerCPP(textEdit);
>>    SetLexer(m_pCpp);
>>    m_pApi = new QsciAPIs(m_pCpp);
>>
>>    m_pApi = new QsciAPIs(m_pCpp);
>>    foreach(QString style,m_pStyles)
>>    {
>>       m_pApi->add(tr("/")+style+tr("\\"));
>>    }
>>
>>    m_pApi->prepare();
>>    QString FileName = m_pApi->defaultPreparedName();
>>     if(m_pApi->isPrepared(FileName))
>>     {
>>        m_pApi->savePrepared(FileName); <----------------- I never get to
>> this point
>>     }
>> }
>>
>> Any help on either problem would greatly be appreciated.
>>     
>
> isPrepared() only returns true if a file exists - which it probably doesn't 
> because you haven't called savePrepared() yet.
>
> Note that the only way to know when prepare() has finished it's work is to 
> connect to the apiPreparationFinished() signal.
>
> Phil
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 06 Nov 2007 10:33:55 +0200
> From: ?????? <hlamer at tut.by>
> Subject: [QScintilla] Re: QScintilla Digest, Vol 16, Issue 3
> To: qscintilla at riverbankcomputing.com
> Message-ID: <web-426051021 at speedy.tutby.com>
> Content-Type: text/plain;charset=utf-8;format="flowed"
>
>   
>>   1. Re: Problem when SCI_CLEARALLCMDKEYS (Phil Thompson)
>> Does the problem still exist with the current snapshot?
>>
>> Phil
>>
>>     
> Yes ( I have 10.24)
>  
>
> ------------------
> Форекс Клубу 10 лет! http://www.forexclub.by
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 6 Nov 2007 09:04:02 +0000
> From: Phil Thompson <phil at riverbankcomputing.com>
> Subject: Re: [QScintilla] Re: QScintilla Digest, Vol 16, Issue 3
> To: qscintilla at riverbankcomputing.com
> Message-ID: <200711060904.02183.phil at riverbankcomputing.com>
> Content-Type: text/plain;  charset="utf-8"
>
> On Tuesday 06 November 2007, Андрей wrote:
>   
>>>   1. Re: Problem when SCI_CLEARALLCMDKEYS (Phil Thompson)
>>> Does the problem still exist with the current snapshot?
>>>
>>> Phil
>>>       
>> Yes ( I have 10.24)
>>     
>
> If you are using the low level interface then you also need to explicitly 
> assign the control characters to SCI_NULL. See the code at the bottom of the 
> QsciCommandSet ctor for an example.
>
> Phil
>
>
>
> ------------------------------
>
> _______________________________________________
> QScintilla mailing list
> QScintilla at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
>
>
> End of QScintilla Digest, Vol 16, Issue 4
> *****************************************
>
>   
Thanks Phil!


Have a great day!



More information about the QScintilla mailing list