[Qt-creator] (no subject)
Eike Ziller
eike.ziller at nokia.com
Tue Jan 5 09:57:34 CET 2010
On Dec 28, 2009, at 2:11 PM, ext Rudenko Eugene wrote:
> Hello, I trying to get into Qt-creator source code.
> The first task I'm going to implement is make different view of source
> tree in tree view.
> Some explanations:
> now source tree consist of such folders:
> static QStringList fileTypeNames = QStringList() <<
> tr("Headers")
> << tr("Sources")
> << tr("Forms")
> << tr("Resources")
> << tr("Other files");
>
> I'm going to implement another one:
> static QStringList fileTypeNames = QStringList() <<
> tr("Sources")
> << tr("Forms")
> << tr("Resources")
> << tr("Other files");
>
> In sources tree I'll going to show .h and .cpp files together.
>
> I hove some questions:
> 1. Why "FlatModel" has such strange name, it's confusing, because
> there are no another models (In mach more early sources there are was
> one more model, but it didn't was using.). It's Confusing because this
> model is able to represent tree and flat, regarding it's filter.
> 2. Filter name: "m_filterProjects" - enable simplify tree view. The
> name is confusing too.
Historically. Now with the refactoring support in Qt Creator, that would probably a good thing to rename ;)
> 3. The question about design implementation of my idea: I'm not
> currently know much about source code organization, that's why I'm
> unable to make best decision. Now I can see two possible ways to
> implement my idea:
> 1. Leave qt4project class's realization the same. I'll get the same
> folder's names. But in model get one more filter
> "m_filterMergeSources",for example, and if it's true and
> "m_filterProjects" is false then hide headers and make "sources" node
> they parent node. But it's looks like dirty hack.
> 2. Another way is to change qt4project class, to set this filter to
> it, and if merge filter is true, then it return another
> FileTypesName and another hierarchy. But in this case, we have to
> get two different trees. And this is overheading.
>
> Maybe there are exists another way ???
3. Leave it as-is? Is that really worth the hassle, introducing a new option, etc, etc? What *is* a missing "feature", which I already looked into (but it's not trivial to implement in the "FlatModel" because one needs to merge nodes from a deeper level), is to make it possible to hide the categories (but still have the "complex" tree).
Best regards,
--
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator-old
mailing list