Show
Ignore:
Timestamp:
11/06/06 04:45:07 (2 years ago)
Author:
erijo
Message:

Patch from Anders Olofsson to allow configuration of notice color.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/optionsdlg.cpp

    r4734 r4736  
    237237  btnColorRcvHistory->setPaletteBackgroundColor(mainwin->m_colorRcvHistory); 
    238238  btnColorSntHistory->setPaletteBackgroundColor(mainwin->m_colorSntHistory); 
     239  btnColorNotice->setPaletteBackgroundColor(mainwin->m_colorNotice); 
    239240  /*btnColorTabLabel->setPaletteBackgroundColor(mainwin->m_colorTab);*/ 
    240241  btnColorTypingLabel->setPaletteBackgroundColor(mainwin->m_colorTabTyping); 
     
    534535  mainwin->m_colorRcvHistory = btnColorRcvHistory->paletteBackgroundColor(); 
    535536  mainwin->m_colorSntHistory = btnColorSntHistory->paletteBackgroundColor(); 
     537  mainwin->m_colorNotice = btnColorNotice->paletteBackgroundColor(); 
    536538  /*mainwin->m_colorTab = btnColorTabLabel->paletteBackgroundColor();*/ 
    537539  mainwin->m_colorTabTyping = btnColorTypingLabel->paletteBackgroundColor(); 
     
    16381640  btnColorSntHistory = new CColorOption(boxColors); 
    16391641 
     1642  new QLabel(tr("Notice:"), boxColors); 
     1643  btnColorNotice = new CColorOption(boxColors); 
     1644 
    16401645  /*new QLabel(tr("Tab Label Color:"), boxColors); 
    16411646  btnColorTabLabel = new CColorOption(boxColors);*/ 
     
    16511656  connect(btnColorSntHistory, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 
    16521657  connect(btnColorRcvHistory, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 
     1658  connect(btnColorNotice, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 
    16531659  /*connect(btnColorTabLabel, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer()));*/ 
    16541660  connect(btnColorTypingLabel, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 
     
    16801686 
    16811687  const char *names[2] = {"Marge", "Homer"}; 
    1682   const char *msgs[7] = { 
     1688  const char *msgs[8] = { 
    16831689      "This is received message", 
    16841690      "This is a sent message", 
     
    16871693      "#Licq on irc.freenode.net", 
    16881694      "Cool, I'll see you there :)", 
    1689       "We'll be waiting!"}; 
     1695      "We'll be waiting!", 
     1696      "Marge has left the conversation."}; 
    16901697 
    16911698  msgViewer->m_nMsgStyle = cmbStyle->currentItem(); 
     
    16951702  msgViewer->m_colorSntHistory = btnColorSntHistory->paletteBackgroundColor(); 
    16961703  msgViewer->m_colorRcvHistory = btnColorRcvHistory->paletteBackgroundColor(); 
     1704  msgViewer->m_colorNotice = btnColorNotice->paletteBackgroundColor(); 
    16971705  tabViewer->setPaletteForegroundColor(btnColorTypingLabel->paletteBackgroundColor()); 
    16981706  msgViewer->setPaletteBackgroundColor(btnColorChatBkg->paletteBackgroundColor()); 
     
    17101718          MLView::toRichText(msgs[i], true, true)); 
    17111719  } 
     1720  msgViewer->addNotice(date, MLView::toRichText(msgs[7], true, true)); 
    17121721} 
    17131722