[Qt-creator] Project Tree
Ladnar, Marc
Marc.Ladnar at ksab.kroschu.com
Wed Mar 25 11:33:43 CET 2009
I would find it very usefull like that and it opens several
possibillities to use it.
Would be very nice.
Marc
-----Ursprüngliche Nachricht-----
Von: eike.ziller at nokia.com [mailto:eike.ziller at nokia.com]
Gesendet: Mittwoch, 25. März 2009 11:04
An: qt-creator at trolltech.com
Betreff: Re: [Qt-creator] Project Tree
Hi,
I can't quote in a decent way with this stupid web mail client...
I'm pretty sure that you don't want to create virtual folders by hand
for these files that come from somewhere else (though I actually would
highly recommend to avoid absolute paths in .pro files whereever
possible- it makes moving to different platforms more difficult).
These kind of "deep" folder structures could be reduced to a single
"folder" entry where "it makes sense". E.g. something like that:
myproject.pro:
SOURCES += /absolute/path/file.cpp \
../relativepath/foo.cpp \
subdir/bar.cpp \
subdir/deep/bla.cpp \
directfile.cpp
* myproject
* myproject.pro
* /absolute/path
* file.cpp
* ../relativepath
* foo.cpp
* subdir
* deep
* bla.cpp
* bar.cpp
* directfile.cpp
What do you think? Suggestions welcome :)
++ Eike
________________________________________
From: qt-creator-bounces at trolltech.com
[qt-creator-bounces at trolltech.com] On Behalf Of ext Sam Clegg
[sam at ideaworks3d.com]
Sent: Tuesday, March 24, 2009 16:25
To: qt-creator at trolltech.com
Subject: Re: [Qt-creator] Project Tree
On Tue, 2009-03-24 at 14:55 +0100, eike.ziller at nokia.com wrote:
> Hi,
>
> what is the reason for "virtual" folders? Why is important to you to
have virtual folders in contrast to just putting the aboutdialog.* files
in a real subdirectory "about"?
>
While having the folder structure match the disc is a good first step
(and I would welcome it) there are use cases for "virtual" folders.
For example, you may be pulling in source files and/or headers from
outside the root of your project. For example, say you have a project
in ~/myproj but (for whatever reason) you include source files from
somewhere completely different. e.g.
SOURCES += /usr/share/common/source/very/deep/in/the/tree.c \
/usr/include/stdio.h
When there is no common root to all sources in the tree then recreating
the filesystem tree may result in way more nesting than is desirable.
> SOURCES += main.cpp \
> mainwindow.cpp\
> about/aboutdialog.cpp
>
> etc?
> I know that QtCreator doesn't map the filesystem folders in folders in
the tree atm, but what if it would?
>
> All in all, the project tree is not a very efficient way of navigating
anyway - though sometimes helpful if you just can't remember at all how
some file was named. So that's why it is there at all ;-). But as long
as you have a rough idea about a file name, method name, or class name,
using "Locator" (or "Follow Symbol") is usually better suited IMO.
>
> Best regards, Eike
>
> ________________________________________
> From: qt-creator-bounces at trolltech.com
> [qt-creator-bounces at trolltech.com] On Behalf Of ext Porfirio
> [porfirio.ribeiro at sapo.pt]
> Sent: Tuesday, March 24, 2009 12:03
> To: qt-creator at trolltech.com
> Subject: Re: [Qt-creator] Project Tree
>
> Well QtCreator creates a file calledyourproject.pro.user to save
> project settings, so i guess it could be stored there Or maybe use
> comments on pro file like
>
> SOURCES += main.cpp \
>
> mainwindow.cpp \
>
> aboutdialog.cpp #/about
>
>
> HEADERS += mainwindow.h \
>
> aboutdialog.h #/about
>
>
> FORMS += mainwindow.ui \
>
> aboutdialog.ui #/about
>
> Would be ignored by qmake and the ide could understand it
>
>
> Em 24-03-2009 10:07, Sam Clegg escreveu:
>
> On Fri, 2009-03-20 at 09:58 +0100, Albert Graells Rovira wrote:
>
>
> Another vote for this proposal :)
>
>
>
> And anther vote for this.
>
> Really we'd like to see a fully flexible hierarchy in the file view
> where groups can be configured independently of the filesystem layout
> if necessary (which is possible in, dare I say it, msvc). I know its
> tricky since qmake doesn't natively support logical groupings of files
> but presumably this grouping information doesn't have to live in the
> qmake file.
>
>
>
>
>
> 2009/3/20 Kuiper, Luuk <kuiper at hitt.nl><mailto:kuiper at hitt.nl>
>
> We deal we great projects as well. And they subdivide in in
> subdirectories, but it has to lead to one library.
> So we do not use sub-project for that.
> And, yes, I also like very much to see a tree structure in the
> file
> overview that is organized as the file tree on the disk.
>
> Luuk
>
>
>
>
> -----Original Message-----
> From: qt-creator-bounces at trolltech.com
<mailto:qt-creator-bounces at trolltech.com>
> [mailto:qt-creator-bounces at trolltech.com] On Behalf Of Adam
> Higerd
> Sent: 19 March 2009 23:19
> To: qt-creator at trolltech.com<mailto:qt-creator at trolltech.com>
> Subject: Re: [Qt-creator] Project Tree
>
> Porfirio wrote:
> > Hi!
> >
> > I really like QtCreator, its a great software but sometimes
> its hard
> > to organize a big project because all files becomes messed
> even if
> > they are in diferent folders.
> >
> > In Eclipse it shows the folder strocture as it is in system,
> thats a
> > good solution, in Netbeans you can have virtual folders and
> add your
> > files there, even if they are all in same folder or
> whatever.
> >
> > Something like this is realy required!
>
> Creator does this based on project organization; if you have a
> subdirs
> project, it shows each subproject as a separate folder in the
> tree.
>
> Meanwhile, if you have a project that's large enough to be
> spanning into
> subdirectories, you're looking at a case where you might want
> subprojects ANYWAY for the sake of build performance.
>
> /s/ Adam
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com<mailto:Qt-creator at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com<mailto:Qt-creator at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com<mailto:Qt-creator at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
>
> ________________________________
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com<mailto:Qt-creator at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
--
sam clegg
sam at ideaworks3d.com
_______________________________________________
Qt-creator mailing list
Qt-creator at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator
More information about the Qt-creator-old
mailing list