Show
Ignore:
Timestamp:
11/30/06 03:02:49 (2 years ago)
Author:
erijo
Message:

Patch from Anders Olofsson to make the history layout configurable. Also adds a new style format that can be used in the history. Fixes part of #1449.

With this commit, <font> tags are removed before the message is displayed. This means that the sender can no longer choose the font or color to show the message in. IMHO, this is a good thing. But if you have an other opinion, speak up and maybe I'll make it configurable.

Files:
1 modified

Legend:

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

    r4775 r4791  
    433433  licqConf.ReadBool("AutoSendThroughServer", m_bAutoSendThroughServer, false); 
    434434  licqConf.ReadBool("EnableMainwinMouseMovement", m_bEnableMainwinMouseMovement, true); 
    435   licqConf.ReadNum("ChatMessageStyle", m_nMsgStyle, 0); 
    436   licqConf.ReadBool("ChatAppendLinebreak", m_bAppendLineBreak, false); 
     435  licqConf.ReadNum("ChatMessageStyle", m_chatMsgStyle, 0); 
     436  licqConf.ReadBool("ChatVerticalSpacing", m_chatVertSpacing, true); 
     437  licqConf.ReadBool("ChatAppendLinebreak", m_chatAppendLineBreak, false); 
    437438  licqConf.ReadBool("FlashTaskbar", m_bFlashTaskbar, true); 
    438439  licqConf.ReadBool("ShowUserIcons", m_bShowUserIcons, true); 
     
    442443  licqConf.ReadBool("CheckSpellingEnabled", m_bCheckSpellingEnabled, false); 
    443444  licqConf.ReadStr("DateFormat", szTemp, "hh:mm:ss"); 
    444   m_nDateFormat = QString::fromLatin1(szTemp); 
     445  m_chatDateFormat = QString::fromLatin1(szTemp); 
     446  licqConf.ReadNum("HistoryMessageStyle", m_histMsgStyle, 0); 
     447  licqConf.ReadBool("HistoryVerticalSpacing", m_histVertSpacing, true); 
     448  licqConf.ReadStr("HistoryDateFormat", szTemp, "yyyy-MM-dd hh:mm:ss"); 
     449  m_histDateFormat = QString::fromLatin1(szTemp); 
    445450 
    446451  licqConf.ReadStr("ReceiveMessageColor", szTemp, "red"); 
     
    35773582  licqConf.WriteBool("CheckSpellingEnabled", m_bCheckSpellingEnabled); 
    35783583 
    3579   licqConf.WriteNum("ChatMessageStyle", m_nMsgStyle); 
    3580   licqConf.WriteBool("ChatAppendLinebreak", m_bAppendLineBreak); 
     3584  licqConf.WriteNum("ChatMessageStyle", m_chatMsgStyle); 
     3585  licqConf.WriteBool("ChatVerticalSpacing", m_chatVertSpacing); 
     3586  licqConf.WriteBool("ChatAppendLinebreak", m_chatAppendLineBreak); 
    35813587  licqConf.WriteStr("ReceiveMessageColor", m_colorRcv.name()); 
    35823588  licqConf.WriteStr("ReceiveHistoryColor", m_colorRcvHistory.name()); 
     
    35873593  licqConf.WriteStr("TabOnTypingColor", m_colorTabTyping.name()); 
    35883594  licqConf.WriteStr("ChatBackground", m_colorChatBkg.name()); 
    3589   licqConf.WriteStr("DateFormat", m_nDateFormat.latin1()); 
     3595  licqConf.WriteStr("DateFormat", m_chatDateFormat.latin1()); 
     3596  licqConf.WriteNum("HistoryMessageStyle", m_histMsgStyle); 
     3597  licqConf.WriteBool("HistoryVerticalSpacing", m_histVertSpacing); 
     3598  licqConf.WriteStr("HistoryDateFormat", m_histDateFormat.latin1()); 
    35903599 
    35913600  licqConf.WriteBool("showPopPicture", m_bPopPicture);