GOFIGURE2  0.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
QGoTraceSettingsWidget.cxx
Go to the documentation of this file.
1 /*=========================================================================
2  Authors: The GoFigure Dev. Team.
3  at Megason Lab, Systems biology, Harvard Medical school, 2009-11
4 
5  Copyright (c) 2009-11, President and Fellows of Harvard College.
6  All rights reserved.
7 
8  Redistribution and use in source and binary forms, with or without
9  modification, are permitted provided that the following conditions are met:
10 
11  Redistributions of source code must retain the above copyright notice,
12  this list of conditions and the following disclaimer.
13  Redistributions in binary form must reproduce the above copyright notice,
14  this list of conditions and the following disclaimer in the documentation
15  and/or other materials provided with the distribution.
16  Neither the name of the President and Fellows of Harvard College
17  nor the names of its contributors may be used to endorse or promote
18  products derived from this software without specific prior written
19  permission.
20 
21  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
23  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
24  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
25  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
26  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27  OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
28  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
29  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
30  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
31  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 
33 =========================================================================*/
34 
35 #include "QGoTraceSettingsWidget.h"
36 
37 #include <QLabel>
38 #include <QHBoxLayout>
39 #include <QVBoxLayout>
40 #include <QFormLayout>
41 #include <QFont>
42 
43 #include <iostream>
44 
46  QWidget(iParent)
47 {
48  this->SetUpUi();
49  this->setObjectName("TraceSettingsWidget");
50 }
51 
52 //-------------------------------------------------------------------------
53 
54 //-------------------------------------------------------------------------
57 {
58  if ( this->m_SelectedCollectionData )
59  {
60  delete this->m_SelectedCollectionData;
61  }
62  if ( this->m_SelectedCellType )
63  {
64  delete this->m_SelectedCellType;
65  }
66  if ( this->m_SelectedSubCellType )
67  {
68  delete this->m_SelectedSubCellType;
69  }
70  if ( this->m_SelectedColorData )
71  {
72  delete this->m_SelectedColorData;
73  }
74 }
75 
76 //-------------------------------------------------------------------------
77 
78 //-------------------------------------------------------------------------
80 {
81  //QWidget* TraceSettingsWidget = new QWidget(this);
82 
83  QHBoxLayout* MainLayout = new QHBoxLayout;
84  QLabel* Blank = new QLabel(this);
85 
86  SetTraceCollectionColorComboBox(MainLayout, Blank);
87  MainLayout->addWidget(Blank);
88  SetSelectedColorComboBox(MainLayout);
89 
90  MainLayout->addWidget(Blank);
91  SetCellTypeComboBox(MainLayout);
92  SetSubCellTypeComboBox(MainLayout);
93 
94  this->SetWidgetFont();
95  //this->UpdateTraceAndCollection("contour", "mesh");
96  this->SetCurrentTraceName("contour");
97 
98  this->setLayout(MainLayout);
99  this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
100  //m_IsToolBarVisible = false;
101 }
102 //-------------------------------------------------------------------------
103 
104 //-------------------------------------------------------------------------
105 void
107  std::list< ItemColorComboboxData > iListExistingID,
108  std::string iCollectionIDtoSelect)
109 {
110  if (this->m_CollectionName->text() == "lineage" ||
111  this->m_CollectionName->text() == "")
112  {
113  return;
114  }
115  if ( !iCollectionIDtoSelect.empty() )
116  {
118  SetItemsFromListWithColor( iListExistingID,
119  this->m_CollectionName->text().toStdString() );
121  SetCurrentItemAndActivate(iCollectionIDtoSelect);
122  }
123  else
124  {
126  InitializeTheListWithColor( iListExistingID,
127  this->m_CollectionName->text().toStdString() );
128  }
129 }
130 
131 //-------------------------------------------------------------------------
132 
133 //-------------------------------------------------------------------------
135  std::list< ItemColorComboboxData > iListColors, std::string iColorToSelect)
136 {
137  this->SetListItemAndSelect< QGoSelectedColorComboBox >(this->m_SelectedColorComboBox,
138  iListColors, iColorToSelect);
139  this->m_SelectedColorComboBox->SetCurrentItemAndActivate(iColorToSelect);
140 }
141 
142 //-------------------------------------------------------------------------
143 
144 //-------------------------------------------------------------------------
146  std::list< ItemColorComboboxData > iListColors)
147 {
148  this->SetListColors(iListColors, this->m_SelectedColorData->first);
149 }
150 
151 //-------------------------------------------------------------------------
152 
153 //-------------------------------------------------------------------------
154 void
156  std::string iCellTypeToSelect)
157 {
158  this->SetListItemAndSelect< QGoComboBox >(this->m_ChoseCellType,
159  iCellTypesData, iCellTypeToSelect);
160  this->m_ChoseCellType->SetCurrentItemAndActivate(iCellTypeToSelect);
161 }
162 
163 //-------------------------------------------------------------------------
164 
165 //-------------------------------------------------------------------------
166 void
168  NamesDescrContainerType iCellTypesData)
169 {
170  this->SetListCellTypes(iCellTypesData, *this->m_SelectedCellType);
171 }
172 
173 //-------------------------------------------------------------------------
174 
175 //-------------------------------------------------------------------------
176 void
178  std::string iSubCellTypeToSelect)
179 {
180  this->SetListItemAndSelect< QGoComboBox >(this->m_ChoseSubCellType,
181  iSubCellTypesData, iSubCellTypeToSelect);
182  this->m_ChoseSubCellType->SetCurrentItemAndActivate(iSubCellTypeToSelect);
183 }
184 
185 //-------------------------------------------------------------------------
186 
187 //-------------------------------------------------------------------------
188 void
190  NamesDescrContainerType iSubCellTypesData)
191 {
192  this->SetListSubCellTypes(iSubCellTypesData, *this->m_SelectedSubCellType);
193 }
194 
195 //-------------------------------------------------------------------------
196 
197 //-------------------------------------------------------------------------
198 void
200  QHBoxLayout* iColorLayout)
201 {
202  QString Tooltip(tr("Color to be applied to your new traces") );
203 
205  this->m_SelectedColorComboBox->setToolTip(Tooltip);
206  QLabel* ColorLbl = new QLabel(tr("Color:"), this);
207  ColorLbl->setToolTip(Tooltip);
208  iColorLayout->addWidget(ColorLbl);
209  iColorLayout->addWidget(this->m_SelectedColorComboBox);
210 
212 
214  SIGNAL( ItemSelected(ItemColorComboboxData) ),
216 
218  SIGNAL( AddNewColorActivated() ),
219  this, SIGNAL( AddNewColor() ) );
220 
222  SIGNAL( DeleteActivated() ),
223  this, SIGNAL( DeleteColor() ) );
224 }
225 
226 //-------------------------------------------------------------------------
227 
228 //-------------------------------------------------------------------------
229 void
231  QHBoxLayout* iLayoutTraceCollection, QLabel* iLabel)
232 {
233  QString Tooltip(tr("Current trace you are working on") );
234  this->m_SelectedTrace = new QComboBox(this);
235  this->m_SelectedTrace->setToolTip(Tooltip);
236 
237  QStringList ListTraces;
238  ListTraces.append("contour");
239  ListTraces.append("mesh");
240  ListTraces.append("track");
241  ListTraces.append("lineage");
242  this->m_SelectedTrace->addItems(ListTraces);
243  //QHBoxLayout *HLayoutForTrace = new QHBoxLayout;
244 
245  //this->m_TraceLbl = new QLabel(tr("Trace:"), this);
246  //HLayoutForTrace->addWidget(this->m_TraceLbl);
247  //HLayoutForTrace->addWidget(this->m_TraceName);
248 
249  //this->m_CollectionLbl = new QLabel( tr("Collection:") );
250  QString Tooltip2(tr("Corresponding collection for the selected trace") );
251 
252  this->m_CollectionName = new QLabel ( tr("mesh") );
253  this->m_CollectionName->setToolTip(Tooltip2);
254  QString Tooltip3(tr("ID of the collection your new traces will belong to") );
256  this->m_CollectionColorComboBox->setToolTip(Tooltip3);
257 
258 
259  //QHBoxLayout *HLayoutForCollection = new QHBoxLayout;
260  //HLayoutForCollection->addWidget(this->m_CollectionName);
261  //HLayoutForCollection->addWidget(this->m_CollectionColorComboBox);
262  //iLayoutTraceCollection->addLayout(HLayoutForTrace);
263  //iLayoutTraceCollection->addWidget(this->m_CollectionLbl);
264  iLayoutTraceCollection->addWidget(this->m_SelectedTrace);
265  iLayoutTraceCollection->addWidget(iLabel);
266  iLayoutTraceCollection->addWidget(this->m_CollectionName);
267  iLayoutTraceCollection->addWidget(this->m_CollectionColorComboBox);
268  //iLayoutTraceCollection->addLayout(HLayoutForCollection);
269 
271 
273  SIGNAL( ItemSelected(ItemColorComboboxData) ),
275 
277  SIGNAL( NewCollectionToCreate() ),
278  this, SIGNAL( NewCollectionToBeCreated() ) );
279 
281  SIGNAL( currentIndexChanged ( int ) ),
282  this, SLOT ( CurrentTraceToUpdate( int ) ) );
283 }
284 
285 //-------------------------------------------------------------------------
286 
287 //-------------------------------------------------------------------------
288 void
290  QHBoxLayout* iCellLayout)
291 {
292  /* this->m_ChoseCellType = new QGoComboBox("Add a new celltype...",
293  this, "Delete a celltype...");*/
294  QString Tooltip(tr("Celltype that will be applied to your new meshes") );
295  this->m_ChoseCellType = new QGoComboBox("Add a new celltype...", this);
296  this->m_ChoseCellType->setToolTip(Tooltip);
297 
298  QHBoxLayout *HLayoutForCellType = new QHBoxLayout;
299  this->m_LabelCellType = new QLabel(tr("CellType:"), this);
300  this->m_LabelCellType->setToolTip(Tooltip);
301 
302  HLayoutForCellType->addWidget(this->m_LabelCellType);
303  HLayoutForCellType->addWidget(m_ChoseCellType);
304 
305  iCellLayout->addLayout(HLayoutForCellType);
306 
307  this->m_SelectedCellType = new std::string;
308 
310  SIGNAL( ItemSelected(std::string) ),
311  this, SLOT( UpdateValueSelectedCellType(std::string) ) );
312 
314  SIGNAL( AddANewOneActivated() ),
315  this, SIGNAL( AddANewCellType() ) );
316 
318  SIGNAL( DeleteActivated() ),
319  this, SIGNAL( DeleteCellType() ) );
320 }
321 
322 //-------------------------------------------------------------------------
323 
324 //-------------------------------------------------------------------------
325 void
327  QHBoxLayout* iSubCellLayout)
328 {
329  QString Tooltip(tr("SubCellulartype that will be applied to your new meshes") );
330  this->m_ChoseSubCellType = new QGoComboBox("Add a new subcelltype...", this);
331  this->m_ChoseSubCellType->setToolTip(Tooltip);
332  this->m_LabelSubCellType = new QLabel(tr("SubCellType:"), this);
333  this->m_LabelSubCellType->setToolTip(Tooltip);
334  iSubCellLayout->addWidget(this->m_LabelSubCellType);
335  iSubCellLayout->addWidget(m_ChoseSubCellType);
336 
337  this->m_SelectedSubCellType = new std::string;
338 
340  SIGNAL( ItemSelected(std::string) ),
341  this, SLOT( UpdateValueSelectedSubCellType(std::string) ) );
342 
344  SIGNAL( AddANewOneActivated() ),
345  this, SIGNAL( AddANewSubCellType() ) );
346 
348  SIGNAL( DeleteActivated() ),
349  this, SIGNAL( DeleteSubCellType() ) );
350 }
351 
352 //-------------------------------------------------------------------------
353 
354 //-------------------------------------------------------------------------
356  std::string iCellTypeText)
357 {
358  this->m_ChoseCellType->SetCurrentItem(iCellTypeText);
359 }
360 
361 //-------------------------------------------------------------------------
362 
363 //-------------------------------------------------------------------------
365 {
367 }
368 
369 //-------------------------------------------------------------------------
370 
371 //-------------------------------------------------------------------------
373  std::string iSubCellTypeText)
374 {
375  this->m_ChoseSubCellType->SetCurrentItem(iSubCellTypeText);
376 }
377 
378 //-------------------------------------------------------------------------
379 
380 //-------------------------------------------------------------------------
382 {
384 }
385 
386 //-------------------------------------------------------------------------
387 
388 //-------------------------------------------------------------------------
389 void QGoTraceSettingsWidget::SetCurrentColor(std::string iColorText)
390 {
391  this->m_SelectedColorComboBox->SetCurrentItem(iColorText);
392 }
393 
394 //-------------------------------------------------------------------------
395 
396 //-------------------------------------------------------------------------
398 {
399  this->SetCurrentColor(this->m_SelectedColorData->first);
400 }
401 
402 //-------------------------------------------------------------------------
403 
404 //-------------------------------------------------------------------------
406 {
408 }
409 
410 //-------------------------------------------------------------------------
411 
412 //-------------------------------------------------------------------------
413 /*void QGoTraceSettingsWidget::UpdateTraceAndCollection(std::string iTrace,
414  std::string iCollection)
415 {
416  this->m_SelectedTrace->setCurrentIndex(
417  this->m_SelectedTrace->findText(iTrace.c_str() ) );
418  this->UpdateCollection(iCollection);
419 }*/
420 //-------------------------------------------------------------------------
421 
422 //-------------------------------------------------------------------------
424  std::string iCollection)
425 {
426  this->m_CollectionName->setText( iCollection.c_str() );
427  this->m_CollectionName->show();
428 
429  if (this->m_SelectedTrace->currentText() == "contour" ||
430  this->m_SelectedTrace->currentText() == "mesh")
431  {
432  this->m_ChoseCellType->show();
433  this->m_LabelCellType->show();
434  this->m_ChoseSubCellType->show();
435  this->m_LabelSubCellType->show();
436  this->m_CollectionName->show();
438  }
439  else
440  {
441  this->m_ChoseCellType->hide();
442  this->m_LabelCellType->hide();
443  this->m_ChoseSubCellType->hide();
444  this->m_LabelSubCellType->hide();
446  }
447 
448  if (this->m_SelectedTrace->currentText() == "lineage")
449  {
450  this->m_CollectionName->hide();
451  }
452 }
453 
454 //-------------------------------------------------------------------------
455 
456 //-------------------------------------------------------------------------
458 {
459  //all widget:
460  QFont Font;
461  Font.setCapitalization(QFont::Capitalize);
462  this->setFont(Font);
463 
464  //trace and collection name:
465  Font.setCapitalization(QFont::AllUppercase);
466  Font.setBold(true);
467 
468  this->m_SelectedTrace->setFont(Font);
469  this->m_CollectionName->setFont(Font);
470 }
471 //-------------------------------------------------------------------------
472 
473 //-------------------------------------------------------------------------
475 {
476  return this->m_SelectedTrace->currentText().toStdString();
477 }
478 
479 //-------------------------------------------------------------------------
480 
481 //-------------------------------------------------------------------------
483  std::pair<std::string, QColor> iNewCollectionID)
484 {
485  this->m_CollectionColorComboBox->AddItemWithColor(iNewCollectionID, true);
486 }
487 
488 //-------------------------------------------------------------------------
489 
490 //-------------------------------------------------------------------------
492 {
493  return this->m_SelectedCellType;
494 }
495 
496 //-------------------------------------------------------------------------
497 
498 //-------------------------------------------------------------------------
500 {
501  return this->m_SelectedSubCellType;
502 }
503 
504 //-------------------------------------------------------------------------
505 
506 //-------------------------------------------------------------------------
509 {
510  return this->m_SelectedCollectionData;
511 }
512 
513 //-------------------------------------------------------------------------
514 
515 //-------------------------------------------------------------------------
518 {
519  return this->m_SelectedColorData;
520 }
521 
522 //-------------------------------------------------------------------------
523 
524 //-------------------------------------------------------------------------
526  ItemColorComboboxData iCollectionData)
527 {
528  std::string CollectionID = iCollectionData.first;
529 
530  if ( CollectionID.size() > 9 )
531  {
532  if ( CollectionID.substr(0, 9) == "Add a new" )
533  {
534  this->m_SelectedCollectionData->first = "0";
535  }
536  }
537  else
538  {
539  *this->m_SelectedCollectionData = iCollectionData;
540  }
541 }
542 
543 //-------------------------------------------------------------------------
544 
545 //-------------------------------------------------------------------------
549 {
550  *this->m_SelectedCellType = iCellType;
551 }
552 
553 //-------------------------------------------------------------------------
554 
555 //-------------------------------------------------------------------------
557 {
558  *this->m_SelectedSubCellType = iSubCellType;
559 }
560 
561 //-------------------------------------------------------------------------
562 
563 //-------------------------------------------------------------------------
565  ItemColorComboboxData iColorData)
566 {
567  *this->m_SelectedColorData = iColorData;
568 }
569 
570 //-------------------------------------------------------------------------
571 
572 //-------------------------------------------------------------------------
574 {
575  return atoi( this->m_SelectedCollectionData->first.c_str() );
576 }
577 //-------------------------------------------------------------------------
578 
579 //-------------------------------------------------------------------------
581 {
582  if (this->m_SelectedTrace->currentText() == "contour")
583  {
584  this->UpdateCollection("mesh");
585  }
586  if (this->m_SelectedTrace->currentText() == "mesh")
587  {
588  this->UpdateCollection("track");
589  }
590  if (this->m_SelectedTrace->currentText() == "track")
591  {
592  this->UpdateCollection("lineage");
593  }
594  if (this->m_SelectedTrace->currentText() == "lineage")
595  {
596  this->UpdateCollection("");
597  }
598 
599  emit TraceChanged( iIndexTrace );
600 }
601 //-------------------------------------------------------------------------
602 
603 //-------------------------------------------------------------------------
605 {
606  if(this->m_SelectedCellType)
607  {
608  delete this->m_SelectedCellType;
609  this->m_SelectedCellType = NULL;
610  }
611 
612  this->m_SelectedCellType = iCellType;
613 }
614 //-------------------------------------------------------------------------
615 
616 //-------------------------------------------------------------------------
618 {
619  if(this->m_SelectedSubCellType)
620  {
621  delete this->m_SelectedSubCellType;
622  this->m_SelectedSubCellType = NULL;
623  }
624 
625  this->m_SelectedSubCellType = iSubCellType;
626 }
627 //-------------------------------------------------------------------------
628 
629 //-------------------------------------------------------------------------
631 {
632  if(this->m_SelectedCollectionData)
633  {
634  delete this->m_SelectedCollectionData;
635  this->m_SelectedCollectionData = NULL;
636  }
637 
638  this->m_SelectedCollectionData = iCollectionData;
639 }
640 //-------------------------------------------------------------------------
641 
642 //-------------------------------------------------------------------------
644 {
645  if(this->m_SelectedColorData)
646  {
647  delete this->m_SelectedColorData;
648  this->m_SelectedColorData = NULL;
649  }
650 
651  this->m_SelectedColorData = iColorData;
652 }
653 //-------------------------------------------------------------------------
654 
655 //-------------------------------------------------------------------------
657 {
658  this->m_SelectedCollectionData = NULL;
659  this->m_SelectedColorData = NULL;
660  this->m_SelectedCellType = NULL;
661  this->m_SelectedSubCellType = NULL;
662 }
663 //-------------------------------------------------------------------------
664 
665 //-------------------------------------------------------------------------
667 {
669  this->m_SelectedTrace->findText(iTraceName.c_str() ) );
670 }
671 //-------------------------------------------------------------------------
672 
673 //-------------------------------------------------------------------------
void SetListSubCellTypeWithSelectedOne(NamesDescrContainerType iSubCellTypesData)
replace the list of subcelltype with the name in the iSubCellTypesData and select the subcelltype cor...
void SetPointerCollectionData(ItemColorComboboxData *iCollectionData)
void UpdateValueSelectedSubCellType(std::string iSubCellType)
void SetListSubCellTypes(NamesDescrContainerType iSubCellData, std::string iSubCellTypeToSelect="")
replace the list of subcelltype with the names in the iSubCellTypesData and select the subcelltype co...
std::string * GetPointerSelectedSubCellType()
unsigned int GetCurrentSelectedCollectionID()
void SetListCellTypes(NamesDescrContainerType iCellTypesData, std::string iCellTypeToSelect="")
replace the list of celltype with the names in the iCellTypesData and select the celltype correspondi...
this class inherits from QGoColorComboBox, has only the add item option and update the text according...
QGoCollectionColorComboBox * m_CollectionColorComboBox
ItemColorComboboxData * GetPointerCollectionData()
This class enables the Combobox to display item with colors icon for the color and sends a signal whe...
void SetListColorsWithSelectedOne(std::list< ItemColorComboboxData > iListColors)
replace the list of colors with the name and corresponding color in the iListColors and select the co...
void AddItemWithColor(ItemColorComboboxData iNewItemData, bool SelectTheAddedItem=true)
add an item with color at the end of the list befor the &quot;add new...&quot; if they have already been added ...
void SetCurrentSubCellTypeToSelectedOne()
set the selected subcelltype in the combobox corresponding to the previous selected one...
ItemColorComboboxData * m_SelectedCollectionData
QString tr(const char *sourceText, const char *disambiguation, int n)
void SetListCellTypeWithSelectedOne(NamesDescrContainerType iCellTypesData)
replace the list of celltype with the name in the iCellTypesData and select the celltype correspondin...
QGoSelectedColorComboBox * m_SelectedColorComboBox
void setBold(bool enable)
void UpdateValueSelectedCellType(std::string iCellType)
void SetPointerColorData(ItemColorComboboxData *iColorData)
void SetCellTypeComboBox(QHBoxLayout *iCellLayout)
add the Celltype QGoCombobox to the layout and make the signal/slot connections for it ...
int findText(const QString &text, QFlags< Qt::MatchFlag > flags) const
void SetPointerSelectedCellType(std::string *iCellType)
void UpdateCollection(std::string iCollection)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void append(const T &value)
void SetListColors(std::list< ItemColorComboboxData > iListColors, std::string iColorToSelect="")
replace the list of colors with the name and corresponding color in the iListColors and select the co...
void setLayout(QLayout *layout)
std::string * GetPointerSelectedCellType()
void SetCurrentTraceName(std::string iTraceName)
void SetCurrentCollectionID(std::string iID)
set the selected collectionID in the combobox to iID
void SetSelectedColorComboBox(QHBoxLayout *iColorLayout)
add the SelectedColorCombobox to the layout and make the signal/slot connections for it ...
void SetListCollectionID(std::list< ItemColorComboboxData > iListExistingID, std::string iCollectionIDtoSelect="")
update the QLabel with iTrace and iCollection, the &quot;add a new..&quot; in the CollectionColorComboBox and h...
std::vector< std::pair< std::string, std::string > > NamesDescrContainerType
void setObjectName(const QString &name)
std::string GetTraceName()
get the name of the trace currently displayed in the QLabel
void UpdateValueSelectedCollection(ItemColorComboboxData iCollectionData)
void SetCurrentItem(std::string iItemText)
set the activated item corresponding to the iTemText (no need to emit the signal ItemSelected) ...
void hide()
void SetCurrentColorToSelectedOne()
set the selected color in the combobox corresponding to the previous selected one, stored in m_SelectedColorData
void SetCurrentCellType(std::string iCellTypeText)
set the selected celltype in the combobox corresponding to iCellTypeText
void setSizePolicy(QSizePolicy)
void SetCurrentSubCellType(std::string iSubCellTypeText)
set the selected subcelltype in the combobox corresponding to iSubCellTypeText
void setFont(const QFont &)
void SetCurrentCellTypeToSelectedOne()
set the selected subcelltype in the combobox corresponding to the previous selected one...
inherits from Qt QCombobox but add a the end of the list of items, 1 or 2 items: the first one to add...
Definition: QGoComboBox.h:47
void SetTraceCollectionColorComboBox(QHBoxLayout *iLayoutTraceCollection, QLabel *iLabel)
add the CollectionColorCombobox to the layout,set the trace and collection name labels, and make the signal/slot connections for it
QGoColorComboBox::ItemColorComboboxData ItemColorComboboxData
ItemColorComboboxData * GetPointerColorData()
void AddANewCollectionID(std::pair< std::string, QColor > iNewCollectionID)
add a new collection in the collectionColorCombobox and select it
void setCurrentIndex(int index)
void setCapitalization(Capitalization caps)
void SetSubCellTypeComboBox(QHBoxLayout *iSubCellLayout)
add the SubCellType QGoCombobox to the layout and make the signal/slot connections for it ...
QGoTraceSettingsWidget(QWidget *parent=0)
void addItems(const QStringList &texts)
void show()
void SetSelectedPointersToNull()
in order the pointers already deleted are not deleted again
void SetCurrentColor(std::string iColorText)
set the selected color in the combobox corresponding to iColorText
void UpdateValueSelectedColor(ItemColorComboboxData iColorData)
void setToolTip(const QString &)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
ItemColorComboboxData * m_SelectedColorData
void SetPointerSelectedSubCellType(std::string *iSubCellType)
void addLayout(QLayout *layout, int stretch)