extragear/sdk/kdevplatform

Andreas Pakulat apaku at gmx.de
Sat Feb 20 07:17:46 UTC 2010


On 20.02.10 02:07:34, Alexander Dymo wrote:
> SVN commit 1093048 by dymo:
> 
> Add IQuickOpen::showQuickOpen(const QStringList &types) function to the IQuickOpen interface.
> It show quick open widget/dialog for the given list of types (files, functions, classes,
> or any other types for which quick open data providers are registered).
> Provide the implementation in quick open plugin.
> 
> 
>  M  +8 -0      language/interfaces/iquickopen.h  
>  M  +25 -5     plugins/quickopen/quickopenplugin.cpp  
>  M  +2 -0      plugins/quickopen/quickopenplugin.h  
> 
> 
> --- trunk/extragear/sdk/kdevplatform/language/interfaces/iquickopen.h #1093047:1093048
> @@ -55,6 +55,14 @@
>      virtual ~IQuickOpen();
>  
>      /**
> +     * Shows the quickopen dialog with the entries of specified types
> +     * Default types are: Files, Functions, Classes
> +     * There might be other quick open providers with custom items.
> +     * Note, the item name has to be translated, for example i18n("Files") should be passed.
> +     * */
> +    virtual void showQuickOpen( const QStringList &types ) = 0;
> +

Can we please use an enum for this instead of a stringlist without any
type-checking. I know its a plain stringlist in the implementation, but
at least the public API should be sane.

Andreas

-- 
Don't read everything you believe.




More information about the KDevelop-devel mailing list