On Sunday 21 February 2010 09:16:12 Alexander 'hatred' Drozdoff wrote: > Hi all, > > I prepare patch that may be helpful in development process. > > With this patch you can go to Header file, write function prototype (or > method prototype in class definition), press Shift-F2 (or press Right > mouse button on prototype and select item "Switch between Method > Declaration/Definition"), in case when definition does not present, you > can see message box: Implementation does not found. Will I try to create > it? [Yes/No] If you answer Yes, template of method will created and you > moved to it. > > Path is attached to this letter. > > For russian-speak guys avail my description in blog: > http://hatred.homelinux.net/wiki/zhurnal:2010-02-11_20.47_qt_creator_i_avto > maticheskoe_sozdanie_realizacii_metoda_prototipa also, here you can see > screens that demonstrate work of patch. >
Hi, I had a quick look at the patch, and it reminds me of a merge request I've submitted some times ago. Anyway, I did almost the same thing here (without the dialog, and using a plugin): http://gitorious.org/creator-plugins (CppHelper plugin) Note that I'm using the CppTools::Constants::SWITCH_HEADER_SOURCE command instead of searching in the project for the source file. Anyway, I'll have a better look at the way you get the return type/signature/arguments, for the moment it's really basic for me. Cheers, Nicolas -- Nicolas Arnaud-Cormos | [email protected] | Software Ingeneer Klarälvdalens Datakonsult AB, a KDAB Group company Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322) KDAB - Qt Experts - Platform-independent software solutions _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
