Commit 974ec636 authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Correct the unicode problem with mac os is TGListBox

parent f9f5aca0
......@@ -551,13 +551,7 @@ std::vector<int> CXGammaSearch::Sort_Index(std::vector<int> Index_Nuclei, std::v
void CXGammaSearch::PrintInListBox(TString mess, Int_t Type)
{
TGGC *uGC; // will reflect user GC changes
// graphics context changes
GCValues_t val;
val.fMask = kGCFont;
uGC = gClient->GetGC(&val, kTRUE);
TGTextLBEntry *entry = new TGTextLBEntry(fResultsBox->GetContainer(), new TGString(mess), -1, uGC->GetGC());
TGTextLBEntry *entry = new TGTextLBEntry(fResultsBox->GetContainer(), new TGString(mess), fResultsBox->GetNumberOfEntries()+1);
if(Type == kError)
entry->SetBackgroundColor((Pixel_t)0xff0000);
else if(Type == kInfo)
......
......@@ -910,13 +910,13 @@ double CXHist1DPlayer::Residue(double*xx,double*pp)
void CXHist1DPlayer::PrintInListBox(TString mess, Int_t Type)
{
TGGC *uGC; // will reflect user GC changes
// graphics context changes
GCValues_t val;
val.fMask = kGCFont;
uGC = gClient->GetGC(&val, kTRUE);
// TGGC *uGC; // will reflect user GC changes
// // graphics context changes
// GCValues_t val;
// val.fMask = kGCFont;
// uGC = gClient->GetGC(&val, kTRUE);
TGTextLBEntry *entry = new TGTextLBEntry(fFitResultsBox->GetContainer(), new TGString(mess), -1, uGC->GetGC());
TGTextLBEntry *entry = new TGTextLBEntry(fFitResultsBox->GetContainer(), new TGString(mess), fFitResultsBox->GetNumberOfEntries()+1);
if(Type == kError)
entry->SetBackgroundColor((Pixel_t)0xff0000);
else if(Type == kInfo)
......
......@@ -216,24 +216,10 @@ void CXHist2DPlayer::AddToStoredList(TObject *o){
void CXHist2DPlayer::UpdateStoredList(){
fStoredSpectraBox->RemoveAll();
TGGC *uGC; // will reflect user GC changes
// graphics context changes
GCValues_t val;
val.fMask = kGCFont;
uGC = gClient->GetGC(&val, kTRUE);
TGTextLBEntry *entry;
for(int i=0 ; i<fListOfStoredSpectra->GetEntries() ; i++){
entry = new TGTextLBEntry(fStoredSpectraBox->GetContainer(), new TGString(fListOfStoredSpectra->At(i)->GetName()), -1, uGC->GetGC());
// if(Type == kError)
// entry->SetBackgroundColor((Pixel_t)0xff0000);
// else if(Type == kInfo)
// entry->SetBackgroundColor((Pixel_t)0x87a7d2);
// else if(Type == kWarning)
// entry->SetBackgroundColor((Pixel_t)0xdfdf44);
// else if(Type == kPrint)
// entry->SetBackgroundColor((Pixel_t)0x90f269);
entry = new TGTextLBEntry(fStoredSpectraBox->GetContainer(), new TGString(fListOfStoredSpectra->At(i)->GetName()), fStoredSpectraBox->GetNumberOfEntries()+1);
entry->SetBackgroundColor((Pixel_t)0x90f269);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment