Crossfire Server, Trunk
CRESubItemList Class Reference

#include <CREPrePostPanel.h>

+ Inheritance diagram for CRESubItemList:
+ Collaboration diagram for CRESubItemList:

Public Member Functions

 CRESubItemList (QWidget *parent)
 
void setData (const QStringList &data)
 
- Public Member Functions inherited from CRESubItemWidget
 CRESubItemWidget (QWidget *parent)
 

Private Slots

void endEdition (QWidget *editor, QAbstractItemDelegate::EndEditHint hint)
 
void onAddSubItem (bool)
 
void onDeleteSubItem (bool)
 

Private Member Functions

void addItem (const QString &item)
 
QStringList data () const
 

Private Attributes

QListWidget * mySubItems
 

Additional Inherited Members

- Signals inherited from CRESubItemWidget
void dataModified (const QStringList &data)
 

Detailed Description

Pre- or post- panel displaying script arguments as a string list.

Definition at line 128 of file CREPrePostPanel.h.

Constructor & Destructor Documentation

◆ CRESubItemList()

CRESubItemList::CRESubItemList ( QWidget *  parent)

Definition at line 21 of file CREPrePostPanel.cpp.

References endEdition(), mySubItems, onAddSubItem(), and onDeleteSubItem().

+ Here is the call graph for this function:

Member Function Documentation

◆ addItem()

void CRESubItemList::addItem ( const QString &  item)
private

Definition at line 40 of file CREPrePostPanel.cpp.

References mySubItems.

Referenced by onAddSubItem(), and setData().

+ Here is the caller graph for this function:

◆ data()

QStringList CRESubItemList::data ( ) const
private

Definition at line 56 of file CREPrePostPanel.cpp.

References mySubItems.

Referenced by endEdition(), onAddSubItem(), onDeleteSubItem(), and setData().

+ Here is the caller graph for this function:

◆ endEdition

void CRESubItemList::endEdition ( QWidget *  editor,
QAbstractItemDelegate::EndEditHint  hint 
)
privateslot

Definition at line 64 of file CREPrePostPanel.cpp.

References data(), and CRESubItemWidget::dataModified().

Referenced by CRESubItemList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onAddSubItem

void CRESubItemList::onAddSubItem ( bool  )
privateslot

Definition at line 69 of file CREPrePostPanel.cpp.

References addItem(), data(), CRESubItemWidget::dataModified(), and mySubItems.

Referenced by CRESubItemList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ onDeleteSubItem

void CRESubItemList::onDeleteSubItem ( bool  )
privateslot

Definition at line 78 of file CREPrePostPanel.cpp.

References data(), CRESubItemWidget::dataModified(), and mySubItems.

Referenced by CRESubItemList().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setData()

void CRESubItemList::setData ( const QStringList &  data)
virtual

Implements CRESubItemWidget.

Definition at line 47 of file CREPrePostPanel.cpp.

References addItem(), data(), and mySubItems.

+ Here is the call graph for this function:

Field Documentation

◆ mySubItems

QListWidget* CRESubItemList::mySubItems
private

For one condition, arguments to the script.

Definition at line 141 of file CREPrePostPanel.h.

Referenced by addItem(), CRESubItemList(), data(), onAddSubItem(), onDeleteSubItem(), and setData().


The documentation for this class was generated from the following files: