QDesignerWidgetBoxInterface::Category Class Reference

#include <abstractwidgetbox.h>

Collaboration diagram for QDesignerWidgetBoxInterface::Category:

Collaboration graph
[legend]
List of all members.

Detailed Description

The Category class specifies a category in Qt Designer's widget box component.

Definition at line 67 of file abstractwidgetbox.h.

Public Types

enum  Type

Public Member Functions

 Category (const QString &aname=QString(), Type atype=Default)
QString name () const
void setName (const QString &aname)
int widgetCount () const
Widget widget (int idx) const
void removeWidget (int idx)
void addWidget (const Widget &awidget)
Type type () const
void setType (Type atype)
bool isNull () const

Private Attributes

QString m_name
Type m_type
QList< Widgetm_widget_list


Member Enumeration Documentation

enum QDesignerWidgetBoxInterface::Category::Type

Default Scratchpad

Definition at line 69 of file abstractwidgetbox.h.

00069 { Default, Scratchpad };


Constructor & Destructor Documentation

QDesignerWidgetBoxInterface::Category::Category ( const QString aname = QString(),
Type  atype = Default 
) [inline]

Definition at line 71 of file abstractwidgetbox.h.

00072             : m_name(aname), m_type(atype) {}


Member Function Documentation

QString QDesignerWidgetBoxInterface::Category::name (  )  const [inline]

Definition at line 74 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::addCategory(), qdesigner_internal::WidgetBoxTreeView::categoryListToDom(), and findCategory().

00074 { return m_name; }

void QDesignerWidgetBoxInterface::Category::setName ( const QString aname  )  [inline]

Definition at line 75 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::category().

00075 { m_name = aname; }

int QDesignerWidgetBoxInterface::Category::widgetCount (  )  const [inline]

Definition at line 76 of file abstractwidgetbox.h.

References QString::size().

Referenced by qdesigner_internal::WidgetBoxTreeView::addCategory(), and qdesigner_internal::WidgetBoxTreeView::categoryListToDom().

00076 { return m_widget_list.size(); }

Here is the call graph for this function:

Widget QDesignerWidgetBoxInterface::Category::widget ( int  idx  )  const [inline]

Definition at line 77 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::addCategory(), and qdesigner_internal::WidgetBoxTreeView::categoryListToDom().

00077 { return m_widget_list.at(idx); }

void QDesignerWidgetBoxInterface::Category::removeWidget ( int  idx  )  [inline]

Definition at line 78 of file abstractwidgetbox.h.

00078 { m_widget_list.removeAt(idx); }

void QDesignerWidgetBoxInterface::Category::addWidget ( const Widget awidget  )  [inline]

Definition at line 79 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::category(), qdesigner_internal::WidgetBoxTreeView::domToCategory(), and qdesigner_internal::WidgetBoxTreeView::loadCustomCategoryList().

00079 { m_widget_list.append(awidget); }

Type QDesignerWidgetBoxInterface::Category::type (  )  const [inline]

Definition at line 80 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::addCategory(), qdesigner_internal::WidgetBoxTreeView::categoryListToDom(), and qdesigner_internal::WidgetBoxTreeView::load().

00080 { return m_type; }

void QDesignerWidgetBoxInterface::Category::setType ( Type  atype  )  [inline]

Definition at line 81 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::category(), and qdesigner_internal::WidgetBoxTreeView::domToCategory().

00081 { m_type = atype; }

bool QDesignerWidgetBoxInterface::Category::isNull (  )  const [inline]

Definition at line 83 of file abstractwidgetbox.h.

Referenced by qdesigner_internal::WidgetBoxTreeView::domToCateogryList().

00083 { return m_name.isEmpty(); }


Member Data Documentation

QString QDesignerWidgetBoxInterface::Category::m_name [private]

Definition at line 86 of file abstractwidgetbox.h.

Type QDesignerWidgetBoxInterface::Category::m_type [private]

Definition at line 87 of file abstractwidgetbox.h.

QList<Widget> QDesignerWidgetBoxInterface::Category::m_widget_list [private]

Definition at line 88 of file abstractwidgetbox.h.


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 17:20:48 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1