KDevelop API Documentation

PropertyLib::PropertyMachineFactory Class Reference

Factory to create property editors and property viewers. More...

#include <propertymachinefactory.h>

Collaboration diagram for PropertyLib::PropertyMachineFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void registerEditor (int type, createMachine creator)
 Registers property editor factory function for a type.
MachinemachineForProperty (MultiProperty *property)
 Creates and returns the editor for given property type.
bool hasDetailedEditors (int type)

Static Public Member Functions

PropertyMachineFactorygetInstance ()

Static Public Attributes

PropertyMachineFactorym_factory = 0

Private Member Functions

 PropertyMachineFactory ()
virtual ~PropertyMachineFactory ()

Private Attributes

QMap< int, createMachinem_registeredForType

Detailed Description

Factory to create property editors and property viewers.

Definition at line 69 of file propertymachinefactory.h.


Constructor & Destructor Documentation

PropertyLib::PropertyMachineFactory::PropertyMachineFactory  )  [private]
 

Definition at line 60 of file propertymachinefactory.cpp.

Referenced by getInstance().

PropertyLib::PropertyMachineFactory::~PropertyMachineFactory  )  [private, virtual]
 

Definition at line 64 of file propertymachinefactory.cpp.


Member Function Documentation

PropertyMachineFactory * PropertyLib::PropertyMachineFactory::getInstance  )  [static]
 

Returns:
a pointer to a property machine factory instance.

Definition at line 182 of file propertymachinefactory.cpp.

References m_factory, and PropertyMachineFactory().

bool PropertyLib::PropertyMachineFactory::hasDetailedEditors int  type  ) 
 

Definition at line 189 of file propertymachinefactory.cpp.

Machine * PropertyLib::PropertyMachineFactory::machineForProperty MultiProperty property  ) 
 

Creates and returns the editor for given property type.

Warning: editor and viewer widgets won't have parent widget. Property editor cares about reparenting and deletion of returned widgets in machines.

Definition at line 68 of file propertymachinefactory.cpp.

References m_registeredForType, PropertyLib::MultiProperty::name(), PropertyLib::MultiProperty::type(), and PropertyLib::MultiProperty::valueList().

void PropertyLib::PropertyMachineFactory::registerEditor int  type,
createMachine  creator
 

Registers property editor factory function for a type.

This factory functions are considered before defaults when machineForProperty is called.


Member Data Documentation

PropertyMachineFactory * PropertyLib::PropertyMachineFactory::m_factory = 0 [static]
 

Definition at line 58 of file propertymachinefactory.cpp.

Referenced by getInstance().

QMap<int, createMachine > PropertyLib::PropertyMachineFactory::m_registeredForType [private]
 

Definition at line 92 of file propertymachinefactory.h.

Referenced by machineForProperty().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:33:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003