Changeset 4736
- Timestamp:
- 11/06/06 04:45:07 (2 years ago)
- Location:
- trunk/qt-gui/src
- Files:
-
- 6 modified
-
ewidgets.cpp (modified) (3 diffs)
-
ewidgets.h (modified) (1 diff)
-
mainwin.cpp (modified) (2 diffs)
-
mainwin.h (modified) (1 diff)
-
optionsdlg.cpp (modified) (8 diffs)
-
optionsdlg.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/ewidgets.cpp
r4735 r4736 675 675 m_colorRcvHistory = m->m_colorRcvHistory; 676 676 m_colorSntHistory = m->m_colorSntHistory; 677 m_colorNotice = m->m_colorNotice; 677 678 setPaletteBackgroundColor(m->m_colorChatBkg); 678 679 mainwin = m; … … 709 710 m_colorRcvHistory = m->m_colorRcvHistory; 710 711 m_colorSntHistory = m->m_colorSntHistory; 712 m_colorNotice = m->m_colorNotice; 711 713 setPaletteBackgroundColor(m->m_colorChatBkg); 712 714 mainwin = m; … … 951 953 void CMessageViewWidget::addNotice(QDateTime dt, QString messageText) 952 954 { 953 QString color = "green";955 QString color = m_colorNotice.name(); 954 956 QString s = ""; 955 957 const QString dateTime = dt.toString( m_nDateFormat ); -
trunk/qt-gui/src/ewidgets.h
r4735 r4736 218 218 QColor m_colorRcv; 219 219 QColor m_colorSnt; 220 QColor m_colorNotice; 220 221 221 222 public slots: -
trunk/qt-gui/src/mainwin.cpp
r4734 r4736 452 452 licqConf.ReadStr("SentHistoryColor", szTemp, "light blue"); 453 453 m_colorSntHistory = QColor(szTemp); 454 licqConf.ReadStr("NoticeColor", szTemp, "green"); 455 m_colorNotice = QColor(szTemp); 454 456 licqConf.ReadStr("TabFontColor", szTemp, 455 457 QApplication::palette(this).active().text().name()); … … 3581 3583 licqConf.WriteStr("SentMessageColor", m_colorSnt.name()); 3582 3584 licqConf.WriteStr("SentHistoryColor", m_colorSntHistory.name()); 3585 licqConf.WriteStr("NoticeColor", m_colorNotice.name()); 3583 3586 licqConf.WriteStr("TabFontColor", m_colorTab.name()); 3584 3587 licqConf.WriteStr("TabOnTypingColor", m_colorTabTyping.name()); -
trunk/qt-gui/src/mainwin.h
r4734 r4736 187 187 m_colorRcv, 188 188 m_colorSnt, 189 m_colorNotice, 189 190 m_colorTab, 190 191 m_colorTabTyping, -
trunk/qt-gui/src/optionsdlg.cpp
r4734 r4736 237 237 btnColorRcvHistory->setPaletteBackgroundColor(mainwin->m_colorRcvHistory); 238 238 btnColorSntHistory->setPaletteBackgroundColor(mainwin->m_colorSntHistory); 239 btnColorNotice->setPaletteBackgroundColor(mainwin->m_colorNotice); 239 240 /*btnColorTabLabel->setPaletteBackgroundColor(mainwin->m_colorTab);*/ 240 241 btnColorTypingLabel->setPaletteBackgroundColor(mainwin->m_colorTabTyping); … … 534 535 mainwin->m_colorRcvHistory = btnColorRcvHistory->paletteBackgroundColor(); 535 536 mainwin->m_colorSntHistory = btnColorSntHistory->paletteBackgroundColor(); 537 mainwin->m_colorNotice = btnColorNotice->paletteBackgroundColor(); 536 538 /*mainwin->m_colorTab = btnColorTabLabel->paletteBackgroundColor();*/ 537 539 mainwin->m_colorTabTyping = btnColorTypingLabel->paletteBackgroundColor(); … … 1638 1640 btnColorSntHistory = new CColorOption(boxColors); 1639 1641 1642 new QLabel(tr("Notice:"), boxColors); 1643 btnColorNotice = new CColorOption(boxColors); 1644 1640 1645 /*new QLabel(tr("Tab Label Color:"), boxColors); 1641 1646 btnColorTabLabel = new CColorOption(boxColors);*/ … … 1651 1656 connect(btnColorSntHistory, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 1652 1657 connect(btnColorRcvHistory, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 1658 connect(btnColorNotice, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); 1653 1659 /*connect(btnColorTabLabel, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer()));*/ 1654 1660 connect(btnColorTypingLabel, SIGNAL(changed()), this, SLOT(slot_refresh_msgViewer())); … … 1680 1686 1681 1687 const char *names[2] = {"Marge", "Homer"}; 1682 const char *msgs[ 7] = {1688 const char *msgs[8] = { 1683 1689 "This is received message", 1684 1690 "This is a sent message", … … 1687 1693 "#Licq on irc.freenode.net", 1688 1694 "Cool, I'll see you there :)", 1689 "We'll be waiting!"}; 1695 "We'll be waiting!", 1696 "Marge has left the conversation."}; 1690 1697 1691 1698 msgViewer->m_nMsgStyle = cmbStyle->currentItem(); … … 1695 1702 msgViewer->m_colorSntHistory = btnColorSntHistory->paletteBackgroundColor(); 1696 1703 msgViewer->m_colorRcvHistory = btnColorRcvHistory->paletteBackgroundColor(); 1704 msgViewer->m_colorNotice = btnColorNotice->paletteBackgroundColor(); 1697 1705 tabViewer->setPaletteForegroundColor(btnColorTypingLabel->paletteBackgroundColor()); 1698 1706 msgViewer->setPaletteBackgroundColor(btnColorChatBkg->paletteBackgroundColor()); … … 1710 1718 MLView::toRichText(msgs[i], true, true)); 1711 1719 } 1720 msgViewer->addNotice(date, MLView::toRichText(msgs[7], true, true)); 1712 1721 } 1713 1722 -
trunk/qt-gui/src/optionsdlg.h
r4734 r4736 171 171 CColorOption *btnColorRcvHistory; 172 172 CColorOption *btnColorSntHistory; 173 CColorOption *btnColorNotice; 173 174 CColorOption *btnColorTabLabel; 174 175 CColorOption *btnColorTypingLabel;
