Crossfire Server, Trunk
CREStringListPanel Class Reference

#include <CREStringListPanel.h>

+ Inheritance diagram for CREStringListPanel:
+ Collaboration diagram for CREStringListPanel:

Public Member Functions

 CREStringListPanel (QWidget *parent)
 
QStringList data () const
 
void setData (const QStringList &list)
 
virtual ~CREStringListPanel ()
 

Protected Slots

void onAddItem (bool)
 
void onDeleteItem (bool)
 
void onReset (bool)
 

Private Member Functions

QListWidgetItem * createItem (const QString &text)
 

Private Attributes

QListWidget * myItems
 
QStringList myOriginal
 

Detailed Description

Display and allow edition of a list of multiline strings.

Definition at line 24 of file CREStringListPanel.h.

Constructor & Destructor Documentation

◆ CREStringListPanel()

CREStringListPanel::CREStringListPanel ( QWidget *  parent)

Definition at line 17 of file CREStringListPanel.cpp.

References myItems, onAddItem(), onDeleteItem(), and onReset().

+ Here is the call graph for this function:

◆ ~CREStringListPanel()

CREStringListPanel::~CREStringListPanel ( )
virtual

Definition at line 46 of file CREStringListPanel.cpp.

Member Function Documentation

◆ createItem()

QListWidgetItem * CREStringListPanel::createItem ( const QString &  text)
private

Definition at line 66 of file CREStringListPanel.cpp.

References myItems, and guild_entry::text.

Referenced by onAddItem(), and setData().

+ Here is the caller graph for this function:

◆ data()

QStringList CREStringListPanel::data ( ) const

Definition at line 58 of file CREStringListPanel.cpp.

References myItems.

Referenced by CREStringListDelegate::setModelData().

+ Here is the caller graph for this function:

◆ onAddItem

void CREStringListPanel::onAddItem ( bool  )
protectedslot

Definition at line 74 of file CREStringListPanel.cpp.

References createItem(), and myItems.

Referenced by CREStringListPanel().

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

◆ onDeleteItem

void CREStringListPanel::onDeleteItem ( bool  )
protectedslot

Definition at line 79 of file CREStringListPanel.cpp.

References myItems.

Referenced by CREStringListPanel().

+ Here is the caller graph for this function:

◆ onReset

void CREStringListPanel::onReset ( bool  )
protectedslot

Definition at line 86 of file CREStringListPanel.cpp.

References myOriginal, and setData().

Referenced by CREStringListPanel().

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

◆ setData()

void CREStringListPanel::setData ( const QStringList &  list)

Definition at line 50 of file CREStringListPanel.cpp.

References createItem(), guildoracle::list, myItems, and myOriginal.

Referenced by onReset(), and CREStringListDelegate::setEditorData().

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

Field Documentation

◆ myItems

QListWidget* CREStringListPanel::myItems
private

◆ myOriginal

QStringList CREStringListPanel::myOriginal
private

Definition at line 39 of file CREStringListPanel.h.

Referenced by onReset(), and setData().


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