38 #include <QHBoxLayout>
39 #include <QVBoxLayout>
40 #include <QFormLayout>
107 std::list< ItemColorComboboxData > iListExistingID,
108 std::string iCollectionIDtoSelect)
115 if ( !iCollectionIDtoSelect.empty() )
118 SetItemsFromListWithColor( iListExistingID,
121 SetCurrentItemAndActivate(iCollectionIDtoSelect);
126 InitializeTheListWithColor( iListExistingID,
135 std::list< ItemColorComboboxData > iListColors, std::string iColorToSelect)
138 iListColors, iColorToSelect);
139 this->m_SelectedColorComboBox->SetCurrentItemAndActivate(iColorToSelect);
146 std::list< ItemColorComboboxData > iListColors)
156 std::string iCellTypeToSelect)
159 iCellTypesData, iCellTypeToSelect);
160 this->m_ChoseCellType->SetCurrentItemAndActivate(iCellTypeToSelect);
178 std::string iSubCellTypeToSelect)
181 iSubCellTypesData, iSubCellTypeToSelect);
182 this->m_ChoseSubCellType->SetCurrentItemAndActivate(iSubCellTypeToSelect);
202 QString Tooltip(
tr(
"Color to be applied to your new traces") );
218 SIGNAL( AddNewColorActivated() ),
222 SIGNAL( DeleteActivated() ),
233 QString Tooltip(
tr(
"Current trace you are working on") );
238 ListTraces.
append(
"contour");
239 ListTraces.
append(
"mesh");
240 ListTraces.
append(
"track");
241 ListTraces.
append(
"lineage");
250 QString Tooltip2(
tr(
"Corresponding collection for the selected trace") );
254 QString Tooltip3(
tr(
"ID of the collection your new traces will belong to") );
265 iLayoutTraceCollection->
addWidget(iLabel);
277 SIGNAL( NewCollectionToCreate() ),
281 SIGNAL( currentIndexChanged (
int ) ),
294 QString Tooltip(
tr(
"Celltype that will be applied to your new meshes") );
305 iCellLayout->
addLayout(HLayoutForCellType);
310 SIGNAL( ItemSelected(std::string) ),
314 SIGNAL( AddANewOneActivated() ),
318 SIGNAL( DeleteActivated() ),
329 QString Tooltip(
tr(
"SubCellulartype that will be applied to your new meshes") );
340 SIGNAL( ItemSelected(std::string) ),
344 SIGNAL( AddANewOneActivated() ),
348 SIGNAL( DeleteActivated() ),
356 std::string iCellTypeText)
373 std::string iSubCellTypeText)
424 std::string iCollection)
483 std::pair<std::string, QColor> iNewCollectionID)
528 std::string CollectionID = iCollectionData.first;
530 if ( CollectionID.size() > 9 )
532 if ( CollectionID.substr(0, 9) ==
"Add a new" )
this class inherits from QGoColorComboBox, has only the add item option and update the text according...
This class enables the Combobox to display item with colors icon for the color and sends a signal whe...
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 ...
QString tr(const char *sourceText, const char *disambiguation, int n)
void setBold(bool enable)
int findText(const QString &text, QFlags< Qt::MatchFlag > flags) const
void append(const T &value)
void setObjectName(const QString &name)
void SetCurrentItem(std::string iItemText)
set the activated item corresponding to the iTemText (no need to emit the signal ItemSelected) ...
inherits from Qt QCombobox but add a the end of the list of items, 1 or 2 items: the first one to add...
void setCurrentIndex(int index)
void setCapitalization(Capitalization caps)
void addItems(const QStringList &texts)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void addLayout(QLayout *layout, int stretch)