Component Class Reference

[KGUI Index] [KGUI Hierarchy] [Headers]


Represents a Component that is available for use in the GUI builder More...

#include <component.h>

Inherits: QObject (qt)

Public Members

Protected Members


Detailed Description

Represents a Component that is available for use in the GUI builder. These are created by a Package.


Component(const char *name, const char *description, Package *provider= 0) [public]

Create a component named 'name' and with the specified short description.

const char* name() [public]

User visible name for this component type.

QPixmap pixmap() [public virtual]

Pixmap to be used for instances of this component in the tree view (and also elsewhere)

const char* description() [public]

User visible short description for this component type.

uint superCount() [public]

The number of super-Components that contribute to this component.

Component* super(uint n) [public]

Return the super-Component at index n.

void addSuper(Component *c) [public]

Adds a new Component to the list. Each super can provide properties

Package* package() [public]

The Package that provided this Component.

void setPackage(Package *provider) [public]

Set the Package that provides this component.

class Instance* createInstance(Instance *parent) [public virtual]

Create an Instance of this Component, with the specified Instance as parent.

QWidget* createView(Instance *props, QWidget *parent) [public virtual]

Create a view of the specified Instance with the specified widget as the parent view. The properties of the QWidget are updated from the Instance using updateView().

void updateView(Instance *props, QWidget *view) [public virtual]

Update the specified view using the properties of the specified Instance.


  • Author: Richard Moore
  • Documentation generated by rich@pegasus on Sat Apr 17 17:09:53 BST 1999
Kdoc