Show
Ignore:
Timestamp:
08/08/07 06:06:52 (16 months ago)
Author:
eugene
Message:

Make history reverse optional.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt-gui_qt4/src/optionsdlg.cpp

    r5113 r5115  
    213213  cmbHistStyle->setCurrentIndex(mainwin->m_histMsgStyle); 
    214214  chkHistVertSpacing->setChecked(mainwin->m_histVertSpacing); 
     215  chkHistReverse->setChecked(mainwin->m_histReverse); 
    215216  cmbHistDateFormat->lineEdit()->setText(mainwin->m_histDateFormat); 
    216217  btnColorRcv->setColor(mainwin->m_colorRcv); 
     
    505506  mainwin->m_histMsgStyle = cmbHistStyle->currentIndex(); 
    506507  mainwin->m_histVertSpacing = chkHistVertSpacing->isChecked(); 
     508  mainwin->m_histReverse = chkHistReverse->isChecked(); 
    507509  mainwin->m_histDateFormat = cmbHistDateFormat->currentText(); 
    508510  mainwin->m_colorRcv = btnColorRcv->getColor(); 
     
    11171119  layHistDisp->addLayout(layHistDateFormat); 
    11181120 
     1121  QHBoxLayout *layHistOpts = new QHBoxLayout(); 
    11191122  chkHistVertSpacing = new QCheckBox(tr("Insert vertical spacing")); 
    11201123  connect(chkHistVertSpacing, SIGNAL(toggled(bool)), this, SLOT(slot_refresh_msgViewer())); 
    11211124  chkHistVertSpacing->setToolTip(tr("Insert extra space between messages.")); 
    1122   layHistDisp->addWidget(chkHistVertSpacing); 
     1125  layHistOpts->addWidget(chkHistVertSpacing); 
     1126 
     1127  chkHistReverse = new QCheckBox(tr("Reverse history")); 
     1128  connect(chkHistReverse, SIGNAL(toggled(bool)), this, SLOT(slot_refresh_msgViewer())); 
     1129  chkHistReverse->setToolTip(tr("Put recent messages on top.")); 
     1130  layHistOpts->addWidget(chkHistReverse); 
     1131  layHistDisp->addLayout(layHistOpts); 
    11231132 
    11241133  boxHistPreview = new QGroupBox(tr("Preview")); 
     
    20202029  msgHistViewer->m_nMsgStyle = cmbHistStyle->currentIndex(); 
    20212030  msgHistViewer->m_extraSpacing = chkHistVertSpacing->isChecked(); 
     2031  msgHistViewer->m_reverse = chkHistReverse->isChecked(); 
    20222032  msgHistViewer->m_colorSnt = btnColorSnt->getColor(); 
    20232033  msgHistViewer->m_colorRcv = btnColorRcv->getColor();