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

This class enables the Combobox to display item with colors icon for the color and sends a signal when "add new color " is clicked by the user. More...

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

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

Signals

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

Public Member Functions

 QGoSelectedColorComboBox (QWidget *iparent=0)
 
virtual ~QGoSelectedColorComboBox ()
 
- 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
 
- Public Slots inherited from QGoComboBox
virtual void InitializeTheList (QStringList iListItems)
 call the method SetItemsFromList and send a signal with the current index. More...
 
virtual void InitializeTheList (NamesDescrContainerType iItemsData)
 
void SetCurrentItem (std::string iItemText)
 set the activated item corresponding to the iTemText (no need to emit the signal ItemSelected) More...
 
virtual void SetItemsFromList (QStringList iDataFromList)
 clear the items already in the combobox,displayed the one in the QStringList and the items to add/delete More...
 
virtual void SetItemsFromList (NamesDescrContainerType iItemsData)
 
- 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 enables the Combobox to display item with colors icon for the color and sends a signal when "add new color " is clicked by the user.

Definition at line 45 of file QGoSelectedColorComboBox.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file QGoSelectedColorComboBox.cxx.

QGoSelectedColorComboBox::~QGoSelectedColorComboBox ( )
virtual

Definition at line 46 of file QGoSelectedColorComboBox.cxx.

Member Function Documentation

void QGoSelectedColorComboBox::ActionWhenNewOneRequested ( )
protectedvirtualslot

Definition at line 53 of file QGoSelectedColorComboBox.cxx.

void QGoSelectedColorComboBox::AddNewColorActivated ( )
signal

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