Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CategoryEdit Class Reference

#include </home/clem/local/src/opie/library/categoryedit_p.h>

Collaboration diagram for CategoryEdit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CategoryEdit (QWidget *parent=0, const char *name=0)
 CategoryEdit (const QArray< int > &vlRecs, const QString &appName, const QString &visibleName, QWidget *parent=0, const char *name=0)
 ~CategoryEdit ()
void setCategories (const QArray< int > &vlRecs, const QString &appName, const QString &visibleName)
QArray< int > newCategories ()
void kludge ()

Protected Slots

void slotAdd ()
void slotRemove ()
void slotSetText (QListViewItem *selected)
void slotSetGlobal (bool isChecked)
void slotTextChanged (const QString &strNew)

Protected Member Functions

void accept ()

Private Attributes

CategoryEditPrivated

Constructor & Destructor Documentation

CategoryEdit::CategoryEdit QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 53 of file categoryedit_p.cpp.

References d.

CategoryEdit::CategoryEdit const QArray< int > &  vlRecs,
const QString appName,
const QString visibleName,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 59 of file categoryedit_p.cpp.

References d, and setCategories().

CategoryEdit::~CategoryEdit  ) 
 

Definition at line 106 of file categoryedit_p.cpp.

References d.


Member Function Documentation

void CategoryEdit::accept  )  [protected]
 

Definition at line 209 of file categoryedit_p.cpp.

References categoryFileName(), d, CategoryEditPrivate::mCategories, and Categories::save().

void CategoryEdit::kludge  ) 
 

Definition at line 224 of file categoryedit_p.cpp.

Referenced by CategoryWidget::kludge().

QArray< int > CategoryEdit::newCategories  ) 
 

Definition at line 190 of file categoryedit_p.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), categoryFileName(), QValueList< T >::count(), d, QValueList< T >::end(), i, Categories::id(), l, CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, and Categories::save().

Referenced by CategoryWidget::newCategories().

void CategoryEdit::setCategories const QArray< int > &  vlRecs,
const QString appName,
const QString visibleName
 

Definition at line 68 of file categoryedit_p.cpp.

References QValueList< T >::begin(), d, QValueList< T >::end(), FALSE, i, Categories::ids(), Categories::isGlobal(), Categories::labels(), CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, CategoryEditPrivate::mVisible, name, tr, and TRUE.

Referenced by CategoryEdit(), and CategoryWidget::setCategories().

void CategoryEdit::slotAdd  )  [protected, slot]
 

Definition at line 125 of file categoryedit_p.cpp.

References Categories::addCategory(), d, FALSE, CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, CategoryEditPrivate::mVisible, name, QString::number(), tr, and TRUE.

void CategoryEdit::slotRemove  )  [protected, slot]
 

Definition at line 147 of file categoryedit_p.cpp.

References d, CategoryEditPrivate::editItem, FALSE, CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, Categories::removeCategory(), and TRUE.

void CategoryEdit::slotSetGlobal bool  isChecked  )  [protected, slot]
 

Definition at line 167 of file categoryedit_p.cpp.

References d, CategoryEditPrivate::editItem, CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, CategoryEditPrivate::mVisible, Categories::setGlobal(), and tr.

void CategoryEdit::slotSetText QListViewItem *  selected  )  [protected, slot]
 

Definition at line 112 of file categoryedit_p.cpp.

References d, CategoryEditPrivate::editItem, and tr.

void CategoryEdit::slotTextChanged const QString strNew  )  [protected, slot]
 

Definition at line 179 of file categoryedit_p.cpp.

References d, CategoryEditPrivate::editItem, CategoryEditPrivate::mCategories, CategoryEditPrivate::mStrApp, Categories::renameCategory(), and Categories::renameGlobalCategory().


Member Data Documentation

CategoryEditPrivate* CategoryEdit::d [private]
 

Definition at line 55 of file categoryedit_p.h.

Referenced by accept(), CategoryEdit(), newCategories(), setCategories(), slotAdd(), slotRemove(), slotSetGlobal(), slotSetText(), slotTextChanged(), and ~CategoryEdit().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:28:09 2005 for OPIE by  doxygen 1.4.2