Hey blockd, it's confirmed!
viewport()->update() works like a charm!
tks for the tip!
Try to make persistent selection and multiline edition works and post results here!
Hey blockd, it's confirmed!
viewport()->update() works like a charm!
tks for the tip!
Try to make persistent selection and multiline edition works and post results here!
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
Hey, guys!
I have wroted one good text editor from two yours.
I'll post it here later, ok?
Here it is!
Looks very nice!!!!
Hey, I'm creating a sourceforge project to the Qt IDE, but if more people here will participate I think it's a good idea to ask for a name
In my opinion the IDE name should be something with a meaning like some greek word or anything like that. Particulary I do not like names like: QIDE, qwhateveryouwanttocall, kmyapplicationforkde and so on.
Well, I'm thinkning on a good and powerful name, til I get some sujestions please, post your ideas here!!!!
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
I'll think about it, ok?!
Hey blockd, just to simplify your snippet your could ripp off the highlightCurrentLine method and on constructor you could do
Qt Code:
connect(this, SIGNAL(cursorPositionChanged()), viewport(), SLOT(update()) );To copy to clipboard, switch view to plain text mode
just to simplify the snippet
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
All serious IDE's have names like these:Originally Posted by Townk
Eclipse, CodeForge, Visual Studio, KDevelop, Anjuta, SlickEdit...
I'm from non-english speaking country and it's difficult to me to find the name for the application, but look at these:
Nimble IDE
EdgeWise IDE
True, but the main reason I wrote it that way was because you could possibly do more in the highlightCurrentLine() slot before calling an update, like determine the region to update.Originally Posted by Townk
Ok guys, let me talk about that IDE:
First question I want to answer is: Why do another C++ IDE since we have KDevelop for Linux and even Eclipse CDT for multiplataform purpose?
I think that this answer is not so simple, but lets go. I beleave that KDevelop is one of the best IDE for C++ ever made (by the way I'm using it), BUT, it has so many features that to a beginer or to create a simple and quick project its not easy to get there. With this I get to Eclipse that has a diferent aproach that is easyly things, so, why not use Eclipse instead? Becouse CDT plugin do not suport Qt programming as I want it! Than my last reason is that:
Qt is so powerful that is a shame that no one start some kind of project like this I'm proposing.
Second question: How do we has to procede?
I think that a good aproach is create separated modules like editor, project manager, code complete and than join them to build the IDE and for each custom widget that is developed I think that we should think in create it to use it inside the Designer, so, each form UI that we develop we can use Designer to do that, besides it facilitate creation of UI we will use all the power of Qt to build a greate Qt IDE.
With this modules in mind I want to propose the editor widget like this:
Qt Code:
Q_OBJECT public: ~QCodeEdit(); public slots: void setHighlightCurrentLine(bool highlight); void setMultilineEdit(bool multiline); void setPersistentSelection(bool persistent); void setLinesPannelVisible(bool shown); void setIconBordPannelVidible(bool shown); void setIconMarksPannelVisible(bool shown); void append(const QString& text); void clear(); void copy(); void cut(); void paste(); void selectAll(); void setCurrentFont(const QFont& f); void setFontFamily(const QString& fontFamily); void setFontPointSize(qreal s); void setText(const QString& text); signals: void copyAvailable(bool yes); void cursorPositionChanged(); void redoAvailable(bool available); void selectionChanged(); void textChanged(); void undoAvailable(bool available); void codeFolded(int line); void codeCompleteRequest(int viewportX, int viewportY, const QString& wordToComplete); };To copy to clipboard, switch view to plain text mode
I can't think in other signals or slots, but if you have some other ideas...
I think it's all I want to talk. Sorry by my bad english, is that I'm just thinking and writing
Any comment?
Oh, how about we create a topic for this IDE discution?
Last edited by Townk; 4th February 2006 at 17:34. Reason: Forgot to put the class header
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
Reguarding the name:
Don't put IDE on the name. The best application names have nothing to do with functionality:
Power Point
Excel
Mozilla
Amarok
k3b
Choose a cool name which gives people time to think (what does Ubuntu mean...?)
Now, if we all are attaching files to text editors, on the thread "a Text Editor with line numbers... " I added some minimalistic highligh engine. I used some ideas spoken here, so IMHO it's just fear to mention that.
Townk,
Reguarding the reasons, you forgor this one:
When you are compiling Qt applications you would like to see Qt tools. Using Eclipse or VS is shooting oneself in the leg.
I would like to see such project born and become usefull. I also beleave you re correct, and if such beast should be done, it should be done in a modular way. This way, the code can be modified easily and one can use code snipets from other projects.
Last edited by elcuco; 4th February 2006 at 17:54.
Totaly agree with that!Originally Posted by elcuco
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
I think that we don't need only qt-oriented IDE. We need crossplatform "multi-oriented" IDE (This could be realized with plugin support for different types of projects).
Also we have no need to use the 'IDE' in the title (application name)Originally Posted by Townk
Hi guys!
I'm back after a week-end with no internet connection but I used that time attempting to build a trully powerfull editor (have a look at thread "text editor with line numbers" for more info and download)
About the name: When I was working alone on mine project I think that DevQt could be a decent name but reguarding to what you all said it appear that it's no that good!
Totally agree and BTW could you tell me (I'm so stupid! ) what does Ubuntu mean???Originally Posted by elcuco
The answer is quite simple, IMO: KDevelop may be VERY nice but it's not multi-platform;Originally Posted by Townk
Eclipse could have been nice as well but it's written in Java so it's SLOOOOOOOOW!!!
Moreover none of all the multi-platform IDE you can find has a build-in support for Qt4 : they all need plugins or extra tools!
Finally I think it would be great to get involved in such a project : it's the best way to learn and to make your current knowledge usefull!
Back to the project itself : it MUST be modular and plugins aren't a bad idea but they'll come later on! I'm not a great fan of the designer because it handles layouts very badly and thus can't create harmoniously resizable widgets but, well... why not?
I have already done a minimalist handling of .pro files : it read the file and translate it to athe Qstring being the name of the variable and the QStringList its content.Qt Code:
QMap<QString, QStringList>To copy to clipboard, switch view to plain text mode
I'm planning to handle conditionnals as well but it's gonna be much harder!!!
edit: posted the screenshot(damn resizing I have to do! it was 1024*768 and the only image processing program I could use was M$ paint!!!) and source
Last edited by fullmetalcoder; 6th February 2006 at 14:13.
Current Qt projects : QCodeEdit, RotiDeCode
Looks very good FullmetalCoder, I'll look into the code later
But, seeing this screenshot and what you are doing, makes me wonder:
Are you using the EVONSAF methodology to develop your project (rsrsrsr, )?
Before you ask EVONSAF means:
Enorme
VOntade de
SAir
Fazendo
that is an anacronism to "Huge Wish to Get Doing" in protuguese.
How about, project documentation? Diagrams? Even plans for your IDE?
I think if you spend a little time on these things your project shoud be as good as it looks like. Just a tip
But, anyway... excelent work so far (at least visualy).
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
I tried yours and I've a few comments:Originally Posted by Xagen
- when you take code from other people its surely nice to mention it but when they're distributed under GPL, as was mine, you MUST keep the copyright notice!!! And you didn't AFAIK! I'm not gonna trial you but I advise you to consider following the rulesthat make open source possible!
- please drop the Qx / QxPrivate architecture ( MemoX / MemoXPrivate in your case) : it's awful !!!
- obviously you didn't read that hread very well : your current line highlighting is not fixed!
I made a short diagram (by hand and no UML or stuffs like that!) of the project after two version heavily inspired from the WYSIWYG editor example provided by the Trolls and I used it to craft the current version; If you wish to start the devolepement of what's coming to be OUR IDE , I can make a more understandable one and post it here so as to allow a common and harmonious developement process!How about, project documentation? Diagrams? Even plans for your IDE?
I think if you spend a little time on these things your project shoud be as good as it looks like.
Current Qt projects : QCodeEdit, RotiDeCode
Yo guys, I don't know what you think about this, but I want to call our IDE of: "Sphere"
I don't know why nor how I think in this name, but it doesn't out off my mind
Well, _PLEASE_ give me a name to I finish the registration of the project on Sourceforge!!!!
--
Thiago dos Santos Alves
Computer Scientist
thiago.salves@gmail.com
-----------------------------------------------------
"A mind that opens to a new idea never gets its original size again."
- Albert Einstein
Sphere ??? It doesn't really appeal to me (what about Canopy? )!Originally Posted by Townk
Do you like "CodeSailor" or "Bumblebee"? why those rather than others? Dunno, maybe I think coding is much like sailing or I like the comparision between coder and bumblebee!
It seems we're going a little off-topic! I'm gonna open a IDE developpement thread!
Current Qt projects : QCodeEdit, RotiDeCode
Bookmarks