-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Has anybody worked with KDevelop? IMO this is one of the most important projects in the Linux Community, and especially in the KDE environment. If you've ever worked with JBuilder, you will know what IDE features can add to the development environment. There is NOTHING comperable for C++ that I know of on Linux. http://www.kdevelop.org/ I like JBuilder, and I like doing business with Borland, so I feel kind of bad holding them up as competition, but JBuilder is mark to meet, IMO. STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAPVW/H2SF0i7rrGwRAlgRAKCNGekEW46riyfKifBugS3PoZW+WgCfV1au jc3zIqP93HmKdXqOlzK64X4= =DCYS -----END PGP SIGNATURE-----
Steven T. Hatton wrote :
Has anybody worked with KDevelop? IMO this is one of the most important projects in the Linux Community, and especially in the KDE environment. If you've ever worked with JBuilder, you will know what IDE features can add to the development environment. There is NOTHING comperable for C++ that I know of on Linux. http://www.kdevelop.org/ I like JBuilder, and I like doing business with Borland, so I feel kind of bad holding them up as competition, but JBuilder is mark to meet, IMO.
I've been working a bit with KDevelop. I had no previous experience with this kind of 'draw and fill in' kind of programming tools. I have had some trouble attaching functionality to UI-elements. This mainly because there are not many good examples that start from an "i've never used a tool like this" perspective. On the other hand once i got started i must admit it is good to use. The main problem i've encountered is that the few tutorials out there are not really explaining why they do what they do. And that there are 2 kinds of tutorials, the ones that just get you started and the ones that startout with multipledocument stuff and other rather complex stuff. That's why i (still) allways use the 'KDE-mini' type of application, this is because i wan't some gui stuff done in a simple manner. Things i still don't understand well : 1) What is the 'real approved' method to attach my QT-designer gui to my program (now i just inherit it to the gui to the application like this : DevEnv::DevEnv(QWidget *parent, const char *name) : MainForm(parent, name) 2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)). But in general i would say KDevelop is a powerfull application that (in my opinion) could be even more powerfull (and attractive to new users) if more easy to follow tutorials at more levels of experience were added. Grtz Dries -- 01110111 01110111 01110111 00101110 01110000 01110010 01110101 01101001 01101101 01100010 01101111 01101111 01101101 00101110 01110100 01101011 <End of message>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday 26 February 2004 12:48 pm, dries wrote:
Steven T. Hatton wrote :
Has anybody worked with KDevelop? IMO this is one of the most important projects in the Linux Community, and especially in the KDE environment.
I've been working a bit with KDevelop. I had no previous experience with this kind of 'draw and fill in' kind of programming tools. I have had some trouble attaching functionality to UI-elements. This mainly because there are not many good examples that start from an "i've never used a tool like this" perspective.
There's your first mistake! Reading the instructions. ;-) I have to say, most of the tutorial stuff I read was basically worthless to me. Some of it is simply out of date. OTOH, I haven't read that much of it. I tend to search documentation for specific answers as I go along.
On the other hand once i got started i must admit it is good to use. The main problem i've encountered is that the few tutorials out there are not really explaining why they do what they do. And that there are 2 kinds of tutorials, the ones that just get you started and the ones that startout with multipledocument stuff and other rather complex stuff.
I just try things until I figure out how they work. Since my scope is currently fairly limited, I don't have that much problem right now. I have a lot of suggestions for new features, but I'm waiting until the core gets a bit more stabilized. I feel sorry for developers who have serious functionality problems to address, and significant features to add while people are adding wishlist items about how the icons suck.
That's why i (still) allways use the 'KDE-mini' type of application, this is because i wan't some gui stuff done in a simple manner.
I haven't learned the KDE aspect of programming well enough to try using the big KDE app templates. Someone needs to draw some pictures of what these apps look like in block diagram space. I'm not really talking about UML. If don't find UML all that effective in communicating the conceptual essence of design. OTOH, UML would be better than nothing. I'm sticking to the Qt qmake, based stuff. The automake & friends can do some truly incredible stuff. I've used it a bit, and it really does gnuify your app automagically.
Things i still don't understand well :
Take this to the KDevelop user's list, or even the developer's list. I'm not saying it's inappropriate for this list, just that these questions would do some good for the project. It's not a finished product. It is still very much a work in progress. Yes, I know they have releases, and the releases are basically usable. But there are many features that aren't fully implemented, and, as you have observed, much that needs to be documented.
1) What is the 'real approved' method to attach my QT-designer gui to my program (now i just inherit it to the gui to the application like this :
DevEnv::DevEnv(QWidget *parent, const char *name) : MainForm(parent, name)
2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)).
But in general i would say KDevelop is a powerfull application that (in my opinion) could be even more powerfull (and attractive to new users) if more easy to follow tutorials at more levels of experience were added.
Grtz Dries
-- 01110111 01110111 01110111 00101110 01110000 01110010 01110101 01101001 01101101 01100010 01101111 01101111 01101101 00101110 01110100 01101011 <End of message> STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAPtBRwX61+IL0QsMRAk2RAJ41YObK8X8G6ZPo/ojWY1aTh5wHGgCgqdoi bnQwwfy80eS/z/D9zMYYxXQ= =hXbu -----END PGP SIGNATURE-----
On 26-feb-04, at 18:48, dries wrote:
That's why i (still) allways use the 'KDE-mini' type of application, this is because i wan't some gui stuff done in a simple manner.
Same here. I don't really like applications to create functionality code for me (Wizards, brr). They come out handy, sometimes, but especially if you're learning this stuff this is not the way to go.
Things i still don't understand well :
1) What is the 'real approved' method to attach my QT-designer gui to my program (now i just inherit it to the gui to the application like this :
DevEnv::DevEnv(QWidget *parent, const char *name) : MainForm(parent, name)
Yeah, I've started learning KDevelop/Qt myself (busy working on a project), and found the way this is done in KDevelop kind of weird. All of the tutorials indeed tell you to extends the GUI class, and put your code in that class. However, when you come to think of it, this creates some clean code where functionality and layout are neatly separated from each other. No need to code the GUI side (which can be boring), just create a .ui in Qt Designer and let "Automake & friends" create the .cpp file that belongs to it. Need to make a change? Open the .ui, edit it, save, and your app has a new GUI (after recompile). If you think of it, this really makes sense.
2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)).
I remember from my Java experience that these kinds of things are done by LayoutManagers, and for your case specifically the CardLayout. You add layouts as if they were cards on a staple, and then switch between them by calling some method. Here's an url: http://docs.jcu.edu.au/qt/customlayout.html This does not seem to be the "qt-way" to do layouts, though. Hope it helps. Regards, -- tinus.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 27 February 2004 11:16 am, Martijn Houtman wrote:
On 26-feb-04, at 18:48, dries wrote:
That's why i (still) allways use the 'KDE-mini' type of application, this is because i wan't some gui stuff done in a simple manner.
Same here. I don't really like applications to create functionality code for me (Wizards, brr). They come out handy, sometimes, but especially if you're learning this stuff this is not the way to go.
I don't fully agree with that. The code templates can be very useful for laying down a foundation to get you started. I found that especially true with Qt. In Java I also gained a great deal from JBuilder's code templates and other supporting features. I is simply easier to look through a list of available methods displayed at the edit cursor than it is to go back and forth between a reference document and you work. A disadvantage to that approach is that it can keep you from learning how to construct classes on your own. But the advantages far outway the disadvantages. Often I never incorporate the code generated by the IDE into my project, I simply use it as an example of how to create a particular class or framework.
Yeah, I've started learning KDevelop/Qt myself (busy working on a project), and found the way this is done in KDevelop kind of weird. All of the tutorials indeed tell you to extends the GUI class, and put your code in that class. However, when you come to think of it, this creates some clean code where functionality and layout are neatly separated from each other. No need to code the GUI side (which can be boring), just create a .ui in Qt Designer and let "Automake & friends" create the .cpp file that belongs to it. Need to make a change? Open the .ui, edit it, save, and your app has a new GUI (after recompile). If you think of it, this really makes sense.
That works as long as the you aren't trying to do anything too fancy, like dynamic generation of widgets. They you're back to coding the GUI by hand, at least in part. I think TrollTech should really study what Mozilla does with XUL. I know the Trolls have their approach to dynamic UI, and I really need to study that more.
2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)).
I remember from my Java experience that these kinds of things are done by LayoutManagers, and for your case specifically the CardLayout. You add layouts as if they were cards on a staple, and then switch between them by calling some method. Here's an url: http://docs.jcu.edu.au/qt/customlayout.html This does not seem to be the "qt-way" to do layouts, though. Hope it helps.
I don't know how close this gets to that, but it changes the display of another frame with the click of a button. It's probably possible to put the same button inside the widget being swapped out. file:/usr/lib/qt3/doc/examples/demo/demo I haven't explored it, but the whole body of code is there. I can also recommend _C++ GUI Programming with QT_ http://www.trolltech.com/developer/books.html It takes you through some real world code. For example they create a basic functional spreadsheed with MDI, load and save, and many other features. - -
tinus.
STH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQFAP4AkwX61+IL0QsMRAjrnAJ9PlPMdJlgjfCtN93zg3I+VoBgy2wCg26Ga /s6589f0tnAZzGinbKuNAbM= =JZQj -----END PGP SIGNATURE-----
If its anything like the simple form and window design methods used in Visual Basic it will prove and excellent tool. Its also easier to standardise librarys and standards for use in multiple types of window managers and for cross compilation. Likely only the second good idea Gates ever used. When you have a problem or a paid project to write do you want to spend time on silly issues of look and feel or on the core processing which is to be performed by the product. Look and feel is overhead its not worth a lot of time. Also in *nix we have open source which allows millions to contribute to standards and improvements. Now thats what I call Rapid Application Developement. CWSIV On Thu, 2004-02-26 at 09:48, dries wrote:
Steven T. Hatton wrote :
Has anybody worked with KDevelop? IMO this is one of the most important projects in the Linux Community, and especially in the KDE environment. If you've ever worked with JBuilder, you will know what IDE features can add to the development environment. There is NOTHING comperable for C++ that I know of on Linux. http://www.kdevelop.org/ I like JBuilder, and I like doing business with Borland, so I feel kind of bad holding them up as competition, but JBuilder is mark to meet, IMO.
I've been working a bit with KDevelop. I had no previous experience with this kind of 'draw and fill in' kind of programming tools. I have had some trouble attaching functionality to UI-elements. This mainly because there are not many good examples that start from an "i've never used a tool like this" perspective. On the other hand once i got started i must admit it is good to use. The main problem i've encountered is that the few tutorials out there are not really explaining why they do what they do. And that there are 2 kinds of tutorials, the ones that just get you started and the ones that startout with multipledocument stuff and other rather complex stuff.
That's why i (still) allways use the 'KDE-mini' type of application, this is because i wan't some gui stuff done in a simple manner.
Things i still don't understand well :
1) What is the 'real approved' method to attach my QT-designer gui to my program (now i just inherit it to the gui to the application like this :
DevEnv::DevEnv(QWidget *parent, const char *name) : MainForm(parent, name)
2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)).
But in general i would say KDevelop is a powerfull application that (in my opinion) could be even more powerfull (and attractive to new users) if more easy to follow tutorials at more levels of experience were added.
Grtz Dries
-- 01110111 01110111 01110111 00101110 01110000 01110010 01110101 01101001 01101101 01100010 01101111 01101111 01101101 00101110 01110100 01101011 <End of message>
On Thursday 26 February 2004 18:48, dries wrote:
2) How can i change the complete gui in a window by clicking a button of the current gui in that window ? (functionality i want for some reason (don't ask me why)).
Hi, Quite a late response, but I ran into the same problem. Seems like the suggested (custom) QCardLayout is rather futile with QWidgetStack lying around: http://doc.trolltech.com/3.3/qwidgetstack.html Cheers, -- tinus.
participants (4)
-
Carl William Spitzer IV
-
dries
-
Martijn Houtman
-
Steven T. Hatton