GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
QGoDeleteFromListDialog Class Reference

this class displays a list of entities and return the list of the ones selected by the user. class based on Qt More...

#include <Code/GUI/lib/QGoDeleteFromListDialog.h>

Inheritance diagram for QGoDeleteFromListDialog:
Inheritance graph
[legend]
Collaboration diagram for QGoDeleteFromListDialog:
Collaboration graph
[legend]

Public Types

typedef std::pair< std::string,
QColor > 
ItemColorComboboxData
 
typedef std::list
< ItemColorComboboxData
ListOfItemColorComboboxData
 

Signals

void CancelRequested ()
 
void ListEntitiesToDelete (std::vector< std::string >)
 

Public Member Functions

 QGoDeleteFromListDialog (std::vector< std::string > iVectorEntities, QWidget *iParent=0, std::string iEntityName="")
 
 QGoDeleteFromListDialog (ListOfItemColorComboboxData iDataListWithColor, QWidget *iParent=0, std::string iEntityName="")
 
virtual ~QGoDeleteFromListDialog ()
 

Protected Slots

void SelectionValidation ()
 ask the user to select at least one item if nothying has been selected and ask the user confirmation if the selection is not null More...
 

Protected Member Functions

void DeleteSelection (QList< QListWidgetItem * > iListEntitiesToDelete)
 emit a signal which sends vector with the names of the entities the user selected to be deleted More...
 
void SetItemsFromTheVector (std::vector< std::string > iVectorItems)
 create the corresponding QListWidgetItems More...
 
void SetItemsInTheListWithColor (std::list< ItemColorComboboxData > iDataList)
 create the corresponding QListWidgetItems with a QColor More...
 
void SetUpUi (std::string iEntityName)
 set the layout with all the objects, the connections and the entity name More...
 

Protected Attributes

std::string m_EntityName
 
QListWidget * m_ListWidget
 

Detailed Description

this class displays a list of entities and return the list of the ones selected by the user. class based on Qt

Definition at line 51 of file QGoDeleteFromListDialog.h.

Member Typedef Documentation

typedef std::pair< std::string, QColor > QGoDeleteFromListDialog::ItemColorComboboxData

Definition at line 56 of file QGoDeleteFromListDialog.h.

Definition at line 57 of file QGoDeleteFromListDialog.h.

Constructor & Destructor Documentation

QGoDeleteFromListDialog::QGoDeleteFromListDialog ( std::vector< std::string >  iVectorEntities,
QWidget *  iParent = 0,
std::string  iEntityName = "" 
)
explicit

Definition at line 49 of file QGoDeleteFromListDialog.cxx.

QGoDeleteFromListDialog::QGoDeleteFromListDialog ( QGoDeleteFromListDialog::ListOfItemColorComboboxData  iDataListWithColor,
QWidget *  iParent = 0,
std::string  iEntityName = "" 
)
explicit

Definition at line 61 of file QGoDeleteFromListDialog.cxx.

QGoDeleteFromListDialog::~QGoDeleteFromListDialog ( )
virtual

Definition at line 74 of file QGoDeleteFromListDialog.cxx.

Member Function Documentation

void QGoDeleteFromListDialog::CancelRequested ( )
signal
void QGoDeleteFromListDialog::DeleteSelection ( QList< QListWidgetItem * >  iListEntitiesToDelete)
protected

emit a signal which sends vector with the names of the entities the user selected to be deleted

Parameters
[in]iListEntitiesToDeletelist of the items selected by the user

Definition at line 156 of file QGoDeleteFromListDialog.cxx.

void QGoDeleteFromListDialog::ListEntitiesToDelete ( std::vector< std::string >  )
signal
void QGoDeleteFromListDialog::SelectionValidation ( )
protectedslot

ask the user to select at least one item if nothying has been selected and ask the user confirmation if the selection is not null

Definition at line 121 of file QGoDeleteFromListDialog.cxx.

void QGoDeleteFromListDialog::SetItemsFromTheVector ( std::vector< std::string >  iVectorItems)
protected

create the corresponding QListWidgetItems

Parameters
[in]iVectorItemsvector with the names of the entities to be displayed

Definition at line 81 of file QGoDeleteFromListDialog.cxx.

void QGoDeleteFromListDialog::SetItemsInTheListWithColor ( std::list< ItemColorComboboxData iDataList)
protected

create the corresponding QListWidgetItems with a QColor

Parameters
[in]iDataListlist with the names of the entities and their color to be displayed

Definition at line 95 of file QGoDeleteFromListDialog.cxx.

void QGoDeleteFromListDialog::SetUpUi ( std::string  iEntityName)
protected

set the layout with all the objects, the connections and the entity name

Parameters
[in]iEntityNamename of the entity to be deleted

Definition at line 170 of file QGoDeleteFromListDialog.cxx.

Member Data Documentation

std::string QGoDeleteFromListDialog::m_EntityName
protected

Definition at line 71 of file QGoDeleteFromListDialog.h.

QListWidget* QGoDeleteFromListDialog::m_ListWidget
protected

Definition at line 72 of file QGoDeleteFromListDialog.h.


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