Changeset 72ea92b


Ignore:
Timestamp:
Aug 31, 2016, 8:06:50 AM (9 years ago)
Author:
Frederik Heber <heber@…>
Branches:
FragmentMolecule_checks_bonddegrees, Gui_Fixes
Children:
6e5ca9
Parents:
5c8056
Message:

Added second log view for stderr.

Location:
src/UIElements
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/QtMainWindow.cpp

    r5c8056 r72ea92b  
    112112  homologyList = new QtHomologyList(worldTab);
    113113  fragmentList = new QtFragmentList(worldTab);
    114   logBox = new QtLogBox(worldTab);
     114  logBox = new QtLogBox(std::cout, worldTab);
     115  errorlogBox = new QtLogBox(std::cerr, worldTab);
    115116  shapeController = new QtShapeController(worldTab);
    116117
     
    147148  worldTab->addTab(homologyList, "All Homologies");
    148149  worldTab->addTab(logBox, "Log");
     150  worldTab->addTab(errorlogBox, "Errors");
    149151
    150152  statusBar = new QtStatusBar(this);
  • src/UIElements/Qt4/QtMainWindow.hpp

    r5c8056 r72ea92b  
    7070  QSlider *timeline;
    7171  QtLogBox *logBox;
     72  QtLogBox *errorlogBox;
    7273
    7374  QtObservedInstanceBoard *InstanceBoard;
  • src/UIElements/Views/Qt4/QtLogBox.cpp

    r5c8056 r72ea92b  
    5050#endif
    5151
    52 QtLogBox::QtLogBox(QWidget * _parent) :
     52QtLogBox::QtLogBox(std::ostream &stream, QWidget * _parent) :
    5353    QPlainTextEdit (_parent),
    5454#ifdef QT_CAPTURES_LOG
    55     logbuf(std::cout, this)
     55    logbuf(stream, this)
    5656#else
    5757  logbuf(dummystream, this)
  • src/UIElements/Views/Qt4/QtLogBox.hpp

    r5c8056 r72ea92b  
    1616#include <QPlainTextEdit>
    1717
     18#include <iosfwd>
    1819#include <string>
    1920
     
    3233
    3334public:
    34   QtLogBox(QWidget * _parent=0);
     35  QtLogBox(std::ostream &stream, QWidget * _parent=0);
    3536  virtual ~QtLogBox();
    3637
Note: See TracChangeset for help on using the changeset viewer.