PDA

View Full Version : How I must do this



kjiu
19th February 2009, 15:25
Hello,
I have a question how I must do this :
example

http://img11.imageshack.us/img11/9728/aaamu4.png (http://imageshack.us)

kjiu

Persoontje
19th February 2009, 15:31
Do what? What do you want to do with the letters?

kjiu
19th February 2009, 16:04
no.. I want to be the nr. 1,2,3,5 ->.... The lines.. were I am writing

talk2amulya
19th February 2009, 16:12
where do u wanna write them..explain clearly so we can help u..

aamer4yu
19th February 2009, 17:04
May be you can have a look at Qt Creator code.

fullmetalcoder
19th February 2009, 17:11
So basically you want a text editor with line numbers right?

This topic has already been covered several times, please use the search feature of this forum.

You can find such a feature in QCodeEdit (http://qcodeedit.edyuk.org) and QScintilla (http://www.riverbankcomputing.co.uk/software/qscintilla/intro) or any editor widget used by IDEs out there. Edyuk uses QCE, MonkeyStudio uses QScintilla and the others (QtCreator, QDevelop, HaiQ) have it somewhere it their code which you can study and copy as it is GPL'd

kjiu
19th February 2009, 17:27
look:

we have a text editor and when we write :
- I write rr :

http://img5.imageshack.us/img5/7103/ssswy4.png (http://imageshack.us)

then when a do "enter" there is :

http://img156.imageshack.us/img156/2079/43168805gw5.png (http://imageshack.us)

fullmetalcoder
19th February 2009, 17:43
so you're after a text editor that turns 'r' into 'a'? I must be missing something because apart from that I cannot see what's so special about your screenshots...

kjiu
19th February 2009, 17:52
no no no !!..
sorry that was my error...

1.rr
2.

this is what I what to do

Lykurg
19th February 2009, 18:01
so you're about a text editor that turns 'r' into 'a'?

Sorry I must: :D :D :D :D

@kjiu: have a look in the sources fullmetalcoder has pointed out for you! If you have problems to understand the code, ask.

kjiu
19th February 2009, 20:15
look :
http://www.qt-apps.org/content/preview.php?preview=1&id=99475&file1=99475-1.png&file2=99475-2.png&file3=99475-3.png&name=QCodeEdit

like this ( line 1660 and next is 1670 )

do you understand ?

fullmetalcoder
19th February 2009, 20:50
I'm afraid I still don't understand what you want...

If you want to draw line numbers in a text editor then I have already answered your question : use forum search with this phrase for instance "text editor line numbers" and you'll find several threads on the topic. Alternatively, as I have already suggested you can use existing libraries that provide such a widget out of the box or you can read the code of said libraries (or the IDEs I mentionned) and find out how they achieve that.

If you want something else then I just did not understand your previous posts (and I suspect I am not alone) so it would be good to reformulate your question so that we may understand it and thus be able to answer it.

stevey
20th February 2009, 01:09
I'm still having a really hard time trying to understand what the question is.
A detailed description in words detailing what you're trying to achieve would be really awesome. If this never happens then no one's going to be able to help you with your problem.

stevey
20th February 2009, 01:13
Actually this reminds me of a Danger Mouse DVD where the narrator was rambling on between episodes talking about random stuff and how he was going to show us how to make on of "these". Mind you only the DM logo was on screen leaving an aire of mystery about the whole thing.

kjiu
20th February 2009, 07:40
yes I want text editor line numbers..

kjiu
20th February 2009, 08:13
I have the notepad and can you do this for me.. because is very important . please

Lykurg
20th February 2009, 10:09
because is very important
My time too! So you won't find here anyone who will do your work for you. You simply want line numbers in your editor, so have a look into the sources of the previous mentioned applications.
If you have written the code of your attached file by yourself, you should be able to understand how to get line numbers....

drhex
20th February 2009, 13:02
kjiu, please read this:


How to ask questions the smart way (http://www.catb.org/~esr/faqs/smart-questions.html)

talk2amulya
20th February 2009, 14:45
this is the funniest thread i've read in my entire life :D that convert "r" into "a" line deserves a "QT Centre smartest line" award..thank you guys and kuju, please mk ur problem VERY clear the very first time..ev1's time is impt!! but this was worthed :D