[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/src/widgets pgrichedit.cpp,1.3.6.3,1.3.6.4
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/src/widgets pgrichedit.cpp,1.3.6.3,1.3.6.4 |
Date: |
Fri, 22 Nov 2002 12:58:45 -0500 |
Update of /cvsroot/paragui/paragui/src/widgets
In directory subversions:/tmp/cvs-serv6060/src/widgets
Modified Files:
Tag: devel-1-0
pgrichedit.cpp
Log Message:
collected changes for 1.0.3
Index: pgrichedit.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/widgets/pgrichedit.cpp,v
retrieving revision 1.3.6.3
retrieving revision 1.3.6.4
diff -C2 -r1.3.6.3 -r1.3.6.4
*** pgrichedit.cpp 12 Sep 2002 06:34:28 -0000 1.3.6.3
--- pgrichedit.cpp 22 Nov 2002 17:58:43 -0000 1.3.6.4
***************
*** 101,111 ****
void PG_RichEdit::SetText(const std::string &text) {
! my_text = text;
! ParseWords();
! CompleteLines();
}
void PG_RichEdit::SetText(const char *text) {
! PG_Widget::SetText(text);
ParseWords();
CompleteLines();
--- 101,131 ----
void PG_RichEdit::SetText(const std::string &text) {
! SetText(text.c_str());
}
void PG_RichEdit::SetText(const char *text) {
! if(text == NULL) {
! my_text = "";
! return;
! }
!
! my_text = text;
!
! // trim the string
! bool bStop = false;
!
! while(!my_text.empty() && !bStop) {
! char c = my_text[my_text.size()-1];
! bStop = true;
! switch(c) {
! case '\n':
! case '\r':
! case '\t':
! case ' ':
! my_text = my_text.substr(0, my_text.size()-1);
! bStop = false;
! }
! }
!
ParseWords();
CompleteLines();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/src/widgets pgrichedit.cpp,1.3.6.3,1.3.6.4,
Alexander Pipelka <address@hidden> <=