// -*- c++ -*-

#ifndef KUILOADER_H
#define KUILOADER_H

class KUILoader
{
public:

    enum QueryPredicates {
	MatchNone = 0x00,

	MatchFields = 0x01,
	MatchWidgets = 0x02,
	MatchObjects = 0x04,

	MatchSelf = 0x08,
	MatchValue = 0x10,
	MatchProperties = 0x20
    };

    // Display object info
    static void dumpTree( QTextStream &ts, int level, QObject *object, uint query );
    static void dumpSelf( QTextStream &ts, int level, QObject *object, uint query );
    static void dumpProperties( QTextStream &ts, int level, QObject *object, uint query );
    static void dumpField(  QTextStream &ts, QObject *object, uint query );
    static QString findValue( QObject *object, uint query );
};

#endif // KUILOADER_H


