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

this class inherits from QGoColorComboBox, has only the add item option and update the text according to the iCollectionName. It handles the printing of the collection IDs More...

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

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

Public Slots

void InitializeTheListWithColor (std::list< ItemColorComboboxData > iDataFromList, std::string iCollectionName)
 
void SetItemsFromListWithColor (std::list< ItemColorComboboxData > iDataFromList, std::string iCollectionName)
 

Signals

void NewCollectionToCreate ()
 
- Signals inherited from QGoColorComboBox
void ItemSelected (ItemColorComboboxData)
 
- Signals inherited from QGoComboBox
void AddANewOneActivated ()
 
void DeleteActivated ()
 
void ItemSelected (std::string)
 

Public Member Functions

 QGoCollectionColorComboBox (QWidget *iparent=0)
 
virtual ~QGoCollectionColorComboBox ()
 
- Public Member Functions inherited from QGoColorComboBox
void AddItemWithColor (ItemColorComboboxData iNewItemData, bool SelectTheAddedItem=true)
 add an item with color at the end of the list befor the "add new..." if they have already been added to the list and select it if selectetheaddeditem is set to true. More...
 
void InitializeTheListWithColor (std::list< ItemColorComboboxData > iDataFromList)
 call the method setItemsWithColorFromList and send a signal with the current index. More...
 
 QGoColorComboBox (std::string iTextToAddANewOne, QWidget *iparent=0, std::string iTextToDelete="")
 
void SetItemsFromListWithColor (std::list< ItemColorComboboxData > iDataFromList)
 clear the items already in the combobox,displayed the one in the iDataFromList and the items to add/delete More...
 
virtual ~QGoColorComboBox ()
 
- Public Member Functions inherited from QGoComboBox
 QGoComboBox (std::string iTextToAddANewOne, QWidget *iparent=0, std::string iTextToDelete="")
 if the string iTextToDelete is empty, there will be only the add a new item at the end of the list More...
 
void SetCurrentItemAndActivate (int iIndex)
 select the current item located at iIndex and send a signal with the name of this item. More...
 
void SetCurrentItemAndActivate (std::string iItemText)
 
virtual ~QGoComboBox ()
 

Protected Slots

virtual void ActionWhenNewOneRequested ()
 
- Protected Slots inherited from QGoColorComboBox
virtual void ActionWhenNewOneRequested ()=0
 slot linked to the signal AddANewOneActivated() More...
 
virtual void EmitActivatedItem (int iIndexActivatedItem)
 
- Protected Slots inherited from QGoComboBox
void CheckUserAction (int iIndexActivatedItem)
 check which item has been clicked and emit the corresponding signal: addanewone, deleteactivated or itemselected More...
 
virtual void EmitActivatedItem (int iIndexActivatedItem)
 call the signal to send the index of the activated item. More...
 

Additional Inherited Members

- Public Types inherited from QGoColorComboBox
typedef std::pair< std::string,
QColor > 
ItemColorComboboxData
 
- Protected Member Functions inherited from QGoColorComboBox
ItemColorComboboxData GetTheItemColorComboBoxData (int iIndex)
 get the name and the QColor of the item located at the index iIndex More...
 
- Protected Attributes inherited from QGoComboBox
int m_NumberOfItemsAfterList
 
std::string m_TextToAddANewOne
 
std::string m_TextToDelete
 

Detailed Description

this class inherits from QGoColorComboBox, has only the add item option and update the text according to the iCollectionName. It handles the printing of the collection IDs

Definition at line 47 of file QGoCollectionColorComboBox.h.

Constructor & Destructor Documentation

QGoCollectionColorComboBox::QGoCollectionColorComboBox ( QWidget *  iparent = 0)
explicit

Definition at line 37 of file QGoCollectionColorComboBox.cxx.

QGoCollectionColorComboBox::~QGoCollectionColorComboBox ( )
virtual

Definition at line 45 of file QGoCollectionColorComboBox.cxx.

Member Function Documentation

void QGoCollectionColorComboBox::ActionWhenNewOneRequested ( )
protectedvirtualslot

Definition at line 52 of file QGoCollectionColorComboBox.cxx.

void QGoCollectionColorComboBox::InitializeTheListWithColor ( std::list< ItemColorComboboxData iDataFromList,
std::string  iCollectionName 
)
slot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 60 of file QGoCollectionColorComboBox.cxx.

void QGoCollectionColorComboBox::NewCollectionToCreate ( )
signal
void QGoCollectionColorComboBox::SetItemsFromListWithColor ( std::list< ItemColorComboboxData iDataFromList,
std::string  iCollectionName 
)
slot

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 74 of file QGoCollectionColorComboBox.cxx.


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